add tier to Account model and interface

merge-requests/4/head
Matthew 2020-03-23 22:26:42 -04:00
parent 2955aec793
commit fbe5037630
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 8 additions and 10 deletions

View File

@ -8,12 +8,11 @@ export interface AccountInterface extends Document {
createdBy: string, createdBy: string,
createdAt: Date, createdAt: Date,
locked: boolean, locked: boolean,
tier: number;
permissions: { permissions: {
support: boolean, associate: boolean,
staff: boolean, sheriff: boolean,
supervisor: boolean, facultyMarshal: boolean,
communityManager: boolean,
engineer: boolean
}, },
root: boolean, root: boolean,
hash: boolean, hash: boolean,
@ -29,12 +28,11 @@ const Account: Schema = new Schema({
createdBy: String, createdBy: String,
createdAt: Date, createdAt: Date,
locked: Boolean, locked: Boolean,
tier: Number,
permissions: { permissions: {
support: Boolean, associate: Boolean,
staff: Boolean, sheriff: Boolean,
supervisor: Boolean, facultyMarshal: Boolean,
communityManager: Boolean,
engineer: Boolean,
}, },
root: Boolean, root: Boolean,
hash: Boolean, hash: Boolean,