From 89179b1cfdb507cdb1ed4da16bb93db41fcf03e9 Mon Sep 17 00:00:00 2001 From: Byunk Date: Sat, 23 Dec 2023 22:07:08 +0900 Subject: [PATCH] change initialPassword field in user schema as nullable --- src/model/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/user.ts b/src/model/user.ts index dbb5b9e..aa820d8 100644 --- a/src/model/user.ts +++ b/src/model/user.ts @@ -32,7 +32,7 @@ User.init( }, initialPassword: { type: DataTypes.STRING(64), - allowNull: false, + allowNull: true, }, role: { type: DataTypes.ENUM('admin', 'user'),