From 6388e2b98843ad8ee5db855632334174efdaeedc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 13 Jul 2021 11:20:23 -0700 Subject: user admin field and auth middleware --- db/models/users.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'db/models/users.js') diff --git a/db/models/users.js b/db/models/users.js index e2275229..2abf1c79 100644 --- a/db/models/users.js +++ b/db/models/users.js @@ -10,6 +10,15 @@ const attributes = { comment: null, field: "id" }, + admin: { + type: DataTypes.BOOLEAN, + allowNull: true, + defaultValue: false, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "admin" + }, locked: { type: DataTypes.BOOLEAN, allowNull: true, -- cgit v1.2.3