@creator.co/creatorco-prisma-client 1.0.72 → 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.72",
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")
@@ -1691,6 +1693,7 @@ model File {
1691
1693
  archivedAt DateTime? @map("archived_at")
1692
1694
 
1693
1695
  brandContract BrandContract?
1696
+ message Message?
1694
1697
 
1695
1698
  @@index([brandId])
1696
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 = {