@valentine-efagene/qshelter-common 2.0.19 → 2.0.22

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 (52) hide show
  1. package/dist/generated/client/browser.d.ts +45 -30
  2. package/dist/generated/client/client.d.ts +45 -30
  3. package/dist/generated/client/commonInputTypes.d.ts +40 -0
  4. package/dist/generated/client/internal/class.d.ts +93 -60
  5. package/dist/generated/client/internal/class.js +2 -2
  6. package/dist/generated/client/internal/prismaNamespace.d.ts +1050 -720
  7. package/dist/generated/client/internal/prismaNamespace.js +313 -190
  8. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +344 -215
  9. package/dist/generated/client/internal/prismaNamespaceBrowser.js +313 -190
  10. package/dist/generated/client/models/Amenity.d.ts +168 -1
  11. package/dist/generated/client/models/Contract.d.ts +2037 -298
  12. package/dist/generated/client/models/ContractDocument.d.ts +299 -12
  13. package/dist/generated/client/models/ContractEvent.d.ts +1052 -0
  14. package/dist/generated/client/models/ContractEvent.js +1 -0
  15. package/dist/generated/client/models/ContractInstallment.d.ts +1656 -0
  16. package/dist/generated/client/models/ContractInstallment.js +1 -0
  17. package/dist/generated/client/models/ContractPayment.d.ts +2026 -0
  18. package/dist/generated/client/models/ContractPayment.js +1 -0
  19. package/dist/generated/client/models/ContractPhase.d.ts +2467 -0
  20. package/dist/generated/client/models/ContractPhase.js +1 -0
  21. package/dist/generated/client/models/ContractPhaseStep.d.ts +1678 -0
  22. package/dist/generated/client/models/ContractPhaseStep.js +1 -0
  23. package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +1249 -0
  24. package/dist/generated/client/models/ContractPhaseStepApproval.js +1 -0
  25. package/dist/generated/client/models/ContractTransition.d.ts +1118 -0
  26. package/dist/generated/client/models/ContractTransition.js +1 -0
  27. package/dist/generated/client/models/DomainEvent.d.ts +1240 -0
  28. package/dist/generated/client/models/DomainEvent.js +1 -0
  29. package/dist/generated/client/models/PaymentPlan.d.ts +325 -1062
  30. package/dist/generated/client/models/Property.d.ts +154 -684
  31. package/dist/generated/client/models/PropertyPaymentMethod.d.ts +1498 -0
  32. package/dist/generated/client/models/PropertyPaymentMethod.js +1 -0
  33. package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +1158 -0
  34. package/dist/generated/client/models/PropertyPaymentMethodLink.js +1 -0
  35. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +1656 -0
  36. package/dist/generated/client/models/PropertyPaymentMethodPhase.js +1 -0
  37. package/dist/generated/client/models/PropertyUnit.d.ts +1598 -0
  38. package/dist/generated/client/models/PropertyUnit.js +1 -0
  39. package/dist/generated/client/models/PropertyVariant.d.ts +2079 -0
  40. package/dist/generated/client/models/PropertyVariant.js +1 -0
  41. package/dist/generated/client/models/PropertyVariantAmenity.d.ts +1080 -0
  42. package/dist/generated/client/models/PropertyVariantAmenity.js +1 -0
  43. package/dist/generated/client/models/PropertyVariantMedia.d.ts +1189 -0
  44. package/dist/generated/client/models/PropertyVariantMedia.js +1 -0
  45. package/dist/generated/client/models/User.d.ts +684 -427
  46. package/dist/generated/client/models/index.d.ts +15 -12
  47. package/dist/generated/client/models/index.js +15 -12
  48. package/dist/generated/client/models.d.ts +15 -12
  49. package/dist/src/config/config.service.d.ts +0 -1
  50. package/dist/src/config/config.service.js +0 -1
  51. package/package.json +2 -1
  52. package/prisma/schema.prisma +544 -269
@@ -244,11 +244,12 @@ export type UserWhereInput = {
244
244
  deviceEndpoints?: Prisma.DeviceEndpointListRelationFilter;
245
245
  socials?: Prisma.SocialListRelationFilter;
246
246
  properties?: Prisma.PropertyListRelationFilter;
247
- mortgages?: Prisma.MortgageListRelationFilter;
248
- paymentPlans?: Prisma.PaymentPlanListRelationFilter;
249
247
  contracts?: Prisma.ContractListRelationFilter;
250
248
  soldContracts?: Prisma.ContractListRelationFilter;
251
- payments?: Prisma.PaymentListRelationFilter;
249
+ contractPayments?: Prisma.ContractPaymentListRelationFilter;
250
+ assignedSteps?: Prisma.ContractPhaseStepListRelationFilter;
251
+ stepApprovals?: Prisma.ContractPhaseStepApprovalListRelationFilter;
252
+ uploadedDocs?: Prisma.ContractDocumentListRelationFilter;
252
253
  };
