flykup_model_development 3.1.70 → 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.
|
@@ -131,6 +131,10 @@ const ProductListingSchema = new Schema(
|
|
|
131
131
|
type: Boolean,
|
|
132
132
|
default: true,
|
|
133
133
|
},
|
|
134
|
+
shopifySynced: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false,
|
|
137
|
+
},
|
|
134
138
|
ratingSummary: {
|
|
135
139
|
averageRating: { type: Number, default: 0 },
|
|
136
140
|
totalRatings: { type: Number, default: 0 },
|
package/models/shows.model.js
CHANGED
|
@@ -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) {
|