Trying to create a model that has an enum field with certain values using Sequelize CLI.
sequelize model:generate --name user --attributes name:string,login_method:enum('email','google')
Error: bash: syntax error near unexpected token `('
What is the right syntax to do so?
https://github.com/sequelize/cli/blob/master/docs/FAQ.md
try
npx sequelize-cli model:generate --name user --attributes name:string,login_method:enum:'{email,google}'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With