Model role updated
This commit is contained in:
@@ -8,7 +8,6 @@ export interface UserData extends Document {
|
||||
notificationEnable: boolean;
|
||||
About: string;
|
||||
isArchive: boolean;
|
||||
role: string;
|
||||
profilePicture: string;
|
||||
recentlyViewed: string[];
|
||||
}
|
||||
@@ -19,11 +18,6 @@ const UserDataSchema: Schema = new Schema({
|
||||
About: {
|
||||
type: String,
|
||||
},
|
||||
role: {
|
||||
type: String,
|
||||
default: "User",
|
||||
enum: ["User", "Admin"],
|
||||
},
|
||||
isShare: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
|
||||
Reference in New Issue
Block a user