@creator.co/creatorco-prisma-client 1.0.68 → 1.0.69
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 +4 -4
- package/index.d.ts +94 -164
- package/index.js +4 -4
- package/package.json +1 -1
- package/schema.prisma +9 -10
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -891,11 +891,11 @@ model SocialPost {
|
|
|
891
891
|
userId Int?
|
|
892
892
|
campaignId Int?
|
|
893
893
|
|
|
894
|
-
user
|
|
895
|
-
campaign
|
|
896
|
-
lists
|
|
897
|
-
campaigns
|
|
898
|
-
|
|
894
|
+
user User? @relation(fields: [userId], references: [id])
|
|
895
|
+
campaign Campaign? @relation(fields: [campaignId], references: [id])
|
|
896
|
+
lists ListToSocialPost[]
|
|
897
|
+
campaigns CampaignToSocialPost[]
|
|
898
|
+
publicPost PublicSocialPost?
|
|
899
899
|
|
|
900
900
|
@@unique([platform, externalId])
|
|
901
901
|
@@index(campaignId)
|
|
@@ -905,18 +905,17 @@ model SocialPost {
|
|
|
905
905
|
}
|
|
906
906
|
|
|
907
907
|
model PublicSocialPost {
|
|
908
|
-
id Int
|
|
909
|
-
socialPostId Int
|
|
908
|
+
id Int @id @default(autoincrement())
|
|
909
|
+
socialPostId Int @unique
|
|
910
|
+
socialPost SocialPost @relation(fields: [socialPostId], references: [id])
|
|
910
911
|
|
|
911
|
-
// METRICS
|
|
912
|
+
// METRICS (Includes data for boosted posts)
|
|
912
913
|
views Int?
|
|
913
914
|
likes Int?
|
|
914
915
|
comments Int?
|
|
915
916
|
saves Int?
|
|
916
917
|
shares Int?
|
|
917
918
|
|
|
918
|
-
socialPost SocialPost @relation(fields: [socialPostId], references: [id])
|
|
919
|
-
|
|
920
919
|
@@index(socialPostId)
|
|
921
920
|
@@map("public_social_post")
|
|
922
921
|
}
|