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