@creator.co/creatorco-prisma-client 1.0.63 → 1.0.64-alpha-86f6413

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.63",
82
+ "version": "1.0.64-alpha-86f6413",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -78,6 +78,7 @@ model User {
78
78
  affiliatePayoutBatches AffiliatePayoutBatch[]
79
79
  contractsCreated BrandContract[] @relation("UserCreatedContract") // contracts created by the user
80
80
  contractsEdited BrandContract[] @relation("UserEditedContract") // contracts edited by the user
81
+ creatorLists CreatorList[]
81
82
 
82
83
  filesCreated File[] @relation("UserCreatedFile") // files created by the user
83
84
  filesEdited File[] @relation("UserEditedFile") // files edited by the user
@@ -361,6 +362,7 @@ model Brand {
361
362
  productLists ProductList[]
362
363
  brandContracts BrandContract[]
363
364
  files File[]
365
+ creditRefundBatches CreditRefundBatch[]
364
366
 
365
367
  // for agencies
366
368
  parentBrandId Int?
@@ -1186,18 +1188,20 @@ model CampaignInvite {
1186
1188
  }
1187
1189
 
1188
1190
  model CreatorList {
1189
- id Int @id @default(autoincrement())
1190
- brandId Int
1191
- campaignId Int?
1192
- created DateTime @default(now())
1193
- archived DateTime?
1194
- title String
1195
- metaData Json? @default("{}")
1191
+ id Int @id @default(autoincrement())
1192
+ brandId Int
1193
+ campaignId Int?
1194
+ created DateTime @default(now())
1195
+ archived DateTime?
1196
+ title String
1197
+ metaData Json? @default("{}")
1198
+ createdByUserId Int?
1196
1199
 
1197
- creators CreatorListItem[]
1198
- brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
1199
- campaign Campaign? @relation(fields: [campaignId], references: [id])
1200
- sequences Sequence[]
1200
+ creators CreatorListItem[]
1201
+ brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
1202
+ campaign Campaign? @relation(fields: [campaignId], references: [id])
1203
+ createdByUser User? @relation(fields: [createdByUserId], references: [id])
1204
+ sequences Sequence[]
1201
1205
 
1202
1206
  @@index([brandId])
1203
1207
  @@map("creatorlist")
@@ -1249,9 +1253,10 @@ model SocialProfile {
1249
1253
  created DateTime @default(now())
1250
1254
  updated DateTime?
1251
1255
 
1252
- creatorListItems CreatorListItem[]
1253
- campaignInvites CampaignInvite[]
1254
- user User? @relation(fields: [userId], references: [id])
1256
+ creatorListItems CreatorListItem[]
1257
+ campaignInvites CampaignInvite[]
1258
+ user User? @relation(fields: [userId], references: [id])
1259
+ creditRefundBatches CreditRefundBatch[]
1255
1260
 
1256
1261
  @@index(username)
1257
1262
  @@index(userId)
@@ -1661,3 +1666,16 @@ model File {
1661
1666
  @@index([brandId])
1662
1667
  @@map("file")
1663
1668
  }
1669
+
1670
+ model CreditRefundBatch {
1671
+ id Int @id @default(autoincrement())
1672
+ createdAt DateTime @default(now()) @map("created_at")
1673
+ closedAt DateTime? @map("closed_at")
1674
+ brandId Int
1675
+
1676
+ brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
1677
+
1678
+ profiles SocialProfile[]
1679
+
1680
+ @@map("credit_refund_batch")
1681
+ }
package/wasm.js CHANGED
@@ -814,7 +814,8 @@ exports.Prisma.CreatorListScalarFieldEnum = {
814
814
  created: 'created',
815
815
  archived: 'archived',
816
816
  title: 'title',
817
- metaData: 'metaData'
817
+ metaData: 'metaData',
818
+ createdByUserId: 'createdByUserId'
818
819
  };
819
820
 
820
821
  exports.Prisma.CreatorListItemScalarFieldEnum = {
@@ -1088,6 +1089,13 @@ exports.Prisma.FileScalarFieldEnum = {
1088
1089
  archivedAt: 'archivedAt'
1089
1090
  };
1090
1091
 
1092
+ exports.Prisma.CreditRefundBatchScalarFieldEnum = {
1093
+ id: 'id',
1094
+ createdAt: 'createdAt',
1095
+ closedAt: 'closedAt',
1096
+ brandId: 'brandId'
1097
+ };
1098
+
1091
1099
  exports.Prisma.SortOrder = {
1092
1100
  asc: 'asc',
1093
1101
  desc: 'desc'
@@ -1618,7 +1626,8 @@ exports.Prisma.ModelName = {
1618
1626
  ShopifySale: 'ShopifySale',
1619
1627
  CreatorFlag: 'CreatorFlag',
1620
1628
  BrandContract: 'BrandContract',
1621
- File: 'File'
1629
+ File: 'File',
1630
+ CreditRefundBatch: 'CreditRefundBatch'
1622
1631
  };
1623
1632
 
1624
1633
  /**