@creator.co/creatorco-prisma-client 1.0.18 → 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/edge.d.ts +1 -1
- package/edge.js +12 -25
- package/index-browser.js +20 -32
- package/index.d.ts +710 -1857
- package/index.js +13 -26
- package/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/libquery_engine-darwin.dylib.node +0 -0
- package/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-1.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/package.json +2 -67
- package/query_engine-windows.dll.node +0 -0
- package/runtime/edge-esm.js +74 -27
- package/runtime/edge.js +74 -27
- package/runtime/index-browser.js +1 -1
- package/runtime/library.d.ts +152 -207
- package/runtime/library.js +57 -59
- package/schema.prisma +8 -18
- package/default.d.ts +0 -1
- package/default.js +0 -1
- package/runtime/wasm.js +0 -94
- package/wasm.d.ts +0 -1
- package/wasm.js +0 -1287
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])
|
|
@@ -707,11 +709,11 @@ model TrolleyPayment {
|
|
|
707
709
|
paymentId String @unique
|
|
708
710
|
type trolleyPaymentType?
|
|
709
711
|
status trolleyPaymentStatus
|
|
710
|
-
optInId Int
|
|
712
|
+
optInId Int?
|
|
711
713
|
paymentAmount Int
|
|
712
714
|
metaData Json @default("{}")
|
|
713
715
|
|
|
714
|
-
optIn OptIn
|
|
716
|
+
optIn OptIn? @relation(fields: [optInId], references:[id])
|
|
715
717
|
}
|
|
716
718
|
|
|
717
719
|
enum trolleyPaymentType {
|
|
@@ -787,8 +789,6 @@ model SocialPost {
|
|
|
787
789
|
campaign Campaign? @relation(fields: [campaignId], references: [id])
|
|
788
790
|
lists ListToSocialPost[]
|
|
789
791
|
|
|
790
|
-
socialPostTags SocialPostTag[]
|
|
791
|
-
|
|
792
792
|
@@index(campaignId)
|
|
793
793
|
@@index(userId)
|
|
794
794
|
@@index(posted)
|
|
@@ -796,19 +796,6 @@ model SocialPost {
|
|
|
796
796
|
@@map("socialpost")
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
-
model SocialPostTag {
|
|
800
|
-
id Int @id @default(autoincrement())
|
|
801
|
-
title String
|
|
802
|
-
type String
|
|
803
|
-
|
|
804
|
-
socialPostId Int
|
|
805
|
-
|
|
806
|
-
socialPost SocialPost @relation(fields: [socialPostId], references: [id])
|
|
807
|
-
|
|
808
|
-
@@index([title, type])
|
|
809
|
-
@@map("socialposttag")
|
|
810
|
-
}
|
|
811
|
-
|
|
812
799
|
model Image {
|
|
813
800
|
id Int @id @default(autoincrement())
|
|
814
801
|
url String @db.VarChar(2083)
|
|
@@ -910,10 +897,12 @@ model AffiliateClick {
|
|
|
910
897
|
id Int @id @default(autoincrement())
|
|
911
898
|
created DateTime @default(now())
|
|
912
899
|
visitorIp String?
|
|
900
|
+
optInId Int
|
|
913
901
|
metaData Json @default("{}")
|
|
914
902
|
|
|
915
903
|
affiliateLinkId Int
|
|
916
904
|
|
|
905
|
+
optin OptIn @relation(fields: [optInId], references: [id])
|
|
917
906
|
affiliateLink AffiliateLink @relation(fields: [affiliateLinkId], references: [id])
|
|
918
907
|
affiliateEvent AffiliateEvent[]
|
|
919
908
|
}
|
|
@@ -1094,6 +1083,7 @@ model ListToSocialPost {
|
|
|
1094
1083
|
socialPost SocialPost @relation(fields: [postId], references: [id], onDelete: Cascade)
|
|
1095
1084
|
|
|
1096
1085
|
@@index([listId, postId])
|
|
1086
|
+
@@index([postId])
|
|
1097
1087
|
@@map("listtosocialpost")
|
|
1098
1088
|
}
|
|
1099
1089
|
|
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') }
|