@creator.co/creatorco-prisma-client 1.0.17 → 1.0.19

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
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "./*": "./*"
70
70
  },
71
- "version": "1.0.17",
71
+ "version": "1.0.19",
72
72
  "sideEffects": false,
73
73
  "description": "Prisma client for creatorco Database"
74
74
  }
package/schema.prisma CHANGED
@@ -706,12 +706,12 @@ model TrolleyPayment {
706
706
  id Int @id @default(autoincrement())
707
707
  paymentId String @unique
708
708
  type trolleyPaymentType?
709
- status trolleyPaymentStatus @default(created)
710
- optInId Int
709
+ status trolleyPaymentStatus
710
+ optInId Int?
711
711
  paymentAmount Int
712
712
  metaData Json @default("{}")
713
713
 
714
- optIn OptIn @relation(fields: [optInId], references:[id])
714
+ optIn OptIn? @relation(fields: [optInId], references:[id])
715
715
  }
716
716
 
717
717
  enum trolleyPaymentType {
@@ -721,9 +721,8 @@ enum trolleyPaymentType {
721
721
  }
722
722
 
723
723
  enum trolleyPaymentStatus {
724
- created
725
- updated
726
- deleted
724
+ pending
725
+ processing
727
726
  processed
728
727
  failed
729
728
  returned
@@ -788,8 +787,6 @@ model SocialPost {
788
787
  campaign Campaign? @relation(fields: [campaignId], references: [id])
789
788
  lists ListToSocialPost[]
790
789
 
791
- socialPostTags SocialPostTag[]
792
-
793
790
  @@index(campaignId)
794
791
  @@index(userId)
795
792
  @@index(posted)
@@ -797,19 +794,6 @@ model SocialPost {
797
794
  @@map("socialpost")
798
795
  }
799
796
 
800
- model SocialPostTag {
801
- id Int @id @default(autoincrement())
802
- title String
803
- type String
804
-
805
- socialPostId Int
806
-
807
- socialPost SocialPost @relation(fields: [socialPostId], references: [id])
808
-
809
- @@index([title, type])
810
- @@map("socialposttag")
811
- }
812
-
813
797
  model Image {
814
798
  id Int @id @default(autoincrement())
815
799
  url String @db.VarChar(2083)
@@ -1095,6 +1079,7 @@ model ListToSocialPost {
1095
1079
  socialPost SocialPost @relation(fields: [postId], references: [id], onDelete: Cascade)
1096
1080
 
1097
1081
  @@index([listId, postId])
1082
+ @@index([postId])
1098
1083
  @@map("listtosocialpost")
1099
1084
  }
1100
1085
 
package/wasm.js CHANGED
@@ -569,13 +569,6 @@ exports.Prisma.SocialPostScalarFieldEnum = {
569
569
  campaignId: 'campaignId'
570
570
  };
571
571
 
572
- exports.Prisma.SocialPostTagScalarFieldEnum = {
573
- id: 'id',
574
- title: 'title',
575
- type: 'type',
576
- socialPostId: 'socialPostId'
577
- };
578
-
579
572
  exports.Prisma.ImageScalarFieldEnum = {
580
573
  id: 'id',
581
574
  url: 'url',
@@ -1060,11 +1053,6 @@ exports.Prisma.SocialPostOrderByRelevanceFieldEnum = {
1060
1053
  visibility: 'visibility'
1061
1054
  };
1062
1055
 
1063
- exports.Prisma.SocialPostTagOrderByRelevanceFieldEnum = {
1064
- title: 'title',
1065
- type: 'type'
1066
- };
1067
-
1068
1056
  exports.Prisma.ImageOrderByRelevanceFieldEnum = {
1069
1057
  url: 'url',
1070
1058
  size: 'size'
@@ -1180,9 +1168,8 @@ exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
1180
1168
  };
1181
1169
 
1182
1170
  exports.trolleyPaymentStatus = exports.$Enums.trolleyPaymentStatus = {
1183
- created: 'created',
1184
- updated: 'updated',
1185
- deleted: 'deleted',
1171
+ pending: 'pending',
1172
+ processing: 'processing',
1186
1173
  processed: 'processed',
1187
1174
  failed: 'failed',
1188
1175
  returned: 'returned'
@@ -1222,7 +1209,6 @@ exports.Prisma.ModelName = {
1222
1209
  TrolleyPayment: 'TrolleyPayment',
1223
1210
  OptInVariable: 'OptInVariable',
1224
1211
  SocialPost: 'SocialPost',
1225
- SocialPostTag: 'SocialPostTag',
1226
1212
  Image: 'Image',
1227
1213
  BrandImage: 'BrandImage',
1228
1214
  Country: 'Country',