@creator.co/creatorco-prisma-client 1.0.67 → 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/package.json CHANGED
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "./*": "./*"
81
81
  },
82
- "version": "1.0.67",
82
+ "version": "1.0.69",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -858,17 +858,18 @@ model SocialPost {
858
858
  lastWebhook DateTime?
859
859
 
860
860
  // BASIC INFO
861
- posted DateTime?
862
- title String? @db.Text
863
- description String? @db.Text
864
- url String? @db.VarChar(2083)
865
- format String?
866
- type String?
867
- platform String?
868
- visibility String?
869
- isSponsored Boolean?
870
- hasCollaborators Boolean?
871
- isOwnedByUser Boolean?
861
+ posted DateTime?
862
+ title String? @db.Text
863
+ description String? @db.Text
864
+ url String? @db.VarChar(2083)
865
+ format String?
866
+ type String?
867
+ platform String?
868
+ visibility String?
869
+ isSponsored Boolean?
870
+ hasCollaborators Boolean?
871
+ isOwnedByUser Boolean?
872
+
872
873
  // METRICS
873
874
  views Int?
874
875
  replays Int?
@@ -879,20 +880,22 @@ model SocialPost {
879
880
  reachOrganic Int?
880
881
  reachPaid Int?
881
882
  watchHours Float?
883
+
882
884
  // ENGAGEMENT METRICS
883
- likes Int?
884
- dislikes Int?
885
- comments Int?
886
- saves Int?
887
- shares Int?
885
+ likes Int?
886
+ dislikes Int?
887
+ comments Int?
888
+ saves Int?
889
+ shares Int?
888
890
 
889
891
  userId Int?
890
892
  campaignId Int?
891
893
 
892
- user User? @relation(fields: [userId], references: [id])
893
- campaign Campaign? @relation(fields: [campaignId], references: [id])
894
- lists ListToSocialPost[]
895
- campaigns CampaignToSocialPost[]
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?
896
899
 
897
900
  @@unique([platform, externalId])
898
901
  @@index(campaignId)
@@ -901,6 +904,22 @@ model SocialPost {
901
904
  @@map("socialpost")
902
905
  }
903
906
 
907
+ model PublicSocialPost {
908
+ id Int @id @default(autoincrement())
909
+ socialPostId Int @unique
910
+ socialPost SocialPost @relation(fields: [socialPostId], references: [id])
911
+
912
+ // METRICS (Includes data for boosted posts)
913
+ views Int?
914
+ likes Int?
915
+ comments Int?
916
+ saves Int?
917
+ shares Int?
918
+
919
+ @@index(socialPostId)
920
+ @@map("public_social_post")
921
+ }
922
+
904
923
  enum CampaignToSocialPostStatus {
905
924
  pending
906
925
  approved
package/wasm.js CHANGED
@@ -622,6 +622,16 @@ exports.Prisma.SocialPostScalarFieldEnum = {
622
622
  campaignId: 'campaignId'
623
623
  };
624
624
 
625
+ exports.Prisma.PublicSocialPostScalarFieldEnum = {
626
+ id: 'id',
627
+ socialPostId: 'socialPostId',
628
+ views: 'views',
629
+ likes: 'likes',
630
+ comments: 'comments',
631
+ saves: 'saves',
632
+ shares: 'shares'
633
+ };
634
+
625
635
  exports.Prisma.CampaignToSocialPostScalarFieldEnum = {
626
636
  campaignId: 'campaignId',
627
637
  socialPostId: 'socialPostId',
@@ -1590,6 +1600,7 @@ exports.Prisma.ModelName = {
1590
1600
  TrolleyPayment: 'TrolleyPayment',
1591
1601
  OptInVariable: 'OptInVariable',
1592
1602
  SocialPost: 'SocialPost',
1603
+ PublicSocialPost: 'PublicSocialPost',
1593
1604
  CampaignToSocialPost: 'CampaignToSocialPost',
1594
1605
  ArchivedSocialPost: 'ArchivedSocialPost',
1595
1606
  Image: 'Image',