@danielcok17/prisma-db 1.2.2 → 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',
@@ -283,6 +316,68 @@ 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
+ 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
+
286
381
  exports.Prisma.AdminActionLogScalarFieldEnum = {
287
382
  id: 'id',
288
383
  action: 'action',
@@ -347,6 +442,10 @@ exports.Prisma.NullableJsonNullValueInput = {
347
442
  JsonNull: Prisma.JsonNull
348
443
  };
349
444
 
445
+ exports.Prisma.JsonNullValueInput = {
446
+ JsonNull: Prisma.JsonNull
447
+ };
448
+
350
449
  exports.Prisma.QueryMode = {
351
450
  default: 'default',
352
451
  insensitive: 'insensitive'
@@ -362,12 +461,25 @@ exports.Prisma.JsonNullValueFilter = {
362
461
  JsonNull: Prisma.JsonNull,
363
462
  AnyNull: Prisma.AnyNull
364
463
  };
464
+ exports.SubscriptionTier = exports.$Enums.SubscriptionTier = {
465
+ FREE: 'FREE',
466
+ LAWYER: 'LAWYER',
467
+ LAW_FIRM: 'LAW_FIRM',
468
+ ENTERPRISE: 'ENTERPRISE'
469
+ };
470
+
365
471
  exports.ApprovalStatus = exports.$Enums.ApprovalStatus = {
366
472
  PENDING: 'PENDING',
367
473
  APPROVED: 'APPROVED',
368
474
  REJECTED: 'REJECTED'
369
475
  };
370
476
 
477
+ exports.MemberRole = exports.$Enums.MemberRole = {
478
+ OWNER: 'OWNER',
479
+ ADMIN: 'ADMIN',
480
+ MEMBER: 'MEMBER'
481
+ };
482
+
371
483
  exports.Role = exports.$Enums.Role = {
372
484
  USER: 'USER',
373
485
  ASSISTANT: 'ASSISTANT',
@@ -388,6 +500,17 @@ exports.ReferenceType = exports.$Enums.ReferenceType = {
388
500
  OTHER: 'OTHER'
389
501
  };
390
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
+
391
514
  exports.WorkflowStatus = exports.$Enums.WorkflowStatus = {
392
515
  IN_PROGRESS: 'IN_PROGRESS',
393
516
  COMPLETED: 'COMPLETED',
@@ -415,6 +538,8 @@ exports.Prisma.ModelName = {
415
538
  Account: 'Account',
416
539
  User: 'User',
417
540
  UserApprovalRequest: 'UserApprovalRequest',
541
+ Organization: 'Organization',
542
+ OrganizationMember: 'OrganizationMember',
418
543
  Conversation: 'Conversation',
419
544
  Answer: 'Answer',
420
545
  MessageFile: 'MessageFile',
@@ -423,6 +548,10 @@ exports.Prisma.ModelName = {
423
548
  Reference: 'Reference',
424
549
  PageView: 'PageView',
425
550
  Session: 'Session',
551
+ StripeCustomer: 'StripeCustomer',
552
+ StripeSubscription: 'StripeSubscription',
553
+ StripeEvent: 'StripeEvent',
554
+ StripePayment: 'StripePayment',
426
555
  AdminActionLog: 'AdminActionLog',
427
556
  WorkflowLog: 'WorkflowLog',
428
557
  WorkflowStep: 'WorkflowStep',