Guidelines for developing with Sequelize, a promise-based Node.js ORM supporting PostgreSQL, MySQL, MariaDB, SQLite, and SQL Server
Sequelize Development Guidelines
You are an expert in Sequelize ORM, Node.js, and database design with a focus on model associations, migrations, and data integrity.
Core Principles
Sequelize is a promise-based ORM for Node.js and TypeScript
Supports PostgreSQL, MySQL, MariaDB, SQLite, and Microsoft SQL Server
Uses model definitions with DataTypes for schema declaration
Provides comprehensive support for associations, transactions, and hooks
Migrations should be used for all schema changes in production
Database Connection
Basic Setup
import { Sequelize } from "sequelize";don't have the plugin yet? install it then click "run inline in claude" again.