flykup_model_development 3.1.71 → 3.1.73

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.
@@ -93,7 +93,24 @@ const bundleSaleSchema = new Schema({
93
93
  key: { type: String, default: null },
94
94
  url: { type: String, default: null }
95
95
  },
96
- createdAt: { type: Date, default: Date.now }
96
+ createdAt: { type: Date, default: Date.now },
97
+ interestedUsers: {
98
+ type: [
99
+ {
100
+ userId: {
101
+ type: Schema.Types.ObjectId,
102
+ ref: 'users',
103
+ required: true
104
+ },
105
+ interestedAt: {
106
+ type: Date,
107
+ default: Date.now
108
+ },
109
+ _id: false
110
+ }
111
+ ],
112
+ default: []
113
+ }
97
114
  });
98
115
 
99
116
  // Show Schema with FIXED validation
@@ -208,8 +225,25 @@ const showSchema = new Schema(
208
225
  }
209
226
  },
210
227
  productPrice: { type: Number, min: 0, default: null },
211
- },
212
- ],
228
+ interestedUsers: {
229
+ type: [
230
+ {
231
+ userId: {
232
+ type: Schema.Types.ObjectId,
233
+ ref: 'users',
234
+ required: true
235
+ },
236
+ interestedAt: {
237
+ type: Date,
238
+ default: Date.now
239
+ },
240
+ _id: false
241
+ }
242
+ ],
243
+ default: []
244
+ }
245
+ },
246
+ ],
213
247
  default: [],
214
248
  validate: {
215
249
  validator: function(products) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.71",
3
+ "version": "3.1.73",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,