fix: add user email

This commit is contained in:
morteza-mortezai
2025-10-06 12:38:47 +03:30
parent 9d8addb399
commit 736bd332c9
+1 -1
View File
@@ -9,7 +9,7 @@ const userSchema = new Schema<IUser>(
dateOfBirth: { type: String, default: null },
address: { type: Schema.Types.ObjectId, ref: "Address", default: null },
nationalCode: { type: String, default: null },
email: { type: String, unique: true, sparse: true },
email: { type: String, unique: true, sparse: true, default: null },
homeNumber: { type: String, default: null },
},
{