Skip to content

Commit

Permalink
change initialPassword field in user schema as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Byunk committed Dec 23, 2023
1 parent f714c8d commit 89179b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ User.init(
},
initialPassword: {
type: DataTypes.STRING(64),
allowNull: false,
allowNull: true,
},
role: {
type: DataTypes.ENUM('admin', 'user'),
Expand Down

0 comments on commit 89179b1

Please sign in to comment.