@creator.co/creatorco-prisma-client 1.0.46 → 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.46",
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,6 +781,7 @@ model OptIn {
781
781
  ExternalAffiliateClick ExternalAffiliateClick[]
782
782
  ImpactRadiusEvent ImpactRadiusEvent[]
783
783
  ShareASaleEvents ShareASaleEvent[]
784
+ shopifyDiscountCodes ShopifyDiscountCode[]
784
785
 
785
786
  @@index([userId])
786
787
  @@index([campaignId])
@@ -1458,3 +1459,29 @@ model CampaignToShopifyProduct {
1458
1459
  @@id([campaignId, shopifyProductId])
1459
1460
  @@map("campaign_to_shopify_product")
1460
1461
  }
1462
+
1463
+ model ShopifyDiscountCode {
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
+
1469
+ optInId Int @map("optin_id")
1470
+
1471
+ optIn OptIn @relation(fields: [optInId], references: [id], onDelete: Cascade)
1472
+
1473
+ shopifySales ShopifySale[]
1474
+
1475
+ @@map("shopify_discount_code")
1476
+ }
1477
+
1478
+ model ShopifySale {
1479
+ id Int @id @default(autoincrement())
1480
+ amount Float
1481
+ metaData Json? @map("meta_data")
1482
+ discountCodeId Int @map("discount_code_id")
1483
+
1484
+ discountCode ShopifyDiscountCode @relation(fields: [discountCodeId], references: [id], onDelete: Cascade)
1485
+
1486
+ @@map("shopify_sale")
1487
+ }
package/wasm.js CHANGED
@@ -981,6 +981,21 @@ exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
981
981
  shopifyProductId: 'shopifyProductId'
982
982
  };
983
983
 
984
+ exports.Prisma.ShopifyDiscountCodeScalarFieldEnum = {
985
+ id: 'id',
986
+ code: 'code',
987
+ shopifyDiscountCodeId: 'shopifyDiscountCodeId',
988
+ shopifyPriceRuleId: 'shopifyPriceRuleId',
989
+ optInId: 'optInId'
990
+ };
991
+
992
+ exports.Prisma.ShopifySaleScalarFieldEnum = {
993
+ id: 'id',
994
+ amount: 'amount',
995
+ metaData: 'metaData',
996
+ discountCodeId: 'discountCodeId'
997
+ };
998
+
984
999
  exports.Prisma.SortOrder = {
985
1000
  asc: 'asc',
986
1001
  desc: 'desc'
@@ -1363,6 +1378,10 @@ exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
1363
1378
  title: 'title',
1364
1379
  imageUrl: 'imageUrl'
1365
1380
  };
1381
+
1382
+ exports.Prisma.ShopifyDiscountCodeOrderByRelevanceFieldEnum = {
1383
+ code: 'code'
1384
+ };
1366
1385
  exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
1367
1386
  optIn: 'optIn',
1368
1387
  tip: 'tip',
@@ -1455,7 +1474,9 @@ exports.Prisma.ModelName = {
1455
1474
  ShopifyStore: 'ShopifyStore',
1456
1475
  ShopifyProduct: 'ShopifyProduct',
1457
1476
  ShopifyProductVariation: 'ShopifyProductVariation',
1458
- CampaignToShopifyProduct: 'CampaignToShopifyProduct'
1477
+ CampaignToShopifyProduct: 'CampaignToShopifyProduct',
1478
+ ShopifyDiscountCode: 'ShopifyDiscountCode',
1479
+ ShopifySale: 'ShopifySale'
1459
1480
  };
1460
1481
 
1461
1482
  /**