-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No relationship between Product and department #24
Comments
So, you can reach the products from the department through categories, since one department can have many categories and one category can have many products, you can get products from the department. |
there is a catalog_get_products_on_department procedure that you can use. However the procedure has error: does not have p.display in select statement in order to order the result. So this sql scripts need a fix. |
I am having the same error on SP call to catalog_get_products_on_department, |
Well you have 2 ways:
|
For a normal shopping cart you add products to cart as you please,
next you will see a route that queries products in a cart so i think these 2 models are related directly and not through another |
Exactly what I am thinking. Well there should atleast be a foreign key. Since one department can have many products. |
there is no need for that. product can get to departments through categories |
From your database schema, i cant find a relationship between product and department, which makes this enpoint confusing (/products/inDepartment/{department_id})
The text was updated successfully, but these errors were encountered: