payservedb 1.5.6 → 1.5.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -8,24 +8,24 @@ const facilitySchema = new mongoose.Schema({
8
8
  trim: true,
9
9
  minlength: [1, 'Facility name must be at least 1 character long']
10
10
  },
11
- location:{
12
- type:String,
13
- required:true
11
+ location: {
12
+ type: String,
13
+ required: true
14
14
  },
15
- subDivision:{type:String,required:true},
16
- isEnabled:{type:Boolean,required:true},
17
- divisionArray:[],
18
- landReferenceNumbers:[],
19
- defaultMeasurement:{type:String,required:false},
20
- totalCommonArea:{type:String,required:false},
21
- totalLettableArea:{type:String,required:false},
15
+ subDivision: { type: String, required: true },
16
+ isEnabled: { type: Boolean, required: true },
17
+ divisionArray: [],
18
+ landReferenceNumbers: [],
19
+ defaultMeasurement: { type: String, required: false },
20
+ totalCommonArea: { type: String, required: false },
21
+ totalLettableArea: { type: String, required: false },
22
22
 
23
23
  logo: {
24
24
  type: String,
25
25
  trim: false,
26
26
  default: null
27
27
  }
28
-
28
+
29
29
  }, {
30
30
  timestamps: true // Automatically add createdAt and updatedAt fields
31
31
  });
@@ -57,6 +57,14 @@ const userSchema = new mongoose.Schema({
57
57
  required: [true, 'Password is required'],
58
58
  minlength: 8,
59
59
  },
60
+ verificationCode: {
61
+ type: Number,
62
+ required: false
63
+ },
64
+ verificationExpiration: {
65
+ type: Date,
66
+ required: false
67
+ }
60
68
  }, {
61
69
  timestamps: true, // Automatically add createdAt and updatedAt fields
62
70
  });