HackYourFuture-CPH / fp-class18

Interior design webshop
MIT License
1 stars 0 forks source link

Databases: Create Migrations for Order Items Table #20

Closed varsha84 closed 2 years ago

varsha84 commented 2 years ago

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

image

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

OlenaKasian commented 2 years ago

HI, Varsha. Your picture is wrong. You create a story for order_items table, but the picture is favorites.