sequelize create migration from existing model code example
Example 1: sequelize generate migration
npx sequelize-cli migration:generate --name add-title-post-table
Example 2: sequelize migration add default value
queryInterface.addColumn('My_table', 'my_column', {
type: Sequelize.INTEGER,
defaultValue: 0
})