payservedb 2.7.2 → 2.7.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": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,19 +1,23 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
3
  const ServiceInvoiceSchema = new mongoose.Schema({
4
- faciltyId: {
5
- type: Number,
4
+ facilityId: {
5
+ type: mongoose.Schema.Types.ObjectId,
6
+ ref: 'Facility',
6
7
  required: true
7
8
  },
8
9
  serviceId: {
9
- type: Number,
10
+ type: mongoose.Schema.Types.ObjectId,
11
+ ref: 'Service',
10
12
  required: true
11
13
  },
12
14
  serviceVendorId: {
13
- type: Number,
15
+ type: mongoose.Schema.Types.ObjectId,
16
+ ref: 'ServiceVendor',
14
17
  },
15
18
  customerId: {
16
- type: Number,
19
+ type: mongoose.Schema.Types.ObjectId,
20
+ ref: 'Customer',
17
21
  required: true
18
22
  },
19
23
  status: {