@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/edge.js +8 -6
- package/index-browser.js +4 -2
- package/index.d.ts +127 -2
- package/index.js +8 -6
- package/package.json +1 -1
- package/schema.prisma +9 -0
package/package.json
CHANGED
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
|
|