@creator.co/creatorco-prisma-client 1.0.74 → 1.0.76

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
@@ -1,8 +1,8 @@
1
- generator erd {
2
- provider = "prisma-erd-generator"
3
- includeRelationFromFields = true
4
- output = "../../docs/creatorco_erd.md"
5
- }
1
+ // generator erd {
2
+ // provider = "prisma-erd-generator"
3
+ // includeRelationFromFields = true
4
+ // output = "../../docs/creatorco_erd.md"
5
+ // }
6
6
 
7
7
  generator kysely {
8
8
  provider = "prisma-kysely"
@@ -785,13 +785,16 @@ model OptIn {
785
785
  favoritedDate DateTime?
786
786
  rating Json?
787
787
 
788
- userId Int
789
- campaignId Int
790
- currentStepId Int?
791
-
792
- user User @relation(fields: [userId], references: [id], onDelete: Cascade)
793
- campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
794
- currentStep CampaignStep? @relation(fields: [currentStepId], references: [id])
788
+ userId Int
789
+ campaignId Int
790
+ currentStepId Int?
791
+ previousOptInId Int? @unique @map("previous_opt_in_id") // for re-opt-ins, this is the original/previous opt-in
792
+
793
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
794
+ campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
795
+ currentStep CampaignStep? @relation(fields: [currentStepId], references: [id])
796
+ previousOptIn OptIn? @relation("PreviousOptIn", fields: [previousOptInId], references: [id])
797
+ reOptIn OptIn? @relation("PreviousOptIn")
795
798
 
796
799
  variables OptInVariable[]
797
800
  optInSteps OptInStep[]
package/wasm.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './index'
1
+ export * from "./index"
package/wasm.js CHANGED
@@ -7,6 +7,7 @@ const {
7
7
  makeStrictEnum,
8
8
  Public,
9
9
  getRuntime,
10
+ skip
10
11
  } = require('./runtime/index-browser.js')
11
12
 
12
13
 
@@ -16,12 +17,12 @@ exports.Prisma = Prisma
16
17
  exports.$Enums = {}
17
18
 
18
19
  /**
19
- * Prisma Client JS version: 5.15.0
20
- * Query Engine version: 12e25d8d06f6ea5a0252864dd9a03b1bb51f3022
20
+ * Prisma Client JS version: 5.22.0
21
+ * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
21
22
  */
22
23
  Prisma.prismaVersion = {
23
- client: "5.15.0",
24
- engine: "12e25d8d06f6ea5a0252864dd9a03b1bb51f3022"
24
+ client: "5.22.0",
25
+ engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
25
26
  }
26
27
 
27
28
  Prisma.PrismaClientKnownRequestError = () => {
@@ -108,6 +109,8 @@ Prisma.NullTypes = {
108
109
  AnyNull: objectEnumValues.classes.AnyNull
109
110
  }
110
111
 
112
+
113
+
111
114
  /**
112
115
  * Enums
113
116
  */
@@ -567,7 +570,8 @@ exports.Prisma.OptInScalarFieldEnum = {
567
570
  rating: 'rating',
568
571
  userId: 'userId',
569
572
  campaignId: 'campaignId',
570
- currentStepId: 'currentStepId'
573
+ currentStepId: 'currentStepId',
574
+ previousOptInId: 'previousOptInId'
571
575
  };
572
576
 
573
577
  exports.Prisma.TrolleyPaymentScalarFieldEnum = {