@creator.co/creatorco-prisma-client 1.0.19 → 1.0.20

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
@@ -69,7 +69,8 @@ model User {
69
69
  socialProfiles SocialProfile[]
70
70
  rakutenActivity RakutenActivity[]
71
71
  impactRadiusEvents ImpactRadiusEvent[]
72
-
72
+
73
+ @@index([phoneCode, phone])
73
74
  @@map("user")
74
75
  // @@fulltext([firstName, lastName])
75
76
  }
@@ -696,6 +697,7 @@ model OptIn {
696
697
  chat Chat?
697
698
  campaignInvites CampaignInvite[]
698
699
  trolleyPayments TrolleyPayment[]
700
+ affiliateClicks AffiliateClick[]
699
701
 
700
702
  @@index([userId])
701
703
  @@index([campaignId])
@@ -895,10 +897,12 @@ model AffiliateClick {
895
897
  id Int @id @default(autoincrement())
896
898
  created DateTime @default(now())
897
899
  visitorIp String?
900
+ optInId Int
898
901
  metaData Json @default("{}")
899
902
 
900
903
  affiliateLinkId Int
901
904
 
905
+ optin OptIn @relation(fields: [optInId], references: [id])
902
906
  affiliateLink AffiliateLink @relation(fields: [affiliateLinkId], references: [id])
903
907
  affiliateEvent AffiliateEvent[]
904
908
  }
package/default.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './index'
package/default.js DELETED
@@ -1 +0,0 @@
1
- module.exports = { ...require('./index.js') }