From 650e421fbaf4c265dd73c7a1f51922bf26bf9242 Mon Sep 17 00:00:00 2001 From: Izzur Zuhri Date: Mon, 5 Oct 2020 21:00:03 +0700 Subject: [PATCH] sequelize: add required parameter (#4434) --- pages/common/sequelize.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/sequelize.md b/pages/common/sequelize.md index 18f5a10fe..277725080 100644 --- a/pages/common/sequelize.md +++ b/pages/common/sequelize.md @@ -3,9 +3,9 @@ > Promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. > More information: . -- 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: