Skip to main content

Promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server.

# To create a model and a migration file:
sequelize model:generate --name <table_name>

# To run the migration file:
sequelize db:migrate

# To revert all migrations:
sequelize db:migrate:undo:all

# To create a seed file with the specified name to populate the database:
sequelize seed:generate --name <seed_filename>

# To populate database using all seed files:
sequelize db:seed:all