253
254
  export type UserOrderByWithRelationInput = {
254
255
  id?: Prisma.SortOrder;
@@ -278,11 +279,12 @@ export type UserOrderByWithRelationInput = {
278
279
  deviceEndpoints?: Prisma.DeviceEndpointOrderByRelationAggregateInput;
279
280
  socials?: Prisma.SocialOrderByRelationAggregateInput;
280
281
  properties?: Prisma.PropertyOrderByRelationAggregateInput;
281
- mortgages?: Prisma.MortgageOrderByRelationAggregateInput;
282
- paymentPlans?: Prisma.PaymentPlanOrderByRelationAggregateInput;
283
282
  contracts?: Prisma.ContractOrderByRelationAggregateInput;
284
283
  soldContracts?: Prisma.ContractOrderByRelationAggregateInput;
285
- payments?: Prisma.PaymentOrderByRelationAggregateInput;
284
+ contractPayments?: Prisma.ContractPaymentOrderByRelationAggregateInput;
285
+ assignedSteps?: Prisma.ContractPhaseStepOrderByRelationAggregateInput;
286
+ stepApprovals?: Prisma.ContractPhaseStepApprovalOrderByRelationAggregateInput;
287
+ uploadedDocs?: Prisma.ContractDocumentOrderByRelationAggregateInput;
286
288
  _relevance?: Prisma.UserOrderByRelevanceInput;
287
289
  };
288
290
  export type UserWhereUniqueInput = Prisma.AtLeast<{
@@ -316,11 +318,12 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
316
318
  deviceEndpoints?: Prisma.DeviceEndpointListRelationFilter;
317
319
  socials?: Prisma.SocialListRelationFilter;
318
320
  properties?: Prisma.PropertyListRelationFilter;
319
- mortgages?: Prisma.MortgageListRelationFilter;
320
- paymentPlans?: Prisma.PaymentPlanListRelationFilter;
321
321
  contracts?: Prisma.ContractListRelationFilter;
322
322
  soldContracts?: Prisma.ContractListRelationFilter;
323
- payments?: Prisma.PaymentListRelationFilter;
323
+ contractPayments?: Prisma.ContractPaymentListRelationFilter;
324
+ assignedSteps?: Prisma.ContractPhaseStepListRelationFilter;
325
+ stepApprovals?: Prisma.ContractPhaseStepApprovalListRelationFilter;
326
+ uploadedDocs?: Prisma.ContractDocumentListRelationFilter;
324
327
  }, "id" | "email" | "phone" | "walletId">;
325
328
  export type UserOrderByWithAggregationInput = {
326
329
  id?: Prisma.SortOrder;
@@ -392,11 +395,12 @@ export type UserCreateInput = {
392
395
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
393
396
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
394
397
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
395
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
396
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
397
398
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
398
399
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
399
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
400
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
401
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
402
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
403
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
400
404
  };
401
405
  export type UserUncheckedCreateInput = {
402
406
  id?: string;
@@ -424,11 +428,12 @@ export type UserUncheckedCreateInput = {
424
428
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
425
429
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
426
430
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
427
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
428
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
429
431
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
430
432
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
431
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
433
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
434
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
435
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
436
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
432
437
  };
433
438
  export type UserUpdateInput = {
434
439
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -456,11 +461,12 @@ export type UserUpdateInput = {
456
461
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
457
462
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
458
463
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
459
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
460
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
461
464
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
462
465
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
463
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
466
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
467
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
468
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
469
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
464
470
  };
465
471
  export type UserUncheckedUpdateInput = {
466
472
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -488,11 +494,12 @@ export type UserUncheckedUpdateInput = {
488
494
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
489
495
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
490
496
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
491
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
492
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
493
497
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
494
498
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
495
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
499
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
500
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
501
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
502
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
496
503
  };
497
504
  export type UserCreateManyInput = {
498
505
  id?: string;
@@ -804,73 +811,87 @@ export type UserUpdateOneRequiredWithoutPropertiesNestedInput = {
804
811
  connect?: Prisma.UserWhereUniqueInput;
805
812
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutPropertiesInput, Prisma.UserUpdateWithoutPropertiesInput>, Prisma.UserUncheckedUpdateWithoutPropertiesInput>;
806
813
  };
807
- export type UserCreateNestedOneWithoutMortgagesInput = {
808
- create?: Prisma.XOR<Prisma.UserCreateWithoutMortgagesInput, Prisma.UserUncheckedCreateWithoutMortgagesInput>;
809
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutMortgagesInput;
814
+ export type UserCreateNestedOneWithoutContractsInput = {
815
+ create?: Prisma.XOR<Prisma.UserCreateWithoutContractsInput, Prisma.UserUncheckedCreateWithoutContractsInput>;
816
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutContractsInput;
810
817
  connect?: Prisma.UserWhereUniqueInput;
811
818
  };
812
- export type UserUpdateOneRequiredWithoutMortgagesNestedInput = {
813
- create?: Prisma.XOR<Prisma.UserCreateWithoutMortgagesInput, Prisma.UserUncheckedCreateWithoutMortgagesInput>;
814
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutMortgagesInput;
815
- upsert?: Prisma.UserUpsertWithoutMortgagesInput;
819
+ export type UserCreateNestedOneWithoutSoldContractsInput = {
820
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSoldContractsInput, Prisma.UserUncheckedCreateWithoutSoldContractsInput>;
821
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSoldContractsInput;
816
822
  connect?: Prisma.UserWhereUniqueInput;
817
- update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutMortgagesInput, Prisma.UserUpdateWithoutMortgagesInput>, Prisma.UserUncheckedUpdateWithoutMortgagesInput>;
818
823
  };
819
- export type UserCreateNestedOneWithoutPaymentPlansInput = {
820
- create?: Prisma.XOR<Prisma.UserCreateWithoutPaymentPlansInput, Prisma.UserUncheckedCreateWithoutPaymentPlansInput>;
821
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutPaymentPlansInput;
824
+ export type UserUpdateOneRequiredWithoutContractsNestedInput = {
825
+ create?: Prisma.XOR<Prisma.UserCreateWithoutContractsInput, Prisma.UserUncheckedCreateWithoutContractsInput>;
826
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutContractsInput;
827
+ upsert?: Prisma.UserUpsertWithoutContractsInput;
822
828
  connect?: Prisma.UserWhereUniqueInput;
829
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutContractsInput, Prisma.UserUpdateWithoutContractsInput>, Prisma.UserUncheckedUpdateWithoutContractsInput>;
823
830
  };
824
- export type UserUpdateOneWithoutPaymentPlansNestedInput = {
825
- create?: Prisma.XOR<Prisma.UserCreateWithoutPaymentPlansInput, Prisma.UserUncheckedCreateWithoutPaymentPlansInput>;
826
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutPaymentPlansInput;
827
- upsert?: Prisma.UserUpsertWithoutPaymentPlansInput;
831
+ export type UserUpdateOneWithoutSoldContractsNestedInput = {
832
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSoldContractsInput, Prisma.UserUncheckedCreateWithoutSoldContractsInput>;
833
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSoldContractsInput;
834
+ upsert?: Prisma.UserUpsertWithoutSoldContractsInput;
828
835
  disconnect?: Prisma.UserWhereInput | boolean;
829
836
  delete?: Prisma.UserWhereInput | boolean;
830
837
  connect?: Prisma.UserWhereUniqueInput;
831
- update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutPaymentPlansInput, Prisma.UserUpdateWithoutPaymentPlansInput>, Prisma.UserUncheckedUpdateWithoutPaymentPlansInput>;
838
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSoldContractsInput, Prisma.UserUpdateWithoutSoldContractsInput>, Prisma.UserUncheckedUpdateWithoutSoldContractsInput>;
832
839
  };
833
- export type UserCreateNestedOneWithoutPaymentsInput = {
834
- create?: Prisma.XOR<Prisma.UserCreateWithoutPaymentsInput, Prisma.UserUncheckedCreateWithoutPaymentsInput>;
835
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutPaymentsInput;
840
+ export type UserCreateNestedOneWithoutAssignedStepsInput = {
841
+ create?: Prisma.XOR<Prisma.UserCreateWithoutAssignedStepsInput, Prisma.UserUncheckedCreateWithoutAssignedStepsInput>;
842
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutAssignedStepsInput;
836
843
  connect?: Prisma.UserWhereUniqueInput;
837
844
  };
838
- export type UserUpdateOneWithoutPaymentsNestedInput = {
839
- create?: Prisma.XOR<Prisma.UserCreateWithoutPaymentsInput, Prisma.UserUncheckedCreateWithoutPaymentsInput>;
840
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutPaymentsInput;
841
- upsert?: Prisma.UserUpsertWithoutPaymentsInput;
845
+ export type UserUpdateOneWithoutAssignedStepsNestedInput = {
846
+ create?: Prisma.XOR<Prisma.UserCreateWithoutAssignedStepsInput, Prisma.UserUncheckedCreateWithoutAssignedStepsInput>;
847
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutAssignedStepsInput;
848
+ upsert?: Prisma.UserUpsertWithoutAssignedStepsInput;
842
849
  disconnect?: Prisma.UserWhereInput | boolean;
843
850
  delete?: Prisma.UserWhereInput | boolean;
844
851
  connect?: Prisma.UserWhereUniqueInput;
845
- update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutPaymentsInput, Prisma.UserUpdateWithoutPaymentsInput>, Prisma.UserUncheckedUpdateWithoutPaymentsInput>;
852
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutAssignedStepsInput, Prisma.UserUpdateWithoutAssignedStepsInput>, Prisma.UserUncheckedUpdateWithoutAssignedStepsInput>;
846
853
  };
847
- export type UserCreateNestedOneWithoutContractsInput = {
848
- create?: Prisma.XOR<Prisma.UserCreateWithoutContractsInput, Prisma.UserUncheckedCreateWithoutContractsInput>;
849
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutContractsInput;
854
+ export type UserCreateNestedOneWithoutStepApprovalsInput = {
855
+ create?: Prisma.XOR<Prisma.UserCreateWithoutStepApprovalsInput, Prisma.UserUncheckedCreateWithoutStepApprovalsInput>;
856
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutStepApprovalsInput;
850
857
  connect?: Prisma.UserWhereUniqueInput;
851
858
  };
852
- export type UserCreateNestedOneWithoutSoldContractsInput = {
853
- create?: Prisma.XOR<Prisma.UserCreateWithoutSoldContractsInput, Prisma.UserUncheckedCreateWithoutSoldContractsInput>;
854
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutSoldContractsInput;
859
+ export type UserUpdateOneWithoutStepApprovalsNestedInput = {
860
+ create?: Prisma.XOR<Prisma.UserCreateWithoutStepApprovalsInput, Prisma.UserUncheckedCreateWithoutStepApprovalsInput>;
861
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutStepApprovalsInput;
862
+ upsert?: Prisma.UserUpsertWithoutStepApprovalsInput;
863
+ disconnect?: Prisma.UserWhereInput | boolean;
864
+ delete?: Prisma.UserWhereInput | boolean;
855
865
  connect?: Prisma.UserWhereUniqueInput;
866
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutStepApprovalsInput, Prisma.UserUpdateWithoutStepApprovalsInput>, Prisma.UserUncheckedUpdateWithoutStepApprovalsInput>;
856
867
  };
857
- export type UserUpdateOneWithoutContractsNestedInput = {
858
- create?: Prisma.XOR<Prisma.UserCreateWithoutContractsInput, Prisma.UserUncheckedCreateWithoutContractsInput>;
859
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutContractsInput;
860
- upsert?: Prisma.UserUpsertWithoutContractsInput;
868
+ export type UserCreateNestedOneWithoutContractPaymentsInput = {
869
+ create?: Prisma.XOR<Prisma.UserCreateWithoutContractPaymentsInput, Prisma.UserUncheckedCreateWithoutContractPaymentsInput>;
870
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutContractPaymentsInput;
871
+ connect?: Prisma.UserWhereUniqueInput;
872
+ };
873
+ export type UserUpdateOneWithoutContractPaymentsNestedInput = {
874
+ create?: Prisma.XOR<Prisma.UserCreateWithoutContractPaymentsInput, Prisma.UserUncheckedCreateWithoutContractPaymentsInput>;
875
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutContractPaymentsInput;
876
+ upsert?: Prisma.UserUpsertWithoutContractPaymentsInput;
861
877
  disconnect?: Prisma.UserWhereInput | boolean;
862
878
  delete?: Prisma.UserWhereInput | boolean;
863
879
  connect?: Prisma.UserWhereUniqueInput;
864
- update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutContractsInput, Prisma.UserUpdateWithoutContractsInput>, Prisma.UserUncheckedUpdateWithoutContractsInput>;
880
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutContractPaymentsInput, Prisma.UserUpdateWithoutContractPaymentsInput>, Prisma.UserUncheckedUpdateWithoutContractPaymentsInput>;
865
881
  };
866
- export type UserUpdateOneWithoutSoldContractsNestedInput = {
867
- create?: Prisma.XOR<Prisma.UserCreateWithoutSoldContractsInput, Prisma.UserUncheckedCreateWithoutSoldContractsInput>;
868
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutSoldContractsInput;
869
- upsert?: Prisma.UserUpsertWithoutSoldContractsInput;
882
+ export type UserCreateNestedOneWithoutUploadedDocsInput = {
883
+ create?: Prisma.XOR<Prisma.UserCreateWithoutUploadedDocsInput, Prisma.UserUncheckedCreateWithoutUploadedDocsInput>;
884
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutUploadedDocsInput;
885
+ connect?: Prisma.UserWhereUniqueInput;
886
+ };
887
+ export type UserUpdateOneWithoutUploadedDocsNestedInput = {
888
+ create?: Prisma.XOR<Prisma.UserCreateWithoutUploadedDocsInput, Prisma.UserUncheckedCreateWithoutUploadedDocsInput>;
889
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutUploadedDocsInput;
890
+ upsert?: Prisma.UserUpsertWithoutUploadedDocsInput;
870
891
  disconnect?: Prisma.UserWhereInput | boolean;
871
892
  delete?: Prisma.UserWhereInput | boolean;
872
893
  connect?: Prisma.UserWhereUniqueInput;
873
- update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSoldContractsInput, Prisma.UserUpdateWithoutSoldContractsInput>, Prisma.UserUncheckedUpdateWithoutSoldContractsInput>;
894
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutUploadedDocsInput, Prisma.UserUpdateWithoutUploadedDocsInput>, Prisma.UserUncheckedUpdateWithoutUploadedDocsInput>;
874
895
  };
875
896
  export type UserCreateWithoutUserRolesInput = {
876
897
  id?: string;
@@ -897,11 +918,12 @@ export type UserCreateWithoutUserRolesInput = {
897
918
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
898
919
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
899
920
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
900
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
901
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
902
921
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
903
922
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
904
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
923
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
924
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
925
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
926
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
905
927
  };
906
928
  export type UserUncheckedCreateWithoutUserRolesInput = {
907
929
  id?: string;
@@ -928,11 +950,12 @@ export type UserUncheckedCreateWithoutUserRolesInput = {
928
950
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
929
951
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
930
952
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
931
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
932
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
933
953
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
934
954
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
935
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
955
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
956
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
957
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
958
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
936
959
  };
937
960
  export type UserCreateOrConnectWithoutUserRolesInput = {
938
961
  where: Prisma.UserWhereUniqueInput;
@@ -972,11 +995,12 @@ export type UserUpdateWithoutUserRolesInput = {
972
995
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
973
996
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
974
997
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
975
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
976
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
977
998
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
978
999
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
979
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
1000
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
1001
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
1002
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
1003
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
980
1004
  };
981
1005
  export type UserUncheckedUpdateWithoutUserRolesInput = {
982
1006
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1003,11 +1027,12 @@ export type UserUncheckedUpdateWithoutUserRolesInput = {
1003
1027
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
1004
1028
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
1005
1029
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
1006
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
1007
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
1008
1030
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
1009
1031
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
1010
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
1032
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
1033
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
1034
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
1035
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
1011
1036
  };
1012
1037
  export type UserCreateWithoutTenantInput = {
1013
1038
  id?: string;
@@ -1034,11 +1059,12 @@ export type UserCreateWithoutTenantInput = {
1034
1059
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
1035
1060
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
1036
1061
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
1037
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
1038
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
1039
1062
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
1040
1063
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
1041
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
1064
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
1065
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
1066
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
1067
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
1042
1068
  };
1043
1069
  export type UserUncheckedCreateWithoutTenantInput = {
1044
1070
  id?: string;
@@ -1065,11 +1091,12 @@ export type UserUncheckedCreateWithoutTenantInput = {
1065
1091
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
1066
1092
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
1067
1093
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
1068
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
1069
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
1070
1094
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
1071
1095
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
1072
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
1096
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
1097
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
1098
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
1099
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
1073
1100
  };
1074
1101
  export type UserCreateOrConnectWithoutTenantInput = {
1075
1102
  where: Prisma.UserWhereUniqueInput;
@@ -1139,11 +1166,12 @@ export type UserCreateWithoutRefreshTokensInput = {
1139
1166
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
1140
1167
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
1141
1168
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
1142
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
1143
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
1144
1169
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
1145
1170
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
1146
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
1171
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
1172
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
1173
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
1174
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
1147
1175
  };
1148
1176
  export type UserUncheckedCreateWithoutRefreshTokensInput = {
1149
1177
  id?: string;
@@ -1170,11 +1198,12 @@ export type UserUncheckedCreateWithoutRefreshTokensInput = {
1170
1198
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
1171
1199
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
1172
1200
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
1173
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
1174
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
1175
1201
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
1176
1202
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
1177
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
1203
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
1204
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
1205
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
1206
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
1178
1207
  };
1179
1208
  export type UserCreateOrConnectWithoutRefreshTokensInput = {
1180
1209
  where: Prisma.UserWhereUniqueInput;
@@ -1214,11 +1243,12 @@ export type UserUpdateWithoutRefreshTokensInput = {
1214
1243
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
1215
1244
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
1216
1245
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
1217
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
1218
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
1219
1246
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
1220
1247
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
1221
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
1248
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
1249
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
1250
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
1251
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
1222
1252
  };
1223
1253
  export type UserUncheckedUpdateWithoutRefreshTokensInput = {
1224
1254
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1245,11 +1275,12 @@ export type UserUncheckedUpdateWithoutRefreshTokensInput = {
1245
1275
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
1246
1276
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
1247
1277
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
1248
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
1249
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
1250
1278
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
1251
1279
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
1252
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
1280
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
1281
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
1282
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
1283
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
1253
1284
  };
1254
1285
  export type UserCreateWithoutPasswordResetsInput = {
1255
1286
  id?: string;
@@ -1276,11 +1307,12 @@ export type UserCreateWithoutPasswordResetsInput = {
1276
1307
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
1277
1308
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
1278
1309
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
1279
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
1280
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
1281
1310
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
1282
1311
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
1283
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
1312
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
1313
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
1314
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
1315
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
1284
1316
  };
1285
1317
  export type UserUncheckedCreateWithoutPasswordResetsInput = {
1286
1318
  id?: string;
@@ -1307,11 +1339,12 @@ export type UserUncheckedCreateWithoutPasswordResetsInput = {
1307
1339
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
1308
1340
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
1309
1341
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
1310
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
1311
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
1312
1342
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
1313
1343
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
1314
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
1344
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
1345
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
1346
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
1347
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
1315
1348
  };
1316
1349
  export type UserCreateOrConnectWithoutPasswordResetsInput = {
1317
1350
  where: Prisma.UserWhereUniqueInput;
@@ -1351,11 +1384,12 @@ export type UserUpdateWithoutPasswordResetsInput = {
1351
1384
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
1352
1385
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
1353
1386
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
1354
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
1355
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
1356
1387
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
1357
1388
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
1358
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
1389
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
1390
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
1391
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
1392
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
1359
1393
  };
1360
1394
  export type UserUncheckedUpdateWithoutPasswordResetsInput = {
1361
1395
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1382,11 +1416,12 @@ export type UserUncheckedUpdateWithoutPasswordResetsInput = {
1382
1416
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
1383
1417
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
1384
1418
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
1385
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
1386
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
1387
1419
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
1388
1420
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
1389
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
1421
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
1422
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
1423
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
1424
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
1390
1425
  };
1391
1426
  export type UserCreateWithoutSuspensionsInput = {
1392
1427
  id?: string;
@@ -1413,11 +1448,12 @@ export type UserCreateWithoutSuspensionsInput = {
1413
1448
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
1414
1449
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
1415
1450
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
1416
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
1417
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
1418
1451
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
1419
1452
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
1420
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
1453
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
1454
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
1455
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
1456
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
1421
1457
  };
1422
1458
  export type UserUncheckedCreateWithoutSuspensionsInput = {
1423
1459
  id?: string;
@@ -1444,11 +1480,12 @@ export type UserUncheckedCreateWithoutSuspensionsInput = {
1444
1480
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
1445
1481
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
1446
1482
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
1447
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
1448
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
1449
1483
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
1450
1484
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
1451
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
1485
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
1486
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
1487
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
1488
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
1452
1489
  };
1453
1490
  export type UserCreateOrConnectWithoutSuspensionsInput = {
1454
1491
  where: Prisma.UserWhereUniqueInput;
@@ -1488,11 +1525,12 @@ export type UserUpdateWithoutSuspensionsInput = {
1488
1525
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
1489
1526
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
1490
1527
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
1491
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
1492
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
1493
1528
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
1494
1529
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
1495
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
1530
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
1531
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
1532
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
1533
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
1496
1534
  };
1497
1535
  export type UserUncheckedUpdateWithoutSuspensionsInput = {
1498
1536
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1519,11 +1557,12 @@ export type UserUncheckedUpdateWithoutSuspensionsInput = {
1519
1557
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
1520
1558
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
1521
1559
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
1522
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
1523
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
1524
1560
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
1525
1561
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
1526
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
1562
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
1563
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
1564
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
1565
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
1527
1566
  };
1528
1567
  export type UserCreateWithoutEmailPreferencesInput = {
1529
1568
  id?: string;
@@ -1550,11 +1589,12 @@ export type UserCreateWithoutEmailPreferencesInput = {
1550
1589
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
1551
1590
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
1552
1591
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
1553
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
1554
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
1555
1592
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
1556
1593
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
1557
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
1594
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
1595
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
1596
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
1597
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
1558
1598
  };
1559
1599
  export type UserUncheckedCreateWithoutEmailPreferencesInput = {
1560
1600
  id?: string;
@@ -1581,11 +1621,12 @@ export type UserUncheckedCreateWithoutEmailPreferencesInput = {
1581
1621
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
1582
1622
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
1583
1623
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
1584
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
1585
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
1586
1624
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
1587
1625
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
1588
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
1626
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
1627
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
1628
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
1629
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
1589
1630
  };
1590
1631
  export type UserCreateOrConnectWithoutEmailPreferencesInput = {
1591
1632
  where: Prisma.UserWhereUniqueInput;
@@ -1625,11 +1666,12 @@ export type UserUpdateWithoutEmailPreferencesInput = {
1625
1666
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
1626
1667
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
1627
1668
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
1628
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
1629
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
1630
1669
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
1631
1670
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
1632
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
1671
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
1672
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
1673
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
1674
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
1633
1675
  };
1634
1676
  export type UserUncheckedUpdateWithoutEmailPreferencesInput = {
1635
1677
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1656,11 +1698,12 @@ export type UserUncheckedUpdateWithoutEmailPreferencesInput = {
1656
1698
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
1657
1699
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
1658
1700
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
1659
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
1660
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
1661
1701
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
1662
1702
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
1663
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
1703
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
1704
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
1705
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
1706
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
1664
1707
  };
1665
1708
  export type UserCreateWithoutDeviceEndpointsInput = {
1666
1709
  id?: string;
@@ -1687,11 +1730,12 @@ export type UserCreateWithoutDeviceEndpointsInput = {
1687
1730
  emailPreferences?: Prisma.EmailPreferenceCreateNestedManyWithoutUserInput;
1688
1731
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
1689
1732
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
1690
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
1691
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
1692
1733
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
1693
1734
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
1694
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
1735
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
1736
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
1737
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
1738
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
1695
1739
  };
1696
1740
  export type UserUncheckedCreateWithoutDeviceEndpointsInput = {
1697
1741
  id?: string;
@@ -1718,11 +1762,12 @@ export type UserUncheckedCreateWithoutDeviceEndpointsInput = {
1718
1762
  emailPreferences?: Prisma.EmailPreferenceUncheckedCreateNestedManyWithoutUserInput;
1719
1763
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
1720
1764
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
1721
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
1722
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
1723
1765
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
1724
1766
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
1725
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
1767
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
1768
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
1769
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
1770
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
1726
1771
  };
1727
1772
  export type UserCreateOrConnectWithoutDeviceEndpointsInput = {
1728
1773
  where: Prisma.UserWhereUniqueInput;
@@ -1762,11 +1807,12 @@ export type UserUpdateWithoutDeviceEndpointsInput = {
1762
1807
  emailPreferences?: Prisma.EmailPreferenceUpdateManyWithoutUserNestedInput;
1763
1808
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
1764
1809
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
1765
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
1766
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
1767
1810
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
1768
1811
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
1769
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
1812
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
1813
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
1814
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
1815
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
1770
1816
  };
1771
1817
  export type UserUncheckedUpdateWithoutDeviceEndpointsInput = {
1772
1818
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1793,11 +1839,12 @@ export type UserUncheckedUpdateWithoutDeviceEndpointsInput = {
1793
1839
  emailPreferences?: Prisma.EmailPreferenceUncheckedUpdateManyWithoutUserNestedInput;
1794
1840
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
1795
1841
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
1796
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
1797
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
1798
1842
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
1799
1843
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
1800
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
1844
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
1845
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
1846
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
1847
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
1801
1848
  };
1802
1849
  export type UserCreateWithoutSocialsInput = {
1803
1850
  id?: string;
@@ -1824,11 +1871,12 @@ export type UserCreateWithoutSocialsInput = {
1824
1871
  emailPreferences?: Prisma.EmailPreferenceCreateNestedManyWithoutUserInput;
1825
1872
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
1826
1873
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
1827
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
1828
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
1829
1874
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
1830
1875
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
1831
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
1876
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
1877
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
1878
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
1879
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
1832
1880
  };
1833
1881
  export type UserUncheckedCreateWithoutSocialsInput = {
1834
1882
  id?: string;
@@ -1855,11 +1903,12 @@ export type UserUncheckedCreateWithoutSocialsInput = {
1855
1903
  emailPreferences?: Prisma.EmailPreferenceUncheckedCreateNestedManyWithoutUserInput;
1856
1904
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
1857
1905
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
1858
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
1859
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
1860
1906
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
1861
1907
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
1862
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
1908
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
1909
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
1910
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
1911
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
1863
1912
  };
1864
1913
  export type UserCreateOrConnectWithoutSocialsInput = {
1865
1914
  where: Prisma.UserWhereUniqueInput;
@@ -1899,11 +1948,12 @@ export type UserUpdateWithoutSocialsInput = {
1899
1948
  emailPreferences?: Prisma.EmailPreferenceUpdateManyWithoutUserNestedInput;
1900
1949
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
1901
1950
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
1902
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
1903
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
1904
1951
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
1905
1952
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
1906
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
1953
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
1954
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
1955
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
1956
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
1907
1957
  };
1908
1958
  export type UserUncheckedUpdateWithoutSocialsInput = {
1909
1959
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1930,11 +1980,12 @@ export type UserUncheckedUpdateWithoutSocialsInput = {
1930
1980
  emailPreferences?: Prisma.EmailPreferenceUncheckedUpdateManyWithoutUserNestedInput;
1931
1981
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
1932
1982
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
1933
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
1934
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
1935
1983
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
1936
1984
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
1937
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
1985
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
1986
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
1987
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
1988
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
1938
1989
  };
1939
1990
  export type UserCreateWithoutWalletInput = {
1940
1991
  id?: string;
@@ -1961,11 +2012,12 @@ export type UserCreateWithoutWalletInput = {
1961
2012
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
1962
2013
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
1963
2014
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
1964
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
1965
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
1966
2015
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
1967
2016
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
1968
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
2017
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
2018
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
2019
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
2020
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
1969
2021
  };
1970
2022
  export type UserUncheckedCreateWithoutWalletInput = {
1971
2023
  id?: string;
@@ -1992,11 +2044,12 @@ export type UserUncheckedCreateWithoutWalletInput = {
1992
2044
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
1993
2045
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
1994
2046
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
1995
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
1996
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
1997
2047
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
1998
2048
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
1999
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
2049
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
2050
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
2051
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
2052
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
2000
2053
  };
2001
2054
  export type UserCreateOrConnectWithoutWalletInput = {
2002
2055
  where: Prisma.UserWhereUniqueInput;
@@ -2036,11 +2089,12 @@ export type UserUpdateWithoutWalletInput = {
2036
2089
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2037
2090
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2038
2091
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
2039
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
2040
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
2041
2092
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2042
2093
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
2043
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
2094
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
2095
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
2096
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
2097
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
2044
2098
  };
2045
2099
  export type UserUncheckedUpdateWithoutWalletInput = {
2046
2100
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2067,11 +2121,12 @@ export type UserUncheckedUpdateWithoutWalletInput = {
2067
2121
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2068
2122
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2069
2123
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
2070
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
2071
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
2072
2124
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2073
2125
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
2074
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
2126
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
2127
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
2128
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
2129
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
2075
2130
  };
2076
2131
  export type UserCreateWithoutPropertiesInput = {
2077
2132
  id?: string;
@@ -2098,11 +2153,12 @@ export type UserCreateWithoutPropertiesInput = {
2098
2153
  emailPreferences?: Prisma.EmailPreferenceCreateNestedManyWithoutUserInput;
2099
2154
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
2100
2155
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
2101
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
2102
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
2103
2156
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
2104
2157
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
2105
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
2158
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
2159
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
2160
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
2161
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
2106
2162
  };
2107
2163
  export type UserUncheckedCreateWithoutPropertiesInput = {
2108
2164
  id?: string;
@@ -2129,11 +2185,12 @@ export type UserUncheckedCreateWithoutPropertiesInput = {
2129
2185
  emailPreferences?: Prisma.EmailPreferenceUncheckedCreateNestedManyWithoutUserInput;
2130
2186
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
2131
2187
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
2132
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
2133
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
2134
2188
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
2135
2189
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
2136
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
2190
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
2191
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
2192
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
2193
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
2137
2194
  };
2138
2195
  export type UserCreateOrConnectWithoutPropertiesInput = {
2139
2196
  where: Prisma.UserWhereUniqueInput;
@@ -2173,11 +2230,12 @@ export type UserUpdateWithoutPropertiesInput = {
2173
2230
  emailPreferences?: Prisma.EmailPreferenceUpdateManyWithoutUserNestedInput;
2174
2231
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2175
2232
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2176
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
2177
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
2178
2233
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2179
2234
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
2180
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
2235
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
2236
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
2237
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
2238
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
2181
2239
  };
2182
2240
  export type UserUncheckedUpdateWithoutPropertiesInput = {
2183
2241
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2204,13 +2262,14 @@ export type UserUncheckedUpdateWithoutPropertiesInput = {
2204
2262
  emailPreferences?: Prisma.EmailPreferenceUncheckedUpdateManyWithoutUserNestedInput;
2205
2263
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2206
2264
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2207
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
2208
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
2209
2265
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2210
2266
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
2211
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
2267
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
2268
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
2269
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
2270
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
2212
2271
  };
2213
- export type UserCreateWithoutMortgagesInput = {
2272
+ export type UserCreateWithoutContractsInput = {
2214
2273
  id?: string;
2215
2274
  email: string;
2216
2275
  password?: string | null;
@@ -2236,12 +2295,13 @@ export type UserCreateWithoutMortgagesInput = {
2236
2295
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
2237
2296
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
2238
2297
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
2239
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
2240
- contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
2241
2298
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
2242
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
2299
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
2300
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
2301
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
2302
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
2243
2303
  };
2244
- export type UserUncheckedCreateWithoutMortgagesInput = {
2304
+ export type UserUncheckedCreateWithoutContractsInput = {
2245
2305
  id?: string;
2246
2306
  email: string;
2247
2307
  password?: string | null;
@@ -2267,25 +2327,94 @@ export type UserUncheckedCreateWithoutMortgagesInput = {
2267
2327
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
2268
2328
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
2269
2329
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
2270
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
2271
- contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
2272
2330
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
2273
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
2331
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
2332
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
2333
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
2334
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
2274
2335
  };
2275
- export type UserCreateOrConnectWithoutMortgagesInput = {
2336
+ export type UserCreateOrConnectWithoutContractsInput = {
2276
2337
  where: Prisma.UserWhereUniqueInput;
2277
- create: Prisma.XOR<Prisma.UserCreateWithoutMortgagesInput, Prisma.UserUncheckedCreateWithoutMortgagesInput>;
2338
+ create: Prisma.XOR<Prisma.UserCreateWithoutContractsInput, Prisma.UserUncheckedCreateWithoutContractsInput>;
2278
2339
  };
2279
- export type UserUpsertWithoutMortgagesInput = {
2280
- update: Prisma.XOR<Prisma.UserUpdateWithoutMortgagesInput, Prisma.UserUncheckedUpdateWithoutMortgagesInput>;
2281
- create: Prisma.XOR<Prisma.UserCreateWithoutMortgagesInput, Prisma.UserUncheckedCreateWithoutMortgagesInput>;
2340
+ export type UserCreateWithoutSoldContractsInput = {
2341
+ id?: string;
2342
+ email: string;
2343
+ password?: string | null;
2344
+ phone?: string | null;
2345
+ firstName?: string | null;
2346
+ lastName?: string | null;
2347
+ isActive?: boolean;
2348
+ isEmailVerified?: boolean;
2349
+ googleId?: string | null;
2350
+ avatar?: string | null;
2351
+ createdAt?: Date | string;
2352
+ updatedAt?: Date | string;
2353
+ emailVerifiedAt?: Date | string | null;
2354
+ emailVerificationToken?: string | null;
2355
+ lastLoginAt?: Date | string | null;
2356
+ tenant?: Prisma.TenantCreateNestedOneWithoutUsersInput;
2357
+ userRoles?: Prisma.UserRoleCreateNestedManyWithoutUserInput;
2358
+ wallet?: Prisma.WalletCreateNestedOneWithoutUserInput;
2359
+ refreshTokens?: Prisma.RefreshTokenCreateNestedManyWithoutUserInput;
2360
+ passwordResets?: Prisma.PasswordResetCreateNestedManyWithoutUserInput;
2361
+ suspensions?: Prisma.UserSuspensionCreateNestedManyWithoutUserInput;
2362
+ emailPreferences?: Prisma.EmailPreferenceCreateNestedManyWithoutUserInput;
2363
+ deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
2364
+ socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
2365
+ properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
2366
+ contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
2367
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
2368
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
2369
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
2370
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
2371
+ };
2372
+ export type UserUncheckedCreateWithoutSoldContractsInput = {
2373
+ id?: string;
2374
+ email: string;
2375
+ password?: string | null;
2376
+ phone?: string | null;
2377
+ firstName?: string | null;
2378
+ lastName?: string | null;
2379
+ isActive?: boolean;
2380
+ isEmailVerified?: boolean;
2381
+ googleId?: string | null;
2382
+ avatar?: string | null;
2383
+ tenantId?: string | null;
2384
+ walletId?: string | null;
2385
+ createdAt?: Date | string;
2386
+ updatedAt?: Date | string;
2387
+ emailVerifiedAt?: Date | string | null;
2388
+ emailVerificationToken?: string | null;
2389
+ lastLoginAt?: Date | string | null;
2390
+ userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutUserInput;
2391
+ refreshTokens?: Prisma.RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
2392
+ passwordResets?: Prisma.PasswordResetUncheckedCreateNestedManyWithoutUserInput;
2393
+ suspensions?: Prisma.UserSuspensionUncheckedCreateNestedManyWithoutUserInput;
2394
+ emailPreferences?: Prisma.EmailPreferenceUncheckedCreateNestedManyWithoutUserInput;
2395
+ deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
2396
+ socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
2397
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
2398
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
2399
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
2400
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
2401
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
2402
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
2403
+ };
2404
+ export type UserCreateOrConnectWithoutSoldContractsInput = {
2405
+ where: Prisma.UserWhereUniqueInput;
2406
+ create: Prisma.XOR<Prisma.UserCreateWithoutSoldContractsInput, Prisma.UserUncheckedCreateWithoutSoldContractsInput>;
2407
+ };
2408
+ export type UserUpsertWithoutContractsInput = {
2409
+ update: Prisma.XOR<Prisma.UserUpdateWithoutContractsInput, Prisma.UserUncheckedUpdateWithoutContractsInput>;
2410
+ create: Prisma.XOR<Prisma.UserCreateWithoutContractsInput, Prisma.UserUncheckedCreateWithoutContractsInput>;
2282
2411
  where?: Prisma.UserWhereInput;
2283
2412
  };
2284
- export type UserUpdateToOneWithWhereWithoutMortgagesInput = {
2413
+ export type UserUpdateToOneWithWhereWithoutContractsInput = {
2285
2414
  where?: Prisma.UserWhereInput;
2286
- data: Prisma.XOR<Prisma.UserUpdateWithoutMortgagesInput, Prisma.UserUncheckedUpdateWithoutMortgagesInput>;
2415
+ data: Prisma.XOR<Prisma.UserUpdateWithoutContractsInput, Prisma.UserUncheckedUpdateWithoutContractsInput>;
2287
2416
  };
2288
- export type UserUpdateWithoutMortgagesInput = {
2417
+ export type UserUpdateWithoutContractsInput = {
2289
2418
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2290
2419
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2291
2420
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2311,12 +2440,13 @@ export type UserUpdateWithoutMortgagesInput = {
2311
2440
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2312
2441
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2313
2442
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
2314
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
2315
- contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2316
2443
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
2317
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
2444
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
2445
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
2446
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
2447
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
2318
2448
  };
2319
- export type UserUncheckedUpdateWithoutMortgagesInput = {
2449
+ export type UserUncheckedUpdateWithoutContractsInput = {
2320
2450
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2321
2451
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2322
2452
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2342,12 +2472,86 @@ export type UserUncheckedUpdateWithoutMortgagesInput = {
2342
2472
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2343
2473
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2344
2474
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
2345
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
2346
- contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2347
2475
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
2348
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
2476
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
2477
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
2478
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
2479
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
2480
+ };
2481
+ export type UserUpsertWithoutSoldContractsInput = {
2482
+ update: Prisma.XOR<Prisma.UserUpdateWithoutSoldContractsInput, Prisma.UserUncheckedUpdateWithoutSoldContractsInput>;
2483
+ create: Prisma.XOR<Prisma.UserCreateWithoutSoldContractsInput, Prisma.UserUncheckedCreateWithoutSoldContractsInput>;
2484
+ where?: Prisma.UserWhereInput;
2485
+ };
2486
+ export type UserUpdateToOneWithWhereWithoutSoldContractsInput = {
2487
+ where?: Prisma.UserWhereInput;
2488
+ data: Prisma.XOR<Prisma.UserUpdateWithoutSoldContractsInput, Prisma.UserUncheckedUpdateWithoutSoldContractsInput>;
2489
+ };
2490
+ export type UserUpdateWithoutSoldContractsInput = {
2491
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2492
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2493
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2494
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2495
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2496
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2497
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2498
+ isEmailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2499
+ googleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2500
+ avatar?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2501
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2502
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2503
+ emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2504
+ emailVerificationToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2505
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2506
+ tenant?: Prisma.TenantUpdateOneWithoutUsersNestedInput;
2507
+ userRoles?: Prisma.UserRoleUpdateManyWithoutUserNestedInput;
2508
+ wallet?: Prisma.WalletUpdateOneWithoutUserNestedInput;
2509
+ refreshTokens?: Prisma.RefreshTokenUpdateManyWithoutUserNestedInput;
2510
+ passwordResets?: Prisma.PasswordResetUpdateManyWithoutUserNestedInput;
2511
+ suspensions?: Prisma.UserSuspensionUpdateManyWithoutUserNestedInput;
2512
+ emailPreferences?: Prisma.EmailPreferenceUpdateManyWithoutUserNestedInput;
2513
+ deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2514
+ socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2515
+ properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
2516
+ contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2517
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
2518
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
2519
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
2520
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
2521
+ };
2522
+ export type UserUncheckedUpdateWithoutSoldContractsInput = {
2523
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2524
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2525
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2526
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2527
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2528
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2529
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2530
+ isEmailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2531
+ googleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2532
+ avatar?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2533
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2534
+ walletId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2535
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2536
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2537
+ emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2538
+ emailVerificationToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2539
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2540
+ userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutUserNestedInput;
2541
+ refreshTokens?: Prisma.RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
2542
+ passwordResets?: Prisma.PasswordResetUncheckedUpdateManyWithoutUserNestedInput;
2543
+ suspensions?: Prisma.UserSuspensionUncheckedUpdateManyWithoutUserNestedInput;
2544
+ emailPreferences?: Prisma.EmailPreferenceUncheckedUpdateManyWithoutUserNestedInput;
2545
+ deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2546
+ socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2547
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
2548
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2549
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
2550
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
2551
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
2552
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
2349
2553
  };
2350
- export type UserCreateWithoutPaymentPlansInput = {
2554
+ export type UserCreateWithoutAssignedStepsInput = {
2351
2555
  id?: string;
2352
2556
  email: string;
2353
2557
  password?: string | null;
@@ -2373,12 +2577,13 @@ export type UserCreateWithoutPaymentPlansInput = {
2373
2577
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
2374
2578
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
2375
2579
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
2376
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
2377
2580
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
2378
2581
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
2379
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
2582
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
2583
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
2584
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
2380
2585
  };
2381
- export type UserUncheckedCreateWithoutPaymentPlansInput = {
2586
+ export type UserUncheckedCreateWithoutAssignedStepsInput = {
2382
2587
  id?: string;
2383
2588
  email: string;
2384
2589
  password?: string | null;
@@ -2404,25 +2609,26 @@ export type UserUncheckedCreateWithoutPaymentPlansInput = {
2404
2609
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
2405
2610
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
2406
2611
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
2407
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
2408
2612
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
2409
2613
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
2410
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
2614
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
2615
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
2616
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
2411
2617
  };
2412
- export type UserCreateOrConnectWithoutPaymentPlansInput = {
2618
+ export type UserCreateOrConnectWithoutAssignedStepsInput = {
2413
2619
  where: Prisma.UserWhereUniqueInput;
2414
- create: Prisma.XOR<Prisma.UserCreateWithoutPaymentPlansInput, Prisma.UserUncheckedCreateWithoutPaymentPlansInput>;
2620
+ create: Prisma.XOR<Prisma.UserCreateWithoutAssignedStepsInput, Prisma.UserUncheckedCreateWithoutAssignedStepsInput>;
2415
2621
  };
2416
- export type UserUpsertWithoutPaymentPlansInput = {
2417
- update: Prisma.XOR<Prisma.UserUpdateWithoutPaymentPlansInput, Prisma.UserUncheckedUpdateWithoutPaymentPlansInput>;
2418
- create: Prisma.XOR<Prisma.UserCreateWithoutPaymentPlansInput, Prisma.UserUncheckedCreateWithoutPaymentPlansInput>;
2622
+ export type UserUpsertWithoutAssignedStepsInput = {
2623
+ update: Prisma.XOR<Prisma.UserUpdateWithoutAssignedStepsInput, Prisma.UserUncheckedUpdateWithoutAssignedStepsInput>;
2624
+ create: Prisma.XOR<Prisma.UserCreateWithoutAssignedStepsInput, Prisma.UserUncheckedCreateWithoutAssignedStepsInput>;
2419
2625
  where?: Prisma.UserWhereInput;
2420
2626
  };
2421
- export type UserUpdateToOneWithWhereWithoutPaymentPlansInput = {
2627
+ export type UserUpdateToOneWithWhereWithoutAssignedStepsInput = {
2422
2628
  where?: Prisma.UserWhereInput;
2423
- data: Prisma.XOR<Prisma.UserUpdateWithoutPaymentPlansInput, Prisma.UserUncheckedUpdateWithoutPaymentPlansInput>;
2629
+ data: Prisma.XOR<Prisma.UserUpdateWithoutAssignedStepsInput, Prisma.UserUncheckedUpdateWithoutAssignedStepsInput>;
2424
2630
  };
2425
- export type UserUpdateWithoutPaymentPlansInput = {
2631
+ export type UserUpdateWithoutAssignedStepsInput = {
2426
2632
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2427
2633
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2428
2634
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2448,12 +2654,13 @@ export type UserUpdateWithoutPaymentPlansInput = {
2448
2654
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2449
2655
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2450
2656
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
2451
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
2452
2657
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2453
2658
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
2454
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
2659
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
2660
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
2661
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
2455
2662
  };
2456
- export type UserUncheckedUpdateWithoutPaymentPlansInput = {
2663
+ export type UserUncheckedUpdateWithoutAssignedStepsInput = {
2457
2664
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2458
2665
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2459
2666
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2479,12 +2686,13 @@ export type UserUncheckedUpdateWithoutPaymentPlansInput = {
2479
2686
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2480
2687
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2481
2688
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
2482
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
2483
2689
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2484
2690
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
2485
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
2691
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
2692
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
2693
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
2486
2694
  };
2487
- export type UserCreateWithoutPaymentsInput = {
2695
+ export type UserCreateWithoutStepApprovalsInput = {
2488
2696
  id?: string;
2489
2697
  email: string;
2490
2698
  password?: string | null;
@@ -2510,12 +2718,13 @@ export type UserCreateWithoutPaymentsInput = {
2510
2718
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
2511
2719
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
2512
2720
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
2513
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
2514
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
2515
2721
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
2516
2722
  soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
2723
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
2724
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
2725
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
2517
2726
  };
2518
- export type UserUncheckedCreateWithoutPaymentsInput = {
2727
+ export type UserUncheckedCreateWithoutStepApprovalsInput = {
2519
2728
  id?: string;
2520
2729
  email: string;
2521
2730
  password?: string | null;
@@ -2541,25 +2750,26 @@ export type UserUncheckedCreateWithoutPaymentsInput = {
2541
2750
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
2542
2751
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
2543
2752
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
2544
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
2545
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
2546
2753
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
2547
2754
  soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
2755
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
2756
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
2757
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
2548
2758
  };
2549
- export type UserCreateOrConnectWithoutPaymentsInput = {
2759
+ export type UserCreateOrConnectWithoutStepApprovalsInput = {
2550
2760
  where: Prisma.UserWhereUniqueInput;
2551
- create: Prisma.XOR<Prisma.UserCreateWithoutPaymentsInput, Prisma.UserUncheckedCreateWithoutPaymentsInput>;
2761
+ create: Prisma.XOR<Prisma.UserCreateWithoutStepApprovalsInput, Prisma.UserUncheckedCreateWithoutStepApprovalsInput>;
2552
2762
  };
2553
- export type UserUpsertWithoutPaymentsInput = {
2554
- update: Prisma.XOR<Prisma.UserUpdateWithoutPaymentsInput, Prisma.UserUncheckedUpdateWithoutPaymentsInput>;
2555
- create: Prisma.XOR<Prisma.UserCreateWithoutPaymentsInput, Prisma.UserUncheckedCreateWithoutPaymentsInput>;
2763
+ export type UserUpsertWithoutStepApprovalsInput = {
2764
+ update: Prisma.XOR<Prisma.UserUpdateWithoutStepApprovalsInput, Prisma.UserUncheckedUpdateWithoutStepApprovalsInput>;
2765
+ create: Prisma.XOR<Prisma.UserCreateWithoutStepApprovalsInput, Prisma.UserUncheckedCreateWithoutStepApprovalsInput>;
2556
2766
  where?: Prisma.UserWhereInput;
2557
2767
  };
2558
- export type UserUpdateToOneWithWhereWithoutPaymentsInput = {
2768
+ export type UserUpdateToOneWithWhereWithoutStepApprovalsInput = {
2559
2769
  where?: Prisma.UserWhereInput;
2560
- data: Prisma.XOR<Prisma.UserUpdateWithoutPaymentsInput, Prisma.UserUncheckedUpdateWithoutPaymentsInput>;
2770
+ data: Prisma.XOR<Prisma.UserUpdateWithoutStepApprovalsInput, Prisma.UserUncheckedUpdateWithoutStepApprovalsInput>;
2561
2771
  };
2562
- export type UserUpdateWithoutPaymentsInput = {
2772
+ export type UserUpdateWithoutStepApprovalsInput = {
2563
2773
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2564
2774
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2565
2775
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2585,12 +2795,13 @@ export type UserUpdateWithoutPaymentsInput = {
2585
2795
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2586
2796
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2587
2797
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
2588
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
2589
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
2590
2798
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2591
2799
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
2800
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
2801
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
2802
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
2592
2803
  };
2593
- export type UserUncheckedUpdateWithoutPaymentsInput = {
2804
+ export type UserUncheckedUpdateWithoutStepApprovalsInput = {
2594
2805
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2595
2806
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2596
2807
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2616,78 +2827,13 @@ export type UserUncheckedUpdateWithoutPaymentsInput = {
2616
2827
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2617
2828
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2618
2829
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
2619
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
2620
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
2621
2830
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2622
2831
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
2832
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
2833
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
2834
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
2623
2835
  };
2624
- export type UserCreateWithoutContractsInput = {
2625
- id?: string;
2626
- email: string;
2627
- password?: string | null;
2628
- phone?: string | null;
2629
- firstName?: string | null;
2630
- lastName?: string | null;
2631
- isActive?: boolean;
2632
- isEmailVerified?: boolean;
2633
- googleId?: string | null;
2634
- avatar?: string | null;
2635
- createdAt?: Date | string;
2636
- updatedAt?: Date | string;
2637
- emailVerifiedAt?: Date | string | null;
2638
- emailVerificationToken?: string | null;
2639
- lastLoginAt?: Date | string | null;
2640
- tenant?: Prisma.TenantCreateNestedOneWithoutUsersInput;
2641
- userRoles?: Prisma.UserRoleCreateNestedManyWithoutUserInput;
2642
- wallet?: Prisma.WalletCreateNestedOneWithoutUserInput;
2643
- refreshTokens?: Prisma.RefreshTokenCreateNestedManyWithoutUserInput;
2644
- passwordResets?: Prisma.PasswordResetCreateNestedManyWithoutUserInput;
2645
- suspensions?: Prisma.UserSuspensionCreateNestedManyWithoutUserInput;
2646
- emailPreferences?: Prisma.EmailPreferenceCreateNestedManyWithoutUserInput;
2647
- deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
2648
- socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
2649
- properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
2650
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
2651
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
2652
- soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
2653
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
2654
- };
2655
- export type UserUncheckedCreateWithoutContractsInput = {
2656
- id?: string;
2657
- email: string;
2658
- password?: string | null;
2659
- phone?: string | null;
2660
- firstName?: string | null;
2661
- lastName?: string | null;
2662
- isActive?: boolean;
2663
- isEmailVerified?: boolean;
2664
- googleId?: string | null;
2665
- avatar?: string | null;
2666
- tenantId?: string | null;
2667
- walletId?: string | null;
2668
- createdAt?: Date | string;
2669
- updatedAt?: Date | string;
2670
- emailVerifiedAt?: Date | string | null;
2671
- emailVerificationToken?: string | null;
2672
- lastLoginAt?: Date | string | null;
2673
- userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutUserInput;
2674
- refreshTokens?: Prisma.RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
2675
- passwordResets?: Prisma.PasswordResetUncheckedCreateNestedManyWithoutUserInput;
2676
- suspensions?: Prisma.UserSuspensionUncheckedCreateNestedManyWithoutUserInput;
2677
- emailPreferences?: Prisma.EmailPreferenceUncheckedCreateNestedManyWithoutUserInput;
2678
- deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
2679
- socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
2680
- properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
2681
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
2682
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
2683
- soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
2684
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
2685
- };
2686
- export type UserCreateOrConnectWithoutContractsInput = {
2687
- where: Prisma.UserWhereUniqueInput;
2688
- create: Prisma.XOR<Prisma.UserCreateWithoutContractsInput, Prisma.UserUncheckedCreateWithoutContractsInput>;
2689
- };
2690
- export type UserCreateWithoutSoldContractsInput = {
2836
+ export type UserCreateWithoutContractPaymentsInput = {
2691
2837
  id?: string;
2692
2838
  email: string;
2693
2839
  password?: string | null;
@@ -2713,12 +2859,13 @@ export type UserCreateWithoutSoldContractsInput = {
2713
2859
  deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
2714
2860
  socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
2715
2861
  properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
2716
- mortgages?: Prisma.MortgageCreateNestedManyWithoutBorrowerInput;
2717
- paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutBuyerInput;
2718
2862
  contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
2719
- payments?: Prisma.PaymentCreateNestedManyWithoutPayerInput;
2863
+ soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
2864
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
2865
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
2866
+ uploadedDocs?: Prisma.ContractDocumentCreateNestedManyWithoutUploadedByInput;
2720
2867
  };
2721
- export type UserUncheckedCreateWithoutSoldContractsInput = {
2868
+ export type UserUncheckedCreateWithoutContractPaymentsInput = {
2722
2869
  id?: string;
2723
2870
  email: string;
2724
2871
  password?: string | null;
@@ -2744,25 +2891,26 @@ export type UserUncheckedCreateWithoutSoldContractsInput = {
2744
2891
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
2745
2892
  socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
2746
2893
  properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
2747
- mortgages?: Prisma.MortgageUncheckedCreateNestedManyWithoutBorrowerInput;
2748
- paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutBuyerInput;
2749
2894
  contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
2750
- payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutPayerInput;
2895
+ soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
2896
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
2897
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
2898
+ uploadedDocs?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutUploadedByInput;
2751
2899
  };
2752
- export type UserCreateOrConnectWithoutSoldContractsInput = {
2900
+ export type UserCreateOrConnectWithoutContractPaymentsInput = {
2753
2901
  where: Prisma.UserWhereUniqueInput;
2754
- create: Prisma.XOR<Prisma.UserCreateWithoutSoldContractsInput, Prisma.UserUncheckedCreateWithoutSoldContractsInput>;
2902
+ create: Prisma.XOR<Prisma.UserCreateWithoutContractPaymentsInput, Prisma.UserUncheckedCreateWithoutContractPaymentsInput>;
2755
2903
  };
2756
- export type UserUpsertWithoutContractsInput = {
2757
- update: Prisma.XOR<Prisma.UserUpdateWithoutContractsInput, Prisma.UserUncheckedUpdateWithoutContractsInput>;
2758
- create: Prisma.XOR<Prisma.UserCreateWithoutContractsInput, Prisma.UserUncheckedCreateWithoutContractsInput>;
2904
+ export type UserUpsertWithoutContractPaymentsInput = {
2905
+ update: Prisma.XOR<Prisma.UserUpdateWithoutContractPaymentsInput, Prisma.UserUncheckedUpdateWithoutContractPaymentsInput>;
2906
+ create: Prisma.XOR<Prisma.UserCreateWithoutContractPaymentsInput, Prisma.UserUncheckedCreateWithoutContractPaymentsInput>;
2759
2907
  where?: Prisma.UserWhereInput;
2760
2908
  };
2761
- export type UserUpdateToOneWithWhereWithoutContractsInput = {
2909
+ export type UserUpdateToOneWithWhereWithoutContractPaymentsInput = {
2762
2910
  where?: Prisma.UserWhereInput;
2763
- data: Prisma.XOR<Prisma.UserUpdateWithoutContractsInput, Prisma.UserUncheckedUpdateWithoutContractsInput>;
2911
+ data: Prisma.XOR<Prisma.UserUpdateWithoutContractPaymentsInput, Prisma.UserUncheckedUpdateWithoutContractPaymentsInput>;
2764
2912
  };
2765
- export type UserUpdateWithoutContractsInput = {
2913
+ export type UserUpdateWithoutContractPaymentsInput = {
2766
2914
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2767
2915
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2768
2916
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2788,12 +2936,13 @@ export type UserUpdateWithoutContractsInput = {
2788
2936
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2789
2937
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2790
2938
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
2791
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
2792
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
2939
+ contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2793
2940
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
2794
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
2941
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
2942
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
2943
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
2795
2944
  };
2796
- export type UserUncheckedUpdateWithoutContractsInput = {
2945
+ export type UserUncheckedUpdateWithoutContractPaymentsInput = {
2797
2946
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2798
2947
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2799
2948
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2819,21 +2968,90 @@ export type UserUncheckedUpdateWithoutContractsInput = {
2819
2968
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2820
2969
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2821
2970
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
2822
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
2823
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
2971
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2824
2972
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
2825
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
2973
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
2974
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
2975
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
2826
2976
  };
2827
- export type UserUpsertWithoutSoldContractsInput = {
2828
- update: Prisma.XOR<Prisma.UserUpdateWithoutSoldContractsInput, Prisma.UserUncheckedUpdateWithoutSoldContractsInput>;
2829
- create: Prisma.XOR<Prisma.UserCreateWithoutSoldContractsInput, Prisma.UserUncheckedCreateWithoutSoldContractsInput>;
2977
+ export type UserCreateWithoutUploadedDocsInput = {
2978
+ id?: string;
2979
+ email: string;
2980
+ password?: string | null;
2981
+ phone?: string | null;
2982
+ firstName?: string | null;
2983
+ lastName?: string | null;
2984
+ isActive?: boolean;
2985
+ isEmailVerified?: boolean;
2986
+ googleId?: string | null;
2987
+ avatar?: string | null;
2988
+ createdAt?: Date | string;
2989
+ updatedAt?: Date | string;
2990
+ emailVerifiedAt?: Date | string | null;
2991
+ emailVerificationToken?: string | null;
2992
+ lastLoginAt?: Date | string | null;
2993
+ tenant?: Prisma.TenantCreateNestedOneWithoutUsersInput;
2994
+ userRoles?: Prisma.UserRoleCreateNestedManyWithoutUserInput;
2995
+ wallet?: Prisma.WalletCreateNestedOneWithoutUserInput;
2996
+ refreshTokens?: Prisma.RefreshTokenCreateNestedManyWithoutUserInput;
2997
+ passwordResets?: Prisma.PasswordResetCreateNestedManyWithoutUserInput;
2998
+ suspensions?: Prisma.UserSuspensionCreateNestedManyWithoutUserInput;
2999
+ emailPreferences?: Prisma.EmailPreferenceCreateNestedManyWithoutUserInput;
3000
+ deviceEndpoints?: Prisma.DeviceEndpointCreateNestedManyWithoutUserInput;
3001
+ socials?: Prisma.SocialCreateNestedManyWithoutUserInput;
3002
+ properties?: Prisma.PropertyCreateNestedManyWithoutUserInput;
3003
+ contracts?: Prisma.ContractCreateNestedManyWithoutBuyerInput;
3004
+ soldContracts?: Prisma.ContractCreateNestedManyWithoutSellerInput;
3005
+ contractPayments?: Prisma.ContractPaymentCreateNestedManyWithoutPayerInput;
3006
+ assignedSteps?: Prisma.ContractPhaseStepCreateNestedManyWithoutAssigneeInput;
3007
+ stepApprovals?: Prisma.ContractPhaseStepApprovalCreateNestedManyWithoutApproverInput;
3008
+ };
3009
+ export type UserUncheckedCreateWithoutUploadedDocsInput = {
3010
+ id?: string;
3011
+ email: string;
3012
+ password?: string | null;
3013
+ phone?: string | null;
3014
+ firstName?: string | null;
3015
+ lastName?: string | null;
3016
+ isActive?: boolean;
3017
+ isEmailVerified?: boolean;
3018
+ googleId?: string | null;
3019
+ avatar?: string | null;
3020
+ tenantId?: string | null;
3021
+ walletId?: string | null;
3022
+ createdAt?: Date | string;
3023
+ updatedAt?: Date | string;
3024
+ emailVerifiedAt?: Date | string | null;
3025
+ emailVerificationToken?: string | null;
3026
+ lastLoginAt?: Date | string | null;
3027
+ userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutUserInput;
3028
+ refreshTokens?: Prisma.RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
3029
+ passwordResets?: Prisma.PasswordResetUncheckedCreateNestedManyWithoutUserInput;
3030
+ suspensions?: Prisma.UserSuspensionUncheckedCreateNestedManyWithoutUserInput;
3031
+ emailPreferences?: Prisma.EmailPreferenceUncheckedCreateNestedManyWithoutUserInput;
3032
+ deviceEndpoints?: Prisma.DeviceEndpointUncheckedCreateNestedManyWithoutUserInput;
3033
+ socials?: Prisma.SocialUncheckedCreateNestedManyWithoutUserInput;
3034
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutUserInput;
3035
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutBuyerInput;
3036
+ soldContracts?: Prisma.ContractUncheckedCreateNestedManyWithoutSellerInput;
3037
+ contractPayments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutPayerInput;
3038
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedCreateNestedManyWithoutAssigneeInput;
3039
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedCreateNestedManyWithoutApproverInput;
3040
+ };
3041
+ export type UserCreateOrConnectWithoutUploadedDocsInput = {
3042
+ where: Prisma.UserWhereUniqueInput;
3043
+ create: Prisma.XOR<Prisma.UserCreateWithoutUploadedDocsInput, Prisma.UserUncheckedCreateWithoutUploadedDocsInput>;
3044
+ };
3045
+ export type UserUpsertWithoutUploadedDocsInput = {
3046
+ update: Prisma.XOR<Prisma.UserUpdateWithoutUploadedDocsInput, Prisma.UserUncheckedUpdateWithoutUploadedDocsInput>;
3047
+ create: Prisma.XOR<Prisma.UserCreateWithoutUploadedDocsInput, Prisma.UserUncheckedCreateWithoutUploadedDocsInput>;
2830
3048
  where?: Prisma.UserWhereInput;
2831
3049
  };
2832
- export type UserUpdateToOneWithWhereWithoutSoldContractsInput = {
3050
+ export type UserUpdateToOneWithWhereWithoutUploadedDocsInput = {
2833
3051
  where?: Prisma.UserWhereInput;
2834
- data: Prisma.XOR<Prisma.UserUpdateWithoutSoldContractsInput, Prisma.UserUncheckedUpdateWithoutSoldContractsInput>;
3052
+ data: Prisma.XOR<Prisma.UserUpdateWithoutUploadedDocsInput, Prisma.UserUncheckedUpdateWithoutUploadedDocsInput>;
2835
3053
  };
2836
- export type UserUpdateWithoutSoldContractsInput = {
3054
+ export type UserUpdateWithoutUploadedDocsInput = {
2837
3055
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2838
3056
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2839
3057
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2859,12 +3077,13 @@ export type UserUpdateWithoutSoldContractsInput = {
2859
3077
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2860
3078
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2861
3079
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
2862
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
2863
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
2864
3080
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2865
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
3081
+ soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
3082
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
3083
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
3084
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
2866
3085
  };
2867
- export type UserUncheckedUpdateWithoutSoldContractsInput = {
3086
+ export type UserUncheckedUpdateWithoutUploadedDocsInput = {
2868
3087
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2869
3088
  email?: Prisma.StringFieldUpdateOperationsInput | string;
2870
3089
  password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2890,10 +3109,11 @@ export type UserUncheckedUpdateWithoutSoldContractsInput = {
2890
3109
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2891
3110
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2892
3111
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
2893
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
2894
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
2895
3112
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2896
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
3113
+ soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
3114
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
3115
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
3116
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
2897
3117
  };
2898
3118
  export type UserCreateManyTenantInput = {
2899
3119
  id?: string;
@@ -2938,11 +3158,12 @@ export type UserUpdateWithoutTenantInput = {
2938
3158
  deviceEndpoints?: Prisma.DeviceEndpointUpdateManyWithoutUserNestedInput;
2939
3159
  socials?: Prisma.SocialUpdateManyWithoutUserNestedInput;
2940
3160
  properties?: Prisma.PropertyUpdateManyWithoutUserNestedInput;
2941
- mortgages?: Prisma.MortgageUpdateManyWithoutBorrowerNestedInput;
2942
- paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutBuyerNestedInput;
2943
3161
  contracts?: Prisma.ContractUpdateManyWithoutBuyerNestedInput;
2944
3162
  soldContracts?: Prisma.ContractUpdateManyWithoutSellerNestedInput;
2945
- payments?: Prisma.PaymentUpdateManyWithoutPayerNestedInput;
3163
+ contractPayments?: Prisma.ContractPaymentUpdateManyWithoutPayerNestedInput;
3164
+ assignedSteps?: Prisma.ContractPhaseStepUpdateManyWithoutAssigneeNestedInput;
3165
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUpdateManyWithoutApproverNestedInput;
3166
+ uploadedDocs?: Prisma.ContractDocumentUpdateManyWithoutUploadedByNestedInput;
2946
3167
  };
2947
3168
  export type UserUncheckedUpdateWithoutTenantInput = {
2948
3169
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2969,11 +3190,12 @@ export type UserUncheckedUpdateWithoutTenantInput = {
2969
3190
  deviceEndpoints?: Prisma.DeviceEndpointUncheckedUpdateManyWithoutUserNestedInput;
2970
3191
  socials?: Prisma.SocialUncheckedUpdateManyWithoutUserNestedInput;
2971
3192
  properties?: Prisma.PropertyUncheckedUpdateManyWithoutUserNestedInput;
2972
- mortgages?: Prisma.MortgageUncheckedUpdateManyWithoutBorrowerNestedInput;
2973
- paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutBuyerNestedInput;
2974
3193
  contracts?: Prisma.ContractUncheckedUpdateManyWithoutBuyerNestedInput;
2975
3194
  soldContracts?: Prisma.ContractUncheckedUpdateManyWithoutSellerNestedInput;
2976
- payments?: Prisma.PaymentUncheckedUpdateManyWithoutPayerNestedInput;
3195
+ contractPayments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutPayerNestedInput;
3196
+ assignedSteps?: Prisma.ContractPhaseStepUncheckedUpdateManyWithoutAssigneeNestedInput;
3197
+ stepApprovals?: Prisma.ContractPhaseStepApprovalUncheckedUpdateManyWithoutApproverNestedInput;
3198
+ uploadedDocs?: Prisma.ContractDocumentUncheckedUpdateManyWithoutUploadedByNestedInput;
2977
3199
  };
2978
3200
  export type UserUncheckedUpdateManyWithoutTenantInput = {
2979
3201
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3005,11 +3227,12 @@ export type UserCountOutputType = {
3005
3227
  deviceEndpoints: number;
3006
3228
  socials: number;
3007
3229
  properties: number;
3008
- mortgages: number;
3009
- paymentPlans: number;
3010
3230
  contracts: number;
3011
3231
  soldContracts: number;
3012
- payments: number;
3232
+ contractPayments: number;
3233
+ assignedSteps: number;
3234
+ stepApprovals: number;
3235
+ uploadedDocs: number;
3013
3236
  };
3014
3237
  export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3015
3238
  userRoles?: boolean | UserCountOutputTypeCountUserRolesArgs;
@@ -3020,11 +3243,12 @@ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.I
3020
3243
  deviceEndpoints?: boolean | UserCountOutputTypeCountDeviceEndpointsArgs;
3021
3244
  socials?: boolean | UserCountOutputTypeCountSocialsArgs;
3022
3245
  properties?: boolean | UserCountOutputTypeCountPropertiesArgs;
3023
- mortgages?: boolean | UserCountOutputTypeCountMortgagesArgs;
3024
- paymentPlans?: boolean | UserCountOutputTypeCountPaymentPlansArgs;
3025
3246
  contracts?: boolean | UserCountOutputTypeCountContractsArgs;
3026
3247
  soldContracts?: boolean | UserCountOutputTypeCountSoldContractsArgs;
3027
- payments?: boolean | UserCountOutputTypeCountPaymentsArgs;
3248
+ contractPayments?: boolean | UserCountOutputTypeCountContractPaymentsArgs;
3249
+ assignedSteps?: boolean | UserCountOutputTypeCountAssignedStepsArgs;
3250
+ stepApprovals?: boolean | UserCountOutputTypeCountStepApprovalsArgs;
3251
+ uploadedDocs?: boolean | UserCountOutputTypeCountUploadedDocsArgs;
3028
3252
  };
3029
3253
  /**
3030
3254
  * UserCountOutputType without action
@@ -3086,32 +3310,38 @@ export type UserCountOutputTypeCountPropertiesArgs<ExtArgs extends runtime.Types
3086
3310
  /**
3087
3311
  * UserCountOutputType without action
3088
3312
  */
3089
- export type UserCountOutputTypeCountMortgagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3090
- where?: Prisma.MortgageWhereInput;
3313
+ export type UserCountOutputTypeCountContractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3314
+ where?: Prisma.ContractWhereInput;
3091
3315
  };
3092
3316
  /**
3093
3317
  * UserCountOutputType without action
3094
3318
  */
3095
- export type UserCountOutputTypeCountPaymentPlansArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3096
- where?: Prisma.PaymentPlanWhereInput;
3319
+ export type UserCountOutputTypeCountSoldContractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3320
+ where?: Prisma.ContractWhereInput;
3097
3321
  };
3098
3322
  /**
3099
3323
  * UserCountOutputType without action
3100
3324
  */
3101
- export type UserCountOutputTypeCountContractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3102
- where?: Prisma.ContractWhereInput;
3325
+ export type UserCountOutputTypeCountContractPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3326
+ where?: Prisma.ContractPaymentWhereInput;
3103
3327
  };
3104
3328
  /**
3105
3329
  * UserCountOutputType without action
3106
3330
  */
3107
- export type UserCountOutputTypeCountSoldContractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3108
- where?: Prisma.ContractWhereInput;
3331
+ export type UserCountOutputTypeCountAssignedStepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3332
+ where?: Prisma.ContractPhaseStepWhereInput;
3109
3333
  };
3110
3334
  /**
3111
3335
  * UserCountOutputType without action
3112
3336
  */
3113
- export type UserCountOutputTypeCountPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3114
- where?: Prisma.PaymentWhereInput;
3337
+ export type UserCountOutputTypeCountStepApprovalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3338
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
3339
+ };
3340
+ /**
3341
+ * UserCountOutputType without action
3342
+ */
3343
+ export type UserCountOutputTypeCountUploadedDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3344
+ where?: Prisma.ContractDocumentWhereInput;
3115
3345
  };
3116
3346
  export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3117
3347
  id?: boolean;
@@ -3141,11 +3371,12 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
3141
3371
  deviceEndpoints?: boolean | Prisma.User$deviceEndpointsArgs<ExtArgs>;
3142
3372
  socials?: boolean | Prisma.User$socialsArgs<ExtArgs>;
3143
3373
  properties?: boolean | Prisma.User$propertiesArgs<ExtArgs>;
3144
- mortgages?: boolean | Prisma.User$mortgagesArgs<ExtArgs>;
3145
- paymentPlans?: boolean | Prisma.User$paymentPlansArgs<ExtArgs>;
3146
3374
  contracts?: boolean | Prisma.User$contractsArgs<ExtArgs>;
3147
3375
  soldContracts?: boolean | Prisma.User$soldContractsArgs<ExtArgs>;
3148
- payments?: boolean | Prisma.User$paymentsArgs<ExtArgs>;
3376
+ contractPayments?: boolean | Prisma.User$contractPaymentsArgs<ExtArgs>;
3377
+ assignedSteps?: boolean | Prisma.User$assignedStepsArgs<ExtArgs>;
3378
+ stepApprovals?: boolean | Prisma.User$stepApprovalsArgs<ExtArgs>;
3379
+ uploadedDocs?: boolean | Prisma.User$uploadedDocsArgs<ExtArgs>;
3149
3380
  _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>;
3150
3381
  }, ExtArgs["result"]["user"]>;
3151
3382
  export type UserSelectScalar = {
@@ -3179,11 +3410,12 @@ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3179
3410
  deviceEndpoints?: boolean | Prisma.User$deviceEndpointsArgs<ExtArgs>;
3180
3411
  socials?: boolean | Prisma.User$socialsArgs<ExtArgs>;
3181
3412
  properties?: boolean | Prisma.User$propertiesArgs<ExtArgs>;
3182
- mortgages?: boolean | Prisma.User$mortgagesArgs<ExtArgs>;
3183
- paymentPlans?: boolean | Prisma.User$paymentPlansArgs<ExtArgs>;
3184
3413
  contracts?: boolean | Prisma.User$contractsArgs<ExtArgs>;
3185
3414
  soldContracts?: boolean | Prisma.User$soldContractsArgs<ExtArgs>;
3186
- payments?: boolean | Prisma.User$paymentsArgs<ExtArgs>;
3415
+ contractPayments?: boolean | Prisma.User$contractPaymentsArgs<ExtArgs>;
3416
+ assignedSteps?: boolean | Prisma.User$assignedStepsArgs<ExtArgs>;
3417
+ stepApprovals?: boolean | Prisma.User$stepApprovalsArgs<ExtArgs>;
3418
+ uploadedDocs?: boolean | Prisma.User$uploadedDocsArgs<ExtArgs>;
3187
3419
  _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>;
3188
3420
  };
3189
3421
  export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -3199,11 +3431,12 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3199
3431
  deviceEndpoints: Prisma.$DeviceEndpointPayload<ExtArgs>[];
3200
3432
  socials: Prisma.$SocialPayload<ExtArgs>[];
3201
3433
  properties: Prisma.$PropertyPayload<ExtArgs>[];
3202
- mortgages: Prisma.$MortgagePayload<ExtArgs>[];
3203
- paymentPlans: Prisma.$PaymentPlanPayload<ExtArgs>[];
3204
3434
  contracts: Prisma.$ContractPayload<ExtArgs>[];
3205
3435
  soldContracts: Prisma.$ContractPayload<ExtArgs>[];
3206
- payments: Prisma.$PaymentPayload<ExtArgs>[];
3436
+ contractPayments: Prisma.$ContractPaymentPayload<ExtArgs>[];
3437
+ assignedSteps: Prisma.$ContractPhaseStepPayload<ExtArgs>[];
3438
+ stepApprovals: Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>[];
3439
+ uploadedDocs: Prisma.$ContractDocumentPayload<ExtArgs>[];
3207
3440
  };
3208
3441
  scalars: runtime.Types.Extensions.GetPayloadResult<{
3209
3442
  id: string;
@@ -3510,11 +3743,12 @@ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Typ
3510
3743
  deviceEndpoints<T extends Prisma.User$deviceEndpointsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$deviceEndpointsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeviceEndpointPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3511
3744
  socials<T extends Prisma.User$socialsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$socialsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SocialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3512
3745
  properties<T extends Prisma.User$propertiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$propertiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3513
- mortgages<T extends Prisma.User$mortgagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$mortgagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MortgagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3514
- paymentPlans<T extends Prisma.User$paymentPlansArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$paymentPlansArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPlanPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3515
3746
  contracts<T extends Prisma.User$contractsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$contractsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3516
3747
  soldContracts<T extends Prisma.User$soldContractsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$soldContractsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3517
- payments<T extends Prisma.User$paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3748
+ contractPayments<T extends Prisma.User$contractPaymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$contractPaymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3749
+ assignedSteps<T extends Prisma.User$assignedStepsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$assignedStepsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3750
+ stepApprovals<T extends Prisma.User$stepApprovalsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$stepApprovalsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPhaseStepApprovalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3751
+ uploadedDocs<T extends Prisma.User$uploadedDocsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$uploadedDocsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3518
3752
  /**
3519
3753
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3520
3754
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4105,119 +4339,142 @@ export type User$propertiesArgs<ExtArgs extends runtime.Types.Extensions.Interna
4105
4339
  distinct?: Prisma.PropertyScalarFieldEnum | Prisma.PropertyScalarFieldEnum[];
4106
4340
  };
4107
4341
  /**
4108
- * User.mortgages
4342
+ * User.contracts
4343
+ */
4344
+ export type User$contractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4345
+ /**
4346
+ * Select specific fields to fetch from the Contract
4347
+ */
4348
+ select?: Prisma.ContractSelect<ExtArgs> | null;
4349
+ /**
4350
+ * Omit specific fields from the Contract
4351
+ */
4352
+ omit?: Prisma.ContractOmit<ExtArgs> | null;
4353
+ /**
4354
+ * Choose, which related nodes to fetch as well
4355
+ */
4356
+ include?: Prisma.ContractInclude<ExtArgs> | null;
4357
+ where?: Prisma.ContractWhereInput;
4358
+ orderBy?: Prisma.ContractOrderByWithRelationInput | Prisma.ContractOrderByWithRelationInput[];
4359
+ cursor?: Prisma.ContractWhereUniqueInput;
4360
+ take?: number;
4361
+ skip?: number;
4362
+ distinct?: Prisma.ContractScalarFieldEnum | Prisma.ContractScalarFieldEnum[];
4363
+ };
4364
+ /**
4365
+ * User.soldContracts
4109
4366
  */
4110
- export type User$mortgagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4367
+ export type User$soldContractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4111
4368
  /**
4112
- * Select specific fields to fetch from the Mortgage
4369
+ * Select specific fields to fetch from the Contract
4113
4370
  */
4114
- select?: Prisma.MortgageSelect<ExtArgs> | null;
4371
+ select?: Prisma.ContractSelect<ExtArgs> | null;
4115
4372
  /**
4116
- * Omit specific fields from the Mortgage
4373
+ * Omit specific fields from the Contract
4117
4374
  */
4118
- omit?: Prisma.MortgageOmit<ExtArgs> | null;
4375
+ omit?: Prisma.ContractOmit<ExtArgs> | null;
4119
4376
  /**
4120
4377
  * Choose, which related nodes to fetch as well
4121
4378
  */
4122
- include?: Prisma.MortgageInclude<ExtArgs> | null;
4123
- where?: Prisma.MortgageWhereInput;
4124
- orderBy?: Prisma.MortgageOrderByWithRelationInput | Prisma.MortgageOrderByWithRelationInput[];
4125
- cursor?: Prisma.MortgageWhereUniqueInput;
4379
+ include?: Prisma.ContractInclude<ExtArgs> | null;
4380
+ where?: Prisma.ContractWhereInput;
4381
+ orderBy?: Prisma.ContractOrderByWithRelationInput | Prisma.ContractOrderByWithRelationInput[];
4382
+ cursor?: Prisma.ContractWhereUniqueInput;
4126
4383
  take?: number;
4127
4384
  skip?: number;
4128
- distinct?: Prisma.MortgageScalarFieldEnum | Prisma.MortgageScalarFieldEnum[];
4385
+ distinct?: Prisma.ContractScalarFieldEnum | Prisma.ContractScalarFieldEnum[];
4129
4386
  };
4130
4387
  /**
4131
- * User.paymentPlans
4388
+ * User.contractPayments
4132
4389
  */
4133
- export type User$paymentPlansArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4390
+ export type User$contractPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4134
4391
  /**
4135
- * Select specific fields to fetch from the PaymentPlan
4392
+ * Select specific fields to fetch from the ContractPayment
4136
4393
  */
4137
- select?: Prisma.PaymentPlanSelect<ExtArgs> | null;
4394
+ select?: Prisma.ContractPaymentSelect<ExtArgs> | null;
4138
4395
  /**
4139
- * Omit specific fields from the PaymentPlan
4396
+ * Omit specific fields from the ContractPayment
4140
4397
  */
4141
- omit?: Prisma.PaymentPlanOmit<ExtArgs> | null;
4398
+ omit?: Prisma.ContractPaymentOmit<ExtArgs> | null;
4142
4399
  /**
4143
4400
  * Choose, which related nodes to fetch as well
4144
4401
  */
4145
- include?: Prisma.PaymentPlanInclude<ExtArgs> | null;
4146
- where?: Prisma.PaymentPlanWhereInput;
4147
- orderBy?: Prisma.PaymentPlanOrderByWithRelationInput | Prisma.PaymentPlanOrderByWithRelationInput[];
4148
- cursor?: Prisma.PaymentPlanWhereUniqueInput;
4402
+ include?: Prisma.ContractPaymentInclude<ExtArgs> | null;
4403
+ where?: Prisma.ContractPaymentWhereInput;
4404
+ orderBy?: Prisma.ContractPaymentOrderByWithRelationInput | Prisma.ContractPaymentOrderByWithRelationInput[];
4405
+ cursor?: Prisma.ContractPaymentWhereUniqueInput;
4149
4406
  take?: number;
4150
4407
  skip?: number;
4151
- distinct?: Prisma.PaymentPlanScalarFieldEnum | Prisma.PaymentPlanScalarFieldEnum[];
4408
+ distinct?: Prisma.ContractPaymentScalarFieldEnum | Prisma.ContractPaymentScalarFieldEnum[];
4152
4409
  };
4153
4410
  /**
4154
- * User.contracts
4411
+ * User.assignedSteps
4155
4412
  */
4156
- export type User$contractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4413
+ export type User$assignedStepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4157
4414
  /**
4158
- * Select specific fields to fetch from the Contract
4415
+ * Select specific fields to fetch from the ContractPhaseStep
4159
4416
  */
4160
- select?: Prisma.ContractSelect<ExtArgs> | null;
4417
+ select?: Prisma.ContractPhaseStepSelect<ExtArgs> | null;
4161
4418
  /**
4162
- * Omit specific fields from the Contract
4419
+ * Omit specific fields from the ContractPhaseStep
4163
4420
  */
4164
- omit?: Prisma.ContractOmit<ExtArgs> | null;
4421
+ omit?: Prisma.ContractPhaseStepOmit<ExtArgs> | null;
4165
4422
  /**
4166
4423
  * Choose, which related nodes to fetch as well
4167
4424
  */
4168
- include?: Prisma.ContractInclude<ExtArgs> | null;
4169
- where?: Prisma.ContractWhereInput;
4170
- orderBy?: Prisma.ContractOrderByWithRelationInput | Prisma.ContractOrderByWithRelationInput[];
4171
- cursor?: Prisma.ContractWhereUniqueInput;
4425
+ include?: Prisma.ContractPhaseStepInclude<ExtArgs> | null;
4426
+ where?: Prisma.ContractPhaseStepWhereInput;
4427
+ orderBy?: Prisma.ContractPhaseStepOrderByWithRelationInput | Prisma.ContractPhaseStepOrderByWithRelationInput[];
4428
+ cursor?: Prisma.ContractPhaseStepWhereUniqueInput;
4172
4429
  take?: number;
4173
4430
  skip?: number;
4174
- distinct?: Prisma.ContractScalarFieldEnum | Prisma.ContractScalarFieldEnum[];
4431
+ distinct?: Prisma.ContractPhaseStepScalarFieldEnum | Prisma.ContractPhaseStepScalarFieldEnum[];
4175
4432
  };
4176
4433
  /**
4177
- * User.soldContracts
4434
+ * User.stepApprovals
4178
4435
  */
4179
- export type User$soldContractsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4436
+ export type User$stepApprovalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4180
4437
  /**
4181
- * Select specific fields to fetch from the Contract
4438
+ * Select specific fields to fetch from the ContractPhaseStepApproval
4182
4439
  */
4183
- select?: Prisma.ContractSelect<ExtArgs> | null;
4440
+ select?: Prisma.ContractPhaseStepApprovalSelect<ExtArgs> | null;
4184
4441
  /**
4185
- * Omit specific fields from the Contract
4442
+ * Omit specific fields from the ContractPhaseStepApproval
4186
4443
  */
4187
- omit?: Prisma.ContractOmit<ExtArgs> | null;
4444
+ omit?: Prisma.ContractPhaseStepApprovalOmit<ExtArgs> | null;
4188
4445
  /**
4189
4446
  * Choose, which related nodes to fetch as well
4190
4447
  */
4191
- include?: Prisma.ContractInclude<ExtArgs> | null;
4192
- where?: Prisma.ContractWhereInput;
4193
- orderBy?: Prisma.ContractOrderByWithRelationInput | Prisma.ContractOrderByWithRelationInput[];
4194
- cursor?: Prisma.ContractWhereUniqueInput;
4448
+ include?: Prisma.ContractPhaseStepApprovalInclude<ExtArgs> | null;
4449
+ where?: Prisma.ContractPhaseStepApprovalWhereInput;
4450
+ orderBy?: Prisma.ContractPhaseStepApprovalOrderByWithRelationInput | Prisma.ContractPhaseStepApprovalOrderByWithRelationInput[];
4451
+ cursor?: Prisma.ContractPhaseStepApprovalWhereUniqueInput;
4195
4452
  take?: number;
4196
4453
  skip?: number;
4197
- distinct?: Prisma.ContractScalarFieldEnum | Prisma.ContractScalarFieldEnum[];
4454
+ distinct?: Prisma.ContractPhaseStepApprovalScalarFieldEnum | Prisma.ContractPhaseStepApprovalScalarFieldEnum[];
4198
4455
  };
4199
4456
  /**
4200
- * User.payments
4457
+ * User.uploadedDocs
4201
4458
  */
4202
- export type User$paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4459
+ export type User$uploadedDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4203
4460
  /**
4204
- * Select specific fields to fetch from the Payment
4461
+ * Select specific fields to fetch from the ContractDocument
4205
4462
  */
4206
- select?: Prisma.PaymentSelect<ExtArgs> | null;
4463
+ select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
4207
4464
  /**
4208
- * Omit specific fields from the Payment
4465
+ * Omit specific fields from the ContractDocument
4209
4466
  */
4210
- omit?: Prisma.PaymentOmit<ExtArgs> | null;
4467
+ omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
4211
4468
  /**
4212
4469
  * Choose, which related nodes to fetch as well
4213
4470
  */
4214
- include?: Prisma.PaymentInclude<ExtArgs> | null;
4215
- where?: Prisma.PaymentWhereInput;
4216
- orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
4217
- cursor?: Prisma.PaymentWhereUniqueInput;
4471
+ include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
4472
+ where?: Prisma.ContractDocumentWhereInput;
4473
+ orderBy?: Prisma.ContractDocumentOrderByWithRelationInput | Prisma.ContractDocumentOrderByWithRelationInput[];
4474
+ cursor?: Prisma.ContractDocumentWhereUniqueInput;
4218
4475
  take?: number;
4219
4476
  skip?: number;
4220
- distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[];
4477
+ distinct?: Prisma.ContractDocumentScalarFieldEnum | Prisma.ContractDocumentScalarFieldEnum[];
4221
4478
  };
4222
4479
  /**
4223
4480
  * User without action