flykup_model_production 1.0.15 → 1.0.17
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/.gitattributes +2 -0
- package/.github/workflows/publish.yml +31 -0
- package/auth.js +14 -14
- package/config.js +1 -1
- package/db_connection.js +23 -23
- package/index.js +140 -140
- package/models/AadhaarVerification.js +131 -131
- package/models/AdminEmail.model.js +38 -38
- package/models/BankVerification.js +92 -92
- package/models/GSTVerification.js +89 -89
- package/models/LiveStreamInteraction.model.js +101 -101
- package/models/ProductInteraction.model.js +108 -108
- package/models/Review.model.js +121 -121
- package/models/SearchAnalytics.js +23 -23
- package/models/ShoppableInteraction.model.js +106 -106
- package/models/Wishlist.model.js +29 -29
- package/models/admin.model.js +42 -42
- package/models/appUpdate.model.js +19 -19
- package/models/assets.model.js +32 -32
- package/models/blockedRegion.models.js +27 -27
- package/models/chat.model.js +511 -511
- package/models/coHostInvitation.model.js +60 -60
- package/models/follow.model.js +38 -38
- package/models/loginlogs.model.js +26 -26
- package/models/notification.model.js +130 -129
- package/models/order.modal.js +385 -381
- package/models/orderPayment.model.js +219 -105
- package/models/productListing.model.js +322 -318
- package/models/profileInteractions.model.js +44 -44
- package/models/registerShow.model.js +29 -29
- package/models/sellerDraft.model.js +27 -27
- package/models/seller_settlements_2025-11-18 (1).csv +4 -0
- package/models/seller_settlements_2025-11-18.csv +4 -0
- package/models/shipper.model.js +126 -126
- package/models/shoppableVideo.model.js +237 -237
- package/models/shoppableVideoComment.model.js +57 -57
- package/models/shoppableVideoLike.model.js +29 -29
- package/models/shoppableVideoSave.model.js +27 -27
- package/models/shows.model.js +603 -570
- package/models/stock.model.js +105 -105
- package/models/ticket.model.js +115 -115
- package/models/user.model.js +7 -0
- package/package.json +18 -18
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import mongoose, { Schema, model } from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const shoppableVideoSaveSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
videoId: {
|
|
6
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
7
|
-
ref: "ShoppableVideo",
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
userId: {
|
|
11
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
12
|
-
ref: "User",
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
timestamps: true,
|
|
18
|
-
toJSON: { virtuals: true },
|
|
19
|
-
toObject: { virtuals: true },
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
// Add compound index to ensure a user can only save a video once
|
|
24
|
-
shoppableVideoSaveSchema.index({ videoId: 1, userId: 1 }, { unique: true });
|
|
25
|
-
|
|
26
|
-
const ShoppableVideoSave = mongoose.models.ShoppableVideoSave || mongoose.model("ShoppableVideoSave", shoppableVideoSaveSchema);
|
|
27
|
-
export default ShoppableVideoSave;
|
|
1
|
+
import mongoose, { Schema, model } from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const shoppableVideoSaveSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
videoId: {
|
|
6
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
7
|
+
ref: "ShoppableVideo",
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
userId: {
|
|
11
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
12
|
+
ref: "User",
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
timestamps: true,
|
|
18
|
+
toJSON: { virtuals: true },
|
|
19
|
+
toObject: { virtuals: true },
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
// Add compound index to ensure a user can only save a video once
|
|
24
|
+
shoppableVideoSaveSchema.index({ videoId: 1, userId: 1 }, { unique: true });
|
|
25
|
+
|
|
26
|
+
const ShoppableVideoSave = mongoose.models.ShoppableVideoSave || mongoose.model("ShoppableVideoSave", shoppableVideoSaveSchema);
|
|
27
|
+
export default ShoppableVideoSave;
|