2

I have sequelize-cli installed globally.

When I run the command

sequelize model:create --name User --attributes name:string,email:string,password:string

it creates the model at models/user.js and migration at migrations/20201115094126-create-user.js

Both the files are created in Javascript. I want both the model and migration to be created in Typescript. In the documentation, I have only found the manual creation of models. Is there a way to create these files in Typescript?

Lin Du
  • 88,126
  • 95
  • 281
  • 483
Kshitij Bajracharya
  • 811
  • 2
  • 14
  • 37

0 Answers0