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