@creator.co/creatorco-prisma-client 1.0.33 → 1.0.34-alpha-925d6bb

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
@@ -344,6 +344,7 @@ model Brand {
344
344
  sequences Sequence[]
345
345
  impactRadiusEvents ImpactRadiusEvent[]
346
346
  shopifyStores ShopifyStore[]
347
+ variables Variable[]
347
348
 
348
349
  // for agencies
349
350
  parentBrandId Int?
@@ -516,7 +517,7 @@ model Campaign {
516
517
  categories CampaignToCategory[]
517
518
  optIns OptIn[]
518
519
  images CampaignToImage[]
519
- variables Variable[]
520
+ variables CampaignToVariable[]
520
521
  countries CampaignToCountry[]
521
522
  campaignPins CampaignPin[]
522
523
  socialPosts SocialPost[]
@@ -583,15 +584,28 @@ model CampaignToCountry {
583
584
  @@map("campaigntocountry")
584
585
  }
585
586
 
587
+ model CampaignToVariable {
588
+ campaignId Int
589
+ variableId Int
590
+
591
+ campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
592
+ variable Variable @relation(fields: [variableId], references: [id])
593
+
594
+ @@id([campaignId, variableId])
595
+ @@map("campaigntovariable")
596
+ }
597
+
586
598
  model Variable {
587
599
  id Int @id @default(autoincrement())
588
600
  title String
589
601
  description String? @db.Text
590
602
  metaData Json @default("{}")
591
603
 
592
- campaignId Int
604
+ brandId Int
593
605
 
594
- campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
606
+ brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
607
+
608
+ campaignVariables CampaignToVariable[]
595
609
 
596
610
  options VariableOption[]
597
611
  optInVariables OptInVariable[]
@@ -737,7 +751,6 @@ enum trolleyPaymentStatus {
737
751
  returned
738
752
  }
739
753
 
740
-
741
754
  model OptInVariable {
742
755
  id Int @id @default(autoincrement())
743
756
 
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,12 +458,17 @@ exports.Prisma.CampaignToCountryScalarFieldEnum = {
458
458
  countryId: 'countryId'
459
459
  };
460
460
 
461
+ exports.Prisma.CampaignToVariableScalarFieldEnum = {
462
+ campaignId: 'campaignId',
463
+ variableId: 'variableId'
464
+ };
465
+
461
466
  exports.Prisma.VariableScalarFieldEnum = {
462
467
  id: 'id',
463
468
  title: 'title',
464
469
  description: 'description',
465
470
  metaData: 'metaData',
466
- campaignId: 'campaignId'
471
+ brandId: 'brandId'
467
472
  };
468
473
 
469
474
  exports.Prisma.VariableOptionScalarFieldEnum = {
@@ -1281,6 +1286,7 @@ exports.Prisma.ModelName = {
1281
1286
  CampaignToImage: 'CampaignToImage',
1282
1287
  CampaignToCategory: 'CampaignToCategory',
1283
1288
  CampaignToCountry: 'CampaignToCountry',
1289
+ CampaignToVariable: 'CampaignToVariable',
1284
1290
  Variable: 'Variable',
1285
1291
  VariableOption: 'VariableOption',
1286
1292
  Step: 'Step',