sequelize

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

TLDR

Create a model and a migration file

>_ sequelize model:generate --name [table_name]
copy

Run the migration file

>_ sequelize db:migrate
copy

Revert all migrations

>_ sequelize db:migrate:undo:all
copy

Create a seed file with the specified name to populate the database

>_ sequelize seed:generate --name [seed_filename]
copy

Populate database using all seed files

>_ sequelize db:seed:all
copy

Copied to clipboard
free 100$ digital ocean credit