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

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.42",
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])
@@ -992,8 +993,11 @@ model ExternalAffiliateClick {
992
993
  linkUrl String
993
994
  metaData Json @default("{}")
994
995
 
995
- optInId Int
996
- optin OptIn @relation(fields: [optInId], references: [id])
996
+ optInId Int
997
+ campaignId Int
998
+
999
+ optin OptIn @relation(fields: [optInId], references: [id])
1000
+ campaign Campaign @relation(fields: [campaignId], references: [id])
997
1001
 
998
1002
  @@index([optInId])
999
1003
  @@map("external_affiliate_click")
package/wasm.js CHANGED
@@ -701,7 +701,8 @@ exports.Prisma.ExternalAffiliateClickScalarFieldEnum = {
701
701
  ipv6: 'ipv6',
702
702
  linkUrl: 'linkUrl',
703
703
  metaData: 'metaData',
704
- optInId: 'optInId'
704
+ optInId: 'optInId',
705
+ campaignId: 'campaignId'
705
706
  };
706
707
 
707
708
  exports.Prisma.BrandAffiliateLinkScalarFieldEnum = {