📄️ Model Basics
In this tutorial you will learn what models are in Sequelize and how to use them.
📄️ Model Instances
As you already know, a model is an ES6 class. An instance of the class represents one object from that model (which maps to one row of the table in the database). This way, model instances are DAOs.
📄️ Model Querying - Basics
Sequelize provides various methods to assist querying your database for data.
📄️ Model Querying - Finders
Finder methods are the ones that generate SELECT queries.
📄️ Getters, Setters & Virtuals
Sequelize allows you to define custom getters and setters for the attributes of your models.
📄️ Validations & Constraints
In this tutorial you will learn how to setup validations and constraints for your models in Sequelize.
📄️ Raw Queries
As there are often use cases in which it is just easier to execute raw / already prepared SQL queries, you can use the sequelize.query method.
Sequelize supports the standard associations: One-To-One, One-To-Many and Many-To-Many.
Sequelize supports the concept of paranoid tables. A paranoid table is one that, when told to delete a record, it will not truly delete it. Instead, a special column called deletedAt will have its value set to the timestamp of that deletion request.