1
0
Fork 0

add tier to Account model and interface

refactor/models
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,
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,