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!
Instruction
Create Movie Records
So far, we've defined data relationships in our models, set one-to-many relationships using associations, created related data using our models, and added seed data. Now we're ready to create the Movie records!
Call the Movie model create() method, passing in an object literal with the desired property values:
// Add Movies to the Database
console.log('Adding movies to the database...');
Mo...