@creator.co/creatorco-prisma-client 1.0.42-alpha-60c9b5d → 1.0.43

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/package.json CHANGED
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "./*": "./*"
81
81
  },
82
- "version": "1.0.42-alpha-60c9b5d",
82
+ "version": "1.0.43",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -525,11 +525,12 @@ model Campaign {
525
525
  campaignToShopifyProducts CampaignToShopifyProduct[]
526
526
  campaignToBrandAffiliateLinks CampaignToBrandAffiliateLink[]
527
527
 
528
- brandId Int
529
- brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
530
- creatorLists CreatorList[]
531
- optInViews OptInView[]
532
- sequences Sequence[]
528
+ brandId Int
529
+ brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
530
+ creatorLists CreatorList[]
531
+ optInViews OptInView[]
532
+ sequences Sequence[]
533
+ ExternalAffiliateClick ExternalAffiliateClick[]
533
534
 
534
535
  @@index([brandId])
535
536
  @@index([sfSyncDate])
@@ -844,6 +845,7 @@ model SocialPost {
844
845
  isOwnedByUser Boolean?
845
846
  // METRICS
846
847
  views Int?
848
+ replays Int?
847
849
  impressions Int?
848
850
  impressionsOrganic Int?
849
851
  impressionsPaid Int?
@@ -992,8 +994,11 @@ model ExternalAffiliateClick {
992
994
  linkUrl String
993
995
  metaData Json @default("{}")
994
996
 
995
- optInId Int
996
- optin OptIn @relation(fields: [optInId], references: [id])
997
+ optInId Int
998
+ campaignId Int
999
+
1000
+ optin OptIn @relation(fields: [optInId], references: [id])
1001
+ campaign Campaign @relation(fields: [campaignId], references: [id])
997
1002
 
998
1003
  @@index([optInId])
999
1004
  @@map("external_affiliate_click")
package/wasm.js CHANGED
@@ -600,6 +600,7 @@ exports.Prisma.SocialPostScalarFieldEnum = {
600
600
  hasCollaborators: 'hasCollaborators',
601
601
  isOwnedByUser: 'isOwnedByUser',
602
602
  views: 'views',
603
+ replays: 'replays',
603
604
  impressions: 'impressions',
604
605
  impressionsOrganic: 'impressionsOrganic',
605
606
  impressionsPaid: 'impressionsPaid',
@@ -701,7 +702,8 @@ exports.Prisma.ExternalAffiliateClickScalarFieldEnum = {
701
702
  ipv6: 'ipv6',
702
703
  linkUrl: 'linkUrl',
703
704
  metaData: 'metaData',
704
- optInId: 'optInId'
705
+ optInId: 'optInId',
706
+ campaignId: 'campaignId'
705
707
  };
706
708
 
707
709
  exports.Prisma.BrandAffiliateLinkScalarFieldEnum = {