@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/edge.js +7 -5
- package/index-browser.js +3 -1
- package/index.d.ts +224 -28
- package/index.js +7 -5
- package/package.json +1 -1
- package/schema.prisma +9 -7
- package/wasm.js +3 -1
package/package.json
CHANGED
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
|
|
1465
|
-
code String
|
|
1466
|
-
shopifyDiscountCodeId Int?
|
|
1467
|
-
shopifyPriceRuleId
|
|
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
|
|
1480
|
+
id Int @id @default(autoincrement())
|
|
1480
1481
|
amount Float
|
|
1481
|
-
metaData Json?
|
|
1482
|
-
discountCodeId Int
|
|
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 = {
|