flykup_model_development 3.1.71 → 3.1.72

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.
@@ -208,8 +208,25 @@ const showSchema = new Schema(
208
208
  }
209
209
  },
210
210
  productPrice: { type: Number, min: 0, default: null },
211
- },
212
- ],
211
+ interestedUsers: {
212
+ type: [
213
+ {
214
+ userId: {
215
+ type: Schema.Types.ObjectId,
216
+ ref: 'users',
217
+ required: true
218
+ },
219
+ interestedAt: {
220
+ type: Date,
221
+ default: Date.now
222
+ },
223
+ _id: false
224
+ }
225
+ ],
226
+ default: []
227
+ }
228
+ },
229
+ ],
213
230
  default: [],
214
231
  validate: {
215
232
  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.72",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,