@creator.co/creatorco-prisma-client 1.0.13 → 1.0.15-alpha-fc80dfc

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/package.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "browser": "index-browser.js",
6
6
  "sideEffects": false,
7
7
  "description": "Prisma client for creatorco Database",
8
- "version": "1.0.13"
8
+ "version": "1.0.15-alpha-fc80dfc"
9
9
  }
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])
@@ -294,6 +295,7 @@ model BrandUserProfile {
294
295
  id Int @id @default(autoincrement())
295
296
  userId Int
296
297
  brandId Int
298
+ xpto Int
297
299
 
298
300
  user User @relation(fields: [userId], references: [id], onDelete: Cascade)
299
301
  brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
@@ -335,11 +337,14 @@ model Brand {
335
337
  images BrandToImage[]
336
338
  creatorsearchfilter CreatorSearchFilter[]
337
339
  sequences Sequence[]
340
+ impactRadiusEvents ImpactRadiusEvent[]
338
341
 
339
342
  // for agencies
340
343
  parentBrandId Int?
341
344
  parentBrand Brand? @relation("ChildBrands", fields: [parentBrandId], references: [id])
342
345
  childBrands Brand[] @relation("ChildBrands")
346
+ // generated (for search)
347
+ searchName String? @default(dbgenerated())
343
348
 
344
349
  @@map("brand")
345
350
  }
@@ -1062,6 +1067,20 @@ model RakutenActivity {
1062
1067
 
1063
1068
  @@map("rakutenactivity")
1064
1069
  }
1070
+ model ImpactRadiusEvent {
1071
+ id Int @id @default(autoincrement())
1072
+ type String // action/click
1073
+ created DateTime @default(now())
1074
+ amount Float?
1075
+ commission Float?
1076
+ metaData Json @default("{}")
1077
+
1078
+ userId Int
1079
+ brandId Int?
1080
+
1081
+ user User @relation(fields: [userId], references: [id])
1082
+ brand Brand? @relation(fields: [brandId], references: [id])
1083
+ }
1065
1084
 
1066
1085
  model CreatorSearchFilter {
1067
1086
  id Int @id @default(autoincrement())