sequelize migration set default value code example
Example 1: sequelize migration default value
queryInterface.addColumn('OrderBackups', 'my_column', {
type: Sequelize.INTEGER,
defaultValue: 0
})
Example 2: sequelize migration set default value
await queryInterface.addColumn('my_list', 'is_deleted', {
type: Sequelize.BOOLEAN,
defaultValue: false
});