@creator.co/creatorco-prisma-client 1.0.45 → 1.0.46

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.45",
82
+ "version": "1.0.46",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -780,6 +780,7 @@ model OptIn {
780
780
  productListItems OptinToProductListItem[]
781
781
  ExternalAffiliateClick ExternalAffiliateClick[]
782
782
  ImpactRadiusEvent ImpactRadiusEvent[]
783
+ ShareASaleEvents ShareASaleEvent[]
783
784
 
784
785
  @@index([userId])
785
786
  @@index([campaignId])
@@ -1281,6 +1282,21 @@ model ImpactRadiusEvent {
1281
1282
  optIn OptIn? @relation(fields: [optInId], references: [id])
1282
1283
  }
1283
1284
 
1285
+ model ShareASaleEvent {
1286
+ id Int @id @default(autoincrement())
1287
+ transactionId String? @unique @map("transaction_id")
1288
+ created DateTime @default(now())
1289
+ saleAmount Decimal? @map("sale_amount") @db.Decimal(9, 2)
1290
+ commission Decimal? @db.Decimal(9, 2)
1291
+ metaData Json @default("{}") @map("meta_data")
1292
+
1293
+ optInId Int? @map("optin_id")
1294
+
1295
+ optIn OptIn? @relation(fields: [optInId], references: [id])
1296
+
1297
+ @@map("shareasale_event")
1298
+ }
1299
+
1284
1300
  model CreatorSearchFilter {
1285
1301
  id Int @id @default(autoincrement())
1286
1302
  brandId Int
package/wasm.js CHANGED
@@ -882,6 +882,16 @@ exports.Prisma.ImpactRadiusEventScalarFieldEnum = {
882
882
  optInId: 'optInId'
883
883
  };
884
884
 
885
+ exports.Prisma.ShareASaleEventScalarFieldEnum = {
886
+ id: 'id',
887
+ transactionId: 'transactionId',
888
+ created: 'created',
889
+ saleAmount: 'saleAmount',
890
+ commission: 'commission',
891
+ metaData: 'metaData',
892
+ optInId: 'optInId'
893
+ };
894
+
885
895
  exports.Prisma.CreatorSearchFilterScalarFieldEnum = {
886
896
  id: 'id',
887
897
  brandId: 'brandId',
@@ -1319,6 +1329,10 @@ exports.Prisma.ImpactRadiusEventOrderByRelevanceFieldEnum = {
1319
1329
  type: 'type'
1320
1330
  };
1321
1331
 
1332
+ exports.Prisma.ShareASaleEventOrderByRelevanceFieldEnum = {
1333
+ transactionId: 'transactionId'
1334
+ };
1335
+
1322
1336
  exports.Prisma.CreatorSearchFilterOrderByRelevanceFieldEnum = {
1323
1337
  title: 'title'
1324
1338
  };
@@ -1431,6 +1445,7 @@ exports.Prisma.ModelName = {
1431
1445
  OptInView: 'OptInView',
1432
1446
  RakutenActivity: 'RakutenActivity',
1433
1447
  ImpactRadiusEvent: 'ImpactRadiusEvent',
1448
+ ShareASaleEvent: 'ShareASaleEvent',
1434
1449
  CreatorSearchFilter: 'CreatorSearchFilter',
1435
1450
  Sequence: 'Sequence',
1436
1451
  SequenceStep: 'SequenceStep',