Constraints & Circularities Enforcing a foreign key reference without constraints Constraints & Circularities Adding constraints between tables means that tables must be creat...
Read Replication Read Replication Sequelize supports read replication , i.e. having multiple servers that you can connect to when you want to do a SELECT query. When you do rea...
Extending Data Types Example PostgreSQL Ranges Extending Data Types Most likely the type you are trying to implement is already included in DataTypes . If a new datatype is ...
Associations Associations For the most part hooks will work the same for instances when being associated except a few things When using add/set functions the beforeUpdate/aft...
Promises and async/await Promises and async/await As shown above by the extensive usage of .then calls, Sequelize uses Promises extensively. This means that, if your Node vers...
Validations Per-attribute validations Per-attribute validators and allowNull Model-wide validations Validations Model validations allow you to specify format/content/inherit...