payservedb 2.9.0 → 2.9.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": "2.9.0",
3
+ "version": "2.9.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -4,16 +4,20 @@ const mongoose = require('mongoose');
4
4
  const valueAddedServiceSchema = new mongoose.Schema({
5
5
  facilityId: {
6
6
  type: mongoose.Schema.Types.ObjectId,
7
- ref: 'Facility',
7
+ ref: 'Facility',
8
8
  required: true
9
9
  },
10
10
  serviceName: {
11
11
  type: String,
12
12
  required: true,
13
13
  trim: true
14
+ },
15
+ appliesTo: {
16
+ type: [String],
17
+ default: []
14
18
  }
15
19
  }, {
16
- timestamps: true
20
+ timestamps: true
17
21
  });
18
22
 
19
23
  const ValueAddedService = mongoose.model('ValueAddedService', valueAddedServiceSchema);
@@ -2,6 +2,11 @@ const mongoose = require('mongoose');
2
2
 
3
3
  // Define the schema for VasVendor
4
4
  const vasVendorSchema = new mongoose.Schema({
5
+ facilityId: {
6
+ type: mongoose.Schema.Types.ObjectId,
7
+ ref: 'Facility',
8
+ required: true,
9
+ },
5
10
  name: {
6
11
  type: String,
7
12
  required: true,
@@ -50,4 +55,4 @@ const vasVendorSchema = new mongoose.Schema({
50
55
 
51
56
  const VasVendor = mongoose.model('VasVendor', vasVendorSchema);
52
57
 
53
- module.exports = VasVendor;
58
+ module.exports = VasVendor;