@creator.co/creatorco-prisma-client 1.0.27 → 1.0.28

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.27",
76
+ "version": "1.0.28",
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 String? @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
 
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',
@@ -1094,6 +1095,7 @@ exports.Prisma.TrolleyPaymentOrderByRelevanceFieldEnum = {
1094
1095
  };
1095
1096
 
1096
1097
  exports.Prisma.SocialPostOrderByRelevanceFieldEnum = {
1098
+ externalId: 'externalId',
1097
1099
  phylloId: 'phylloId',
1098
1100
  title: 'title',
1099
1101
  description: 'description',