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 Using SQL ORMs with Node.js!
You have completed Using SQL ORMs with Node.js!
Instruction
Define a Model
Overview
Now that you've created a SQLite database, the next step is to create a database table. In this step, you will configure a Sequelize model to create a table that stores movie titles.
What is a Model?
Sequelize is all about models. As you learned earlier, when using an ORM library like Sequelize, developers interact with a set of models to do database operations. Instead of i...