payservedb 1.1.0 → 1.1.2

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/index.js CHANGED
@@ -63,6 +63,7 @@ const models = {
63
63
  SMSAfricastalking: require('./src/models/sms_africastalking'),
64
64
  SMSMeliora: require('./src/models/sms_meliora'),
65
65
  WaterConcentrator:require('./src/models/waterConcentrator'),
66
+ UnitAsset: require('./src/models/unitasset'),
66
67
  Customer: require('./src/models/customer'),
67
68
  Visitor: require('./src/models/visitor'),
68
69
  Access: require('./src/models/access'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -33,6 +33,10 @@ const guardSchema = new mongoose.Schema({
33
33
  required: [true, 'End time is required'],
34
34
  trim: true
35
35
  },
36
+ disabled: {
37
+ type: Boolean,
38
+ default: false,
39
+ },
36
40
  facilityId: {
37
41
  type: mongoose.Schema.Types.ObjectId,
38
42
  ref: 'Facility',
@@ -18,9 +18,9 @@ const userSchema = new mongoose.Schema({
18
18
  required: false,
19
19
  trim: true,
20
20
  },
21
- idNumber:{
22
- type:String,
23
- required:false
21
+ idNumber: {
22
+ type: String,
23
+ required: false
24
24
  },
25
25
  type: {
26
26
  type: String,
@@ -32,16 +32,26 @@ const userSchema = new mongoose.Schema({
32
32
  required: [true, 'Role is required'],
33
33
  enum: ['admin', 'editor', 'user'],
34
34
  },
35
- kyc:{
36
-
37
- Id:{
38
- type:String
35
+ kyc: {
36
+
37
+ Id: {
38
+ type: String
39
39
  }
40
40
  },
41
41
  companies: [{
42
42
  type: mongoose.Schema.Types.ObjectId,
43
43
  ref: 'Company',
44
44
  }],
45
+ customerData: [{
46
+ facilityId: {
47
+ type: mongoose.Schema.Types.ObjectId,
48
+ ref: 'Facility',
49
+ },
50
+ customerId: {
51
+ type: mongoose.Schema.Types.ObjectId,
52
+ ref: 'Customer',
53
+ }
54
+ }],
45
55
  password: {
46
56
  type: String,
47
57
  required: [true, 'Password is required'],