@creator.co/creatorco-prisma-client 1.0.44 → 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.44",
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
@@ -70,7 +70,9 @@ model User {
70
70
  socialProfiles SocialProfile[]
71
71
  rakutenActivity RakutenActivity[]
72
72
  impactRadiusEvents ImpactRadiusEvent[]
73
- // @@fulltext([firstName, lastName])
73
+
74
+ fullName String? @default(dbgenerated())
75
+ phoneNormalised String? @default(dbgenerated())
74
76
 
75
77
  @@index([phoneCode, phone])
76
78
  @@map("user")
@@ -778,6 +780,7 @@ model OptIn {
778
780
  productListItems OptinToProductListItem[]
779
781
  ExternalAffiliateClick ExternalAffiliateClick[]
780
782
  ImpactRadiusEvent ImpactRadiusEvent[]
783
+ ShareASaleEvents ShareASaleEvent[]
781
784
 
782
785
  @@index([userId])
783
786
  @@index([campaignId])
@@ -1279,6 +1282,20 @@ model ImpactRadiusEvent {
1279
1282
  optIn OptIn? @relation(fields: [optInId], references: [id])
1280
1283
  }
1281
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
+
1282
1299
  model CreatorSearchFilter {
1283
1300
  id Int @id @default(autoincrement())
1284
1301
  brandId Int
package/wasm.js CHANGED
@@ -138,7 +138,9 @@ exports.Prisma.UserScalarFieldEnum = {
138
138
  closedReason: 'closedReason',
139
139
  usercomLastSynced: 'usercomLastSynced',
140
140
  extraData: 'extraData',
141
- referrerId: 'referrerId'
141
+ referrerId: 'referrerId',
142
+ fullName: 'fullName',
143
+ phoneNormalised: 'phoneNormalised'
142
144
  };
143
145
 
144
146
  exports.Prisma.LogScalarFieldEnum = {
@@ -880,6 +882,15 @@ exports.Prisma.ImpactRadiusEventScalarFieldEnum = {
880
882
  optInId: 'optInId'
881
883
  };
882
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
+
883
894
  exports.Prisma.CreatorSearchFilterScalarFieldEnum = {
884
895
  id: 'id',
885
896
  brandId: 'brandId',
@@ -1010,7 +1021,9 @@ exports.Prisma.UserOrderByRelevanceFieldEnum = {
1010
1021
  profilePicUrl: 'profilePicUrl',
1011
1022
  forgotPasswordKey: 'forgotPasswordKey',
1012
1023
  affiliateSlug: 'affiliateSlug',
1013
- closedReason: 'closedReason'
1024
+ closedReason: 'closedReason',
1025
+ fullName: 'fullName',
1026
+ phoneNormalised: 'phoneNormalised'
1014
1027
  };
1015
1028
 
1016
1029
  exports.Prisma.CreatorProfileOrderByRelevanceFieldEnum = {
@@ -1427,6 +1440,7 @@ exports.Prisma.ModelName = {
1427
1440
  OptInView: 'OptInView',
1428
1441
  RakutenActivity: 'RakutenActivity',
1429
1442
  ImpactRadiusEvent: 'ImpactRadiusEvent',
1443
+ ShareASaleEvent: 'ShareASaleEvent',
1430
1444
  CreatorSearchFilter: 'CreatorSearchFilter',
1431
1445
  Sequence: 'Sequence',
1432
1446
  SequenceStep: 'SequenceStep',