@creator.co/creatorco-prisma-client 1.0.47-alpha-15ad3c3 → 1.0.47-alpha-e6ce134

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.47-alpha-15ad3c3",
82
+ "version": "1.0.47-alpha-e6ce134",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -781,7 +781,7 @@ model OptIn {
781
781
  ExternalAffiliateClick ExternalAffiliateClick[]
782
782
  ImpactRadiusEvent ImpactRadiusEvent[]
783
783
  ShareASaleEvents ShareASaleEvent[]
784
- ShopifyDiscountCodes ShopifyDiscountCode[]
784
+ shopifyDiscountCodes ShopifyDiscountCode[]
785
785
 
786
786
  @@index([userId])
787
787
  @@index([campaignId])
@@ -1461,10 +1461,10 @@ model CampaignToShopifyProduct {
1461
1461
  }
1462
1462
 
1463
1463
  model ShopifyDiscountCode {
1464
- id Int @id @default(autoincrement())
1465
- code String
1466
- discount Float
1467
- shopifyPriceRuleId String? @map("price_rule_id")
1464
+ id Int @id @default(autoincrement())
1465
+ code String @unique
1466
+ shopifyDiscountCodeId Int? @unique @map("shopify_discount_code_id")
1467
+ shopifyPriceRuleId Int? @map("price_rule_id")
1468
1468
 
1469
1469
  optInId Int @map("optin_id")
1470
1470
 
package/wasm.js CHANGED
@@ -984,7 +984,7 @@ exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
984
984
  exports.Prisma.ShopifyDiscountCodeScalarFieldEnum = {
985
985
  id: 'id',
986
986
  code: 'code',
987
- discount: 'discount',
987
+ shopifyDiscountCodeId: 'shopifyDiscountCodeId',
988
988
  shopifyPriceRuleId: 'shopifyPriceRuleId',
989
989
  optInId: 'optInId'
990
990
  };
@@ -1380,8 +1380,7 @@ exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
1380
1380
  };
1381
1381
 
1382
1382
  exports.Prisma.ShopifyDiscountCodeOrderByRelevanceFieldEnum = {
1383
- code: 'code',
1384
- shopifyPriceRuleId: 'shopifyPriceRuleId'
1383
+ code: 'code'
1385
1384
  };
1386
1385
  exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
1387
1386
  optIn: 'optIn',