Posts by gbsantos • 41 points
2 posts
-
1
votes1
answer536
viewsA: How do I set a default value for a column in Sequelize?
Just leave the property defaultValue above the property allowNull in Migration user. Thank you so much for your time and help @rafael-Tavares Migration user module.exports = { up: (queryInterface,…
-
2
votes1
answer536
viewsQ: How do I set a default value for a column in Sequelize?
I am using Sequelize (v5.0+) with Nodejs (with Express). I want that for the column status in my database has the default value (defaultValue) as true. Migration module.exports = { up:…