@creator.co/creatorco-prisma-client 1.0.34-alpha-6895cd0 → 1.0.34
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 +4 -5
- package/index-browser.js +0 -1
- package/index.d.ts +9 -42
- package/index.js +4 -5
- package/package.json +1 -1
- package/schema.prisma +12 -5
- package/wasm.js +0 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -597,6 +597,9 @@ model ProductList {
|
|
|
597
597
|
|
|
598
598
|
items ProductListItem[]
|
|
599
599
|
campaignProductLists CampaignToProductList[]
|
|
600
|
+
|
|
601
|
+
@@index([brandId])
|
|
602
|
+
@@map("product_list")
|
|
600
603
|
}
|
|
601
604
|
|
|
602
605
|
model ProductListItem {
|
|
@@ -608,6 +611,9 @@ model ProductListItem {
|
|
|
608
611
|
productListId Int
|
|
609
612
|
productList ProductList @relation(fields: [productListId], references: [id], onDelete: Cascade)
|
|
610
613
|
optins OptinToProductListItem[]
|
|
614
|
+
|
|
615
|
+
@@index([productListId])
|
|
616
|
+
@@map("product_list_item")
|
|
611
617
|
}
|
|
612
618
|
|
|
613
619
|
model CampaignToProductList {
|
|
@@ -618,19 +624,20 @@ model CampaignToProductList {
|
|
|
618
624
|
productList ProductList @relation(fields: [productListId], references: [id])
|
|
619
625
|
|
|
620
626
|
@@id([campaignId, productListId])
|
|
621
|
-
@@
|
|
627
|
+
@@index([productListId])
|
|
628
|
+
@@map("campaign_to_product_list")
|
|
622
629
|
}
|
|
623
630
|
|
|
624
631
|
model OptinToProductListItem {
|
|
625
|
-
id Int @id @default(autoincrement())
|
|
626
|
-
|
|
627
632
|
optInId Int
|
|
628
633
|
productListItemId Int
|
|
629
634
|
|
|
630
635
|
optIn OptIn @relation(fields: [optInId], references: [id], onDelete: Cascade)
|
|
631
636
|
productListItem ProductListItem @relation(fields: [productListItemId], references: [id], onDelete: Cascade)
|
|
632
637
|
|
|
633
|
-
@@
|
|
638
|
+
@@id([optInId, productListItemId])
|
|
639
|
+
@@index([productListItemId])
|
|
640
|
+
@@map("optin_to_product_list_item")
|
|
634
641
|
}
|
|
635
642
|
|
|
636
643
|
model Variable {
|
|
@@ -1353,4 +1360,4 @@ model CampaignToShopifyProduct {
|
|
|
1353
1360
|
|
|
1354
1361
|
@@id([campaignId, shopifyProductId])
|
|
1355
1362
|
@@map("campaign_to_shopify_product")
|
|
1356
|
-
}
|
|
1363
|
+
}
|