@creator.co/creatorco-prisma-client 1.0.33 → 1.0.34-alpha-6895cd0

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/schema.prisma CHANGED
@@ -70,7 +70,7 @@ model User {
70
70
  socialProfiles SocialProfile[]
71
71
  rakutenActivity RakutenActivity[]
72
72
  impactRadiusEvents ImpactRadiusEvent[]
73
-
73
+
74
74
  @@index([phoneCode, phone])
75
75
  @@map("user")
76
76
  // @@fulltext([firstName, lastName])
@@ -344,6 +344,7 @@ model Brand {
344
344
  sequences Sequence[]
345
345
  impactRadiusEvents ImpactRadiusEvent[]
346
346
  shopifyStores ShopifyStore[]
347
+ productLists ProductList[]
347
348
 
348
349
  // for agencies
349
350
  parentBrandId Int?
@@ -517,6 +518,7 @@ model Campaign {
517
518
  optIns OptIn[]
518
519
  images CampaignToImage[]
519
520
  variables Variable[]
521
+ productLists CampaignToProductList[]
520
522
  countries CampaignToCountry[]
521
523
  campaignPins CampaignPin[]
522
524
  socialPosts SocialPost[]
@@ -583,6 +585,54 @@ model CampaignToCountry {
583
585
  @@map("campaigntocountry")
584
586
  }
585
587
 
588
+ model ProductList {
589
+ id Int @id @default(autoincrement())
590
+ title String
591
+ description String? @db.Text
592
+ metaData Json @default("{}")
593
+
594
+ brandId Int
595
+
596
+ brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
597
+
598
+ items ProductListItem[]
599
+ campaignProductLists CampaignToProductList[]
600
+ }
601
+
602
+ model ProductListItem {
603
+ id Int @id @default(autoincrement())
604
+ title String
605
+ description String? @db.Text
606
+ metaData Json @default("{}")
607
+
608
+ productListId Int
609
+ productList ProductList @relation(fields: [productListId], references: [id], onDelete: Cascade)
610
+ optins OptinToProductListItem[]
611
+ }
612
+
613
+ model CampaignToProductList {
614
+ campaignId Int
615
+ productListId Int
616
+
617
+ campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
618
+ productList ProductList @relation(fields: [productListId], references: [id])
619
+
620
+ @@id([campaignId, productListId])
621
+ @@map("campaigntoproductlist")
622
+ }
623
+
624
+ model OptinToProductListItem {
625
+ id Int @id @default(autoincrement())
626
+
627
+ optInId Int
628
+ productListItemId Int
629
+
630
+ optIn OptIn @relation(fields: [optInId], references: [id], onDelete: Cascade)
631
+ productListItem ProductListItem @relation(fields: [productListItemId], references: [id], onDelete: Cascade)
632
+
633
+ @@index([optInId])
634
+ }
635
+
586
636
  model Variable {
587
637
  id Int @id @default(autoincrement())
588
638
  title String
@@ -705,6 +755,7 @@ model OptIn {
705
755
  campaignInvites CampaignInvite[]
706
756
  trolleyPayments TrolleyPayment[]
707
757
  affiliateClicks AffiliateClick[]
758
+ productListItems OptinToProductListItem[]
708
759
 
709
760
  @@index([userId])
710
761
  @@index([campaignId])
@@ -737,7 +788,6 @@ enum trolleyPaymentStatus {
737
788
  returned
738
789
  }
739
790
 
740
-
741
791
  model OptInVariable {
742
792
  id Int @id @default(autoincrement())
743
793
 
@@ -1242,7 +1292,7 @@ model ShopifyStore {
1242
1292
  accessToken String? @map("access_token")
1243
1293
  syncStatus ShopifyStoreSyncStatus @default(syncing) @map("sync_status")
1244
1294
  lastSynced DateTime? @map("last_synced")
1245
- metaData Json @default("{}") @map("meta_data")
1295
+ metaData Json @default("{}") @map("meta_data")
1246
1296
 
1247
1297
  brandId Int @map("brand_id")
1248
1298
 
@@ -1268,14 +1318,14 @@ model ShopifyProduct {
1268
1318
  imageUrl String @db.Text @map("image_url")
1269
1319
 
1270
1320
  metaData Json @default("{}") @map("meta_data")
1271
-
1321
+
1272
1322
  shopifyStoreId Int @map("shopify_store_id")
1273
1323
 
1274
1324
  campaignToShopifyProducts CampaignToShopifyProduct[]
1275
1325
  variations ShopifyProductVariation[]
1276
1326
 
1277
1327
  shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id], onDelete: Cascade)
1278
-
1328
+
1279
1329
  @@map("shopify_product")
1280
1330
  }
1281
1331
 
@@ -1286,11 +1336,11 @@ model ShopifyProductVariation {
1286
1336
  imageUrl String @db.Text @map("image_url")
1287
1337
 
1288
1338
  metaData Json @default("{}") @map("meta_data")
1289
-
1339
+
1290
1340
  shopifyProductId Int @map("shopify_product_id")
1291
1341
 
1292
1342
  shopifyProduct ShopifyProduct @relation(fields: [shopifyProductId], references: [id], onDelete: Cascade)
1293
-
1343
+
1294
1344
  @@map("shopify_product_variation")
1295
1345
  }
1296
1346
 
package/wasm.js CHANGED
@@ -16,12 +16,12 @@ exports.Prisma = Prisma
16
16
  exports.$Enums = {}
17
17
 
18
18
  /**
19
- * Prisma Client JS version: 5.12.1
20
- * Query Engine version: 473ed3124229e22d881cb7addf559799debae1ab
19
+ * Prisma Client JS version: 5.13.0
20
+ * Query Engine version: b9a39a7ee606c28e3455d0fd60e78c3ba82b1a2b
21
21
  */
22
22
  Prisma.prismaVersion = {
23
- client: "5.12.1",
24
- engine: "473ed3124229e22d881cb7addf559799debae1ab"
23
+ client: "5.13.0",
24
+ engine: "b9a39a7ee606c28e3455d0fd60e78c3ba82b1a2b"
25
25
  }
26
26
 
27
27
  Prisma.PrismaClientKnownRequestError = () => {
@@ -458,6 +458,33 @@ exports.Prisma.CampaignToCountryScalarFieldEnum = {
458
458
  countryId: 'countryId'
459
459
  };
460
460
 
461
+ exports.Prisma.ProductListScalarFieldEnum = {
462
+ id: 'id',
463
+ title: 'title',
464
+ description: 'description',
465
+ metaData: 'metaData',
466
+ brandId: 'brandId'
467
+ };
468
+
469
+ exports.Prisma.ProductListItemScalarFieldEnum = {
470
+ id: 'id',
471
+ title: 'title',
472
+ description: 'description',
473
+ metaData: 'metaData',
474
+ productListId: 'productListId'
475
+ };
476
+
477
+ exports.Prisma.CampaignToProductListScalarFieldEnum = {
478
+ campaignId: 'campaignId',
479
+ productListId: 'productListId'
480
+ };
481
+
482
+ exports.Prisma.OptinToProductListItemScalarFieldEnum = {
483
+ id: 'id',
484
+ optInId: 'optInId',
485
+ productListItemId: 'productListItemId'
486
+ };
487
+
461
488
  exports.Prisma.VariableScalarFieldEnum = {
462
489
  id: 'id',
463
490
  title: 'title',
@@ -1058,6 +1085,16 @@ exports.Prisma.CampaignToImageOrderByRelevanceFieldEnum = {
1058
1085
  type: 'type'
1059
1086
  };
1060
1087
 
1088
+ exports.Prisma.ProductListOrderByRelevanceFieldEnum = {
1089
+ title: 'title',
1090
+ description: 'description'
1091
+ };
1092
+
1093
+ exports.Prisma.ProductListItemOrderByRelevanceFieldEnum = {
1094
+ title: 'title',
1095
+ description: 'description'
1096
+ };
1097
+
1061
1098
  exports.Prisma.VariableOrderByRelevanceFieldEnum = {
1062
1099
  title: 'title',
1063
1100
  description: 'description'
@@ -1281,6 +1318,10 @@ exports.Prisma.ModelName = {
1281
1318
  CampaignToImage: 'CampaignToImage',
1282
1319
  CampaignToCategory: 'CampaignToCategory',
1283
1320
  CampaignToCountry: 'CampaignToCountry',
1321
+ ProductList: 'ProductList',
1322
+ ProductListItem: 'ProductListItem',
1323
+ CampaignToProductList: 'CampaignToProductList',
1324
+ OptinToProductListItem: 'OptinToProductListItem',
1284
1325
  Variable: 'Variable',
1285
1326
  VariableOption: 'VariableOption',
1286
1327
  Step: 'Step',