@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/package.json CHANGED
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "./*": "./*"
81
81
  },
82
- "version": "1.0.68",
82
+ "version": "1.0.70",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -891,11 +891,11 @@ model SocialPost {
891
891
  userId Int?
892
892
  campaignId Int?
893
893
 
894
- user User? @relation(fields: [userId], references: [id])
895
- campaign Campaign? @relation(fields: [campaignId], references: [id])
896
- lists ListToSocialPost[]
897
- campaigns CampaignToSocialPost[]
898
- publicPosts PublicSocialPost[]
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 @id @default(autoincrement())
909
- socialPostId Int @unique
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',