Abdul Rehman
commited on
Commit
·
d60fe6f
1
Parent(s):
7ca8613
email condition
Browse files
src/modules/user/user.schema.ts
CHANGED
|
@@ -39,7 +39,7 @@ const UserSchema = new mongoose.Schema<IUserDocument>(
|
|
| 39 |
{
|
| 40 |
name: { type: String },
|
| 41 |
username: { type: String },
|
| 42 |
-
email: { type: String },
|
| 43 |
avatar: { type: String },
|
| 44 |
isActive: { type: Boolean, default: true },
|
| 45 |
isDeleted: { type: Boolean, default: false },
|
|
|
|
| 39 |
{
|
| 40 |
name: { type: String },
|
| 41 |
username: { type: String },
|
| 42 |
+
email: { type: String, unique: true },
|
| 43 |
avatar: { type: String },
|
| 44 |
isActive: { type: Boolean, default: true },
|
| 45 |
isDeleted: { type: Boolean, default: false },
|