@creator.co/creatorco-prisma-client 1.0.42 → 1.0.44-alpha-eead9dc

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.42",
82
+ "version": "1.0.44-alpha-eead9dc",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -777,6 +777,7 @@ model OptIn {
777
777
  affiliateClicks AffiliateClick[]
778
778
  productListItems OptinToProductListItem[]
779
779
  ExternalAffiliateClick ExternalAffiliateClick[]
780
+ shopifyDiscountCodes ShopifyDiscountCode[]
780
781
 
781
782
  @@index([userId])
782
783
  @@index([campaignId])
@@ -1436,3 +1437,28 @@ model CampaignToShopifyProduct {
1436
1437
  @@id([campaignId, shopifyProductId])
1437
1438
  @@map("campaign_to_shopify_product")
1438
1439
  }
1440
+
1441
+ model ShopifyDiscountCode {
1442
+ id Int @id @default(autoincrement())
1443
+ code String
1444
+ discount Float
1445
+
1446
+ optInId Int @map("optin_id")
1447
+
1448
+ optIn OptIn @relation(fields: [optInId], references: [id], onDelete: Cascade)
1449
+
1450
+ shopifySales ShopifySale[]
1451
+
1452
+ @@map("shopify_discount_code")
1453
+ }
1454
+
1455
+ model ShopifySale {
1456
+ id Int @id @default(autoincrement())
1457
+ amount Float
1458
+ metaData Json? @map("meta_data")
1459
+ discountCodeId Int @map("discount_code_id")
1460
+
1461
+ discountCode ShopifyDiscountCode @relation(fields: [discountCodeId], references: [id], onDelete: Cascade)
1462
+
1463
+ @@map("shopify_sale")
1464
+ }
package/wasm.js CHANGED
@@ -967,6 +967,20 @@ exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
967
967
  shopifyProductId: 'shopifyProductId'
968
968
  };
969
969
 
970
+ exports.Prisma.ShopifyDiscountCodeScalarFieldEnum = {
971
+ id: 'id',
972
+ code: 'code',
973
+ discount: 'discount',
974
+ optInId: 'optInId'
975
+ };
976
+
977
+ exports.Prisma.ShopifySaleScalarFieldEnum = {
978
+ id: 'id',
979
+ amount: 'amount',
980
+ metaData: 'metaData',
981
+ discountCodeId: 'discountCodeId'
982
+ };
983
+
970
984
  exports.Prisma.SortOrder = {
971
985
  asc: 'asc',
972
986
  desc: 'desc'
@@ -1343,6 +1357,10 @@ exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
1343
1357
  title: 'title',
1344
1358
  imageUrl: 'imageUrl'
1345
1359
  };
1360
+
1361
+ exports.Prisma.ShopifyDiscountCodeOrderByRelevanceFieldEnum = {
1362
+ code: 'code'
1363
+ };
1346
1364
  exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
1347
1365
  optIn: 'optIn',
1348
1366
  tip: 'tip',
@@ -1434,7 +1452,9 @@ exports.Prisma.ModelName = {
1434
1452
  ShopifyStore: 'ShopifyStore',
1435
1453
  ShopifyProduct: 'ShopifyProduct',
1436
1454
  ShopifyProductVariation: 'ShopifyProductVariation',
1437
- CampaignToShopifyProduct: 'CampaignToShopifyProduct'
1455
+ CampaignToShopifyProduct: 'CampaignToShopifyProduct',
1456
+ ShopifyDiscountCode: 'ShopifyDiscountCode',
1457
+ ShopifySale: 'ShopifySale'
1438
1458
  };
1439
1459
 
1440
1460
  /**