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

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
@@ -768,13 +768,14 @@ model OptIn {
768
768
  campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
769
769
  currentStep CampaignStep? @relation(fields: [currentStepId], references: [id])
770
770
 
771
- variables OptInVariable[]
772
- optInSteps OptInStep[]
773
- chat Chat?
774
- campaignInvites CampaignInvite[]
775
- trolleyPayments TrolleyPayment[]
776
- affiliateClicks AffiliateClick[]
777
- productListItems OptinToProductListItem[]
771
+ variables OptInVariable[]
772
+ optInSteps OptInStep[]
773
+ chat Chat?
774
+ campaignInvites CampaignInvite[]
775
+ trolleyPayments TrolleyPayment[]
776
+ affiliateClicks AffiliateClick[]
777
+ productListItems OptinToProductListItem[]
778
+ ExternalAffiliateClick ExternalAffiliateClick[]
778
779
 
779
780
  @@index([userId])
780
781
  @@index([campaignId])
@@ -982,6 +983,22 @@ model PaymentTransaction {
982
983
  @@index([accountId])
983
984
  }
984
985
 
986
+ model ExternalAffiliateClick {
987
+ id Int @id @default(autoincrement())
988
+ program String
989
+ created DateTime @default(now())
990
+ ipv4 String?
991
+ ipv6 String?
992
+ linkUrl String
993
+ metaData Json @default("{}")
994
+
995
+ optInId Int
996
+ optin OptIn @relation(fields: [optInId], references: [id])
997
+
998
+ @@index([optInId])
999
+ @@map("external_affiliate_click")
1000
+ }
1001
+
985
1002
  model BrandAffiliateLink {
986
1003
  id Int @id @default(autoincrement())
987
1004
  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,17 @@ 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
+ };
706
+
696
707
  exports.Prisma.BrandAffiliateLinkScalarFieldEnum = {
697
708
  id: 'id',
698
709
  created: 'created',
@@ -1221,6 +1232,13 @@ exports.Prisma.PaymentTransactionOrderByRelevanceFieldEnum = {
1221
1232
  notes: 'notes'
1222
1233
  };
1223
1234
 
1235
+ exports.Prisma.ExternalAffiliateClickOrderByRelevanceFieldEnum = {
1236
+ program: 'program',
1237
+ ipv4: 'ipv4',
1238
+ ipv6: 'ipv6',
1239
+ linkUrl: 'linkUrl'
1240
+ };
1241
+
1224
1242
  exports.Prisma.BrandAffiliateLinkOrderByRelevanceFieldEnum = {
1225
1243
  description: 'description',
1226
1244
  urlPath: 'urlPath'
@@ -1389,6 +1407,7 @@ exports.Prisma.ModelName = {
1389
1407
  Country: 'Country',
1390
1408
  State: 'State',
1391
1409
  PaymentTransaction: 'PaymentTransaction',
1410
+ ExternalAffiliateClick: 'ExternalAffiliateClick',
1392
1411
  BrandAffiliateLink: 'BrandAffiliateLink',
1393
1412
  AffiliateLink: 'AffiliateLink',
1394
1413
  AffiliateClick: 'AffiliateClick',