Skip to content

Commit

Permalink
Set default value for ClassStories.active.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Sep 14, 2024
1 parent 4d9b4d1 commit d35629a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/story_class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export function initializeClassStoryModel(sequelize: Sequelize) {
},
active: {
type: DataTypes.TINYINT,
allowNull: false
allowNull: false,
defaultValue: 0,
}
}, {
sequelize,
Expand Down

0 comments on commit d35629a

Please sign in to comment.