@valentine-efagene/qshelter-common 2.0.88 → 2.0.90

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.
Files changed (29) hide show
  1. package/dist/generated/client/browser.d.ts +10 -2
  2. package/dist/generated/client/client.d.ts +10 -2
  3. package/dist/generated/client/commonInputTypes.d.ts +30 -0
  4. package/dist/generated/client/enums.d.ts +5 -0
  5. package/dist/generated/client/enums.js +4 -0
  6. package/dist/generated/client/internal/class.d.ts +11 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +113 -16
  9. package/dist/generated/client/internal/prismaNamespace.js +38 -14
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +41 -15
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +38 -14
  12. package/dist/generated/client/models/Permission.d.ts +333 -68
  13. package/dist/generated/client/models/Role.d.ts +403 -3
  14. package/dist/generated/client/models/Tenant.d.ts +761 -4
  15. package/dist/generated/client/models/TenantMembership.d.ts +1395 -0
  16. package/dist/generated/client/models/TenantMembership.js +1 -0
  17. package/dist/generated/client/models/User.d.ts +375 -0
  18. package/dist/generated/client/models/UserRole.d.ts +2 -1
  19. package/dist/generated/client/models/index.d.ts +1 -0
  20. package/dist/generated/client/models/index.js +1 -0
  21. package/dist/generated/client/models.d.ts +1 -0
  22. package/dist/src/events/policies/policy-event.d.ts +50 -5
  23. package/dist/src/events/policies/policy-event.js +4 -0
  24. package/dist/src/events/policies/policy-publisher.d.ts +13 -1
  25. package/dist/src/events/policies/policy-publisher.js +24 -0
  26. package/dist/src/prisma/tenant.js +13 -5
  27. package/package.json +1 -1
  28. package/prisma/migrations/20260111091027_rbac_redesign_federated_users/migration.sql +79 -0
  29. package/prisma/schema.prisma +84 -20
