sequelize defaultValue instead of default
MohammedFaragallah opened this issue · comments
when using default attribute in the schema
number: { type: 'integer', default: 0 }
then regenerate it outputs this in sequelize model
visual: { type: DataTypes.INTEGER, default: 0 }
but it should outputs this to work with sequelize
visual: { type: DataTypes.INTEGER, defaultValue: 0 }
i think sequelize defaultValue only work with postgres
Published as cli+ 0.8.1 which uses generator 0.8.1.
Thank you, great work.