payservedb 5.5.3 → 5.5.5
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 +1 -1
- package/package.json +1 -1
- package/src/models/email.js +3 -3
- package/src/models/water_meters.js +5 -1
package/index.js
CHANGED
|
@@ -70,7 +70,7 @@ const models = {
|
|
|
70
70
|
AuditLog: require('./src/models/auditlog'),
|
|
71
71
|
Company: require('./src/models/company'),
|
|
72
72
|
Customer: require('./src/models/customer'),
|
|
73
|
-
|
|
73
|
+
FacilityEmailDetails: require('./src/models/email'),
|
|
74
74
|
Module: require('./src/models/module'),
|
|
75
75
|
Facility: require('./src/models/facility'),
|
|
76
76
|
RefreshToken: require('./src/models/refresh_token'),
|
package/package.json
CHANGED
package/src/models/email.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
|
-
const
|
|
2
|
+
const FacilityEmailDetailsSchema = mongoose.Schema({
|
|
3
3
|
host: {
|
|
4
4
|
type: String,
|
|
5
5
|
required: true
|
|
@@ -34,5 +34,5 @@ const EmailSchema = mongoose.Schema({
|
|
|
34
34
|
required: true
|
|
35
35
|
}
|
|
36
36
|
})
|
|
37
|
-
const
|
|
38
|
-
module.exports =
|
|
37
|
+
const FacilityEmailDetails = mongoose.model('FacilityEmailDetails', FacilityEmailDetailsSchema);
|
|
38
|
+
module.exports = FacilityEmailDetails
|
|
@@ -23,6 +23,10 @@ const waterMeterSchema = new mongoose.Schema({
|
|
|
23
23
|
type: mongoose.Schema.Types.ObjectId,
|
|
24
24
|
ref: 'Facility',
|
|
25
25
|
},
|
|
26
|
+
facilityName: {
|
|
27
|
+
type: String,
|
|
28
|
+
trim: true
|
|
29
|
+
},
|
|
26
30
|
unitId: {
|
|
27
31
|
type: mongoose.Schema.Types.ObjectId,
|
|
28
32
|
ref: 'Unit',
|
|
@@ -80,7 +84,7 @@ const waterMeterSchema = new mongoose.Schema({
|
|
|
80
84
|
type: Boolean,
|
|
81
85
|
default: false
|
|
82
86
|
},
|
|
83
|
-
concentratorSerialNumber: {
|
|
87
|
+
concentratorSerialNumber: {
|
|
84
88
|
type: String
|
|
85
89
|
},
|
|
86
90
|
valveType: { // Specific to smart meters
|