@creator.co/creatorco-prisma-client 1.0.72 → 1.0.74

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.74",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -104,7 +104,7 @@ model CreatorProfile {
104
104
  country String?
105
105
  region String?
106
106
  birthDate DateTime?
107
- interests Json? // deprecated
107
+ interests Json? /// @deprecated
108
108
  gender String?
109
109
  shippingAddress1 String?
110
110
  shippingAddress2 String?
@@ -156,7 +156,7 @@ model InstagramProfile {
156
156
  hasGuides Boolean?
157
157
  hasChannel Boolean?
158
158
  totalIgtvVideos Int?
159
- profilePicUrlHd String? @db.VarChar(2083) // DEPRECATED
159
+ profilePicUrlHd String? @db.VarChar(2083) /// @deprecated
160
160
  lastStoriesUpdate DateTime?
161
161
 
162
162
  extraData Json?
@@ -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")
@@ -521,8 +523,8 @@ model Campaign {
521
523
  minPaidAmount Float?
522
524
  maxPaidAmount Float?
523
525
  paymentType String?
524
- monthlyActivatedGoal Int? // Redundant/Deprecated
525
- expectedOptIns Int? // Redundant/Deprecated
526
+ monthlyActivatedGoal Int? /// @deprecated redundant
527
+ expectedOptIns Int? /// @deprecated redundant
526
528
  goalActivations Float?
527
529
  goalOptIns Float?
528
530
  requiresShipping Boolean?
@@ -778,7 +780,7 @@ model OptIn {
778
780
  seen Boolean @default(false)
779
781
  instructions String? @db.Text
780
782
  paymentAmount Float?
781
- paymentStatus String @default("pending") // depracated -- refer to trolley payment table
783
+ paymentStatus String @default("pending") /// @deprecated join with TrolleyPayment for actual status
782
784
  extraData Json @default("{}")
783
785
  favoritedDate DateTime?
784
786
  rating Json?
@@ -957,7 +959,7 @@ model ArchivedSocialPost {
957
959
  title String? @db.Text
958
960
  description String? @db.Text
959
961
  url String? @db.VarChar(2083)
960
- urlPath String? @unique // DEPRECATED: This is here so we have some external identifier to quickly search by
962
+ urlPath String? @unique /// @deprecated This is here so we have some external identifier to quickly search by
961
963
  format String?
962
964
  type String?
963
965
  platform String?
@@ -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 = {