Who: As a developer
What: I want to be able to work with order_items table
Why: so that I can store order_id, product_id in order_items table and make that same data available to the other layers of the app
Acceptance criteria
Please consider all the fields shown below
And all the connections to the other tables. Check the diagram
Implementation details
When this story is done it should be possible to work with order_items and it should have some order_id, product_id
in order_items table .
As an example, you can check the migration and the seeds for the modules on /src/server/migrations and /src/server/seeds
User story
Who: As a developer What: I want to be able to work with order_items table Why: so that I can store order_id, product_id in order_items table and make that same data available to the other layers of the app
Acceptance criteria
Please consider all the fields shown below
And all the connections to the other tables. Check the diagram
Implementation details
When this story is done it should be possible to work with order_items and it should have some order_id, product_id in order_items table . As an example, you can check the migration and the seeds for the modules on /src/server/migrations and /src/server/seeds
Please watch video on the migration and seeds - https://www.youtube.com/watch?v=id34_al68x8 Please consider the DB diagram https://github.com/HackYourFuture-CPH/fp-class18#%EF%B8%8F-database-model-diagram