@creator.co/creatorco-prisma-client 1.0.50-alpha-73636ce → 1.0.51-alpha-c446596

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.50-alpha-73636ce",
82
+ "version": "1.0.51-alpha-c446596",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -71,6 +71,7 @@ model User {
71
71
  socialProfiles SocialProfile[]
72
72
  rakutenActivity RakutenActivity[]
73
73
  impactRadiusEvents ImpactRadiusEvent[]
74
+ cjEvents CJEvent[]
74
75
  flagsAssigned CreatorFlag[] @relation("UserAssignedFlags") // flags assigned to the user
75
76
  flagsCreated CreatorFlag[] @relation("UserCreatedFlags") // flags created by the user
76
77
  flagsEdited CreatorFlag[] @relation("UserEditedFlags") // flags edited by the user
@@ -348,6 +349,7 @@ model Brand {
348
349
  creatorsearchfilter CreatorSearchFilter[]
349
350
  sequences Sequence[]
350
351
  impactRadiusEvents ImpactRadiusEvent[]
352
+ cjEvents CJEvent[]
351
353
  shopifyStores ShopifyStore[]
352
354
  productLists ProductList[]
353
355
 
@@ -785,6 +787,7 @@ model OptIn {
785
787
  productListItems OptinToProductListItem[]
786
788
  ExternalAffiliateClick ExternalAffiliateClick[]
787
789
  ImpactRadiusEvent ImpactRadiusEvent[]
790
+ CJEvent CJEvent[]
788
791
  ShareASaleEvents ShareASaleEvent[]
789
792
  shopifyDiscountCodes ShopifyDiscountCode[]
790
793
 
@@ -1288,6 +1291,23 @@ model ImpactRadiusEvent {
1288
1291
  optIn OptIn? @relation(fields: [optInId], references: [id])
1289
1292
  }
1290
1293
 
1294
+ model CJEvent {
1295
+ id Int @id @default(autoincrement())
1296
+ type String // action/click
1297
+ created DateTime @default(now())
1298
+ amount Float?
1299
+ commission Float?
1300
+ metaData Json @default("{}")
1301
+
1302
+ userId Int
1303
+ brandId Int?
1304
+ optInId Int?
1305
+
1306
+ user User @relation(fields: [userId], references: [id])
1307
+ brand Brand? @relation(fields: [brandId], references: [id])
1308
+ optIn OptIn? @relation(fields: [optInId], references: [id])
1309
+ }
1310
+
1291
1311
  model ShareASaleEvent {
1292
1312
  id Int @id @default(autoincrement())
1293
1313
  transactionId String? @unique @map("transaction_id")
package/wasm.js CHANGED
@@ -884,6 +884,18 @@ exports.Prisma.ImpactRadiusEventScalarFieldEnum = {
884
884
  optInId: 'optInId'
885
885
  };
886
886
 
887
+ exports.Prisma.CJEventScalarFieldEnum = {
888
+ id: 'id',
889
+ type: 'type',
890
+ created: 'created',
891
+ amount: 'amount',
892
+ commission: 'commission',
893
+ metaData: 'metaData',
894
+ userId: 'userId',
895
+ brandId: 'brandId',
896
+ optInId: 'optInId'
897
+ };
898
+
887
899
  exports.Prisma.ShareASaleEventScalarFieldEnum = {
888
900
  id: 'id',
889
901
  transactionId: 'transactionId',
@@ -1360,6 +1372,10 @@ exports.Prisma.ImpactRadiusEventOrderByRelevanceFieldEnum = {
1360
1372
  type: 'type'
1361
1373
  };
1362
1374
 
1375
+ exports.Prisma.CJEventOrderByRelevanceFieldEnum = {
1376
+ type: 'type'
1377
+ };
1378
+
1363
1379
  exports.Prisma.ShareASaleEventOrderByRelevanceFieldEnum = {
1364
1380
  transactionId: 'transactionId'
1365
1381
  };
@@ -1486,6 +1502,7 @@ exports.Prisma.ModelName = {
1486
1502
  OptInView: 'OptInView',
1487
1503
  RakutenActivity: 'RakutenActivity',
1488
1504
  ImpactRadiusEvent: 'ImpactRadiusEvent',
1505
+ CJEvent: 'CJEvent',
1489
1506
  ShareASaleEvent: 'ShareASaleEvent',
1490
1507
  CreatorSearchFilter: 'CreatorSearchFilter',
1491
1508
  Sequence: 'Sequence',