payservedb 4.0.5 → 4.0.6

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": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -7,6 +7,12 @@ const analogMeterSchema = new mongoose.Schema({
7
7
  unique: true,
8
8
  trim: true
9
9
  },
10
+ accountNumber: {
11
+ type: String,
12
+ required: true,
13
+ trim: true,
14
+ unique: true
15
+ },
10
16
  unitId: {
11
17
  type: mongoose.Schema.Types.ObjectId,
12
18
  ref: 'Unit',
@@ -48,7 +54,7 @@ const analogMeterSchema = new mongoose.Schema({
48
54
  default: Date.now
49
55
  },
50
56
  readBy: String,
51
- consumption: Number
57
+ consumption: Number
52
58
  }]
53
59
  }, {
54
60
  timestamps: true