From 31e35970744be08575ae0463eac9bd0b1a7103f8 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 14 Sep 2022 10:52:33 +0800 Subject: [PATCH] deleted DEFAULT false --- api/app/lib/models/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/lib/models/user.js b/api/app/lib/models/user.js index 9f1461e..52d3f56 100644 --- a/api/app/lib/models/user.js +++ b/api/app/lib/models/user.js @@ -81,7 +81,7 @@ module.exports = dc => { disabled: { type: DataTypes.BOOLEAN, allowNull: false, - defaultValue: null, + defaultValue: false, comment: null, primaryKey: false, field: "disabled", @@ -90,7 +90,7 @@ module.exports = dc => { deleted: { type: DataTypes.BOOLEAN, allowNull: false, - defaultValue: null, + defaultValue: false, comment: null, primaryKey: false, field: "deleted",