@creator.co/creatorco-prisma-client 1.0.13 → 1.0.14
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.js +20 -4
- package/index-browser.js +16 -0
- package/index.d.ts +2437 -215
- package/index.js +20 -4
- package/package.json +1 -1
- package/schema.prisma +16 -0
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -68,6 +68,7 @@ model User {
|
|
|
68
68
|
campaignPins CampaignPin[]
|
|
69
69
|
socialProfiles SocialProfile[]
|
|
70
70
|
rakutenActivity RakutenActivity[]
|
|
71
|
+
impactRadiusEvents ImpactRadiusEvent[]
|
|
71
72
|
|
|
72
73
|
@@map("user")
|
|
73
74
|
// @@fulltext([firstName, lastName])
|
|
@@ -335,6 +336,7 @@ model Brand {
|
|
|
335
336
|
images BrandToImage[]
|
|
336
337
|
creatorsearchfilter CreatorSearchFilter[]
|
|
337
338
|
sequences Sequence[]
|
|
339
|
+
impactRadiusEvents ImpactRadiusEvent[]
|
|
338
340
|
|
|
339
341
|
// for agencies
|
|
340
342
|
parentBrandId Int?
|
|
@@ -1062,6 +1064,20 @@ model RakutenActivity {
|
|
|
1062
1064
|
|
|
1063
1065
|
@@map("rakutenactivity")
|
|
1064
1066
|
}
|
|
1067
|
+
model ImpactRadiusEvent {
|
|
1068
|
+
id Int @id @default(autoincrement())
|
|
1069
|
+
type String // action/click
|
|
1070
|
+
created DateTime @default(now())
|
|
1071
|
+
amount Float?
|
|
1072
|
+
commission Float?
|
|
1073
|
+
metaData Json @default("{}")
|
|
1074
|
+
|
|
1075
|
+
userId Int
|
|
1076
|
+
brandId Int?
|
|
1077
|
+
|
|
1078
|
+
user User @relation(fields: [userId], references: [id])
|
|
1079
|
+
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1080
|
+
}
|
|
1065
1081
|
|
|
1066
1082
|
model CreatorSearchFilter {
|
|
1067
1083
|
id Int @id @default(autoincrement())
|