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

Create Product_Type Table. #78

Closed TimAConner closed 6 years ago

TimAConner commented 6 years ago

Description

Add's an exported anonymous function to makeProductTypeTable.js which creates the product table using the productTypes.json.

Related Ticket(s)

Finished Issue #40 (Create Product_Types table)

Expected Behavior

When you require in makeProductTypeTable.js it should export a function that when you call creates a Product_Types database with pertinent information.

Steps to Test Solution

  1. Run npm run db:generate
  2. Open db/api-sprint.sqlite in your database browser of choice and check if Product_Types exists and has the correct data in the right column, using the ERD to check.