@creator.co/creatorco-prisma-client 1.0.25 → 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.25",
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
@@ -297,6 +297,7 @@ model BrandUserProfile {
297
297
  id Int @id @default(autoincrement())
298
298
  userId Int
299
299
  brandId Int
300
+ agencyPrivileges Boolean @default(false) @map("agency_privileges")
300
301
 
301
302
  user User @relation(fields: [userId], references: [id], onDelete: Cascade)
302
303
  brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
@@ -753,6 +754,7 @@ model OptInVariable {
753
754
 
754
755
  model SocialPost {
755
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
756
758
  phylloId String? @unique
757
759
  metaData Json @default("{}")
758
760
  data Json @default("{}") // DEPRECATED, USE metaData instead, seems to be an error when attempting to remove this field, proabably due to table size
@@ -764,7 +766,7 @@ model SocialPost {
764
766
  title String? @db.Text
765
767
  description String? @db.Text
766
768
  url String? @db.VarChar(2083)
767
- 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
768
770
  format String?
769
771
  type String?
770
772
  platform String?
@@ -799,6 +801,8 @@ model SocialPost {
799
801
  @@index(userId)
800
802
  @@index(posted)
801
803
 
804
+ @@unique([platform, externalId])
805
+
802
806
  @@map("socialpost")
803
807
  }
804
808
 
@@ -1020,6 +1024,7 @@ model SocialProfile {
1020
1024
  engagement Float?
1021
1025
  avgViews Int?
1022
1026
  verified Boolean?
1027
+ visibility String @default("public")
1023
1028
  metaData Json @default("{}")
1024
1029
  audienceData Json @default("{}")
1025
1030
  phylloData Json @default("{}")
package/wasm.js CHANGED
@@ -299,7 +299,8 @@ exports.Prisma.TwitterProfileScalarFieldEnum = {
299
299
  exports.Prisma.BrandUserProfileScalarFieldEnum = {
300
300
  id: 'id',
301
301
  userId: 'userId',
302
- brandId: 'brandId'
302
+ brandId: 'brandId',
303
+ agencyPrivileges: 'agencyPrivileges'
303
304
  };
304
305
 
305
306
  exports.Prisma.BrandScalarFieldEnum = {
@@ -549,6 +550,7 @@ exports.Prisma.OptInVariableScalarFieldEnum = {
549
550
 
550
551
  exports.Prisma.SocialPostScalarFieldEnum = {
551
552
  id: 'id',
553
+ externalId: 'externalId',
552
554
  phylloId: 'phylloId',
553
555
  metaData: 'metaData',
554
556
  data: 'data',
@@ -723,6 +725,7 @@ exports.Prisma.SocialProfileScalarFieldEnum = {
723
725
  engagement: 'engagement',
724
726
  avgViews: 'avgViews',
725
727
  verified: 'verified',
728
+ visibility: 'visibility',
726
729
  metaData: 'metaData',
727
730
  audienceData: 'audienceData',
728
731
  phylloData: 'phylloData',
@@ -1169,7 +1172,8 @@ exports.Prisma.SocialProfileOrderByRelevanceFieldEnum = {
1169
1172
  username: 'username',
1170
1173
  fullname: 'fullname',
1171
1174
  profileUrl: 'profileUrl',
1172
- profilePicUrl: 'profilePicUrl'
1175
+ profilePicUrl: 'profilePicUrl',
1176
+ visibility: 'visibility'
1173
1177
  };
1174
1178
 
1175
1179
  exports.Prisma.MessageTemplateOrderByRelevanceFieldEnum = {