payservedb 5.1.3 → 5.1.5

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": "5.1.3",
3
+ "version": "5.1.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,6 +1,7 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
3
  const supplierSchema = new mongoose.Schema({
4
+ // Existing fields remain unchanged
4
5
  facilityId: {
5
6
  type: mongoose.Schema.Types.ObjectId,
6
7
  ref: 'Facility',
@@ -60,6 +61,11 @@ const supplierSchema = new mongoose.Schema({
60
61
  default: 'active',
61
62
  index: true
62
63
  },
64
+ userId: {
65
+ type: mongoose.Schema.Types.ObjectId,
66
+ ref: 'User',
67
+ index: true
68
+ }
63
69
  }, {
64
70
  timestamps: true
65
71
  });