1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 12:45:59 +02:00

sequelize: add page (#3861)

This commit is contained in:
Izzur Zuhri 2020-02-17 19:36:56 +07:00 committed by GitHub
parent d009c909d2
commit 0bddfe82b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
pages/common/sequelize.md Normal file
View file

@ -0,0 +1,24 @@
# sequelize
> Promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server.
> More information: <https://sequelize.org/>.
- Create a model and a migration file:
`sequelize model:generate --name {{table_name}}`
- Run the migration file:
`sequelize db:migrate`
- Revert all migrations:
`sequelize db:migrate:undo:all`
- Create a seed file with the specified name to populate the database:
`sequelize seed:generate --name {{seed_filename}}`
- Populate database using all seed files:
`sequelize db:seed:all`