← Back to Guides
🔶

Sequelize

Promise-based ORM for SQL databases

Sequelize is a mature, promise-based ORM for Node.js that works across PostgreSQL, MySQL, and more — mapping JavaScript models directly to relational tables with built-in validation and associations.

Key concepts

▸Model definitions mapped to SQL tables
▸Associations — hasOne, hasMany, belongsToMany
▸Migrations & seeders for schema versioning
▸Built-in validation and hooks/lifecycle events