@danielcok17/prisma-db 1.2.1 → 1.3.0

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.
@@ -143,7 +143,6 @@ exports.Prisma.UserScalarFieldEnum = {
143
143
  image: 'image',
144
144
  password: 'password',
145
145
  createdAt: 'createdAt',
146
- messageCount: 'messageCount',
147
146
  agreedToTerms: 'agreedToTerms',
148
147
  practiceArea: 'practiceArea',
149
148
  lawFirm: 'lawFirm',
@@ -156,7 +155,10 @@ exports.Prisma.UserScalarFieldEnum = {
156
155
  rejectedBy: 'rejectedBy',
157
156
  rejectionReason: 'rejectionReason',
158
157
  referralSource: 'referralSource',
159
- applicationText: 'applicationText'
158
+ applicationText: 'applicationText',
159
+ subscriptionTier: 'subscriptionTier',
160
+ messageCount: 'messageCount',
161
+ messageCountResetAt: 'messageCountResetAt'
160
162
  };
161
163
 
162
164
  exports.Prisma.UserApprovalRequestScalarFieldEnum = {
@@ -169,6 +171,37 @@ exports.Prisma.UserApprovalRequestScalarFieldEnum = {
169
171
  notes: 'notes'
170
172
  };
171
173
 
174
+ exports.Prisma.OrganizationScalarFieldEnum = {
175
+ id: 'id',
176
+ name: 'name',
177
+ companyNumber: 'companyNumber',
178
+ vatNumber: 'vatNumber',
179
+ taxNumber: 'taxNumber',
180
+ legalForm: 'legalForm',
181
+ billingEmail: 'billingEmail',
182
+ street: 'street',
183
+ city: 'city',
184
+ postalCode: 'postalCode',
185
+ country: 'country',
186
+ subscriptionTier: 'subscriptionTier',
187
+ messageCount: 'messageCount',
188
+ messageLimit: 'messageLimit',
189
+ messageCountResetAt: 'messageCountResetAt',
190
+ isActive: 'isActive',
191
+ maxMembers: 'maxMembers',
192
+ ownerId: 'ownerId',
193
+ createdAt: 'createdAt',
194
+ updatedAt: 'updatedAt'
195
+ };
196
+
197
+ exports.Prisma.OrganizationMemberScalarFieldEnum = {
198
+ id: 'id',
199
+ organizationId: 'organizationId',
200
+ userId: 'userId',
201
+ role: 'role',
202
+ joinedAt: 'joinedAt'
203
+ };
204
+
172
205
  exports.Prisma.ConversationScalarFieldEnum = {
173
206
  id: 'id',
174
207
  name: 'name',
@@ -199,6 +232,15 @@ exports.Prisma.AnswerScalarFieldEnum = {
199
232
  updatedAt: 'updatedAt'
200
233
  };
201
234
 
235
+ exports.Prisma.MessageFileScalarFieldEnum = {
236
+ id: 'id',
237
+ answerId: 'answerId',
238
+ fileName: 'fileName',
239
+ fileType: 'fileType',
240
+ base64Data: 'base64Data',
241
+ uploadedAt: 'uploadedAt'
242
+ };
243
+
202
244
  exports.Prisma.AnswerMetricsScalarFieldEnum = {
203
245
  id: 'id',
204
246
  answerId: 'answerId',
@@ -274,6 +316,68 @@ exports.Prisma.SessionScalarFieldEnum = {
274
316
  duration: 'duration'
275
317
  };
276
318
 
319
+ exports.Prisma.StripeCustomerScalarFieldEnum = {
320
+ id: 'id',
321
+ userId: 'userId',
322
+ organizationId: 'organizationId',
323
+ stripeCustomerId: 'stripeCustomerId',
324
+ email: 'email',
325
+ name: 'name',
326
+ billingAddress: 'billingAddress',
327
+ taxIds: 'taxIds',
328
+ createdAt: 'createdAt',
329
+ updatedAt: 'updatedAt'
330
+ };
331
+
332
+ exports.Prisma.StripeSubscriptionScalarFieldEnum = {
333
+ id: 'id',
334
+ customerId: 'customerId',
335
+ stripeCustomerId: 'stripeCustomerId',
336
+ stripeSubscriptionId: 'stripeSubscriptionId',
337
+ stripePriceId: 'stripePriceId',
338
+ stripeProductId: 'stripeProductId',
339
+ status: 'status',
340
+ tier: 'tier',
341
+ currentPeriodStart: 'currentPeriodStart',
342
+ currentPeriodEnd: 'currentPeriodEnd',
343
+ cancelAtPeriodEnd: 'cancelAtPeriodEnd',
344
+ canceledAt: 'canceledAt',
345
+ trialStart: 'trialStart',
346
+ trialEnd: 'trialEnd',
347
+ quantity: 'quantity',
348
+ defaultPaymentMethodId: 'defaultPaymentMethodId',
349
+ metadata: 'metadata',
350
+ createdAt: 'createdAt',
351
+ updatedAt: 'updatedAt'
352
+ };
353
+
354
+ exports.Prisma.StripeEventScalarFieldEnum = {
355
+ id: 'id',
356
+ eventId: 'eventId',
357
+ type: 'type',
358
+ data: 'data',
359
+ processed: 'processed',
360
+ processedAt: 'processedAt',
361
+ error: 'error',
362
+ createdAt: 'createdAt'
363
+ };
364
+
365
+ exports.Prisma.StripePaymentScalarFieldEnum = {
366
+ id: 'id',
367
+ customerId: 'customerId',
368
+ stripePaymentId: 'stripePaymentId',
369
+ stripeCustomerId: 'stripeCustomerId',
370
+ amount: 'amount',
371
+ currency: 'currency',
372
+ status: 'status',
373
+ paymentMethod: 'paymentMethod',
374
+ description: 'description',
375
+ invoiceId: 'invoiceId',
376
+ invoiceUrl: 'invoiceUrl',
377
+ metadata: 'metadata',
378
+ createdAt: 'createdAt'
379
+ };
380
+
277
381
  exports.Prisma.AdminActionLogScalarFieldEnum = {
278
382
  id: 'id',
279
383
  action: 'action',
@@ -338,6 +442,10 @@ exports.Prisma.NullableJsonNullValueInput = {
338
442
  JsonNull: Prisma.JsonNull
339
443
  };
340
444
 
445
+ exports.Prisma.JsonNullValueInput = {
446
+ JsonNull: Prisma.JsonNull
447
+ };
448
+
341
449
  exports.Prisma.QueryMode = {
342
450
  default: 'default',
343
451
  insensitive: 'insensitive'
@@ -353,12 +461,25 @@ exports.Prisma.JsonNullValueFilter = {
353
461
  JsonNull: Prisma.JsonNull,
354
462
  AnyNull: Prisma.AnyNull
355
463
  };
464
+ exports.SubscriptionTier = exports.$Enums.SubscriptionTier = {
465
+ FREE: 'FREE',
466
+ LAWYER: 'LAWYER',
467
+ LAW_FIRM: 'LAW_FIRM',
468
+ ENTERPRISE: 'ENTERPRISE'
469
+ };
470
+
356
471
  exports.ApprovalStatus = exports.$Enums.ApprovalStatus = {
357
472
  PENDING: 'PENDING',
358
473
  APPROVED: 'APPROVED',
359
474
  REJECTED: 'REJECTED'
360
475
  };
361
476
 
477
+ exports.MemberRole = exports.$Enums.MemberRole = {
478
+ OWNER: 'OWNER',
479
+ ADMIN: 'ADMIN',
480
+ MEMBER: 'MEMBER'
481
+ };
482
+
362
483
  exports.Role = exports.$Enums.Role = {
363
484
  USER: 'USER',
364
485
  ASSISTANT: 'ASSISTANT',
@@ -379,6 +500,17 @@ exports.ReferenceType = exports.$Enums.ReferenceType = {
379
500
  OTHER: 'OTHER'
380
501
  };
381
502
 
503
+ exports.SubscriptionStatus = exports.$Enums.SubscriptionStatus = {
504
+ ACTIVE: 'ACTIVE',
505
+ CANCELED: 'CANCELED',
506
+ INCOMPLETE: 'INCOMPLETE',
507
+ INCOMPLETE_EXPIRED: 'INCOMPLETE_EXPIRED',
508
+ PAST_DUE: 'PAST_DUE',
509
+ TRIALING: 'TRIALING',
510
+ UNPAID: 'UNPAID',
511
+ PAUSED: 'PAUSED'
512
+ };
513
+
382
514
  exports.WorkflowStatus = exports.$Enums.WorkflowStatus = {
383
515
  IN_PROGRESS: 'IN_PROGRESS',
384
516
  COMPLETED: 'COMPLETED',
@@ -406,13 +538,20 @@ exports.Prisma.ModelName = {
406
538
  Account: 'Account',
407
539
  User: 'User',
408
540
  UserApprovalRequest: 'UserApprovalRequest',
541
+ Organization: 'Organization',
542
+ OrganizationMember: 'OrganizationMember',
409
543
  Conversation: 'Conversation',
410
544
  Answer: 'Answer',
545
+ MessageFile: 'MessageFile',
411
546
  AnswerMetrics: 'AnswerMetrics',
412
547
  Feedback: 'Feedback',
413
548
  Reference: 'Reference',
414
549
  PageView: 'PageView',
415
550
  Session: 'Session',
551
+ StripeCustomer: 'StripeCustomer',
552
+ StripeSubscription: 'StripeSubscription',
553
+ StripeEvent: 'StripeEvent',
554
+ StripePayment: 'StripePayment',
416
555
  AdminActionLog: 'AdminActionLog',
417
556
  WorkflowLog: 'WorkflowLog',
418
557
  WorkflowStep: 'WorkflowStep',