flykup_model_development 3.1.79 → 3.1.82
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.
|
@@ -52,7 +52,18 @@ const liveStreamInteractionSchema = new mongoose.Schema({
|
|
|
52
52
|
type: Number,
|
|
53
53
|
default: 0
|
|
54
54
|
},
|
|
55
|
+
firstJoinedAt: Date,
|
|
55
56
|
lastSeenAt: Date,
|
|
57
|
+
lastLeftAt: Date,
|
|
58
|
+
sessionCount: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 0
|
|
61
|
+
},
|
|
62
|
+
sessions: [{
|
|
63
|
+
joinedAt: Date,
|
|
64
|
+
leftAt: Date,
|
|
65
|
+
duration: Number
|
|
66
|
+
}],
|
|
56
67
|
hasLiked: {
|
|
57
68
|
type: Boolean,
|
|
58
69
|
default: false
|
package/models/admin.model.js
CHANGED
|
@@ -116,7 +116,7 @@ paymentSchema.index({ 'sellerPayments.sellerId': 1 });
|
|
|
116
116
|
paymentSchema.index({ 'sellerPayments.settlementStatus': 1 });
|
|
117
117
|
|
|
118
118
|
const OrderPayment =
|
|
119
|
-
mongoose.models.
|
|
119
|
+
mongoose.models.orderPayment || mongoose.model('orderPayment', paymentSchema);
|
|
120
120
|
|
|
121
121
|
export default OrderPayment;
|
|
122
122
|
|