@creator.co/creatorco-prisma-client 1.0.36 → 1.0.38
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/edge.js +11 -4
- package/index-browser.js +7 -0
- package/index.d.ts +2279 -346
- package/index.js +11 -4
- package/package.json +1 -1
- package/schema.prisma +26 -13
- package/wasm.js +7 -0
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -512,17 +512,18 @@ model Campaign {
|
|
|
512
512
|
affiliateLinkPath String?
|
|
513
513
|
metaData Json @default("{}")
|
|
514
514
|
|
|
515
|
-
steps
|
|
516
|
-
categories
|
|
517
|
-
optIns
|
|
518
|
-
images
|
|
519
|
-
variables
|
|
520
|
-
productLists
|
|
521
|
-
countries
|
|
522
|
-
campaignPins
|
|
523
|
-
socialPosts
|
|
524
|
-
campaignInvites
|
|
525
|
-
campaignToShopifyProducts
|
|
515
|
+
steps CampaignStep[]
|
|
516
|
+
categories CampaignToCategory[]
|
|
517
|
+
optIns OptIn[]
|
|
518
|
+
images CampaignToImage[]
|
|
519
|
+
variables Variable[]
|
|
520
|
+
productLists CampaignToProductList[]
|
|
521
|
+
countries CampaignToCountry[]
|
|
522
|
+
campaignPins CampaignPin[]
|
|
523
|
+
socialPosts SocialPost[]
|
|
524
|
+
campaignInvites CampaignInvite[]
|
|
525
|
+
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
526
|
+
campaignToBrandAffiliateLinks CampaignToBrandAffiliateLink[]
|
|
526
527
|
|
|
527
528
|
brandId Int
|
|
528
529
|
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
@@ -561,6 +562,17 @@ model CampaignToImage {
|
|
|
561
562
|
@@map("campaigntoimage")
|
|
562
563
|
}
|
|
563
564
|
|
|
565
|
+
model CampaignToBrandAffiliateLink {
|
|
566
|
+
id Int @id @default(autoincrement())
|
|
567
|
+
campaignId Int
|
|
568
|
+
brandAffiliateLinkId Int
|
|
569
|
+
|
|
570
|
+
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
571
|
+
brandAffiliateLink BrandAffiliateLink @relation(fields: [brandAffiliateLinkId], references: [id], onDelete: Cascade)
|
|
572
|
+
|
|
573
|
+
@@map("campaigntobrandaffiliatelink")
|
|
574
|
+
}
|
|
575
|
+
|
|
564
576
|
model CampaignToCategory {
|
|
565
577
|
campaignId Int
|
|
566
578
|
categoryId Int
|
|
@@ -979,8 +991,9 @@ model BrandAffiliateLink {
|
|
|
979
991
|
commission Float @default(0.2)
|
|
980
992
|
metaData Json @default("{}")
|
|
981
993
|
|
|
982
|
-
brandId
|
|
983
|
-
affiliateLinks
|
|
994
|
+
brandId Int
|
|
995
|
+
affiliateLinks AffiliateLink[]
|
|
996
|
+
campaignToBrandAffiliateLink CampaignToBrandAffiliateLink[]
|
|
984
997
|
|
|
985
998
|
brand Brand @relation(fields: [brandId], references: [id])
|
|
986
999
|
|
package/wasm.js
CHANGED
|
@@ -448,6 +448,12 @@ exports.Prisma.CampaignToImageScalarFieldEnum = {
|
|
|
448
448
|
type: 'type'
|
|
449
449
|
};
|
|
450
450
|
|
|
451
|
+
exports.Prisma.CampaignToBrandAffiliateLinkScalarFieldEnum = {
|
|
452
|
+
id: 'id',
|
|
453
|
+
campaignId: 'campaignId',
|
|
454
|
+
brandAffiliateLinkId: 'brandAffiliateLinkId'
|
|
455
|
+
};
|
|
456
|
+
|
|
451
457
|
exports.Prisma.CampaignToCategoryScalarFieldEnum = {
|
|
452
458
|
campaignId: 'campaignId',
|
|
453
459
|
categoryId: 'categoryId'
|
|
@@ -1364,6 +1370,7 @@ exports.Prisma.ModelName = {
|
|
|
1364
1370
|
Campaign: 'Campaign',
|
|
1365
1371
|
CampaignPin: 'CampaignPin',
|
|
1366
1372
|
CampaignToImage: 'CampaignToImage',
|
|
1373
|
+
CampaignToBrandAffiliateLink: 'CampaignToBrandAffiliateLink',
|
|
1367
1374
|
CampaignToCategory: 'CampaignToCategory',
|
|
1368
1375
|
CampaignToCountry: 'CampaignToCountry',
|
|
1369
1376
|
ProductList: 'ProductList',
|