Create a model with 3 fields and a migration file

sequelize

  • Promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server.
    More information: <https://sequelize.org/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sequelize model:generate --name {{table_name}} --attributes {{field1:integer,field2:string,field3:boolean}}

click the source code to copy