@creator.co/creatorco-prisma-client 1.0.71 → 1.0.73

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.71",
82
+ "version": "1.0.73",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -469,9 +469,11 @@ model Message {
469
469
 
470
470
  userId Int?
471
471
  chatId Int
472
+ fileId String? @unique @map("file_id")
472
473
 
473
474
  user User? @relation(fields: [userId], references: [id])
474
475
  chat Chat @relation(fields: [chatId], references: [id], onDelete: Cascade)
476
+ file File? @relation(fields: [fileId], references: [id])
475
477
 
476
478
  @@index([chatId])
477
479
  @@map("message")
@@ -1247,6 +1249,7 @@ model CreatorListItem {
1247
1249
  sequenceInboundEmails SequenceInboundEmail[]
1248
1250
  sequenceImapCheckpoints SequenceImapCheckpoint[]
1249
1251
 
1252
+ @@unique([creatorListId, socialProfileId])
1250
1253
  @@index([creatorListId])
1251
1254
  @@map("creatorlistitem")
1252
1255
  }
@@ -1690,6 +1693,7 @@ model File {
1690
1693
  archivedAt DateTime? @map("archived_at")
1691
1694
 
1692
1695
  brandContract BrandContract?
1696
+ message Message?
1693
1697
 
1694
1698
  @@index([brandId])
1695
1699
  @@map("file")
package/wasm.js CHANGED
@@ -378,7 +378,8 @@ exports.Prisma.MessageScalarFieldEnum = {
378
378
  type: 'type',
379
379
  messageSid: 'messageSid',
380
380
  userId: 'userId',
381
- chatId: 'chatId'
381
+ chatId: 'chatId',
382
+ fileId: 'fileId'
382
383
  };
383
384
 
384
385
  exports.Prisma.CampaignScalarFieldEnum = {
@@ -1260,7 +1261,8 @@ exports.Prisma.MessageOrderByRelevanceFieldEnum = {
1260
1261
  sender: 'sender',
1261
1262
  content: 'content',
1262
1263
  type: 'type',
1263
- messageSid: 'messageSid'
1264
+ messageSid: 'messageSid',
1265
+ fileId: 'fileId'
1264
1266
  };
1265
1267
 
1266
1268
  exports.Prisma.CampaignOrderByRelevanceFieldEnum = {