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

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-alpha-cbcafab",
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,20 @@ 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
+ created DateTime @default(now())
1288
+ saleAmount Float? @map("sale_amount")
1289
+ commission Float?
1290
+ metaData Json @default("{}") @map("meta_data")
1291
+
1292
+ optInId Int? @map("optin_id")
1293
+
1294
+ optIn OptIn? @relation(fields: [optInId], references: [id])
1295
+
1296
+ @@map("shareasale_event")
1297
+ }
1298
+
1284
1299
  model CreatorSearchFilter {
1285
1300
  id Int @id @default(autoincrement())
1286
1301
  brandId Int
package/wasm.js CHANGED
@@ -882,6 +882,15 @@ exports.Prisma.ImpactRadiusEventScalarFieldEnum = {
882
882
  optInId: 'optInId'
883
883
  };
884
884
 
885
+ exports.Prisma.ShareASaleEventScalarFieldEnum = {
886
+ id: 'id',
887
+ created: 'created',
888
+ saleAmount: 'saleAmount',
889
+ commission: 'commission',
890
+ metaData: 'metaData',
891
+ optInId: 'optInId'
892
+ };
893
+
885
894
  exports.Prisma.CreatorSearchFilterScalarFieldEnum = {
886
895
  id: 'id',
887
896
  brandId: 'brandId',
@@ -1431,6 +1440,7 @@ exports.Prisma.ModelName = {
1431
1440
  OptInView: 'OptInView',
1432
1441
  RakutenActivity: 'RakutenActivity',
1433
1442
  ImpactRadiusEvent: 'ImpactRadiusEvent',
1443
+ ShareASaleEvent: 'ShareASaleEvent',
1434
1444
  CreatorSearchFilter: 'CreatorSearchFilter',
1435
1445
  Sequence: 'Sequence',
1436
1446
  SequenceStep: 'SequenceStep',