feat: creates admin privileges

This commit is contained in:
tdurieux
2021-09-09 14:58:38 +02:00
parent 76b5d00fb8
commit 62fd9eca7d
6 changed files with 23 additions and 45 deletions

View File

@@ -18,6 +18,7 @@ const UserSchema = new Schema({
default: Boolean,
},
],
isAdmin: { type: Boolean, default: false },
photo: String,
repositories: [String],
default: {

View File

@@ -8,6 +8,7 @@ export interface IUser {
github: string;
};
username: string;
isAdmin: boolean;
emails: {
email: string;
default: boolean;