Skip to content

Commit 45012e7

Browse files
committed
remove unique true from user schema
1 parent 54bf4a4 commit 45012e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/schemas/User.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const UserSchema = new Schema({
88
gender: { type: String },
99
age: { type: Number },
1010
email: { type: String, required: true, unique: true },
11-
whatsapp: { type: String, unique: true },
11+
whatsapp: { type: String },
1212
privilege: { type: String, default: "student", enum: ["admin", "instructor", "student"] },
1313
clerkId: { type: String, required: true },
1414
creationDate: { type: Date, default: Date.now },

0 commit comments

Comments
 (0)