@creator.co/creatorco-prisma-client 1.0.47-alpha-e6ce134 → 1.0.48
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 +6 -5
- package/index-browser.js +2 -1
- package/index.d.ts +139 -28
- package/index.js +6 -5
- package/package.json +1 -1
- package/schema.prisma +8 -7
- package/wasm.js +2 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -1461,10 +1461,10 @@ model CampaignToShopifyProduct {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
|
|
1463
1463
|
model ShopifyDiscountCode {
|
|
1464
|
-
id Int
|
|
1465
|
-
code String
|
|
1466
|
-
shopifyDiscountCodeId Int?
|
|
1467
|
-
shopifyPriceRuleId
|
|
1464
|
+
id Int @id @default(autoincrement())
|
|
1465
|
+
code String @unique
|
|
1466
|
+
shopifyDiscountCodeId Int? @unique @map("shopify_discount_code_id")
|
|
1467
|
+
shopifyPriceRuleId BigInt? @map("price_rule_id")
|
|
1468
1468
|
|
|
1469
1469
|
optInId Int @map("optin_id")
|
|
1470
1470
|
|
|
@@ -1476,10 +1476,11 @@ model ShopifyDiscountCode {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
1478
|
model ShopifySale {
|
|
1479
|
-
id Int
|
|
1479
|
+
id Int @id @default(autoincrement())
|
|
1480
1480
|
amount Float
|
|
1481
|
-
metaData Json?
|
|
1482
|
-
discountCodeId Int
|
|
1481
|
+
metaData Json? @map("meta_data")
|
|
1482
|
+
discountCodeId Int @map("discount_code_id")
|
|
1483
|
+
created DateTime @default(now())
|
|
1483
1484
|
|
|
1484
1485
|
discountCode ShopifyDiscountCode @relation(fields: [discountCodeId], references: [id], onDelete: Cascade)
|
|
1485
1486
|
|
package/wasm.js
CHANGED
|
@@ -993,7 +993,8 @@ exports.Prisma.ShopifySaleScalarFieldEnum = {
|
|
|
993
993
|
id: 'id',
|
|
994
994
|
amount: 'amount',
|
|
995
995
|
metaData: 'metaData',
|
|
996
|
-
discountCodeId: 'discountCodeId'
|
|
996
|
+
discountCodeId: 'discountCodeId',
|
|
997
|
+
created: 'created'
|
|
997
998
|
};
|
|
998
999
|
|
|
999
1000
|
exports.Prisma.SortOrder = {
|