@creator.co/creatorco-prisma-client 1.0.26 → 1.0.27-alpha-070bac6

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
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "./*": "./*"
75
75
  },
76
- "version": "1.0.26",
76
+ "version": "1.0.27-alpha-070bac6",
77
77
  "sideEffects": false,
78
78
  "description": "Prisma client for creatorco Database"
79
79
  }
package/schema.prisma CHANGED
@@ -754,6 +754,7 @@ model OptInVariable {
754
754
 
755
755
  model SocialPost {
756
756
  id Int @id @default(autoincrement())
757
+ externalId Int? @map("external_id")// TODO: This should be required once all of the posts have been updated
757
758
  phylloId String? @unique
758
759
  metaData Json @default("{}")
759
760
  data Json @default("{}") // DEPRECATED, USE metaData instead, seems to be an error when attempting to remove this field, proabably due to table size
@@ -765,7 +766,7 @@ model SocialPost {
765
766
  title String? @db.Text
766
767
  description String? @db.Text
767
768
  url String? @db.VarChar(2083)
768
- urlPath String? @unique // This is here so we have some external identifier to quickly search by
769
+ urlPath String? @unique // DEPRECATED: This is here so we have some external identifier to quickly search by
769
770
  format String?
770
771
  type String?
771
772
  platform String?
@@ -800,6 +801,8 @@ model SocialPost {
800
801
  @@index(userId)
801
802
  @@index(posted)
802
803
 
804
+ @@unique([platform, externalId])
805
+
803
806
  @@map("socialpost")
804
807
  }
805
808
 
@@ -1021,6 +1024,7 @@ model SocialProfile {
1021
1024
  engagement Float?
1022
1025
  avgViews Int?
1023
1026
  verified Boolean?
1027
+ visibility String @default("public")
1024
1028
  metaData Json @default("{}")
1025
1029
  audienceData Json @default("{}")
1026
1030
  phylloData Json @default("{}")
package/wasm.js CHANGED
@@ -550,6 +550,7 @@ exports.Prisma.OptInVariableScalarFieldEnum = {
550
550
 
551
551
  exports.Prisma.SocialPostScalarFieldEnum = {
552
552
  id: 'id',
553
+ externalId: 'externalId',
553
554
  phylloId: 'phylloId',
554
555
  metaData: 'metaData',
555
556
  data: 'data',
@@ -724,6 +725,7 @@ exports.Prisma.SocialProfileScalarFieldEnum = {
724
725
  engagement: 'engagement',
725
726
  avgViews: 'avgViews',
726
727
  verified: 'verified',
728
+ visibility: 'visibility',
727
729
  metaData: 'metaData',
728
730
  audienceData: 'audienceData',
729
731
  phylloData: 'phylloData',
@@ -1170,7 +1172,8 @@ exports.Prisma.SocialProfileOrderByRelevanceFieldEnum = {
1170
1172
  username: 'username',
1171
1173
  fullname: 'fullname',
1172
1174
  profileUrl: 'profileUrl',
1173
- profilePicUrl: 'profilePicUrl'
1175
+ profilePicUrl: 'profilePicUrl',
1176
+ visibility: 'visibility'
1174
1177
  };
1175
1178
 
1176
1179
  exports.Prisma.MessageTemplateOrderByRelevanceFieldEnum = {