5

I was creating document_types table using following cli command

sequelize model:create --name User --attributes name:string, username:string, email:string, password:string
Viktor
  • 2,623
  • 3
  • 19
  • 28
Akshay Vijay Jain
  • 13,461
  • 8
  • 60
  • 73

1 Answers1

24

Solution: remove the space after comma between different attributes to avoid the error, correct command would be:

sequelize model:create --name User --attributes name:string,username:string,email:string,password:string
Viktor
  • 2,623
  • 3
  • 19
  • 28
Akshay Vijay Jain
  • 13,461
  • 8
  • 60
  • 73