@creator.co/creatorco-prisma-client 1.0.47 → 1.0.49

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",
82
+ "version": "1.0.49",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -762,6 +762,7 @@ model OptIn {
762
762
  paymentStatus String @default("pending") // depracated -- refer to trolley payment table
763
763
  extraData Json @default("{}")
764
764
  favoritedDate DateTime?
765
+ rating Json?
765
766
 
766
767
  userId Int
767
768
  campaignId Int
@@ -1461,10 +1462,10 @@ model CampaignToShopifyProduct {
1461
1462
  }
1462
1463
 
1463
1464
  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")
1465
+ id Int @id @default(autoincrement())
1466
+ code String @unique
1467
+ shopifyDiscountCodeId Int? @unique @map("shopify_discount_code_id")
1468
+ shopifyPriceRuleId BigInt? @map("price_rule_id")
1468
1469
 
1469
1470
  optInId Int @map("optin_id")
1470
1471
 
@@ -1476,10 +1477,11 @@ model ShopifyDiscountCode {
1476
1477
  }
1477
1478
 
1478
1479
  model ShopifySale {
1479
- id Int @id @default(autoincrement())
1480
+ id Int @id @default(autoincrement())
1480
1481
  amount Float
1481
- metaData Json? @map("meta_data")
1482
- discountCodeId Int @map("discount_code_id")
1482
+ metaData Json? @map("meta_data")
1483
+ discountCodeId Int @map("discount_code_id")
1484
+ created DateTime @default(now())
1483
1485
 
1484
1486
  discountCode ShopifyDiscountCode @relation(fields: [discountCodeId], references: [id], onDelete: Cascade)
1485
1487
 
package/wasm.js CHANGED
@@ -561,6 +561,7 @@ exports.Prisma.OptInScalarFieldEnum = {
561
561
  paymentStatus: 'paymentStatus',
562
562
  extraData: 'extraData',
563
563
  favoritedDate: 'favoritedDate',
564
+ rating: 'rating',
564
565
  userId: 'userId',
565
566
  campaignId: 'campaignId',
566
567
  currentStepId: 'currentStepId'
@@ -993,7 +994,8 @@ exports.Prisma.ShopifySaleScalarFieldEnum = {
993
994
  id: 'id',
994
995
  amount: 'amount',
995
996
  metaData: 'metaData',
996
- discountCodeId: 'discountCodeId'
997
+ discountCodeId: 'discountCodeId',
998
+ created: 'created'
997
999
  };
998
1000
 
999
1001
  exports.Prisma.SortOrder = {