Model role updated

This commit is contained in:
2025-06-23 16:43:20 +05:30
parent 20509c268a
commit 82d8e9b0ff

View File

@@ -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,