@creator.co/creatorco-prisma-client 1.0.13 → 1.0.15
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 +24 -6
- package/index-browser.js +20 -2
- package/index.d.ts +2564 -217
- package/index.js +24 -6
- package/package.json +1 -1
- package/schema.prisma +18 -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,11 +336,14 @@ 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?
|
|
341
343
|
parentBrand Brand? @relation("ChildBrands", fields: [parentBrandId], references: [id])
|
|
342
344
|
childBrands Brand[] @relation("ChildBrands")
|
|
345
|
+
// generated (for search)
|
|
346
|
+
searchName String? @default(dbgenerated())
|
|
343
347
|
|
|
344
348
|
@@map("brand")
|
|
345
349
|
}
|
|
@@ -1062,6 +1066,20 @@ model RakutenActivity {
|
|
|
1062
1066
|
|
|
1063
1067
|
@@map("rakutenactivity")
|
|
1064
1068
|
}
|
|
1069
|
+
model ImpactRadiusEvent {
|
|
1070
|
+
id Int @id @default(autoincrement())
|
|
1071
|
+
type String // action/click
|
|
1072
|
+
created DateTime @default(now())
|
|
1073
|
+
amount Float?
|
|
1074
|
+
commission Float?
|
|
1075
|
+
metaData Json @default("{}")
|
|
1076
|
+
|
|
1077
|
+
userId Int
|
|
1078
|
+
brandId Int?
|
|
1079
|
+
|
|
1080
|
+
user User @relation(fields: [userId], references: [id])
|
|
1081
|
+
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1082
|
+
}
|
|
1065
1083
|
|
|
1066
1084
|
model CreatorSearchFilter {
|
|
1067
1085
|
id Int @id @default(autoincrement())
|