Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed Data Relationships with SQL and Sequelize!
You have completed Data Relationships with SQL and Sequelize!
Instruction
Test Your Changes
Let's try running the npm start
command again to test the changes to the app.js
file. This time the application should run successfully, seeding the database with the expected Person and Movie records.
Calling the Person model create()
method results in Sequelize generating and executing the following SQL INSERT INTO
statements:
INSERT INTO `People` (`id`,`firstName`,`last...