chicken-sloths / bangazon-api-sprint1

API for a mock Amazon + Etsy platform providing developers access to the company's employee & product data
0 stars 0 forks source link

Fixes #42: Creates Product_Orders table #77

Closed DavidLarsKetch closed 6 years ago

DavidLarsKetch commented 6 years ago

Description

makeProductOrderTable.js now generates Product_Orders table when npm run db:generate is called.

Number of Fixes

1

Related Ticket(s)

42

Problem to Solve

Product_Orders did not exist

Proposed Changes

Calls generateSqlTable() from db/sqlRunTemplate.js, passing in data/json/productOrders.json, provides the data format, and exports that.

Expected Behavior

When npm run db:generate is called, a Product_Orders table should appear in db/api-sprint.sqlite

Steps to Test Solution

  1. npm run db:generate

Testing

[ ] There are new unit tests in this PR, and I verify that there is full coverage of all new code. [ ] I certify that all existing tests pass

Documentation

[ ] There is new documentation in this pull request that must be reviewed.. [ ] I added documentation for any new classes/methods

Deploy Notes

Notes regarding deployment the contained body of work. These should note any db migrations, etc.

DavidLarsKetch commented 6 years ago

Up to date with master