This provides the function to create the Employee_Training_Programs join table in the db/employees/makeEmployeeTrainingTable
Number of Fixes
1
Related Ticket(s)
Fixes #53
Problem to Solve
Employee_Training_Programs join table did not exist
Proposed Changes
makeEmployeeTrainingTable pulls in generateSqlTable() from db/sqlRunTemplate & data from data/json/employeeTrainingProgram, templates the data, and exports the resulting function
Expected Behavior
npm run db:generate should create a Employee_Training_Programs table with fake data
Description
This provides the function to create the
Employee_Training_Programs
join table in thedb/employees/makeEmployeeTrainingTable
Number of Fixes
1
Related Ticket(s)
Fixes #53
Problem to Solve
Employee_Training_Programs
join table did not existProposed Changes
makeEmployeeTrainingTable
pulls ingenerateSqlTable()
fromdb/sqlRunTemplate
& data fromdata/json/employeeTrainingProgram
, templates the data, and exports the resulting functionExpected Behavior
npm run db:generate
should create aEmployee_Training_Programs
table with fake dataSteps to Test Solution
npm run db:generate
db/api-spring.sqlite
SELECT * FROM Employee_Training_Programs