flykup_model_development 3.1.61 → 3.1.62
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/models/shows.model.js +7 -3
- package/package.json +1 -1
package/models/shows.model.js
CHANGED
|
@@ -86,12 +86,16 @@ const bundleSaleSchema = new Schema({
|
|
|
86
86
|
return this.bundleSaleId != null;
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
bundleTitle: { type: String }, //
|
|
90
|
-
|
|
89
|
+
bundleTitle: { type: String }, // Quick reference title
|
|
90
|
+
bundleMRP: { type: Number, min: 0, default: null }, // Original MRP
|
|
91
|
+
sellingPrice: { type: Number, min: 0, default: null }, // Actual selling price
|
|
92
|
+
bundleImage: { // Bundle thumbnail image
|
|
93
|
+
key: { type: String, default: null },
|
|
94
|
+
url: { type: String, default: null }
|
|
95
|
+
},
|
|
91
96
|
createdAt: { type: Date, default: Date.now }
|
|
92
97
|
});
|
|
93
98
|
|
|
94
|
-
|
|
95
99
|
// Show Schema with FIXED validation
|
|
96
100
|
const showSchema = new Schema(
|
|
97
101
|
{
|