diff options
| author | Adam Soltys <[email protected]> | 2021-07-13 11:20:23 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-07-13 11:21:33 -0700 |
| commit | 6388e2b98843ad8ee5db855632334174efdaeedc (patch) | |
| tree | 701647d738d0b13cd41bdf9b75180e4923422d76 /db/models | |
| parent | fc3e802856d1209ee9e47e3f0a2a073c475bd7ae (diff) | |
| download | coinos-server-6388e2b98843ad8ee5db855632334174efdaeedc.tar.gz coinos-server-6388e2b98843ad8ee5db855632334174efdaeedc.zip | |
user admin field and auth middleware
Diffstat (limited to 'db/models')
| -rw-r--r-- | db/models/users.js | 9 |
1 files changed, 9 insertions, 0 deletions
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, |
