@danielcok17/prisma-db 1.2.2 → 1.4.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',
@@ -283,6 +316,69 @@ exports.Prisma.SessionScalarFieldEnum = {
283
316
  duration: 'duration'
284
317
  };
285
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
+ billingInterval: 'billingInterval',
342
+ currentPeriodStart: 'currentPeriodStart',
343
+ currentPeriodEnd: 'currentPeriodEnd',
344
+ cancelAtPeriodEnd: 'cancelAtPeriodEnd',
345
+ canceledAt: 'canceledAt',
346
+ trialStart: 'trialStart',
347
+ trialEnd: 'trialEnd',
348
+ quantity: 'quantity',
349
+ defaultPaymentMethodId: 'defaultPaymentMethodId',
350
+ metadata: 'metadata',
351
+ createdAt: 'createdAt',
352
+ updatedAt: 'updatedAt'
353
+ };
354
+
355
+ exports.Prisma.StripeEventScalarFieldEnum = {
356
+ id: 'id',
357
+ eventId: 'eventId',
358
+ type: 'type',
359
+ data: 'data',
360
+ processed: 'processed',
361
+ processedAt: 'processedAt',
362
+ error: 'error',
363
+ createdAt: 'createdAt'
364
+ };
365
+
366
+ exports.Prisma.StripePaymentScalarFieldEnum = {
367
+ id: 'id',
368
+ customerId: 'customerId',
369
+ stripePaymentId: 'stripePaymentId',
370
+ stripeCustomerId: 'stripeCustomerId',
371
+ amount: 'amount',
372
+ currency: 'currency',
373
+ status: 'status',
374
+ paymentMethod: 'paymentMethod',
375
+ description: 'description',
376
+ invoiceId: 'invoiceId',
377
+ invoiceUrl: 'invoiceUrl',
378
+ metadata: 'metadata',
379
+ createdAt: 'createdAt'
380
+ };
381
+
286
382
  exports.Prisma.AdminActionLogScalarFieldEnum = {
287
383
  id: 'id',
288
384
  action: 'action',
@@ -347,6 +443,10 @@ exports.Prisma.NullableJsonNullValueInput = {
347
443
  JsonNull: Prisma.JsonNull
348
444
  };
349
445
 
446
+ exports.Prisma.JsonNullValueInput = {
447
+ JsonNull: Prisma.JsonNull
448
+ };
449
+
350
450
  exports.Prisma.QueryMode = {
351
451
  default: 'default',
352
452
  insensitive: 'insensitive'
@@ -362,12 +462,25 @@ exports.Prisma.JsonNullValueFilter = {
362
462
  JsonNull: Prisma.JsonNull,
363
463
  AnyNull: Prisma.AnyNull
364
464
  };
465
+ exports.SubscriptionTier = exports.$Enums.SubscriptionTier = {
466
+ FREE: 'FREE',
467
+ LAWYER: 'LAWYER',
468
+ LAW_FIRM: 'LAW_FIRM',
469
+ ENTERPRISE: 'ENTERPRISE'
470
+ };
471
+
365
472
  exports.ApprovalStatus = exports.$Enums.ApprovalStatus = {
366
473
  PENDING: 'PENDING',
367
474
  APPROVED: 'APPROVED',
368
475
  REJECTED: 'REJECTED'
369
476
  };
370
477
 
478
+ exports.MemberRole = exports.$Enums.MemberRole = {
479
+ OWNER: 'OWNER',
480
+ ADMIN: 'ADMIN',
481
+ MEMBER: 'MEMBER'
482
+ };
483
+
371
484
  exports.Role = exports.$Enums.Role = {
372
485
  USER: 'USER',
373
486
  ASSISTANT: 'ASSISTANT',
@@ -388,6 +501,22 @@ exports.ReferenceType = exports.$Enums.ReferenceType = {
388
501
  OTHER: 'OTHER'
389
502
  };
390
503
 
504
+ exports.SubscriptionStatus = exports.$Enums.SubscriptionStatus = {
505
+ ACTIVE: 'ACTIVE',
506
+ CANCELED: 'CANCELED',
507
+ INCOMPLETE: 'INCOMPLETE',
508
+ INCOMPLETE_EXPIRED: 'INCOMPLETE_EXPIRED',
509
+ PAST_DUE: 'PAST_DUE',
510
+ TRIALING: 'TRIALING',
511
+ UNPAID: 'UNPAID',
512
+ PAUSED: 'PAUSED'
513
+ };
514
+
515
+ exports.BillingInterval = exports.$Enums.BillingInterval = {
516
+ MONTHLY: 'MONTHLY',
517
+ YEARLY: 'YEARLY'
518
+ };
519
+
391
520
  exports.WorkflowStatus = exports.$Enums.WorkflowStatus = {
392
521
  IN_PROGRESS: 'IN_PROGRESS',
393
522
  COMPLETED: 'COMPLETED',
@@ -415,6 +544,8 @@ exports.Prisma.ModelName = {
415
544
  Account: 'Account',
416
545
  User: 'User',
417
546
  UserApprovalRequest: 'UserApprovalRequest',
547
+ Organization: 'Organization',
548
+ OrganizationMember: 'OrganizationMember',
418
549
  Conversation: 'Conversation',
419
550
  Answer: 'Answer',
420
551
  MessageFile: 'MessageFile',
@@ -423,6 +554,10 @@ exports.Prisma.ModelName = {
423
554
  Reference: 'Reference',
424
555
  PageView: 'PageView',
425
556
  Session: 'Session',
557
+ StripeCustomer: 'StripeCustomer',
558
+ StripeSubscription: 'StripeSubscription',
559
+ StripeEvent: 'StripeEvent',
560
+ StripePayment: 'StripePayment',
426
561
  AdminActionLog: 'AdminActionLog',
427
562
  WorkflowLog: 'WorkflowLog',
428
563
  WorkflowStep: 'WorkflowStep',