flykup_model_development 3.1.37 → 3.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/models/user.model.js +6 -0
- package/package.json +1 -1
package/models/user.model.js
CHANGED
|
@@ -120,6 +120,12 @@ const UserSchema = new mongoose.Schema(
|
|
|
120
120
|
isAddressSelected: { type: Boolean, default: false },
|
|
121
121
|
addressSelectedDate: { type: Date },
|
|
122
122
|
|
|
123
|
+
//Mobile Verification
|
|
124
|
+
mobile: { type: String, trim: true, maxLength: 15, unique: true, sparse: true }, // Make it unique but allow nulls
|
|
125
|
+
isMobileVerified: { type: Boolean, default: false },
|
|
126
|
+
mobileVerificationOTP: { type: String, select: false }, // 'select: false' hides it from default queries
|
|
127
|
+
mobileVerificationOTPExpiry: { type: Date, select: false },
|
|
128
|
+
|
|
123
129
|
// Payment Mandate Setup (Auto-Payment)
|
|
124
130
|
payuMandate: {
|
|
125
131
|
mandateToken: { type: String, default: null },
|