payservedb 3.2.2 → 3.2.4

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": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -5,12 +5,20 @@ const meterSchema = new mongoose.Schema({
5
5
  type: mongoose.Schema.Types.ObjectId,
6
6
  ref: 'Facility',
7
7
  },
8
+ unitId: {
9
+ type: mongoose.Schema.Types.ObjectId,
10
+ ref: 'Unit',
11
+ },
8
12
  serialNumber: {
9
13
  type: String,
10
14
  required: true,
11
15
  trim: true,
12
16
  unique: true,
13
17
  },
18
+ isInstalled: {
19
+ type: Boolean,
20
+ default: false
21
+ },
14
22
  manufacturer: {
15
23
  type: mongoose.Schema.Types.ObjectId,
16
24
  ref: 'MeterManufacturer',
@@ -11,11 +11,20 @@ const deliverySchema = new mongoose.Schema({
11
11
  required: true,
12
12
  trim: true
13
13
  },
14
+ deliveryNo: {
15
+ type: Number,
16
+ required: true,
17
+ trim: true
18
+ },
14
19
  deliveredBy: {
15
20
  type: String,
16
21
  required: true,
17
22
  trim: true
18
23
  },
24
+ receivedBy: {
25
+ type: String,
26
+ trim: true
27
+ },
19
28
  deliveryDate: {
20
29
  type: Date,
21
30
  required: true,
@@ -25,6 +34,14 @@ const deliverySchema = new mongoose.Schema({
25
34
  type: String,
26
35
  trim: true
27
36
  },
37
+ postNotes: {
38
+ type: String,
39
+ trim: true
40
+ },
41
+ fileUrl: {
42
+ type: String,
43
+ trim: true
44
+ },
28
45
  concentrators: [{
29
46
  concentratorId: {
30
47
  type: mongoose.Schema.Types.ObjectId,
@@ -58,4 +75,4 @@ const deliverySchema = new mongoose.Schema({
58
75
 
59
76
  const MetersDelivery = mongoose.model('MetersDelivery', deliverySchema);
60
77
 
61
- module.exports = MetersDelivery;
78
+ module.exports = MetersDelivery;