mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
sequelize: add required parameter (#4434)
This commit is contained in:
parent
e5d05c41bd
commit
650e421fba
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@
|
|||
> 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:
|
||||
- Create a model with 3 fields and a migration file:
|
||||
|
||||
`sequelize model:generate --name {{table_name}}`
|
||||
`sequelize model:generate --name {{table_name}} --attributes {{field1:integer,field2:string,field3:boolean}}`
|
||||
|
||||
- Run the migration file:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue