@creator.co/creatorco-prisma-client 1.0.43 → 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.43",
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])
@@ -845,7 +846,6 @@ model SocialPost {
845
846
  isOwnedByUser Boolean?
846
847
  // METRICS
847
848
  views Int?
848
- replays Int?
849
849
  impressions Int?
850
850
  impressionsOrganic Int?
851
851
  impressionsPaid Int?
@@ -1437,3 +1437,28 @@ model CampaignToShopifyProduct {
1437
1437
  @@id([campaignId, shopifyProductId])
1438
1438
  @@map("campaign_to_shopify_product")
1439
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
@@ -600,7 +600,6 @@ exports.Prisma.SocialPostScalarFieldEnum = {
600
600
  hasCollaborators: 'hasCollaborators',
601
601
  isOwnedByUser: 'isOwnedByUser',
602
602
  views: 'views',
603
- replays: 'replays',
604
603
  impressions: 'impressions',
605
604
  impressionsOrganic: 'impressionsOrganic',
606
605
  impressionsPaid: 'impressionsPaid',
@@ -968,6 +967,20 @@ exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
968
967
  shopifyProductId: 'shopifyProductId'
969
968
  };
970
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
+
971
984
  exports.Prisma.SortOrder = {
972
985
  asc: 'asc',
973
986
  desc: 'desc'
@@ -1344,6 +1357,10 @@ exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
1344
1357
  title: 'title',
1345
1358
  imageUrl: 'imageUrl'
1346
1359
  };
1360
+
1361
+ exports.Prisma.ShopifyDiscountCodeOrderByRelevanceFieldEnum = {
1362
+ code: 'code'
1363
+ };
1347
1364
  exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
1348
1365
  optIn: 'optIn',
1349
1366
  tip: 'tip',
@@ -1435,7 +1452,9 @@ exports.Prisma.ModelName = {
1435
1452
  ShopifyStore: 'ShopifyStore',
1436
1453
  ShopifyProduct: 'ShopifyProduct',
1437
1454
  ShopifyProductVariation: 'ShopifyProductVariation',
1438
- CampaignToShopifyProduct: 'CampaignToShopifyProduct'
1455
+ CampaignToShopifyProduct: 'CampaignToShopifyProduct',
1456
+ ShopifyDiscountCode: 'ShopifyDiscountCode',
1457
+ ShopifySale: 'ShopifySale'
1439
1458
  };
1440
1459
 
1441
1460
  /**