@creator.co/creatorco-prisma-client 1.0.14 → 1.0.15-alpha-9e76a4a

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.14"
8
+ "version": "1.0.15-alpha-9e76a4a"
9
9
  }
package/schema.prisma CHANGED
@@ -342,6 +342,8 @@ model Brand {
342
342
  parentBrandId Int?
343
343
  parentBrand Brand? @relation("ChildBrands", fields: [parentBrandId], references: [id])
344
344
  childBrands Brand[] @relation("ChildBrands")
345
+ // generated (for search)
346
+ searchName String? @default(dbgenerated())
345
347
 
346
348
  @@map("brand")
347
349
  }
@@ -744,7 +746,13 @@ model SocialPost {
744
746
 
745
747
  socialPostTags SocialPostTag[]
746
748
 
749
+ @@index(campaignId)
747
750
  @@index(isStale)
751
+ @@index(userId)
752
+ @@index(platform)
753
+ @@index(type)
754
+ @@index(format)
755
+
748
756
  @@map("socialpost")
749
757
  }
750
758
 
@@ -980,6 +988,7 @@ model SocialProfile {
980
988
  user User? @relation(fields: [userId], references: [id])
981
989
 
982
990
  @@index(username)
991
+ @@index(userId)
983
992
  @@map("socialprofile")
984
993
  }
985
994