payservedb 3.2.2 → 3.2.3

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.3",
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',
@@ -16,6 +16,10 @@ const deliverySchema = new mongoose.Schema({
16
16
  required: true,
17
17
  trim: true
18
18
  },
19
+ receivedBy: {
20
+ type: String,
21
+ trim: true
22
+ },
19
23
  deliveryDate: {
20
24
  type: Date,
21
25
  required: true,
@@ -25,6 +29,14 @@ const deliverySchema = new mongoose.Schema({
25
29
  type: String,
26
30
  trim: true
27
31
  },
32
+ postNotes: {
33
+ type: String,
34
+ trim: true
35
+ },
36
+ fileUrl: {
37
+ type: String,
38
+ trim: true
39
+ },
28
40
  concentrators: [{
29
41
  concentratorId: {
30
42
  type: mongoose.Schema.Types.ObjectId,
@@ -58,4 +70,4 @@ const deliverySchema = new mongoose.Schema({
58
70
 
59
71
  const MetersDelivery = mongoose.model('MetersDelivery', deliverySchema);
60
72
 
61
- module.exports = MetersDelivery;
73
+ module.exports = MetersDelivery;