@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/package.json CHANGED
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "./*": "./*"
81
81
  },
82
- "version": "1.0.34-alpha-6895cd0",
82
+ "version": "1.0.34",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
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
- @@map("campaigntoproductlist")
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
- @@index([optInId])
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
+ }
package/wasm.js CHANGED
@@ -480,7 +480,6 @@ exports.Prisma.CampaignToProductListScalarFieldEnum = {
480
480
  };
481
481
 
482
482
  exports.Prisma.OptinToProductListItemScalarFieldEnum = {
483
- id: 'id',
484
483
  optInId: 'optInId',
485
484
  productListItemId: 'productListItemId'
486
485
  };