HackYourFuture-CPH / fp-class19

MIT License
3 stars 1 forks source link

Database: Create Families table and its routers, controllers, migrations, seeds #202

Closed Darya-s closed 2 years ago

Darya-s commented 2 years ago

User story

Who: As a developer What: I want to create new table 'families' and add it as foreign key in 'products' table Why: so that user can view by different family products and also can see related family products

Acceptance criteria

New 'families' table families router families controller add family_id in products table add family_id values in products table seed

Read about Swagger here https://github.com/HackYourFuture-CPH/fp-class19/#-working-with-api-documentation---swagger and this article should also help you with that https://blog.logrocket.com/documenting-your-express-api-with-swagger/