payservedb 3.6.0 → 3.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "3.6.0",
3
+ "version": "3.6.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,4 +1,4 @@
1
- import mongoose from "mongoose";
1
+ const mongoose = require("mongoose");
2
2
 
3
3
  const accountSchema = new mongoose.Schema({
4
4
  accountNumber: {
@@ -1,4 +1,4 @@
1
- import mongoose from "mongoose";
1
+ const mongoose = require("mongoose");
2
2
 
3
3
  const facilityPaymentDetailsSchema = new mongoose.Schema({
4
4
  facility: {
@@ -9,6 +9,10 @@ const meterSchema = new mongoose.Schema({
9
9
  type: mongoose.Schema.Types.ObjectId,
10
10
  ref: 'Unit',
11
11
  },
12
+ customerId: {
13
+ type: mongoose.Schema.Types.ObjectId,
14
+ ref: 'Customer',
15
+ },
12
16
  serialNumber: {
13
17
  type: String,
14
18
  required: true,