fix : user email default false

This commit is contained in:
morteza-mortezai
2025-10-25 12:28:10 +03:30
parent afc0141381
commit 5a7f4aec96
+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, default: null },
email: { type: String, unique: true, sparse: true },
homeNumber: { type: String, default: null },
},
{