From fbe50376309d43926c6c08a43a39bc3b190ea6a7 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 23 Mar 2020 22:26:42 -0400 Subject: [PATCH] add tier to Account model and interface --- src/models/Account.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/models/Account.ts b/src/models/Account.ts index 651d451..ab38d31 100644 --- a/src/models/Account.ts +++ b/src/models/Account.ts @@ -8,12 +8,11 @@ export interface AccountInterface extends Document { createdBy: string, createdAt: Date, locked: boolean, + tier: number; permissions: { - support: boolean, - staff: boolean, - supervisor: boolean, - communityManager: boolean, - engineer: boolean + associate: boolean, + sheriff: boolean, + facultyMarshal: boolean, }, root: boolean, hash: boolean, @@ -29,12 +28,11 @@ const Account: Schema = new Schema({ createdBy: String, createdAt: Date, locked: Boolean, + tier: Number, permissions: { - support: Boolean, - staff: Boolean, - supervisor: Boolean, - communityManager: Boolean, - engineer: Boolean, + associate: Boolean, + sheriff: Boolean, + facultyMarshal: Boolean, }, root: Boolean, hash: Boolean,