payservedb 4.8.6 → 4.8.8

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.8.6",
3
+ "version": "4.8.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -60,19 +60,21 @@ const rfqDetailsSchema = new mongoose.Schema({
60
60
  type: String,
61
61
  trim: true,
62
62
  },
63
-
64
- // just store the IDs you invited
63
+ status: {
64
+ type: String,
65
+ enum: ['Pending', 'Active', 'Closed'],
66
+ default: 'Pending',
67
+ trim: true,
68
+ },
65
69
  suppliers: [{
66
70
  type: mongoose.Schema.Types.ObjectId,
67
71
  ref: 'Supplier',
68
72
  }],
69
-
70
- // the free‑form items your UI collects
71
73
  items: [{
72
- itemName: { type: String, required: true, trim: true },
73
- description: { type: String, trim: true },
74
- quantity: { type: Number, required: true, min: 1 },
75
- unitOfMeasure: { type: String, trim: true },
74
+ itemName: { type: String, required: true, trim: true },
75
+ description: { type: String, trim: true },
76
+ quantity: { type: Number, required: true, min: 1 },
77
+ unitOfMeasure: { type: String, trim: true },
76
78
  specifications: { type: String, trim: true },
77
79
  }],
78
80