@creator.co/creatorco-prisma-client 1.0.68 → 1.0.70
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 +6 -4
- package/index-browser.js +2 -0
- package/index.d.ts +158 -164
- package/index.js +6 -4
- package/package.json +1 -1
- package/schema.prisma +11 -10
- package/wasm.js +2 -0
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,19 @@ 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])
|
|
911
|
+
lastFetched DateTime? @updatedAt
|
|
912
|
+
posted DateTime?
|
|
910
913
|
|
|
911
|
-
// METRICS
|
|
914
|
+
// METRICS (Includes data for boosted posts)
|
|
912
915
|
views Int?
|
|
913
916
|
likes Int?
|
|
914
917
|
comments Int?
|
|
915
918
|
saves Int?
|
|
916
919
|
shares Int?
|
|
917
920
|
|
|
918
|
-
socialPost SocialPost @relation(fields: [socialPostId], references: [id])
|
|
919
|
-
|
|
920
921
|
@@index(socialPostId)
|
|
921
922
|
@@map("public_social_post")
|
|
922
923
|
}
|
package/wasm.js
CHANGED
|
@@ -625,6 +625,8 @@ exports.Prisma.SocialPostScalarFieldEnum = {
|
|
|
625
625
|
exports.Prisma.PublicSocialPostScalarFieldEnum = {
|
|
626
626
|
id: 'id',
|
|
627
627
|
socialPostId: 'socialPostId',
|
|
628
|
+
lastFetched: 'lastFetched',
|
|
629
|
+
posted: 'posted',
|
|
628
630
|
views: 'views',
|
|
629
631
|
likes: 'likes',
|
|
630
632
|
comments: 'comments',
|