@creator.co/creatorco-prisma-client 1.0.57-alpha-fe4a8b1 → 1.0.57

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.57-alpha-fe4a8b1",
82
+ "version": "1.0.57",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -1090,17 +1090,18 @@ model AffiliateClick {
1090
1090
  }
1091
1091
 
1092
1092
  model AffiliateEvent {
1093
- id Int @id @default(autoincrement())
1093
+ id Int @id @default(autoincrement())
1094
1094
  event String // click, purchase, etc.
1095
- created DateTime @default(now())
1095
+ created DateTime @default(now())
1096
+ updatedAt DateTime? @updatedAt
1096
1097
  visitorIp String?
1097
1098
  urlPath String?
1098
1099
  revenue Float?
1099
1100
  commissionAmount Float?
1100
1101
  commissionPercent Float?
1101
1102
  platform String?
1102
- externalOrderId String? @map("external_order_id")
1103
- metaData Json @default("{}")
1103
+ externalOrderId String? @map("external_order_id")
1104
+ metaData Json @default("{}")
1104
1105
 
1105
1106
  affiliateClickId Int
1106
1107
  affiliatePayoutBatchId Int? @map("affiliate_payout_batch_id")
@@ -1113,7 +1114,8 @@ model AffiliateEvent {
1113
1114
 
1114
1115
  model AffiliatePayoutBatch {
1115
1116
  id Int @id @default(autoincrement())
1116
- created DateTime @default(now())
1117
+ createdAt DateTime @default(now())
1118
+ updatedAt DateTime @updatedAt
1117
1119
  metaData Json @default("{}") @map("meta_data")
1118
1120
  trolleyBatchId String? @unique @map("trolley_batch_id")
1119
1121
 
package/wasm.js CHANGED
@@ -751,6 +751,7 @@ exports.Prisma.AffiliateEventScalarFieldEnum = {
751
751
  id: 'id',
752
752
  event: 'event',
753
753
  created: 'created',
754
+ updatedAt: 'updatedAt',
754
755
  visitorIp: 'visitorIp',
755
756
  urlPath: 'urlPath',
756
757
  revenue: 'revenue',
@@ -765,7 +766,8 @@ exports.Prisma.AffiliateEventScalarFieldEnum = {
765
766
 
766
767
  exports.Prisma.AffiliatePayoutBatchScalarFieldEnum = {
767
768
  id: 'id',
768
- created: 'created',
769
+ createdAt: 'createdAt',
770
+ updatedAt: 'updatedAt',
769
771
  metaData: 'metaData',
770
772
  trolleyBatchId: 'trolleyBatchId',
771
773
  userId: 'userId'