@creator.co/creatorco-prisma-client 1.0.39-alpha-0fc3e98 → 1.0.39

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.39-alpha-0fc3e98",
82
+ "version": "1.0.39",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -563,13 +563,14 @@ model CampaignToImage {
563
563
  }
564
564
 
565
565
  model CampaignToBrandAffiliateLink {
566
- id Int @id @default(autoincrement())
567
566
  campaignId Int
568
567
  brandAffiliateLinkId Int
569
568
 
570
569
  campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
571
570
  brandAffiliateLink BrandAffiliateLink @relation(fields: [brandAffiliateLinkId], references: [id], onDelete: Cascade)
572
571
 
572
+ @@id([campaignId, brandAffiliateLinkId])
573
+ @@index([brandAffiliateLinkId])
573
574
  @@map("campaigntobrandaffiliatelink")
574
575
  }
575
576
 
@@ -822,9 +823,10 @@ model OptInVariable {
822
823
 
823
824
  model SocialPost {
824
825
  id Int @id @default(autoincrement())
825
- externalId String @map("external_id")
826
+ externalId String? @map("external_id") // TODO: This should be required once all of the posts have been updated
826
827
  phylloId String? @unique
827
828
  metaData Json @default("{}")
829
+ data Json @default("{}") // DEPRECATED, USE metaData instead, seems to be an error when attempting to remove this field, proabably due to table size
828
830
  lastFetched DateTime?
829
831
  lastWebhook DateTime?
830
832
 
@@ -833,6 +835,7 @@ model SocialPost {
833
835
  title String? @db.Text
834
836
  description String? @db.Text
835
837
  url String? @db.VarChar(2083)
838
+ urlPath String? @unique // DEPRECATED: This is here so we have some external identifier to quickly search by
836
839
  format String?
837
840
  type String?
838
841
  platform String?
package/wasm.js CHANGED
@@ -449,7 +449,6 @@ exports.Prisma.CampaignToImageScalarFieldEnum = {
449
449
  };
450
450
 
451
451
  exports.Prisma.CampaignToBrandAffiliateLinkScalarFieldEnum = {
452
- id: 'id',
453
452
  campaignId: 'campaignId',
454
453
  brandAffiliateLinkId: 'brandAffiliateLinkId'
455
454
  };
@@ -587,12 +586,14 @@ exports.Prisma.SocialPostScalarFieldEnum = {
587
586
  externalId: 'externalId',
588
587
  phylloId: 'phylloId',
589
588
  metaData: 'metaData',
589
+ data: 'data',
590
590
  lastFetched: 'lastFetched',
591
591
  lastWebhook: 'lastWebhook',
592
592
  posted: 'posted',
593
593
  title: 'title',
594
594
  description: 'description',
595
595
  url: 'url',
596
+ urlPath: 'urlPath',
596
597
  format: 'format',
597
598
  type: 'type',
598
599
  platform: 'platform',
@@ -1178,6 +1179,7 @@ exports.Prisma.SocialPostOrderByRelevanceFieldEnum = {
1178
1179
  title: 'title',
1179
1180
  description: 'description',
1180
1181
  url: 'url',
1182
+ urlPath: 'urlPath',
1181
1183
  format: 'format',
1182
1184
  type: 'type',
1183
1185
  platform: 'platform',