@creator.co/creatorco-prisma-client 1.0.41 → 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/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])
@@ -768,13 +769,14 @@ model OptIn {
768
769
  campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
769
770
  currentStep CampaignStep? @relation(fields: [currentStepId], references: [id])
770
771
 
771
- variables OptInVariable[]
772
- optInSteps OptInStep[]
773
- chat Chat?
774
- campaignInvites CampaignInvite[]
775
- trolleyPayments TrolleyPayment[]
776
- affiliateClicks AffiliateClick[]
777
- productListItems OptinToProductListItem[]
772
+ variables OptInVariable[]
773
+ optInSteps OptInStep[]
774
+ chat Chat?
775
+ campaignInvites CampaignInvite[]
776
+ trolleyPayments TrolleyPayment[]
777
+ affiliateClicks AffiliateClick[]
778
+ productListItems OptinToProductListItem[]
779
+ ExternalAffiliateClick ExternalAffiliateClick[]
778
780
 
779
781
  @@index([userId])
780
782
  @@index([campaignId])
@@ -982,6 +984,25 @@ model PaymentTransaction {
982
984
  @@index([accountId])
983
985
  }
984
986
 
987
+ model ExternalAffiliateClick {
988
+ id Int @id @default(autoincrement())
989
+ program String
990
+ created DateTime @default(now())
991
+ ipv4 String?
992
+ ipv6 String?
993
+ linkUrl String
994
+ metaData Json @default("{}")
995
+
996
+ optInId Int
997
+ campaignId Int
998
+
999
+ optin OptIn @relation(fields: [optInId], references: [id])
1000
+ campaign Campaign @relation(fields: [campaignId], references: [id])
1001
+
1002
+ @@index([optInId])
1003
+ @@map("external_affiliate_click")
1004
+ }
1005
+
985
1006
  model BrandAffiliateLink {
986
1007
  id Int @id @default(autoincrement())
987
1008
  created DateTime @default(now())
package/wasm.js CHANGED
@@ -16,12 +16,12 @@ exports.Prisma = Prisma
16
16
  exports.$Enums = {}
17
17
 
18
18
  /**
19
- * Prisma Client JS version: 5.14.0
20
- * Query Engine version: e9771e62de70f79a5e1c604a2d7c8e2a0a874b48
19
+ * Prisma Client JS version: 5.15.0
20
+ * Query Engine version: 12e25d8d06f6ea5a0252864dd9a03b1bb51f3022
21
21
  */
22
22
  Prisma.prismaVersion = {
23
- client: "5.14.0",
24
- engine: "e9771e62de70f79a5e1c604a2d7c8e2a0a874b48"
23
+ client: "5.15.0",
24
+ engine: "12e25d8d06f6ea5a0252864dd9a03b1bb51f3022"
25
25
  }
26
26
 
27
27
  Prisma.PrismaClientKnownRequestError = () => {
@@ -693,6 +693,18 @@ exports.Prisma.PaymentTransactionScalarFieldEnum = {
693
693
  prevTransactionId: 'prevTransactionId'
694
694
  };
695
695
 
696
+ exports.Prisma.ExternalAffiliateClickScalarFieldEnum = {
697
+ id: 'id',
698
+ program: 'program',
699
+ created: 'created',
700
+ ipv4: 'ipv4',
701
+ ipv6: 'ipv6',
702
+ linkUrl: 'linkUrl',
703
+ metaData: 'metaData',
704
+ optInId: 'optInId',
705
+ campaignId: 'campaignId'
706
+ };
707
+
696
708
  exports.Prisma.BrandAffiliateLinkScalarFieldEnum = {
697
709
  id: 'id',
698
710
  created: 'created',
@@ -1221,6 +1233,13 @@ exports.Prisma.PaymentTransactionOrderByRelevanceFieldEnum = {
1221
1233
  notes: 'notes'
1222
1234
  };
1223
1235
 
1236
+ exports.Prisma.ExternalAffiliateClickOrderByRelevanceFieldEnum = {
1237
+ program: 'program',
1238
+ ipv4: 'ipv4',
1239
+ ipv6: 'ipv6',
1240
+ linkUrl: 'linkUrl'
1241
+ };
1242
+
1224
1243
  exports.Prisma.BrandAffiliateLinkOrderByRelevanceFieldEnum = {
1225
1244
  description: 'description',
1226
1245
  urlPath: 'urlPath'
@@ -1389,6 +1408,7 @@ exports.Prisma.ModelName = {
1389
1408
  Country: 'Country',
1390
1409
  State: 'State',
1391
1410
  PaymentTransaction: 'PaymentTransaction',
1411
+ ExternalAffiliateClick: 'ExternalAffiliateClick',
1392
1412
  BrandAffiliateLink: 'BrandAffiliateLink',
1393
1413
  AffiliateLink: 'AffiliateLink',
1394
1414
  AffiliateClick: 'AffiliateClick',