Skip to content

Commit

Permalink
Update user.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamchhimwal authored Feb 25, 2024
1 parent fda0e47 commit f2afaa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const User = new Schema({
},
Role: {
type: String, //"user"/"admin"/"manager"/"guest"
enum: ["user", "admin", "manager", "guest"],
enum: ["user", "admin", "manager", "secy"],
default: "user",
},
First_Name: {
Expand All @@ -43,4 +43,4 @@ const User = new Schema({
},
});

export default mongoose.model("User_Schema", User);
export default mongoose.model("users", User);

0 comments on commit f2afaa6

Please sign in to comment.