@@ -151,6 +151,9 @@ export type TenantWhereInput = {
151
151
  paymentPlans?: Prisma.PaymentPlanListRelationFilter;
152
152
  paymentMethods?: Prisma.PropertyPaymentMethodListRelationFilter;
153
153
  contracts?: Prisma.ContractListRelationFilter;
154
+ roles?: Prisma.RoleListRelationFilter;
155
+ permissions?: Prisma.PermissionListRelationFilter;
156
+ memberships?: Prisma.TenantMembershipListRelationFilter;
154
157
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestListRelationFilter;
155
158
  documentRequirementRules?: Prisma.DocumentRequirementRuleListRelationFilter;
156
159
  contractTerminations?: Prisma.ContractTerminationListRelationFilter;
@@ -177,6 +180,9 @@ export type TenantOrderByWithRelationInput = {
177
180
  paymentPlans?: Prisma.PaymentPlanOrderByRelationAggregateInput;
178
181
  paymentMethods?: Prisma.PropertyPaymentMethodOrderByRelationAggregateInput;
179
182
  contracts?: Prisma.ContractOrderByRelationAggregateInput;
183
+ roles?: Prisma.RoleOrderByRelationAggregateInput;
184
+ permissions?: Prisma.PermissionOrderByRelationAggregateInput;
185
+ memberships?: Prisma.TenantMembershipOrderByRelationAggregateInput;
180
186
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestOrderByRelationAggregateInput;
181
187
  documentRequirementRules?: Prisma.DocumentRequirementRuleOrderByRelationAggregateInput;
182
188
  contractTerminations?: Prisma.ContractTerminationOrderByRelationAggregateInput;
@@ -207,6 +213,9 @@ export type TenantWhereUniqueInput = Prisma.AtLeast<{
207
213
  paymentPlans?: Prisma.PaymentPlanListRelationFilter;
208
214
  paymentMethods?: Prisma.PropertyPaymentMethodListRelationFilter;
209
215
  contracts?: Prisma.ContractListRelationFilter;
216
+ roles?: Prisma.RoleListRelationFilter;
217
+ permissions?: Prisma.PermissionListRelationFilter;
218
+ memberships?: Prisma.TenantMembershipListRelationFilter;
210
219
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestListRelationFilter;
211
220
  documentRequirementRules?: Prisma.DocumentRequirementRuleListRelationFilter;
212
221
  contractTerminations?: Prisma.ContractTerminationListRelationFilter;
@@ -255,6 +264,9 @@ export type TenantCreateInput = {
255
264
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
256
265
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
257
266
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
267
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
268
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
269
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
258
270
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
259
271
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
260
272
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -281,6 +293,9 @@ export type TenantUncheckedCreateInput = {
281
293
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
282
294
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
283
295
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
296
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
297
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
298
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
284
299
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
285
300
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
286
301
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -307,6 +322,9 @@ export type TenantUpdateInput = {
307
322
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
308
323
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
309
324
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
325
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
326
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
327
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
310
328
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
311
329
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
312
330
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -333,6 +351,9 @@ export type TenantUncheckedUpdateInput = {
333
351
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
334
352
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
335
353
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
354
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
355
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
356
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
336
357
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
337
358
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
338
359
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -375,6 +396,10 @@ export type TenantNullableScalarRelationFilter = {
375
396
  is?: Prisma.TenantWhereInput | null;
376
397
  isNot?: Prisma.TenantWhereInput | null;
377
398
  };
399
+ export type TenantScalarRelationFilter = {
400
+ is?: Prisma.TenantWhereInput;
401
+ isNot?: Prisma.TenantWhereInput;
402
+ };
378
403
  export type TenantOrderByRelevanceInput = {
379
404
  fields: Prisma.TenantOrderByRelevanceFieldEnum | Prisma.TenantOrderByRelevanceFieldEnum[];
380
405
  sort: Prisma.SortOrder;
@@ -404,10 +429,6 @@ export type TenantMinOrderByAggregateInput = {
404
429
  createdAt?: Prisma.SortOrder;
405
430
  updatedAt?: Prisma.SortOrder;
406
431
  };
407
- export type TenantScalarRelationFilter = {
408
- is?: Prisma.TenantWhereInput;
409
- isNot?: Prisma.TenantWhereInput;
410
- };
411
432
  export type TenantCreateNestedOneWithoutUsersInput = {
412
433
  create?: Prisma.XOR<Prisma.TenantCreateWithoutUsersInput, Prisma.TenantUncheckedCreateWithoutUsersInput>;
413
434
  connectOrCreate?: Prisma.TenantCreateOrConnectWithoutUsersInput;
@@ -422,6 +443,46 @@ export type TenantUpdateOneWithoutUsersNestedInput = {
422
443
  connect?: Prisma.TenantWhereUniqueInput;
423
444
  update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutUsersInput, Prisma.TenantUpdateWithoutUsersInput>, Prisma.TenantUncheckedUpdateWithoutUsersInput>;
424
445
  };
446
+ export type TenantCreateNestedOneWithoutRolesInput = {
447
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutRolesInput, Prisma.TenantUncheckedCreateWithoutRolesInput>;
448
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutRolesInput;
449
+ connect?: Prisma.TenantWhereUniqueInput;
450
+ };
451
+ export type TenantUpdateOneWithoutRolesNestedInput = {
452
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutRolesInput, Prisma.TenantUncheckedCreateWithoutRolesInput>;
453
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutRolesInput;
454
+ upsert?: Prisma.TenantUpsertWithoutRolesInput;
455
+ disconnect?: Prisma.TenantWhereInput | boolean;
456
+ delete?: Prisma.TenantWhereInput | boolean;
457
+ connect?: Prisma.TenantWhereUniqueInput;
458
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutRolesInput, Prisma.TenantUpdateWithoutRolesInput>, Prisma.TenantUncheckedUpdateWithoutRolesInput>;
459
+ };
460
+ export type TenantCreateNestedOneWithoutPermissionsInput = {
461
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutPermissionsInput, Prisma.TenantUncheckedCreateWithoutPermissionsInput>;
462
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutPermissionsInput;
463
+ connect?: Prisma.TenantWhereUniqueInput;
464
+ };
465
+ export type TenantUpdateOneWithoutPermissionsNestedInput = {
466
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutPermissionsInput, Prisma.TenantUncheckedCreateWithoutPermissionsInput>;
467
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutPermissionsInput;
468
+ upsert?: Prisma.TenantUpsertWithoutPermissionsInput;
469
+ disconnect?: Prisma.TenantWhereInput | boolean;
470
+ delete?: Prisma.TenantWhereInput | boolean;
471
+ connect?: Prisma.TenantWhereUniqueInput;
472
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutPermissionsInput, Prisma.TenantUpdateWithoutPermissionsInput>, Prisma.TenantUncheckedUpdateWithoutPermissionsInput>;
473
+ };
474
+ export type TenantCreateNestedOneWithoutMembershipsInput = {
475
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutMembershipsInput, Prisma.TenantUncheckedCreateWithoutMembershipsInput>;
476
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutMembershipsInput;
477
+ connect?: Prisma.TenantWhereUniqueInput;
478
+ };
479
+ export type TenantUpdateOneRequiredWithoutMembershipsNestedInput = {
480
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutMembershipsInput, Prisma.TenantUncheckedCreateWithoutMembershipsInput>;
481
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutMembershipsInput;
482
+ upsert?: Prisma.TenantUpsertWithoutMembershipsInput;
483
+ connect?: Prisma.TenantWhereUniqueInput;
484
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutMembershipsInput, Prisma.TenantUpdateWithoutMembershipsInput>, Prisma.TenantUncheckedUpdateWithoutMembershipsInput>;
485
+ };
425
486
  export type TenantCreateNestedOneWithoutApiKeysInput = {
426
487
  create?: Prisma.XOR<Prisma.TenantCreateWithoutApiKeysInput, Prisma.TenantUncheckedCreateWithoutApiKeysInput>;
427
488
  connectOrCreate?: Prisma.TenantCreateOrConnectWithoutApiKeysInput;
@@ -639,6 +700,9 @@ export type TenantCreateWithoutUsersInput = {
639
700
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
640
701
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
641
702
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
703
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
704
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
705
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
642
706
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
643
707
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
644
708
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -664,6 +728,9 @@ export type TenantUncheckedCreateWithoutUsersInput = {
664
728
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
665
729
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
666
730
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
731
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
732
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
733
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
667
734
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
668
735
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
669
736
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -702,6 +769,9 @@ export type TenantUpdateWithoutUsersInput = {
702
769
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
703
770
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
704
771
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
772
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
773
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
774
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
705
775
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
706
776
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
707
777
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -727,6 +797,384 @@ export type TenantUncheckedUpdateWithoutUsersInput = {
727
797
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
728
798
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
729
799
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
800
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
801
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
802
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
803
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
804
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
805
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
806
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
807
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
808
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
809
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
810
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
811
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
812
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
813
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
814
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
815
+ contractRefunds?: Prisma.ContractRefundUncheckedUpdateManyWithoutTenantNestedInput;
816
+ };
817
+ export type TenantCreateWithoutRolesInput = {
818
+ id?: string;
819
+ name: string;
820
+ subdomain: string;
821
+ isActive?: boolean;
822
+ createdAt?: Date | string;
823
+ updatedAt?: Date | string;
824
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
825
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
826
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
827
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
828
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
829
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
830
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
831
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
832
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
833
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
834
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
835
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
836
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
837
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
838
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
839
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
840
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
841
+ propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
842
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
843
+ contractRefunds?: Prisma.ContractRefundCreateNestedManyWithoutTenantInput;
844
+ };
845
+ export type TenantUncheckedCreateWithoutRolesInput = {
846
+ id?: string;
847
+ name: string;
848
+ subdomain: string;
849
+ isActive?: boolean;
850
+ createdAt?: Date | string;
851
+ updatedAt?: Date | string;
852
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
853
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
854
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
855
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
856
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
857
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
858
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
859
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
860
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
861
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
862
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
863
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
864
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
865
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
866
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
867
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
868
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
869
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
870
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
871
+ contractRefunds?: Prisma.ContractRefundUncheckedCreateNestedManyWithoutTenantInput;
872
+ };
873
+ export type TenantCreateOrConnectWithoutRolesInput = {
874
+ where: Prisma.TenantWhereUniqueInput;
875
+ create: Prisma.XOR<Prisma.TenantCreateWithoutRolesInput, Prisma.TenantUncheckedCreateWithoutRolesInput>;
876
+ };
877
+ export type TenantUpsertWithoutRolesInput = {
878
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutRolesInput, Prisma.TenantUncheckedUpdateWithoutRolesInput>;
879
+ create: Prisma.XOR<Prisma.TenantCreateWithoutRolesInput, Prisma.TenantUncheckedCreateWithoutRolesInput>;
880
+ where?: Prisma.TenantWhereInput;
881
+ };
882
+ export type TenantUpdateToOneWithWhereWithoutRolesInput = {
883
+ where?: Prisma.TenantWhereInput;
884
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutRolesInput, Prisma.TenantUncheckedUpdateWithoutRolesInput>;
885
+ };
886
+ export type TenantUpdateWithoutRolesInput = {
887
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
888
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
889
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
890
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
891
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
892
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
893
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
894
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
895
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
896
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
897
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
898
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
899
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
900
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
901
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
902
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
903
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
904
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
905
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
906
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
907
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
908
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
909
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
910
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
911
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
912
+ contractRefunds?: Prisma.ContractRefundUpdateManyWithoutTenantNestedInput;
913
+ };
914
+ export type TenantUncheckedUpdateWithoutRolesInput = {
915
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
916
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
917
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
918
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
919
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
920
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
921
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
922
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
923
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
924
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
925
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
926
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
927
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
928
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
929
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
930
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
931
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
932
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
933
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
934
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
935
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
936
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
937
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
938
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
939
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
940
+ contractRefunds?: Prisma.ContractRefundUncheckedUpdateManyWithoutTenantNestedInput;
941
+ };
942
+ export type TenantCreateWithoutPermissionsInput = {
943
+ id?: string;
944
+ name: string;
945
+ subdomain: string;
946
+ isActive?: boolean;
947
+ createdAt?: Date | string;
948
+ updatedAt?: Date | string;
949
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
950
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
951
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
952
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
953
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
954
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
955
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
956
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
957
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
958
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
959
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
960
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
961
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
962
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
963
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
964
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
965
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
966
+ propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
967
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
968
+ contractRefunds?: Prisma.ContractRefundCreateNestedManyWithoutTenantInput;
969
+ };
970
+ export type TenantUncheckedCreateWithoutPermissionsInput = {
971
+ id?: string;
972
+ name: string;
973
+ subdomain: string;
974
+ isActive?: boolean;
975
+ createdAt?: Date | string;
976
+ updatedAt?: Date | string;
977
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
978
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
979
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
980
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
981
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
982
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
983
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
984
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
985
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
986
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
987
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
988
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
989
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
990
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
991
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
992
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
993
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
994
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
995
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
996
+ contractRefunds?: Prisma.ContractRefundUncheckedCreateNestedManyWithoutTenantInput;
997
+ };
998
+ export type TenantCreateOrConnectWithoutPermissionsInput = {
999
+ where: Prisma.TenantWhereUniqueInput;
1000
+ create: Prisma.XOR<Prisma.TenantCreateWithoutPermissionsInput, Prisma.TenantUncheckedCreateWithoutPermissionsInput>;
1001
+ };
1002
+ export type TenantUpsertWithoutPermissionsInput = {
1003
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutPermissionsInput, Prisma.TenantUncheckedUpdateWithoutPermissionsInput>;
1004
+ create: Prisma.XOR<Prisma.TenantCreateWithoutPermissionsInput, Prisma.TenantUncheckedCreateWithoutPermissionsInput>;
1005
+ where?: Prisma.TenantWhereInput;
1006
+ };
1007
+ export type TenantUpdateToOneWithWhereWithoutPermissionsInput = {
1008
+ where?: Prisma.TenantWhereInput;
1009
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutPermissionsInput, Prisma.TenantUncheckedUpdateWithoutPermissionsInput>;
1010
+ };
1011
+ export type TenantUpdateWithoutPermissionsInput = {
1012
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1013
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1014
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1015
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1016
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1017
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1018
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
1019
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
1020
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1021
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1022
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1023
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
1024
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1025
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1026
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1027
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1028
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1029
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1030
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1031
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1032
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1033
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1034
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1035
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1036
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1037
+ contractRefunds?: Prisma.ContractRefundUpdateManyWithoutTenantNestedInput;
1038
+ };
1039
+ export type TenantUncheckedUpdateWithoutPermissionsInput = {
1040
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1041
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1042
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1043
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1044
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1045
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1046
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
1047
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
1048
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1049
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1050
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1051
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
1052
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1053
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1054
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1055
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1056
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1057
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1058
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1059
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1060
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1061
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1062
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1063
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTenantNestedInput;
1064
+ approvalRequests?: Prisma.ApprovalRequestUncheckedUpdateManyWithoutTenantNestedInput;
1065
+ contractRefunds?: Prisma.ContractRefundUncheckedUpdateManyWithoutTenantNestedInput;
1066
+ };
1067
+ export type TenantCreateWithoutMembershipsInput = {
1068
+ id?: string;
1069
+ name: string;
1070
+ subdomain: string;
1071
+ isActive?: boolean;
1072
+ createdAt?: Date | string;
1073
+ updatedAt?: Date | string;
1074
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
1075
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
1076
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1077
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1078
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1079
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
1080
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
1081
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1082
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1083
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1084
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1085
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1086
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1087
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1088
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1089
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1090
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1091
+ propertyTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTenantInput;
1092
+ approvalRequests?: Prisma.ApprovalRequestCreateNestedManyWithoutTenantInput;
1093
+ contractRefunds?: Prisma.ContractRefundCreateNestedManyWithoutTenantInput;
1094
+ };
1095
+ export type TenantUncheckedCreateWithoutMembershipsInput = {
1096
+ id?: string;
1097
+ name: string;
1098
+ subdomain: string;
1099
+ isActive?: boolean;
1100
+ createdAt?: Date | string;
1101
+ updatedAt?: Date | string;
1102
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
1103
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
1104
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1105
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1106
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1107
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
1108
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
1109
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1110
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1111
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1112
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1113
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1114
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1115
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1116
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1117
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1118
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1119
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTenantInput;
1120
+ approvalRequests?: Prisma.ApprovalRequestUncheckedCreateNestedManyWithoutTenantInput;
1121
+ contractRefunds?: Prisma.ContractRefundUncheckedCreateNestedManyWithoutTenantInput;
1122
+ };
1123
+ export type TenantCreateOrConnectWithoutMembershipsInput = {
1124
+ where: Prisma.TenantWhereUniqueInput;
1125
+ create: Prisma.XOR<Prisma.TenantCreateWithoutMembershipsInput, Prisma.TenantUncheckedCreateWithoutMembershipsInput>;
1126
+ };
1127
+ export type TenantUpsertWithoutMembershipsInput = {
1128
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutMembershipsInput, Prisma.TenantUncheckedUpdateWithoutMembershipsInput>;
1129
+ create: Prisma.XOR<Prisma.TenantCreateWithoutMembershipsInput, Prisma.TenantUncheckedCreateWithoutMembershipsInput>;
1130
+ where?: Prisma.TenantWhereInput;
1131
+ };
1132
+ export type TenantUpdateToOneWithWhereWithoutMembershipsInput = {
1133
+ where?: Prisma.TenantWhereInput;
1134
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutMembershipsInput, Prisma.TenantUncheckedUpdateWithoutMembershipsInput>;
1135
+ };
1136
+ export type TenantUpdateWithoutMembershipsInput = {
1137
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1138
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1139
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1140
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1141
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1142
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1143
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
1144
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
1145
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1146
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1147
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1148
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
1149
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
1150
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1151
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1152
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1153
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1154
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1155
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1156
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1157
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1158
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1159
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1160
+ propertyTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTenantNestedInput;
1161
+ approvalRequests?: Prisma.ApprovalRequestUpdateManyWithoutTenantNestedInput;
1162
+ contractRefunds?: Prisma.ContractRefundUpdateManyWithoutTenantNestedInput;
1163
+ };
1164
+ export type TenantUncheckedUpdateWithoutMembershipsInput = {
1165
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1166
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1167
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1168
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1169
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1170
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1171
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
1172
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
1173
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1174
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1175
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1176
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
1177
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
730
1178
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
731
1179
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
732
1180
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -753,6 +1201,9 @@ export type TenantCreateWithoutApiKeysInput = {
753
1201
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
754
1202
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
755
1203
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1204
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
1205
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
1206
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
756
1207
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
757
1208
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
758
1209
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -778,6 +1229,9 @@ export type TenantUncheckedCreateWithoutApiKeysInput = {
778
1229
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
779
1230
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
780
1231
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1232
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
1233
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
1234
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
781
1235
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
782
1236
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
783
1237
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -816,6 +1270,9 @@ export type TenantUpdateWithoutApiKeysInput = {
816
1270
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
817
1271
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
818
1272
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1273
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
1274
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
1275
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
819
1276
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
820
1277
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
821
1278
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -841,6 +1298,9 @@ export type TenantUncheckedUpdateWithoutApiKeysInput = {
841
1298
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
842
1299
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
843
1300
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1301
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
1302
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
1303
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
844
1304
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
845
1305
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
846
1306
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -865,6 +1325,9 @@ export type TenantCreateWithoutPropertiesInput = {
865
1325
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
866
1326
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
867
1327
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1328
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
1329
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
1330
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
868
1331
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
869
1332
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
870
1333
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -890,6 +1353,9 @@ export type TenantUncheckedCreateWithoutPropertiesInput = {
890
1353
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
891
1354
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
892
1355
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1356
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
1357
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
1358
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
893
1359
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
894
1360
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
895
1361
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -928,6 +1394,9 @@ export type TenantUpdateWithoutPropertiesInput = {
928
1394
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
929
1395
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
930
1396
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1397
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
1398
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
1399
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
931
1400
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
932
1401
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
933
1402
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -953,6 +1422,9 @@ export type TenantUncheckedUpdateWithoutPropertiesInput = {
953
1422
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
954
1423
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
955
1424
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1425
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
1426
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
1427
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
956
1428
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
957
1429
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
958
1430
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -978,6 +1450,9 @@ export type TenantCreateWithoutPaymentPlansInput = {
978
1450
  properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
979
1451
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
980
1452
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1453
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
1454
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
1455
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
981
1456
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
982
1457
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
983
1458
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -1003,6 +1478,9 @@ export type TenantUncheckedCreateWithoutPaymentPlansInput = {
1003
1478
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
1004
1479
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1005
1480
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1481
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
1482
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
1483
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1006
1484
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1007
1485
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1008
1486
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -1041,6 +1519,9 @@ export type TenantUpdateWithoutPaymentPlansInput = {
1041
1519
  properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
1042
1520
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1043
1521
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1522
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
1523
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
1524
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1044
1525
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1045
1526
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1046
1527
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -1066,6 +1547,9 @@ export type TenantUncheckedUpdateWithoutPaymentPlansInput = {
1066
1547
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
1067
1548
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1068
1549
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1550
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
1551
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
1552
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1069
1553
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1070
1554
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1071
1555
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1091,6 +1575,9 @@ export type TenantCreateWithoutPaymentMethodsInput = {
1091
1575
  properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
1092
1576
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1093
1577
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1578
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
1579
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
1580
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1094
1581
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1095
1582
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1096
1583
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -1116,6 +1603,9 @@ export type TenantUncheckedCreateWithoutPaymentMethodsInput = {
1116
1603
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
1117
1604
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1118
1605
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1606
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
1607
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
1608
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1119
1609
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1120
1610
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1121
1611
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -1154,6 +1644,9 @@ export type TenantUpdateWithoutPaymentMethodsInput = {
1154
1644
  properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
1155
1645
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1156
1646
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1647
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
1648
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
1649
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1157
1650
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1158
1651
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1159
1652
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -1179,6 +1672,9 @@ export type TenantUncheckedUpdateWithoutPaymentMethodsInput = {
1179
1672
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
1180
1673
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1181
1674
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1675
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
1676
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
1677
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1182
1678
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1183
1679
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1184
1680
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1204,6 +1700,9 @@ export type TenantCreateWithoutContractsInput = {
1204
1700
  properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
1205
1701
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1206
1702
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1703
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
1704
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
1705
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1207
1706
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1208
1707
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1209
1708
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -1229,6 +1728,9 @@ export type TenantUncheckedCreateWithoutContractsInput = {
1229
1728
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
1230
1729
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1231
1730
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1731
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
1732
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
1733
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1232
1734
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1233
1735
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1234
1736
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -1267,6 +1769,9 @@ export type TenantUpdateWithoutContractsInput = {
1267
1769
  properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
1268
1770
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1269
1771
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1772
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
1773
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
1774
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1270
1775
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1271
1776
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1272
1777
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -1292,6 +1797,9 @@ export type TenantUncheckedUpdateWithoutContractsInput = {
1292
1797
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
1293
1798
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1294
1799
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1800
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
1801
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
1802
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1295
1803
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1296
1804
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1297
1805
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1318,6 +1826,9 @@ export type TenantCreateWithoutContractRefundsInput = {
1318
1826
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1319
1827
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1320
1828
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1829
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
1830
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
1831
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1321
1832
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1322
1833
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1323
1834
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -1343,6 +1854,9 @@ export type TenantUncheckedCreateWithoutContractRefundsInput = {
1343
1854
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1344
1855
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1345
1856
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1857
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
1858
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
1859
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1346
1860
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1347
1861
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1348
1862
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -1381,6 +1895,9 @@ export type TenantUpdateWithoutContractRefundsInput = {
1381
1895
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1382
1896
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1383
1897
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1898
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
1899
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
1900
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1384
1901
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1385
1902
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1386
1903
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -1406,6 +1923,9 @@ export type TenantUncheckedUpdateWithoutContractRefundsInput = {
1406
1923
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1407
1924
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1408
1925
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1926
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
1927
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
1928
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1409
1929
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1410
1930
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1411
1931
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1431,6 +1951,9 @@ export type TenantCreateWithoutDocumentTemplatesInput = {
1431
1951
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1432
1952
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1433
1953
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1954
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
1955
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
1956
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1434
1957
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1435
1958
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1436
1959
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -1456,6 +1979,9 @@ export type TenantUncheckedCreateWithoutDocumentTemplatesInput = {
1456
1979
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1457
1980
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1458
1981
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1982
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
1983
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
1984
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1459
1985
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1460
1986
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1461
1987
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -1494,6 +2020,9 @@ export type TenantUpdateWithoutDocumentTemplatesInput = {
1494
2020
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1495
2021
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1496
2022
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2023
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
2024
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
2025
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1497
2026
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1498
2027
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1499
2028
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -1519,6 +2048,9 @@ export type TenantUncheckedUpdateWithoutDocumentTemplatesInput = {
1519
2048
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1520
2049
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1521
2050
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2051
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
2052
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
2053
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1522
2054
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1523
2055
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1524
2056
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1544,6 +2076,9 @@ export type TenantCreateWithoutOfferLettersInput = {
1544
2076
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1545
2077
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1546
2078
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2079
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
2080
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
2081
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1547
2082
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1548
2083
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1549
2084
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -1569,6 +2104,9 @@ export type TenantUncheckedCreateWithoutOfferLettersInput = {
1569
2104
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1570
2105
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1571
2106
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2107
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
2108
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
2109
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1572
2110
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1573
2111
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1574
2112
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -1607,6 +2145,9 @@ export type TenantUpdateWithoutOfferLettersInput = {
1607
2145
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1608
2146
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1609
2147
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2148
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
2149
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
2150
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1610
2151
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1611
2152
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1612
2153
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -1632,6 +2173,9 @@ export type TenantUncheckedUpdateWithoutOfferLettersInput = {
1632
2173
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1633
2174
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1634
2175
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2176
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
2177
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
2178
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1635
2179
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1636
2180
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1637
2181
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1657,6 +2201,9 @@ export type TenantCreateWithoutContractTerminationsInput = {
1657
2201
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1658
2202
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1659
2203
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2204
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
2205
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
2206
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1660
2207
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1661
2208
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1662
2209
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
@@ -1682,6 +2229,9 @@ export type TenantUncheckedCreateWithoutContractTerminationsInput = {
1682
2229
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1683
2230
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1684
2231
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2232
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
2233
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
2234
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1685
2235
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1686
2236
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1687
2237
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
@@ -1720,6 +2270,9 @@ export type TenantUpdateWithoutContractTerminationsInput = {
1720
2270
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1721
2271
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1722
2272
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2273
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
2274
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
2275
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1723
2276
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1724
2277
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1725
2278
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
@@ -1745,6 +2298,9 @@ export type TenantUncheckedUpdateWithoutContractTerminationsInput = {
1745
2298
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1746
2299
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1747
2300
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2301
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
2302
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
2303
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1748
2304
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1749
2305
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1750
2306
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1770,6 +2326,9 @@ export type TenantCreateWithoutPaymentMethodChangeRequestsInput = {
1770
2326
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1771
2327
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1772
2328
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2329
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
2330
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
2331
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1773
2332
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1774
2333
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1775
2334
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
@@ -1795,6 +2354,9 @@ export type TenantUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
1795
2354
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1796
2355
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1797
2356
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2357
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
2358
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
2359
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1798
2360
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1799
2361
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1800
2362
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
@@ -1833,6 +2395,9 @@ export type TenantUpdateWithoutPaymentMethodChangeRequestsInput = {
1833
2395
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1834
2396
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1835
2397
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2398
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
2399
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
2400
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1836
2401
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1837
2402
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1838
2403
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
@@ -1858,6 +2423,9 @@ export type TenantUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
1858
2423
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1859
2424
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1860
2425
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2426
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
2427
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
2428
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1861
2429
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1862
2430
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1863
2431
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1883,6 +2451,9 @@ export type TenantCreateWithoutDocumentRequirementRulesInput = {
1883
2451
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1884
2452
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1885
2453
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2454
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
2455
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
2456
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1886
2457
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1887
2458
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1888
2459
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
@@ -1908,6 +2479,9 @@ export type TenantUncheckedCreateWithoutDocumentRequirementRulesInput = {
1908
2479
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1909
2480
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1910
2481
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2482
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
2483
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
2484
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
1911
2485
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1912
2486
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1913
2487
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
@@ -1946,6 +2520,9 @@ export type TenantUpdateWithoutDocumentRequirementRulesInput = {
1946
2520
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1947
2521
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1948
2522
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2523
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
2524
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
2525
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
1949
2526
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1950
2527
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1951
2528
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
@@ -1971,6 +2548,9 @@ export type TenantUncheckedUpdateWithoutDocumentRequirementRulesInput = {
1971
2548
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1972
2549
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1973
2550
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2551
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
2552
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
2553
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
1974
2554
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1975
2555
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1976
2556
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
@@ -1996,6 +2576,9 @@ export type TenantCreateWithoutEventChannelsInput = {
1996
2576
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1997
2577
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1998
2578
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2579
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
2580
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
2581
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
1999
2582
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
2000
2583
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
2001
2584
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -2021,6 +2604,9 @@ export type TenantUncheckedCreateWithoutEventChannelsInput = {
2021
2604
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
2022
2605
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
2023
2606
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2607
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
2608
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
2609
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
2024
2610
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
2025
2611
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
2026
2612
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -2059,6 +2645,9 @@ export type TenantUpdateWithoutEventChannelsInput = {
2059
2645
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
2060
2646
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
2061
2647
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2648
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
2649
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
2650
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
2062
2651
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
2063
2652
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
2064
2653
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -2084,6 +2673,9 @@ export type TenantUncheckedUpdateWithoutEventChannelsInput = {
2084
2673
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
2085
2674
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
2086
2675
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2676
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
2677
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
2678
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
2087
2679
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
2088
2680
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
2089
2681
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -2109,6 +2701,9 @@ export type TenantCreateWithoutEventTypesInput = {
2109
2701
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
2110
2702
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
2111
2703
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2704
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
2705
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
2706
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
2112
2707
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
2113
2708
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
2114
2709
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -2134,6 +2729,9 @@ export type TenantUncheckedCreateWithoutEventTypesInput = {
2134
2729
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
2135
2730
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
2136
2731
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2732
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
2733
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
2734
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
2137
2735
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
2138
2736
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
2139
2737
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -2172,6 +2770,9 @@ export type TenantUpdateWithoutEventTypesInput = {
2172
2770
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
2173
2771
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
2174
2772
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2773
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
2774
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
2775
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
2175
2776
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
2176
2777
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
2177
2778
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -2197,6 +2798,9 @@ export type TenantUncheckedUpdateWithoutEventTypesInput = {
2197
2798
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
2198
2799
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
2199
2800
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2801
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
2802
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
2803
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
2200
2804
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
2201
2805
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
2202
2806
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -2222,6 +2826,9 @@ export type TenantCreateWithoutEventHandlersInput = {
2222
2826
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
2223
2827
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
2224
2828
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2829
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
2830
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
2831
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
2225
2832
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
2226
2833
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
2227
2834
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -2247,6 +2854,9 @@ export type TenantUncheckedCreateWithoutEventHandlersInput = {
2247
2854
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
2248
2855
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
2249
2856
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2857
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
2858
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
2859
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
2250
2860
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
2251
2861
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
2252
2862
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -2285,6 +2895,9 @@ export type TenantUpdateWithoutEventHandlersInput = {
2285
2895
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
2286
2896
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
2287
2897
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2898
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
2899
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
2900
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
2288
2901
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
2289
2902
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
2290
2903
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -2310,6 +2923,9 @@ export type TenantUncheckedUpdateWithoutEventHandlersInput = {
2310
2923
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
2311
2924
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
2312
2925
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2926
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
2927
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
2928
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
2313
2929
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
2314
2930
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
2315
2931
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -2335,6 +2951,9 @@ export type TenantCreateWithoutWorkflowEventsInput = {
2335
2951
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
2336
2952
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
2337
2953
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2954
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
2955
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
2956
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
2338
2957
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
2339
2958
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
2340
2959
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -2360,6 +2979,9 @@ export type TenantUncheckedCreateWithoutWorkflowEventsInput = {
2360
2979
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
2361
2980
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
2362
2981
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2982
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
2983
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
2984
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
2363
2985
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
2364
2986
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
2365
2987
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -2398,6 +3020,9 @@ export type TenantUpdateWithoutWorkflowEventsInput = {
2398
3020
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
2399
3021
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
2400
3022
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
3023
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
3024
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
3025
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
2401
3026
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
2402
3027
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
2403
3028
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -2423,6 +3048,9 @@ export type TenantUncheckedUpdateWithoutWorkflowEventsInput = {
2423
3048
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
2424
3049
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
2425
3050
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
3051
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
3052
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
3053
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
2426
3054
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
2427
3055
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
2428
3056
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -2448,6 +3076,9 @@ export type TenantCreateWithoutPropertyTransferRequestsInput = {
2448
3076
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
2449
3077
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
2450
3078
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
3079
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
3080
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
3081
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
2451
3082
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
2452
3083
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
2453
3084
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -2473,6 +3104,9 @@ export type TenantUncheckedCreateWithoutPropertyTransferRequestsInput = {
2473
3104
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
2474
3105
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
2475
3106
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
3107
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
3108
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
3109
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
2476
3110
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
2477
3111
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
2478
3112
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -2511,6 +3145,9 @@ export type TenantUpdateWithoutPropertyTransferRequestsInput = {
2511
3145
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
2512
3146
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
2513
3147
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
3148
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
3149
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
3150
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
2514
3151
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
2515
3152
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
2516
3153
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -2536,6 +3173,9 @@ export type TenantUncheckedUpdateWithoutPropertyTransferRequestsInput = {
2536
3173
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
2537
3174
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
2538
3175
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
3176
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
3177
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
3178
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
2539
3179
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
2540
3180
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
2541
3181
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -2561,6 +3201,9 @@ export type TenantCreateWithoutApprovalRequestsInput = {
2561
3201
  paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
2562
3202
  paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
2563
3203
  contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
3204
+ roles?: Prisma.RoleCreateNestedManyWithoutTenantInput;
3205
+ permissions?: Prisma.PermissionCreateNestedManyWithoutTenantInput;
3206
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutTenantInput;
2564
3207
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
2565
3208
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
2566
3209
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
@@ -2586,6 +3229,9 @@ export type TenantUncheckedCreateWithoutApprovalRequestsInput = {
2586
3229
  paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
2587
3230
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
2588
3231
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
3232
+ roles?: Prisma.RoleUncheckedCreateNestedManyWithoutTenantInput;
3233
+ permissions?: Prisma.PermissionUncheckedCreateNestedManyWithoutTenantInput;
3234
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutTenantInput;
2589
3235
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
2590
3236
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
2591
3237
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
@@ -2624,6 +3270,9 @@ export type TenantUpdateWithoutApprovalRequestsInput = {
2624
3270
  paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
2625
3271
  paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
2626
3272
  contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
3273
+ roles?: Prisma.RoleUpdateManyWithoutTenantNestedInput;
3274
+ permissions?: Prisma.PermissionUpdateManyWithoutTenantNestedInput;
3275
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutTenantNestedInput;
2627
3276
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
2628
3277
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
2629
3278
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
@@ -2649,6 +3298,9 @@ export type TenantUncheckedUpdateWithoutApprovalRequestsInput = {
2649
3298
  paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
2650
3299
  paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
2651
3300
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
3301
+ roles?: Prisma.RoleUncheckedUpdateManyWithoutTenantNestedInput;
3302
+ permissions?: Prisma.PermissionUncheckedUpdateManyWithoutTenantNestedInput;
3303
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutTenantNestedInput;
2652
3304
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
2653
3305
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
2654
3306
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
@@ -2671,6 +3323,9 @@ export type TenantCountOutputType = {
2671
3323
  paymentPlans: number;
2672
3324
  paymentMethods: number;
2673
3325
  contracts: number;
3326
+ roles: number;
3327
+ permissions: number;
3328
+ memberships: number;
2674
3329
  paymentMethodChangeRequests: number;
2675
3330
  documentRequirementRules: number;
2676
3331
  contractTerminations: number;
@@ -2691,6 +3346,9 @@ export type TenantCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions
2691
3346
  paymentPlans?: boolean | TenantCountOutputTypeCountPaymentPlansArgs;
2692
3347
  paymentMethods?: boolean | TenantCountOutputTypeCountPaymentMethodsArgs;
2693
3348
  contracts?: boolean | TenantCountOutputTypeCountContractsArgs;
3349
+ roles?: boolean | TenantCountOutputTypeCountRolesArgs;
3350
+ permissions?: boolean | TenantCountOutputTypeCountPermissionsArgs;
3351
+ memberships?: boolean | TenantCountOutputTypeCountMembershipsArgs;
2694
3352
  paymentMethodChangeRequests?: boolean | TenantCountOutputTypeCountPaymentMethodChangeRequestsArgs;
2695
3353
  documentRequirementRules?: boolean | TenantCountOutputTypeCountDocumentRequirementRulesArgs;
2696
3354
  contractTerminations?: boolean | TenantCountOutputTypeCountContractTerminationsArgs;
@@ -2744,6 +3402,24 @@ export type TenantCountOutputTypeCountPaymentMethodsArgs<ExtArgs extends runtime
2744
3402
  export type TenantCountOutputTypeCountContractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2745
3403
  where?: Prisma.ContractWhereInput;
2746
3404
  };
3405
+ /**
3406
+ * TenantCountOutputType without action
3407
+ */
3408
+ export type TenantCountOutputTypeCountRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3409
+ where?: Prisma.RoleWhereInput;
3410
+ };
3411
+ /**
3412
+ * TenantCountOutputType without action
3413
+ */
3414
+ export type TenantCountOutputTypeCountPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3415
+ where?: Prisma.PermissionWhereInput;
3416
+ };
3417
+ /**
3418
+ * TenantCountOutputType without action
3419
+ */
3420
+ export type TenantCountOutputTypeCountMembershipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3421
+ where?: Prisma.TenantMembershipWhereInput;
3422
+ };
2747
3423
  /**
2748
3424
  * TenantCountOutputType without action
2749
3425
  */
@@ -2834,6 +3510,9 @@ export type TenantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2834
3510
  paymentPlans?: boolean | Prisma.Tenant$paymentPlansArgs<ExtArgs>;
2835
3511
  paymentMethods?: boolean | Prisma.Tenant$paymentMethodsArgs<ExtArgs>;
2836
3512
  contracts?: boolean | Prisma.Tenant$contractsArgs<ExtArgs>;
3513
+ roles?: boolean | Prisma.Tenant$rolesArgs<ExtArgs>;
3514
+ permissions?: boolean | Prisma.Tenant$permissionsArgs<ExtArgs>;
3515
+ memberships?: boolean | Prisma.Tenant$membershipsArgs<ExtArgs>;
2837
3516
  paymentMethodChangeRequests?: boolean | Prisma.Tenant$paymentMethodChangeRequestsArgs<ExtArgs>;
2838
3517
  documentRequirementRules?: boolean | Prisma.Tenant$documentRequirementRulesArgs<ExtArgs>;
2839
3518
  contractTerminations?: boolean | Prisma.Tenant$contractTerminationsArgs<ExtArgs>;
@@ -2864,6 +3543,9 @@ export type TenantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
2864
3543
  paymentPlans?: boolean | Prisma.Tenant$paymentPlansArgs<ExtArgs>;
2865
3544
  paymentMethods?: boolean | Prisma.Tenant$paymentMethodsArgs<ExtArgs>;
2866
3545
  contracts?: boolean | Prisma.Tenant$contractsArgs<ExtArgs>;
3546
+ roles?: boolean | Prisma.Tenant$rolesArgs<ExtArgs>;
3547
+ permissions?: boolean | Prisma.Tenant$permissionsArgs<ExtArgs>;
3548
+ memberships?: boolean | Prisma.Tenant$membershipsArgs<ExtArgs>;
2867
3549
  paymentMethodChangeRequests?: boolean | Prisma.Tenant$paymentMethodChangeRequestsArgs<ExtArgs>;
2868
3550
  documentRequirementRules?: boolean | Prisma.Tenant$documentRequirementRulesArgs<ExtArgs>;
2869
3551
  contractTerminations?: boolean | Prisma.Tenant$contractTerminationsArgs<ExtArgs>;
@@ -2887,6 +3569,9 @@ export type $TenantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2887
3569
  paymentPlans: Prisma.$PaymentPlanPayload<ExtArgs>[];
2888
3570
  paymentMethods: Prisma.$PropertyPaymentMethodPayload<ExtArgs>[];
2889
3571
  contracts: Prisma.$ContractPayload<ExtArgs>[];
3572
+ roles: Prisma.$RolePayload<ExtArgs>[];
3573
+ permissions: Prisma.$PermissionPayload<ExtArgs>[];
3574
+ memberships: Prisma.$TenantMembershipPayload<ExtArgs>[];
2890
3575
  paymentMethodChangeRequests: Prisma.$PaymentMethodChangeRequestPayload<ExtArgs>[];
2891
3576
  documentRequirementRules: Prisma.$DocumentRequirementRulePayload<ExtArgs>[];
2892
3577
  contractTerminations: Prisma.$ContractTerminationPayload<ExtArgs>[];
@@ -3190,6 +3875,9 @@ export interface Prisma__TenantClient<T, Null = never, ExtArgs extends runtime.T
3190
3875
  paymentPlans<T extends Prisma.Tenant$paymentPlansArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$paymentPlansArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPlanPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3191
3876
  paymentMethods<T extends Prisma.Tenant$paymentMethodsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$paymentMethodsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyPaymentMethodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3192
3877
  contracts<T extends Prisma.Tenant$contractsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3878
+ roles<T extends Prisma.Tenant$rolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3879
+ permissions<T extends Prisma.Tenant$permissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3880
+ memberships<T extends Prisma.Tenant$membershipsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$membershipsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TenantMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3193
3881
  paymentMethodChangeRequests<T extends Prisma.Tenant$paymentMethodChangeRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$paymentMethodChangeRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentMethodChangeRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3194
3882
  documentRequirementRules<T extends Prisma.Tenant$documentRequirementRulesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$documentRequirementRulesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentRequirementRulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3195
3883
  contractTerminations<T extends Prisma.Tenant$contractTerminationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$contractTerminationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractTerminationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -3676,6 +4364,75 @@ export type Tenant$contractsArgs<ExtArgs extends runtime.Types.Extensions.Intern
3676
4364
  skip?: number;
3677
4365
  distinct?: Prisma.ContractScalarFieldEnum | Prisma.ContractScalarFieldEnum[];
3678
4366
  };
4367
+ /**
4368
+ * Tenant.roles
4369
+ */
4370
+ export type Tenant$rolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4371
+ /**
4372
+ * Select specific fields to fetch from the Role
4373
+ */
4374
+ select?: Prisma.RoleSelect<ExtArgs> | null;
4375
+ /**
4376
+ * Omit specific fields from the Role
4377
+ */
4378
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
4379
+ /**
4380
+ * Choose, which related nodes to fetch as well
4381
+ */
4382
+ include?: Prisma.RoleInclude<ExtArgs> | null;
4383
+ where?: Prisma.RoleWhereInput;
4384
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
4385
+ cursor?: Prisma.RoleWhereUniqueInput;
4386
+ take?: number;
4387
+ skip?: number;
4388
+ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
4389
+ };
4390
+ /**
4391
+ * Tenant.permissions
4392
+ */
4393
+ export type Tenant$permissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4394
+ /**
4395
+ * Select specific fields to fetch from the Permission
4396
+ */
4397
+ select?: Prisma.PermissionSelect<ExtArgs> | null;
4398
+ /**
4399
+ * Omit specific fields from the Permission
4400
+ */
4401
+ omit?: Prisma.PermissionOmit<ExtArgs> | null;
4402
+ /**
4403
+ * Choose, which related nodes to fetch as well
4404
+ */
4405
+ include?: Prisma.PermissionInclude<ExtArgs> | null;
4406
+ where?: Prisma.PermissionWhereInput;
4407
+ orderBy?: Prisma.PermissionOrderByWithRelationInput | Prisma.PermissionOrderByWithRelationInput[];
4408
+ cursor?: Prisma.PermissionWhereUniqueInput;
4409
+ take?: number;
4410
+ skip?: number;
4411
+ distinct?: Prisma.PermissionScalarFieldEnum | Prisma.PermissionScalarFieldEnum[];
4412
+ };
4413
+ /**
4414
+ * Tenant.memberships
4415
+ */
4416
+ export type Tenant$membershipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4417
+ /**
4418
+ * Select specific fields to fetch from the TenantMembership
4419
+ */
4420
+ select?: Prisma.TenantMembershipSelect<ExtArgs> | null;
4421
+ /**
4422
+ * Omit specific fields from the TenantMembership
4423
+ */
4424
+ omit?: Prisma.TenantMembershipOmit<ExtArgs> | null;
4425
+ /**
4426
+ * Choose, which related nodes to fetch as well
4427
+ */
4428
+ include?: Prisma.TenantMembershipInclude<ExtArgs> | null;
4429
+ where?: Prisma.TenantMembershipWhereInput;
4430
+ orderBy?: Prisma.TenantMembershipOrderByWithRelationInput | Prisma.TenantMembershipOrderByWithRelationInput[];
4431
+ cursor?: Prisma.TenantMembershipWhereUniqueInput;
4432
+ take?: number;
4433
+ skip?: number;
4434
+ distinct?: Prisma.TenantMembershipScalarFieldEnum | Prisma.TenantMembershipScalarFieldEnum[];
4435
+ };
3679
4436
  /**
3680
4437
  * Tenant.paymentMethodChangeRequests
3681
4438
  */