@valentine-efagene/qshelter-common 2.0.72 → 2.0.73

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.
@@ -78,6 +78,7 @@ export type ContractMinAggregateOutputType = {
78
78
  terminatedAt: Date | null;
79
79
  createdAt: Date | null;
80
80
  updatedAt: Date | null;
81
+ transferredFromId: string | null;
81
82
  };
82
83
  export type ContractMaxAggregateOutputType = {
83
84
  id: string | null;
@@ -114,6 +115,7 @@ export type ContractMaxAggregateOutputType = {
114
115
  terminatedAt: Date | null;
115
116
  createdAt: Date | null;
116
117
  updatedAt: Date | null;
118
+ transferredFromId: string | null;
117
119
  };
118
120
  export type ContractCountAggregateOutputType = {
119
121
  id: number;
@@ -151,6 +153,7 @@ export type ContractCountAggregateOutputType = {
151
153
  terminatedAt: number;
152
154
  createdAt: number;
153
155
  updatedAt: number;
156
+ transferredFromId: number;
154
157
  _all: number;
155
158
  };
156
159
  export type ContractAvgAggregateInputType = {
@@ -218,6 +221,7 @@ export type ContractMinAggregateInputType = {
218
221
  terminatedAt?: true;
219
222
  createdAt?: true;
220
223
  updatedAt?: true;
224
+ transferredFromId?: true;
221
225
  };
222
226
  export type ContractMaxAggregateInputType = {
223
227
  id?: true;
@@ -254,6 +258,7 @@ export type ContractMaxAggregateInputType = {
254
258
  terminatedAt?: true;
255
259
  createdAt?: true;
256
260
  updatedAt?: true;
261
+ transferredFromId?: true;
257
262
  };
258
263
  export type ContractCountAggregateInputType = {
259
264
  id?: true;
@@ -291,6 +296,7 @@ export type ContractCountAggregateInputType = {
291
296
  terminatedAt?: true;
292
297
  createdAt?: true;
293
298
  updatedAt?: true;
299
+ transferredFromId?: true;
294
300
  _all?: true;
295
301
  };
296
302
  export type ContractAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -405,6 +411,7 @@ export type ContractGroupByOutputType = {
405
411
  terminatedAt: Date | null;
406
412
  createdAt: Date;
407
413
  updatedAt: Date;
414
+ transferredFromId: string | null;
408
415
  _count: ContractCountAggregateOutputType | null;
409
416
  _avg: ContractAvgAggregateOutputType | null;
410
417
  _sum: ContractSumAggregateOutputType | null;
@@ -453,6 +460,7 @@ export type ContractWhereInput = {
453
460
  terminatedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
454
461
  createdAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
455
462
  updatedAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
463
+ transferredFromId?: Prisma.StringNullableFilter<"Contract"> | string | null;
456
464
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
457
465
  propertyUnit?: Prisma.XOR<Prisma.PropertyUnitScalarRelationFilter, Prisma.PropertyUnitWhereInput>;
458
466
  buyer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
@@ -465,6 +473,10 @@ export type ContractWhereInput = {
465
473
  terminations?: Prisma.ContractTerminationListRelationFilter;
466
474
  offerLetters?: Prisma.OfferLetterListRelationFilter;
467
475
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestListRelationFilter;
476
+ transferredFrom?: Prisma.XOR<Prisma.ContractNullableScalarRelationFilter, Prisma.ContractWhereInput> | null;
477
+ transferredTo?: Prisma.XOR<Prisma.ContractNullableScalarRelationFilter, Prisma.ContractWhereInput> | null;
478
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
479
+ incomingTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
468
480
  };
469
481
  export type ContractOrderByWithRelationInput = {
470
482
  id?: Prisma.SortOrder;
@@ -502,6 +514,7 @@ export type ContractOrderByWithRelationInput = {
502
514
  terminatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
503
515
  createdAt?: Prisma.SortOrder;
504
516
  updatedAt?: Prisma.SortOrder;
517
+ transferredFromId?: Prisma.SortOrderInput | Prisma.SortOrder;
505
518
  tenant?: Prisma.TenantOrderByWithRelationInput;
506
519
  propertyUnit?: Prisma.PropertyUnitOrderByWithRelationInput;
507
520
  buyer?: Prisma.UserOrderByWithRelationInput;
@@ -514,11 +527,16 @@ export type ContractOrderByWithRelationInput = {
514
527
  terminations?: Prisma.ContractTerminationOrderByRelationAggregateInput;
515
528
  offerLetters?: Prisma.OfferLetterOrderByRelationAggregateInput;
516
529
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestOrderByRelationAggregateInput;
530
+ transferredFrom?: Prisma.ContractOrderByWithRelationInput;
531
+ transferredTo?: Prisma.ContractOrderByWithRelationInput;
532
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestOrderByRelationAggregateInput;
533
+ incomingTransferRequests?: Prisma.PropertyTransferRequestOrderByRelationAggregateInput;
517
534
  _relevance?: Prisma.ContractOrderByRelevanceInput;
518
535
  };
519
536
  export type ContractWhereUniqueInput = Prisma.AtLeast<{
520
537
  id?: string;
521
538
  contractNumber?: string;
539
+ transferredFromId?: string;
522
540
  AND?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
523
541
  OR?: Prisma.ContractWhereInput[];
524
542
  NOT?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
@@ -567,7 +585,11 @@ export type ContractWhereUniqueInput = Prisma.AtLeast<{
567
585
  terminations?: Prisma.ContractTerminationListRelationFilter;
568
586
  offerLetters?: Prisma.OfferLetterListRelationFilter;
569
587
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestListRelationFilter;
570
- }, "id" | "contractNumber">;
588
+ transferredFrom?: Prisma.XOR<Prisma.ContractNullableScalarRelationFilter, Prisma.ContractWhereInput> | null;
589
+ transferredTo?: Prisma.XOR<Prisma.ContractNullableScalarRelationFilter, Prisma.ContractWhereInput> | null;
590
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
591
+ incomingTransferRequests?: Prisma.PropertyTransferRequestListRelationFilter;
592
+ }, "id" | "contractNumber" | "transferredFromId">;
571
593
  export type ContractOrderByWithAggregationInput = {
572
594
  id?: Prisma.SortOrder;
573
595
  tenantId?: Prisma.SortOrder;
@@ -604,6 +626,7 @@ export type ContractOrderByWithAggregationInput = {
604
626
  terminatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
605
627
  createdAt?: Prisma.SortOrder;
606
628
  updatedAt?: Prisma.SortOrder;
629
+ transferredFromId?: Prisma.SortOrderInput | Prisma.SortOrder;
607
630
  _count?: Prisma.ContractCountOrderByAggregateInput;
608
631
  _avg?: Prisma.ContractAvgOrderByAggregateInput;
609
632
  _max?: Prisma.ContractMaxOrderByAggregateInput;
@@ -649,6 +672,7 @@ export type ContractScalarWhereWithAggregatesInput = {
649
672
  terminatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
650
673
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Contract"> | Date | string;
651
674
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Contract"> | Date | string;
675
+ transferredFromId?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
652
676
  };
653
677
  export type ContractCreateInput = {
654
678
  id?: string;
@@ -693,6 +717,10 @@ export type ContractCreateInput = {
693
717
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
694
718
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
695
719
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
720
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
721
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
722
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
723
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
696
724
  };
697
725
  export type ContractUncheckedCreateInput = {
698
726
  id?: string;
@@ -730,6 +758,7 @@ export type ContractUncheckedCreateInput = {
730
758
  terminatedAt?: Date | string | null;
731
759
  createdAt?: Date | string;
732
760
  updatedAt?: Date | string;
761
+ transferredFromId?: string | null;
733
762
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
734
763
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
735
764
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
@@ -737,6 +766,9 @@ export type ContractUncheckedCreateInput = {
737
766
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
738
767
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
739
768
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
769
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
770
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
771
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
740
772
  };
741
773
  export type ContractUpdateInput = {
742
774
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -781,6 +813,10 @@ export type ContractUpdateInput = {
781
813
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
782
814
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
783
815
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
816
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
817
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
818
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
819
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
784
820
  };
785
821
  export type ContractUncheckedUpdateInput = {
786
822
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -818,6 +854,7 @@ export type ContractUncheckedUpdateInput = {
818
854
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
819
855
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
820
856
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
857
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
821
858
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
822
859
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
823
860
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
@@ -825,6 +862,9 @@ export type ContractUncheckedUpdateInput = {
825
862
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
826
863
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
827
864
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
865
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
866
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
867
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
828
868
  };
829
869
  export type ContractCreateManyInput = {
830
870
  id?: string;
@@ -862,6 +902,7 @@ export type ContractCreateManyInput = {
862
902
  terminatedAt?: Date | string | null;
863
903
  createdAt?: Date | string;
864
904
  updatedAt?: Date | string;
905
+ transferredFromId?: string | null;
865
906
  };
866
907
  export type ContractUpdateManyMutationInput = {
867
908
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -931,6 +972,7 @@ export type ContractUncheckedUpdateManyInput = {
931
972
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
932
973
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
933
974
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
975
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
934
976
  };
935
977
  export type ContractListRelationFilter = {
936
978
  every?: Prisma.ContractWhereInput;
@@ -940,6 +982,10 @@ export type ContractListRelationFilter = {
940
982
  export type ContractOrderByRelationAggregateInput = {
941
983
  _count?: Prisma.SortOrder;
942
984
  };
985
+ export type ContractNullableScalarRelationFilter = {
986
+ is?: Prisma.ContractWhereInput | null;
987
+ isNot?: Prisma.ContractWhereInput | null;
988
+ };
943
989
  export type ContractOrderByRelevanceInput = {
944
990
  fields: Prisma.ContractOrderByRelevanceFieldEnum | Prisma.ContractOrderByRelevanceFieldEnum[];
945
991
  sort: Prisma.SortOrder;
@@ -981,6 +1027,7 @@ export type ContractCountOrderByAggregateInput = {
981
1027
  terminatedAt?: Prisma.SortOrder;
982
1028
  createdAt?: Prisma.SortOrder;
983
1029
  updatedAt?: Prisma.SortOrder;
1030
+ transferredFromId?: Prisma.SortOrder;
984
1031
  };
985
1032
  export type ContractAvgOrderByAggregateInput = {
986
1033
  totalAmount?: Prisma.SortOrder;
@@ -1032,6 +1079,7 @@ export type ContractMaxOrderByAggregateInput = {
1032
1079
  terminatedAt?: Prisma.SortOrder;
1033
1080
  createdAt?: Prisma.SortOrder;
1034
1081
  updatedAt?: Prisma.SortOrder;
1082
+ transferredFromId?: Prisma.SortOrder;
1035
1083
  };
1036
1084
  export type ContractMinOrderByAggregateInput = {
1037
1085
  id?: Prisma.SortOrder;
@@ -1068,6 +1116,7 @@ export type ContractMinOrderByAggregateInput = {
1068
1116
  terminatedAt?: Prisma.SortOrder;
1069
1117
  createdAt?: Prisma.SortOrder;
1070
1118
  updatedAt?: Prisma.SortOrder;
1119
+ transferredFromId?: Prisma.SortOrder;
1071
1120
  };
1072
1121
  export type ContractSumOrderByAggregateInput = {
1073
1122
  totalAmount?: Prisma.SortOrder;
@@ -1278,9 +1327,51 @@ export type ContractUncheckedUpdateManyWithoutPaymentMethodNestedInput = {
1278
1327
  updateMany?: Prisma.ContractUpdateManyWithWhereWithoutPaymentMethodInput | Prisma.ContractUpdateManyWithWhereWithoutPaymentMethodInput[];
1279
1328
  deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
1280
1329
  };
1330
+ export type ContractCreateNestedOneWithoutTransferredToInput = {
1331
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutTransferredToInput, Prisma.ContractUncheckedCreateWithoutTransferredToInput>;
1332
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTransferredToInput;
1333
+ connect?: Prisma.ContractWhereUniqueInput;
1334
+ };
1335
+ export type ContractCreateNestedOneWithoutTransferredFromInput = {
1336
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutTransferredFromInput, Prisma.ContractUncheckedCreateWithoutTransferredFromInput>;
1337
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTransferredFromInput;
1338
+ connect?: Prisma.ContractWhereUniqueInput;
1339
+ };
1340
+ export type ContractUncheckedCreateNestedOneWithoutTransferredFromInput = {
1341
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutTransferredFromInput, Prisma.ContractUncheckedCreateWithoutTransferredFromInput>;
1342
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTransferredFromInput;
1343
+ connect?: Prisma.ContractWhereUniqueInput;
1344
+ };
1281
1345
  export type EnumContractStatusFieldUpdateOperationsInput = {
1282
1346
  set?: $Enums.ContractStatus;
1283
1347
  };
1348
+ export type ContractUpdateOneWithoutTransferredToNestedInput = {
1349
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutTransferredToInput, Prisma.ContractUncheckedCreateWithoutTransferredToInput>;
1350
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTransferredToInput;
1351
+ upsert?: Prisma.ContractUpsertWithoutTransferredToInput;
1352
+ disconnect?: Prisma.ContractWhereInput | boolean;
1353
+ delete?: Prisma.ContractWhereInput | boolean;
1354
+ connect?: Prisma.ContractWhereUniqueInput;
1355
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutTransferredToInput, Prisma.ContractUpdateWithoutTransferredToInput>, Prisma.ContractUncheckedUpdateWithoutTransferredToInput>;
1356
+ };
1357
+ export type ContractUpdateOneWithoutTransferredFromNestedInput = {
1358
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutTransferredFromInput, Prisma.ContractUncheckedCreateWithoutTransferredFromInput>;
1359
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTransferredFromInput;
1360
+ upsert?: Prisma.ContractUpsertWithoutTransferredFromInput;
1361
+ disconnect?: Prisma.ContractWhereInput | boolean;
1362
+ delete?: Prisma.ContractWhereInput | boolean;
1363
+ connect?: Prisma.ContractWhereUniqueInput;
1364
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutTransferredFromInput, Prisma.ContractUpdateWithoutTransferredFromInput>, Prisma.ContractUncheckedUpdateWithoutTransferredFromInput>;
1365
+ };
1366
+ export type ContractUncheckedUpdateOneWithoutTransferredFromNestedInput = {
1367
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutTransferredFromInput, Prisma.ContractUncheckedCreateWithoutTransferredFromInput>;
1368
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTransferredFromInput;
1369
+ upsert?: Prisma.ContractUpsertWithoutTransferredFromInput;
1370
+ disconnect?: Prisma.ContractWhereInput | boolean;
1371
+ delete?: Prisma.ContractWhereInput | boolean;
1372
+ connect?: Prisma.ContractWhereUniqueInput;
1373
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutTransferredFromInput, Prisma.ContractUpdateWithoutTransferredFromInput>, Prisma.ContractUncheckedUpdateWithoutTransferredFromInput>;
1374
+ };
1284
1375
  export type ContractCreateNestedOneWithoutPhasesInput = {
1285
1376
  create?: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
1286
1377
  connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPhasesInput;
@@ -1365,6 +1456,32 @@ export type ContractUpdateOneRequiredWithoutPaymentMethodChangeRequestsNestedInp
1365
1456
  connect?: Prisma.ContractWhereUniqueInput;
1366
1457
  update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUpdateWithoutPaymentMethodChangeRequestsInput>, Prisma.ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput>;
1367
1458
  };
1459
+ export type ContractCreateNestedOneWithoutOutgoingTransferRequestsInput = {
1460
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutOutgoingTransferRequestsInput, Prisma.ContractUncheckedCreateWithoutOutgoingTransferRequestsInput>;
1461
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutOutgoingTransferRequestsInput;
1462
+ connect?: Prisma.ContractWhereUniqueInput;
1463
+ };
1464
+ export type ContractCreateNestedOneWithoutIncomingTransferRequestsInput = {
1465
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutIncomingTransferRequestsInput, Prisma.ContractUncheckedCreateWithoutIncomingTransferRequestsInput>;
1466
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutIncomingTransferRequestsInput;
1467
+ connect?: Prisma.ContractWhereUniqueInput;
1468
+ };
1469
+ export type ContractUpdateOneRequiredWithoutOutgoingTransferRequestsNestedInput = {
1470
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutOutgoingTransferRequestsInput, Prisma.ContractUncheckedCreateWithoutOutgoingTransferRequestsInput>;
1471
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutOutgoingTransferRequestsInput;
1472
+ upsert?: Prisma.ContractUpsertWithoutOutgoingTransferRequestsInput;
1473
+ connect?: Prisma.ContractWhereUniqueInput;
1474
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutOutgoingTransferRequestsInput, Prisma.ContractUpdateWithoutOutgoingTransferRequestsInput>, Prisma.ContractUncheckedUpdateWithoutOutgoingTransferRequestsInput>;
1475
+ };
1476
+ export type ContractUpdateOneWithoutIncomingTransferRequestsNestedInput = {
1477
+ create?: Prisma.XOR<Prisma.ContractCreateWithoutIncomingTransferRequestsInput, Prisma.ContractUncheckedCreateWithoutIncomingTransferRequestsInput>;
1478
+ connectOrCreate?: Prisma.ContractCreateOrConnectWithoutIncomingTransferRequestsInput;
1479
+ upsert?: Prisma.ContractUpsertWithoutIncomingTransferRequestsInput;
1480
+ disconnect?: Prisma.ContractWhereInput | boolean;
1481
+ delete?: Prisma.ContractWhereInput | boolean;
1482
+ connect?: Prisma.ContractWhereUniqueInput;
1483
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutIncomingTransferRequestsInput, Prisma.ContractUpdateWithoutIncomingTransferRequestsInput>, Prisma.ContractUncheckedUpdateWithoutIncomingTransferRequestsInput>;
1484
+ };
1368
1485
  export type ContractCreateWithoutBuyerInput = {
1369
1486
  id?: string;
1370
1487
  contractNumber: string;
@@ -1407,6 +1524,10 @@ export type ContractCreateWithoutBuyerInput = {
1407
1524
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1408
1525
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
1409
1526
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1527
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
1528
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
1529
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
1530
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
1410
1531
  };
1411
1532
  export type ContractUncheckedCreateWithoutBuyerInput = {
1412
1533
  id?: string;
@@ -1443,6 +1564,7 @@ export type ContractUncheckedCreateWithoutBuyerInput = {
1443
1564
  terminatedAt?: Date | string | null;
1444
1565
  createdAt?: Date | string;
1445
1566
  updatedAt?: Date | string;
1567
+ transferredFromId?: string | null;
1446
1568
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
1447
1569
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
1448
1570
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
@@ -1450,6 +1572,9 @@ export type ContractUncheckedCreateWithoutBuyerInput = {
1450
1572
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1451
1573
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
1452
1574
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1575
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
1576
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
1577
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
1453
1578
  };
1454
1579
  export type ContractCreateOrConnectWithoutBuyerInput = {
1455
1580
  where: Prisma.ContractWhereUniqueInput;
@@ -1501,6 +1626,10 @@ export type ContractCreateWithoutSellerInput = {
1501
1626
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1502
1627
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
1503
1628
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1629
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
1630
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
1631
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
1632
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
1504
1633
  };
1505
1634
  export type ContractUncheckedCreateWithoutSellerInput = {
1506
1635
  id?: string;
@@ -1537,6 +1666,7 @@ export type ContractUncheckedCreateWithoutSellerInput = {
1537
1666
  terminatedAt?: Date | string | null;
1538
1667
  createdAt?: Date | string;
1539
1668
  updatedAt?: Date | string;
1669
+ transferredFromId?: string | null;
1540
1670
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
1541
1671
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
1542
1672
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
@@ -1544,6 +1674,9 @@ export type ContractUncheckedCreateWithoutSellerInput = {
1544
1674
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1545
1675
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
1546
1676
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1677
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
1678
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
1679
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
1547
1680
  };
1548
1681
  export type ContractCreateOrConnectWithoutSellerInput = {
1549
1682
  where: Prisma.ContractWhereUniqueInput;
@@ -1605,6 +1738,7 @@ export type ContractScalarWhereInput = {
1605
1738
  terminatedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
1606
1739
  createdAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
1607
1740
  updatedAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
1741
+ transferredFromId?: Prisma.StringNullableFilter<"Contract"> | string | null;
1608
1742
  };
1609
1743
  export type ContractUpsertWithWhereUniqueWithoutSellerInput = {
1610
1744
  where: Prisma.ContractWhereUniqueInput;
@@ -1661,6 +1795,10 @@ export type ContractCreateWithoutTenantInput = {
1661
1795
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1662
1796
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
1663
1797
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1798
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
1799
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
1800
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
1801
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
1664
1802
  };
1665
1803
  export type ContractUncheckedCreateWithoutTenantInput = {
1666
1804
  id?: string;
@@ -1697,6 +1835,7 @@ export type ContractUncheckedCreateWithoutTenantInput = {
1697
1835
  terminatedAt?: Date | string | null;
1698
1836
  createdAt?: Date | string;
1699
1837
  updatedAt?: Date | string;
1838
+ transferredFromId?: string | null;
1700
1839
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
1701
1840
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
1702
1841
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
@@ -1704,6 +1843,9 @@ export type ContractUncheckedCreateWithoutTenantInput = {
1704
1843
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1705
1844
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
1706
1845
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1846
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
1847
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
1848
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
1707
1849
  };
1708
1850
  export type ContractCreateOrConnectWithoutTenantInput = {
1709
1851
  where: Prisma.ContractWhereUniqueInput;
@@ -1768,6 +1910,10 @@ export type ContractCreateWithoutPropertyUnitInput = {
1768
1910
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1769
1911
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
1770
1912
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
1913
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
1914
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
1915
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
1916
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
1771
1917
  };
1772
1918
  export type ContractUncheckedCreateWithoutPropertyUnitInput = {
1773
1919
  id?: string;
@@ -1804,6 +1950,7 @@ export type ContractUncheckedCreateWithoutPropertyUnitInput = {
1804
1950
  terminatedAt?: Date | string | null;
1805
1951
  createdAt?: Date | string;
1806
1952
  updatedAt?: Date | string;
1953
+ transferredFromId?: string | null;
1807
1954
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
1808
1955
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
1809
1956
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
@@ -1811,6 +1958,9 @@ export type ContractUncheckedCreateWithoutPropertyUnitInput = {
1811
1958
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1812
1959
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
1813
1960
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
1961
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
1962
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
1963
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
1814
1964
  };
1815
1965
  export type ContractCreateOrConnectWithoutPropertyUnitInput = {
1816
1966
  where: Prisma.ContractWhereUniqueInput;
@@ -1875,6 +2025,10 @@ export type ContractCreateWithoutPaymentMethodInput = {
1875
2025
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1876
2026
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
1877
2027
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2028
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
2029
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
2030
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
2031
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
1878
2032
  };
1879
2033
  export type ContractUncheckedCreateWithoutPaymentMethodInput = {
1880
2034
  id?: string;
@@ -1911,6 +2065,7 @@ export type ContractUncheckedCreateWithoutPaymentMethodInput = {
1911
2065
  terminatedAt?: Date | string | null;
1912
2066
  createdAt?: Date | string;
1913
2067
  updatedAt?: Date | string;
2068
+ transferredFromId?: string | null;
1914
2069
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
1915
2070
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
1916
2071
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
@@ -1918,6 +2073,9 @@ export type ContractUncheckedCreateWithoutPaymentMethodInput = {
1918
2073
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
1919
2074
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
1920
2075
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2076
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
2077
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
2078
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
1921
2079
  };
1922
2080
  export type ContractCreateOrConnectWithoutPaymentMethodInput = {
1923
2081
  where: Prisma.ContractWhereUniqueInput;
@@ -1940,7 +2098,7 @@ export type ContractUpdateManyWithWhereWithoutPaymentMethodInput = {
1940
2098
  where: Prisma.ContractScalarWhereInput;
1941
2099
  data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.ContractUncheckedUpdateManyWithoutPaymentMethodInput>;
1942
2100
  };
1943
- export type ContractCreateWithoutPhasesInput = {
2101
+ export type ContractCreateWithoutTransferredToInput = {
1944
2102
  id?: string;
1945
2103
  contractNumber: string;
1946
2104
  title: string;
@@ -1976,14 +2134,18 @@ export type ContractCreateWithoutPhasesInput = {
1976
2134
  buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
1977
2135
  seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
1978
2136
  paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
2137
+ phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
1979
2138
  documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
1980
2139
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
1981
2140
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
1982
2141
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
1983
2142
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
1984
2143
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2144
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
2145
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
2146
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
1985
2147
  };
1986
- export type ContractUncheckedCreateWithoutPhasesInput = {
2148
+ export type ContractUncheckedCreateWithoutTransferredToInput = {
1987
2149
  id?: string;
1988
2150
  tenantId: string;
1989
2151
  propertyUnitId: string;
@@ -2019,27 +2181,129 @@ export type ContractUncheckedCreateWithoutPhasesInput = {
2019
2181
  terminatedAt?: Date | string | null;
2020
2182
  createdAt?: Date | string;
2021
2183
  updatedAt?: Date | string;
2184
+ transferredFromId?: string | null;
2185
+ phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2022
2186
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2023
2187
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2024
2188
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2025
2189
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2026
2190
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
2027
2191
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2192
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
2193
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
2028
2194
  };
2029
- export type ContractCreateOrConnectWithoutPhasesInput = {
2195
+ export type ContractCreateOrConnectWithoutTransferredToInput = {
2030
2196
  where: Prisma.ContractWhereUniqueInput;
2031
- create: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
2197
+ create: Prisma.XOR<Prisma.ContractCreateWithoutTransferredToInput, Prisma.ContractUncheckedCreateWithoutTransferredToInput>;
2032
2198
  };
2033
- export type ContractUpsertWithoutPhasesInput = {
2034
- update: Prisma.XOR<Prisma.ContractUpdateWithoutPhasesInput, Prisma.ContractUncheckedUpdateWithoutPhasesInput>;
2035
- create: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
2199
+ export type ContractCreateWithoutTransferredFromInput = {
2200
+ id?: string;
2201
+ contractNumber: string;
2202
+ title: string;
2203
+ description?: string | null;
2204
+ contractType: string;
2205
+ totalAmount: number;
2206
+ downPayment?: number;
2207
+ downPaymentPaid?: number;
2208
+ principal?: number | null;
2209
+ interestRate?: number | null;
2210
+ termMonths?: number | null;
2211
+ periodicPayment?: number | null;
2212
+ totalPaidToDate?: number;
2213
+ totalInterestPaid?: number;
2214
+ monthlyIncome?: number | null;
2215
+ monthlyExpenses?: number | null;
2216
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2217
+ underwritingScore?: number | null;
2218
+ debtToIncomeRatio?: number | null;
2219
+ status?: $Enums.ContractStatus;
2220
+ state?: $Enums.ContractStatus;
2221
+ currentPhaseId?: string | null;
2222
+ nextPaymentDueDate?: Date | string | null;
2223
+ lastReminderSentAt?: Date | string | null;
2224
+ startDate?: Date | string | null;
2225
+ endDate?: Date | string | null;
2226
+ signedAt?: Date | string | null;
2227
+ terminatedAt?: Date | string | null;
2228
+ createdAt?: Date | string;
2229
+ updatedAt?: Date | string;
2230
+ tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
2231
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
2232
+ buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
2233
+ seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
2234
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
2235
+ phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
2236
+ documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2237
+ payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2238
+ events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2239
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2240
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
2241
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2242
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
2243
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
2244
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
2245
+ };
2246
+ export type ContractUncheckedCreateWithoutTransferredFromInput = {
2247
+ id?: string;
2248
+ tenantId: string;
2249
+ propertyUnitId: string;
2250
+ buyerId: string;
2251
+ sellerId?: string | null;
2252
+ paymentMethodId?: string | null;
2253
+ contractNumber: string;
2254
+ title: string;
2255
+ description?: string | null;
2256
+ contractType: string;
2257
+ totalAmount: number;
2258
+ downPayment?: number;
2259
+ downPaymentPaid?: number;
2260
+ principal?: number | null;
2261
+ interestRate?: number | null;
2262
+ termMonths?: number | null;
2263
+ periodicPayment?: number | null;
2264
+ totalPaidToDate?: number;
2265
+ totalInterestPaid?: number;
2266
+ monthlyIncome?: number | null;
2267
+ monthlyExpenses?: number | null;
2268
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2269
+ underwritingScore?: number | null;
2270
+ debtToIncomeRatio?: number | null;
2271
+ status?: $Enums.ContractStatus;
2272
+ state?: $Enums.ContractStatus;
2273
+ currentPhaseId?: string | null;
2274
+ nextPaymentDueDate?: Date | string | null;
2275
+ lastReminderSentAt?: Date | string | null;
2276
+ startDate?: Date | string | null;
2277
+ endDate?: Date | string | null;
2278
+ signedAt?: Date | string | null;
2279
+ terminatedAt?: Date | string | null;
2280
+ createdAt?: Date | string;
2281
+ updatedAt?: Date | string;
2282
+ phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2283
+ documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2284
+ payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2285
+ events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2286
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2287
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
2288
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2289
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
2290
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
2291
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
2292
+ };
2293
+ export type ContractCreateOrConnectWithoutTransferredFromInput = {
2294
+ where: Prisma.ContractWhereUniqueInput;
2295
+ create: Prisma.XOR<Prisma.ContractCreateWithoutTransferredFromInput, Prisma.ContractUncheckedCreateWithoutTransferredFromInput>;
2296
+ };
2297
+ export type ContractUpsertWithoutTransferredToInput = {
2298
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutTransferredToInput, Prisma.ContractUncheckedUpdateWithoutTransferredToInput>;
2299
+ create: Prisma.XOR<Prisma.ContractCreateWithoutTransferredToInput, Prisma.ContractUncheckedCreateWithoutTransferredToInput>;
2036
2300
  where?: Prisma.ContractWhereInput;
2037
2301
  };
2038
- export type ContractUpdateToOneWithWhereWithoutPhasesInput = {
2302
+ export type ContractUpdateToOneWithWhereWithoutTransferredToInput = {
2039
2303
  where?: Prisma.ContractWhereInput;
2040
- data: Prisma.XOR<Prisma.ContractUpdateWithoutPhasesInput, Prisma.ContractUncheckedUpdateWithoutPhasesInput>;
2304
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutTransferredToInput, Prisma.ContractUncheckedUpdateWithoutTransferredToInput>;
2041
2305
  };
2042
- export type ContractUpdateWithoutPhasesInput = {
2306
+ export type ContractUpdateWithoutTransferredToInput = {
2043
2307
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2044
2308
  contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2045
2309
  title?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2075,14 +2339,18 @@ export type ContractUpdateWithoutPhasesInput = {
2075
2339
  buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
2076
2340
  seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
2077
2341
  paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
2342
+ phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
2078
2343
  documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2079
2344
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2080
2345
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2081
2346
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2082
2347
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
2083
2348
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2349
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
2350
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
2351
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
2084
2352
  };
2085
- export type ContractUncheckedUpdateWithoutPhasesInput = {
2353
+ export type ContractUncheckedUpdateWithoutTransferredToInput = {
2086
2354
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2087
2355
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
2088
2356
  propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2118,113 +2386,27 @@ export type ContractUncheckedUpdateWithoutPhasesInput = {
2118
2386
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2119
2387
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2120
2388
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2389
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2390
+ phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
2121
2391
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2122
2392
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2123
2393
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2124
2394
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2125
2395
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
2126
2396
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2397
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
2398
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
2127
2399
  };
2128
- export type ContractCreateWithoutPaymentsInput = {
2129
- id?: string;
2130
- contractNumber: string;
2131
- title: string;
2132
- description?: string | null;
2133
- contractType: string;
2134
- totalAmount: number;
2135
- downPayment?: number;
2136
- downPaymentPaid?: number;
2137
- principal?: number | null;
2138
- interestRate?: number | null;
2139
- termMonths?: number | null;
2140
- periodicPayment?: number | null;
2141
- totalPaidToDate?: number;
2142
- totalInterestPaid?: number;
2143
- monthlyIncome?: number | null;
2144
- monthlyExpenses?: number | null;
2145
- preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2146
- underwritingScore?: number | null;
2147
- debtToIncomeRatio?: number | null;
2148
- status?: $Enums.ContractStatus;
2149
- state?: $Enums.ContractStatus;
2150
- currentPhaseId?: string | null;
2151
- nextPaymentDueDate?: Date | string | null;
2152
- lastReminderSentAt?: Date | string | null;
2153
- startDate?: Date | string | null;
2154
- endDate?: Date | string | null;
2155
- signedAt?: Date | string | null;
2156
- terminatedAt?: Date | string | null;
2157
- createdAt?: Date | string;
2158
- updatedAt?: Date | string;
2159
- tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
2160
- propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
2161
- buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
2162
- seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
2163
- paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
2164
- phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
2165
- documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2166
- events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2167
- terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2168
- offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
2169
- paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2170
- };
2171
- export type ContractUncheckedCreateWithoutPaymentsInput = {
2172
- id?: string;
2173
- tenantId: string;
2174
- propertyUnitId: string;
2175
- buyerId: string;
2176
- sellerId?: string | null;
2177
- paymentMethodId?: string | null;
2178
- contractNumber: string;
2179
- title: string;
2180
- description?: string | null;
2181
- contractType: string;
2182
- totalAmount: number;
2183
- downPayment?: number;
2184
- downPaymentPaid?: number;
2185
- principal?: number | null;
2186
- interestRate?: number | null;
2187
- termMonths?: number | null;
2188
- periodicPayment?: number | null;
2189
- totalPaidToDate?: number;
2190
- totalInterestPaid?: number;
2191
- monthlyIncome?: number | null;
2192
- monthlyExpenses?: number | null;
2193
- preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2194
- underwritingScore?: number | null;
2195
- debtToIncomeRatio?: number | null;
2196
- status?: $Enums.ContractStatus;
2197
- state?: $Enums.ContractStatus;
2198
- currentPhaseId?: string | null;
2199
- nextPaymentDueDate?: Date | string | null;
2200
- lastReminderSentAt?: Date | string | null;
2201
- startDate?: Date | string | null;
2202
- endDate?: Date | string | null;
2203
- signedAt?: Date | string | null;
2204
- terminatedAt?: Date | string | null;
2205
- createdAt?: Date | string;
2206
- updatedAt?: Date | string;
2207
- phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2208
- documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2209
- events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2210
- terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2211
- offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
2212
- paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2213
- };
2214
- export type ContractCreateOrConnectWithoutPaymentsInput = {
2215
- where: Prisma.ContractWhereUniqueInput;
2216
- create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentsInput, Prisma.ContractUncheckedCreateWithoutPaymentsInput>;
2217
- };
2218
- export type ContractUpsertWithoutPaymentsInput = {
2219
- update: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentsInput, Prisma.ContractUncheckedUpdateWithoutPaymentsInput>;
2220
- create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentsInput, Prisma.ContractUncheckedCreateWithoutPaymentsInput>;
2400
+ export type ContractUpsertWithoutTransferredFromInput = {
2401
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutTransferredFromInput, Prisma.ContractUncheckedUpdateWithoutTransferredFromInput>;
2402
+ create: Prisma.XOR<Prisma.ContractCreateWithoutTransferredFromInput, Prisma.ContractUncheckedCreateWithoutTransferredFromInput>;
2221
2403
  where?: Prisma.ContractWhereInput;
2222
2404
  };
2223
- export type ContractUpdateToOneWithWhereWithoutPaymentsInput = {
2405
+ export type ContractUpdateToOneWithWhereWithoutTransferredFromInput = {
2224
2406
  where?: Prisma.ContractWhereInput;
2225
- data: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentsInput, Prisma.ContractUncheckedUpdateWithoutPaymentsInput>;
2407
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutTransferredFromInput, Prisma.ContractUncheckedUpdateWithoutTransferredFromInput>;
2226
2408
  };
2227
- export type ContractUpdateWithoutPaymentsInput = {
2409
+ export type ContractUpdateWithoutTransferredFromInput = {
2228
2410
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2229
2411
  contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2230
2412
  title?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2262,12 +2444,16 @@ export type ContractUpdateWithoutPaymentsInput = {
2262
2444
  paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
2263
2445
  phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
2264
2446
  documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2447
+ payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2265
2448
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2266
2449
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2267
2450
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
2268
2451
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2452
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
2453
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
2454
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
2269
2455
  };
2270
- export type ContractUncheckedUpdateWithoutPaymentsInput = {
2456
+ export type ContractUncheckedUpdateWithoutTransferredFromInput = {
2271
2457
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2272
2458
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
2273
2459
  propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2305,12 +2491,16 @@ export type ContractUncheckedUpdateWithoutPaymentsInput = {
2305
2491
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2306
2492
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
2307
2493
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2494
+ payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2308
2495
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2309
2496
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2310
2497
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
2311
2498
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2499
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
2500
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
2501
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
2312
2502
  };
2313
- export type ContractCreateWithoutDocumentsInput = {
2503
+ export type ContractCreateWithoutPhasesInput = {
2314
2504
  id?: string;
2315
2505
  contractNumber: string;
2316
2506
  title: string;
@@ -2346,14 +2536,18 @@ export type ContractCreateWithoutDocumentsInput = {
2346
2536
  buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
2347
2537
  seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
2348
2538
  paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
2349
- phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
2539
+ documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2350
2540
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2351
2541
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2352
2542
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2353
2543
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
2354
2544
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2545
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
2546
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
2547
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
2548
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
2355
2549
  };
2356
- export type ContractUncheckedCreateWithoutDocumentsInput = {
2550
+ export type ContractUncheckedCreateWithoutPhasesInput = {
2357
2551
  id?: string;
2358
2552
  tenantId: string;
2359
2553
  propertyUnitId: string;
@@ -2389,27 +2583,31 @@ export type ContractUncheckedCreateWithoutDocumentsInput = {
2389
2583
  terminatedAt?: Date | string | null;
2390
2584
  createdAt?: Date | string;
2391
2585
  updatedAt?: Date | string;
2392
- phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2586
+ transferredFromId?: string | null;
2587
+ documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2393
2588
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2394
2589
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2395
2590
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2396
2591
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
2397
2592
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2593
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
2594
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
2595
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
2398
2596
  };
2399
- export type ContractCreateOrConnectWithoutDocumentsInput = {
2597
+ export type ContractCreateOrConnectWithoutPhasesInput = {
2400
2598
  where: Prisma.ContractWhereUniqueInput;
2401
- create: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
2599
+ create: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
2402
2600
  };
2403
- export type ContractUpsertWithoutDocumentsInput = {
2404
- update: Prisma.XOR<Prisma.ContractUpdateWithoutDocumentsInput, Prisma.ContractUncheckedUpdateWithoutDocumentsInput>;
2405
- create: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
2601
+ export type ContractUpsertWithoutPhasesInput = {
2602
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutPhasesInput, Prisma.ContractUncheckedUpdateWithoutPhasesInput>;
2603
+ create: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
2406
2604
  where?: Prisma.ContractWhereInput;
2407
2605
  };
2408
- export type ContractUpdateToOneWithWhereWithoutDocumentsInput = {
2606
+ export type ContractUpdateToOneWithWhereWithoutPhasesInput = {
2409
2607
  where?: Prisma.ContractWhereInput;
2410
- data: Prisma.XOR<Prisma.ContractUpdateWithoutDocumentsInput, Prisma.ContractUncheckedUpdateWithoutDocumentsInput>;
2608
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutPhasesInput, Prisma.ContractUncheckedUpdateWithoutPhasesInput>;
2411
2609
  };
2412
- export type ContractUpdateWithoutDocumentsInput = {
2610
+ export type ContractUpdateWithoutPhasesInput = {
2413
2611
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2414
2612
  contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2415
2613
  title?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2445,14 +2643,18 @@ export type ContractUpdateWithoutDocumentsInput = {
2445
2643
  buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
2446
2644
  seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
2447
2645
  paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
2448
- phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
2646
+ documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2449
2647
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2450
2648
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2451
2649
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2452
2650
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
2453
2651
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2652
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
2653
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
2654
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
2655
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
2454
2656
  };
2455
- export type ContractUncheckedUpdateWithoutDocumentsInput = {
2657
+ export type ContractUncheckedUpdateWithoutPhasesInput = {
2456
2658
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2457
2659
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
2458
2660
  propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2488,14 +2690,18 @@ export type ContractUncheckedUpdateWithoutDocumentsInput = {
2488
2690
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2489
2691
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2490
2692
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2491
- phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
2693
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2694
+ documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2492
2695
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2493
2696
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2494
2697
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2495
2698
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
2496
2699
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2700
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
2701
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
2702
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
2497
2703
  };
2498
- export type ContractCreateWithoutEventsInput = {
2704
+ export type ContractCreateWithoutPaymentsInput = {
2499
2705
  id?: string;
2500
2706
  contractNumber: string;
2501
2707
  title: string;
@@ -2533,12 +2739,16 @@ export type ContractCreateWithoutEventsInput = {
2533
2739
  paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
2534
2740
  phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
2535
2741
  documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2536
- payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2742
+ events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2537
2743
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2538
2744
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
2539
2745
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2746
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
2747
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
2748
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
2749
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
2540
2750
  };
2541
- export type ContractUncheckedCreateWithoutEventsInput = {
2751
+ export type ContractUncheckedCreateWithoutPaymentsInput = {
2542
2752
  id?: string;
2543
2753
  tenantId: string;
2544
2754
  propertyUnitId: string;
@@ -2574,27 +2784,31 @@ export type ContractUncheckedCreateWithoutEventsInput = {
2574
2784
  terminatedAt?: Date | string | null;
2575
2785
  createdAt?: Date | string;
2576
2786
  updatedAt?: Date | string;
2787
+ transferredFromId?: string | null;
2577
2788
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2578
2789
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2579
- payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2790
+ events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2580
2791
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2581
2792
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
2582
2793
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2794
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
2795
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
2796
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
2583
2797
  };
2584
- export type ContractCreateOrConnectWithoutEventsInput = {
2798
+ export type ContractCreateOrConnectWithoutPaymentsInput = {
2585
2799
  where: Prisma.ContractWhereUniqueInput;
2586
- create: Prisma.XOR<Prisma.ContractCreateWithoutEventsInput, Prisma.ContractUncheckedCreateWithoutEventsInput>;
2800
+ create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentsInput, Prisma.ContractUncheckedCreateWithoutPaymentsInput>;
2587
2801
  };
2588
- export type ContractUpsertWithoutEventsInput = {
2589
- update: Prisma.XOR<Prisma.ContractUpdateWithoutEventsInput, Prisma.ContractUncheckedUpdateWithoutEventsInput>;
2590
- create: Prisma.XOR<Prisma.ContractCreateWithoutEventsInput, Prisma.ContractUncheckedCreateWithoutEventsInput>;
2802
+ export type ContractUpsertWithoutPaymentsInput = {
2803
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentsInput, Prisma.ContractUncheckedUpdateWithoutPaymentsInput>;
2804
+ create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentsInput, Prisma.ContractUncheckedCreateWithoutPaymentsInput>;
2591
2805
  where?: Prisma.ContractWhereInput;
2592
2806
  };
2593
- export type ContractUpdateToOneWithWhereWithoutEventsInput = {
2807
+ export type ContractUpdateToOneWithWhereWithoutPaymentsInput = {
2594
2808
  where?: Prisma.ContractWhereInput;
2595
- data: Prisma.XOR<Prisma.ContractUpdateWithoutEventsInput, Prisma.ContractUncheckedUpdateWithoutEventsInput>;
2809
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentsInput, Prisma.ContractUncheckedUpdateWithoutPaymentsInput>;
2596
2810
  };
2597
- export type ContractUpdateWithoutEventsInput = {
2811
+ export type ContractUpdateWithoutPaymentsInput = {
2598
2812
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2599
2813
  contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2600
2814
  title?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2632,12 +2846,16 @@ export type ContractUpdateWithoutEventsInput = {
2632
2846
  paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
2633
2847
  phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
2634
2848
  documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2635
- payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2849
+ events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2636
2850
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
2637
2851
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
2638
2852
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
2853
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
2854
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
2855
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
2856
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
2639
2857
  };
2640
- export type ContractUncheckedUpdateWithoutEventsInput = {
2858
+ export type ContractUncheckedUpdateWithoutPaymentsInput = {
2641
2859
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2642
2860
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
2643
2861
  propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2673,14 +2891,219 @@ export type ContractUncheckedUpdateWithoutEventsInput = {
2673
2891
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2674
2892
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2675
2893
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2894
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2676
2895
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
2677
2896
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2897
+ events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2898
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2899
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
2900
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
2901
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
2902
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
2903
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
2904
+ };
2905
+ export type ContractCreateWithoutDocumentsInput = {
2906
+ id?: string;
2907
+ contractNumber: string;
2908
+ title: string;
2909
+ description?: string | null;
2910
+ contractType: string;
2911
+ totalAmount: number;
2912
+ downPayment?: number;
2913
+ downPaymentPaid?: number;
2914
+ principal?: number | null;
2915
+ interestRate?: number | null;
2916
+ termMonths?: number | null;
2917
+ periodicPayment?: number | null;
2918
+ totalPaidToDate?: number;
2919
+ totalInterestPaid?: number;
2920
+ monthlyIncome?: number | null;
2921
+ monthlyExpenses?: number | null;
2922
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2923
+ underwritingScore?: number | null;
2924
+ debtToIncomeRatio?: number | null;
2925
+ status?: $Enums.ContractStatus;
2926
+ state?: $Enums.ContractStatus;
2927
+ currentPhaseId?: string | null;
2928
+ nextPaymentDueDate?: Date | string | null;
2929
+ lastReminderSentAt?: Date | string | null;
2930
+ startDate?: Date | string | null;
2931
+ endDate?: Date | string | null;
2932
+ signedAt?: Date | string | null;
2933
+ terminatedAt?: Date | string | null;
2934
+ createdAt?: Date | string;
2935
+ updatedAt?: Date | string;
2936
+ tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
2937
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
2938
+ buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
2939
+ seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
2940
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
2941
+ phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
2942
+ payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2943
+ events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2944
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2945
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
2946
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
2947
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
2948
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
2949
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
2950
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
2951
+ };
2952
+ export type ContractUncheckedCreateWithoutDocumentsInput = {
2953
+ id?: string;
2954
+ tenantId: string;
2955
+ propertyUnitId: string;
2956
+ buyerId: string;
2957
+ sellerId?: string | null;
2958
+ paymentMethodId?: string | null;
2959
+ contractNumber: string;
2960
+ title: string;
2961
+ description?: string | null;
2962
+ contractType: string;
2963
+ totalAmount: number;
2964
+ downPayment?: number;
2965
+ downPaymentPaid?: number;
2966
+ principal?: number | null;
2967
+ interestRate?: number | null;
2968
+ termMonths?: number | null;
2969
+ periodicPayment?: number | null;
2970
+ totalPaidToDate?: number;
2971
+ totalInterestPaid?: number;
2972
+ monthlyIncome?: number | null;
2973
+ monthlyExpenses?: number | null;
2974
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2975
+ underwritingScore?: number | null;
2976
+ debtToIncomeRatio?: number | null;
2977
+ status?: $Enums.ContractStatus;
2978
+ state?: $Enums.ContractStatus;
2979
+ currentPhaseId?: string | null;
2980
+ nextPaymentDueDate?: Date | string | null;
2981
+ lastReminderSentAt?: Date | string | null;
2982
+ startDate?: Date | string | null;
2983
+ endDate?: Date | string | null;
2984
+ signedAt?: Date | string | null;
2985
+ terminatedAt?: Date | string | null;
2986
+ createdAt?: Date | string;
2987
+ updatedAt?: Date | string;
2988
+ transferredFromId?: string | null;
2989
+ phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2990
+ payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2991
+ events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2992
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2993
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
2994
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
2995
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
2996
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
2997
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
2998
+ };
2999
+ export type ContractCreateOrConnectWithoutDocumentsInput = {
3000
+ where: Prisma.ContractWhereUniqueInput;
3001
+ create: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
3002
+ };
3003
+ export type ContractUpsertWithoutDocumentsInput = {
3004
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutDocumentsInput, Prisma.ContractUncheckedUpdateWithoutDocumentsInput>;
3005
+ create: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
3006
+ where?: Prisma.ContractWhereInput;
3007
+ };
3008
+ export type ContractUpdateToOneWithWhereWithoutDocumentsInput = {
3009
+ where?: Prisma.ContractWhereInput;
3010
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutDocumentsInput, Prisma.ContractUncheckedUpdateWithoutDocumentsInput>;
3011
+ };
3012
+ export type ContractUpdateWithoutDocumentsInput = {
3013
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3014
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3015
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
3016
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3017
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
3018
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
3019
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
3020
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3021
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3022
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3023
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3024
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3025
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
3026
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3027
+ monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3028
+ monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3029
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3030
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3031
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3032
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3033
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3034
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3035
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3036
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3037
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3038
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3039
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3040
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3041
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3042
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3043
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutContractsNestedInput;
3044
+ propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
3045
+ buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
3046
+ seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
3047
+ paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
3048
+ phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
3049
+ payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3050
+ events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3051
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3052
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3053
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3054
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
3055
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
3056
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
3057
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3058
+ };
3059
+ export type ContractUncheckedUpdateWithoutDocumentsInput = {
3060
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3061
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
3062
+ propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
3063
+ buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
3064
+ sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3065
+ paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3066
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3067
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
3068
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3069
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
3070
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
3071
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
3072
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3073
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3074
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3075
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3076
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3077
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
3078
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3079
+ monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3080
+ monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3081
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3082
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3083
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3084
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3085
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3086
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3087
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3088
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3089
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3090
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3091
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3092
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3093
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3094
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3095
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3096
+ phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
2678
3097
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3098
+ events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2679
3099
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2680
3100
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
2681
3101
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3102
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
3103
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
3104
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
2682
3105
  };
2683
- export type ContractCreateWithoutOfferLettersInput = {
3106
+ export type ContractCreateWithoutEventsInput = {
2684
3107
  id?: string;
2685
3108
  contractNumber: string;
2686
3109
  title: string;
@@ -2719,11 +3142,15 @@ export type ContractCreateWithoutOfferLettersInput = {
2719
3142
  phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
2720
3143
  documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2721
3144
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2722
- events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
2723
3145
  terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
3146
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
2724
3147
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
3148
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
3149
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
3150
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
3151
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
2725
3152
  };
2726
- export type ContractUncheckedCreateWithoutOfferLettersInput = {
3153
+ export type ContractUncheckedCreateWithoutEventsInput = {
2727
3154
  id?: string;
2728
3155
  tenantId: string;
2729
3156
  propertyUnitId: string;
@@ -2759,27 +3186,31 @@ export type ContractUncheckedCreateWithoutOfferLettersInput = {
2759
3186
  terminatedAt?: Date | string | null;
2760
3187
  createdAt?: Date | string;
2761
3188
  updatedAt?: Date | string;
3189
+ transferredFromId?: string | null;
2762
3190
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2763
3191
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2764
3192
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2765
- events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
2766
3193
  terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
3194
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
2767
3195
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
3196
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
3197
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
3198
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
2768
3199
  };
2769
- export type ContractCreateOrConnectWithoutOfferLettersInput = {
3200
+ export type ContractCreateOrConnectWithoutEventsInput = {
2770
3201
  where: Prisma.ContractWhereUniqueInput;
2771
- create: Prisma.XOR<Prisma.ContractCreateWithoutOfferLettersInput, Prisma.ContractUncheckedCreateWithoutOfferLettersInput>;
3202
+ create: Prisma.XOR<Prisma.ContractCreateWithoutEventsInput, Prisma.ContractUncheckedCreateWithoutEventsInput>;
2772
3203
  };
2773
- export type ContractUpsertWithoutOfferLettersInput = {
2774
- update: Prisma.XOR<Prisma.ContractUpdateWithoutOfferLettersInput, Prisma.ContractUncheckedUpdateWithoutOfferLettersInput>;
2775
- create: Prisma.XOR<Prisma.ContractCreateWithoutOfferLettersInput, Prisma.ContractUncheckedCreateWithoutOfferLettersInput>;
3204
+ export type ContractUpsertWithoutEventsInput = {
3205
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutEventsInput, Prisma.ContractUncheckedUpdateWithoutEventsInput>;
3206
+ create: Prisma.XOR<Prisma.ContractCreateWithoutEventsInput, Prisma.ContractUncheckedCreateWithoutEventsInput>;
2776
3207
  where?: Prisma.ContractWhereInput;
2777
3208
  };
2778
- export type ContractUpdateToOneWithWhereWithoutOfferLettersInput = {
3209
+ export type ContractUpdateToOneWithWhereWithoutEventsInput = {
2779
3210
  where?: Prisma.ContractWhereInput;
2780
- data: Prisma.XOR<Prisma.ContractUpdateWithoutOfferLettersInput, Prisma.ContractUncheckedUpdateWithoutOfferLettersInput>;
3211
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutEventsInput, Prisma.ContractUncheckedUpdateWithoutEventsInput>;
2781
3212
  };
2782
- export type ContractUpdateWithoutOfferLettersInput = {
3213
+ export type ContractUpdateWithoutEventsInput = {
2783
3214
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2784
3215
  contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2785
3216
  title?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2818,11 +3249,15 @@ export type ContractUpdateWithoutOfferLettersInput = {
2818
3249
  phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
2819
3250
  documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
2820
3251
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
2821
- events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
2822
3252
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3253
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
2823
3254
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3255
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
3256
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
3257
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
3258
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
2824
3259
  };
2825
- export type ContractUncheckedUpdateWithoutOfferLettersInput = {
3260
+ export type ContractUncheckedUpdateWithoutEventsInput = {
2826
3261
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2827
3262
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
2828
3263
  propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2845,27 +3280,732 @@ export type ContractUncheckedUpdateWithoutOfferLettersInput = {
2845
3280
  monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2846
3281
  monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2847
3282
  preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2848
- underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2849
- debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
2850
- status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
2851
- state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
2852
- currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2853
- nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2854
- lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2855
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2856
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2857
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2858
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2859
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2860
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2861
- phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
2862
- documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
2863
- payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
2864
- events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
2865
- terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
2866
- paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3283
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3284
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3285
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3286
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3287
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3288
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3289
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3290
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3291
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3292
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3293
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3294
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3295
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3296
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3297
+ phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3298
+ documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3299
+ payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3300
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3301
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3302
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3303
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
3304
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
3305
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3306
+ };
3307
+ export type ContractCreateWithoutOfferLettersInput = {
3308
+ id?: string;
3309
+ contractNumber: string;
3310
+ title: string;
3311
+ description?: string | null;
3312
+ contractType: string;
3313
+ totalAmount: number;
3314
+ downPayment?: number;
3315
+ downPaymentPaid?: number;
3316
+ principal?: number | null;
3317
+ interestRate?: number | null;
3318
+ termMonths?: number | null;
3319
+ periodicPayment?: number | null;
3320
+ totalPaidToDate?: number;
3321
+ totalInterestPaid?: number;
3322
+ monthlyIncome?: number | null;
3323
+ monthlyExpenses?: number | null;
3324
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3325
+ underwritingScore?: number | null;
3326
+ debtToIncomeRatio?: number | null;
3327
+ status?: $Enums.ContractStatus;
3328
+ state?: $Enums.ContractStatus;
3329
+ currentPhaseId?: string | null;
3330
+ nextPaymentDueDate?: Date | string | null;
3331
+ lastReminderSentAt?: Date | string | null;
3332
+ startDate?: Date | string | null;
3333
+ endDate?: Date | string | null;
3334
+ signedAt?: Date | string | null;
3335
+ terminatedAt?: Date | string | null;
3336
+ createdAt?: Date | string;
3337
+ updatedAt?: Date | string;
3338
+ tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
3339
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
3340
+ buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
3341
+ seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
3342
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
3343
+ phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
3344
+ documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
3345
+ payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
3346
+ events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
3347
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
3348
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
3349
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
3350
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
3351
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
3352
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
3353
+ };
3354
+ export type ContractUncheckedCreateWithoutOfferLettersInput = {
3355
+ id?: string;
3356
+ tenantId: string;
3357
+ propertyUnitId: string;
3358
+ buyerId: string;
3359
+ sellerId?: string | null;
3360
+ paymentMethodId?: string | null;
3361
+ contractNumber: string;
3362
+ title: string;
3363
+ description?: string | null;
3364
+ contractType: string;
3365
+ totalAmount: number;
3366
+ downPayment?: number;
3367
+ downPaymentPaid?: number;
3368
+ principal?: number | null;
3369
+ interestRate?: number | null;
3370
+ termMonths?: number | null;
3371
+ periodicPayment?: number | null;
3372
+ totalPaidToDate?: number;
3373
+ totalInterestPaid?: number;
3374
+ monthlyIncome?: number | null;
3375
+ monthlyExpenses?: number | null;
3376
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3377
+ underwritingScore?: number | null;
3378
+ debtToIncomeRatio?: number | null;
3379
+ status?: $Enums.ContractStatus;
3380
+ state?: $Enums.ContractStatus;
3381
+ currentPhaseId?: string | null;
3382
+ nextPaymentDueDate?: Date | string | null;
3383
+ lastReminderSentAt?: Date | string | null;
3384
+ startDate?: Date | string | null;
3385
+ endDate?: Date | string | null;
3386
+ signedAt?: Date | string | null;
3387
+ terminatedAt?: Date | string | null;
3388
+ createdAt?: Date | string;
3389
+ updatedAt?: Date | string;
3390
+ transferredFromId?: string | null;
3391
+ phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
3392
+ documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
3393
+ payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
3394
+ events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
3395
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
3396
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
3397
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
3398
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
3399
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
3400
+ };
3401
+ export type ContractCreateOrConnectWithoutOfferLettersInput = {
3402
+ where: Prisma.ContractWhereUniqueInput;
3403
+ create: Prisma.XOR<Prisma.ContractCreateWithoutOfferLettersInput, Prisma.ContractUncheckedCreateWithoutOfferLettersInput>;
3404
+ };
3405
+ export type ContractUpsertWithoutOfferLettersInput = {
3406
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutOfferLettersInput, Prisma.ContractUncheckedUpdateWithoutOfferLettersInput>;
3407
+ create: Prisma.XOR<Prisma.ContractCreateWithoutOfferLettersInput, Prisma.ContractUncheckedCreateWithoutOfferLettersInput>;
3408
+ where?: Prisma.ContractWhereInput;
3409
+ };
3410
+ export type ContractUpdateToOneWithWhereWithoutOfferLettersInput = {
3411
+ where?: Prisma.ContractWhereInput;
3412
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutOfferLettersInput, Prisma.ContractUncheckedUpdateWithoutOfferLettersInput>;
3413
+ };
3414
+ export type ContractUpdateWithoutOfferLettersInput = {
3415
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3416
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3417
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
3418
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3419
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
3420
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
3421
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
3422
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3423
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3424
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3425
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3426
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3427
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
3428
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3429
+ monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3430
+ monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3431
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3432
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3433
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3434
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3435
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3436
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3437
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3438
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3439
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3440
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3441
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3442
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3443
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3444
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3445
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutContractsNestedInput;
3446
+ propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
3447
+ buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
3448
+ seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
3449
+ paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
3450
+ phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
3451
+ documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
3452
+ payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3453
+ events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3454
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3455
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3456
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
3457
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
3458
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
3459
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3460
+ };
3461
+ export type ContractUncheckedUpdateWithoutOfferLettersInput = {
3462
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3463
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
3464
+ propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
3465
+ buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
3466
+ sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3467
+ paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3468
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3469
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
3470
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3471
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
3472
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
3473
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
3474
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3475
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3476
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3477
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3478
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3479
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
3480
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3481
+ monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3482
+ monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3483
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3484
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3485
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3486
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3487
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3488
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3489
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3490
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3491
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3492
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3493
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3494
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3495
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3496
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3497
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3498
+ phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3499
+ documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3500
+ payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3501
+ events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3502
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3503
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3504
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
3505
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
3506
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3507
+ };
3508
+ export type ContractCreateWithoutTerminationsInput = {
3509
+ id?: string;
3510
+ contractNumber: string;
3511
+ title: string;
3512
+ description?: string | null;
3513
+ contractType: string;
3514
+ totalAmount: number;
3515
+ downPayment?: number;
3516
+ downPaymentPaid?: number;
3517
+ principal?: number | null;
3518
+ interestRate?: number | null;
3519
+ termMonths?: number | null;
3520
+ periodicPayment?: number | null;
3521
+ totalPaidToDate?: number;
3522
+ totalInterestPaid?: number;
3523
+ monthlyIncome?: number | null;
3524
+ monthlyExpenses?: number | null;
3525
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3526
+ underwritingScore?: number | null;
3527
+ debtToIncomeRatio?: number | null;
3528
+ status?: $Enums.ContractStatus;
3529
+ state?: $Enums.ContractStatus;
3530
+ currentPhaseId?: string | null;
3531
+ nextPaymentDueDate?: Date | string | null;
3532
+ lastReminderSentAt?: Date | string | null;
3533
+ startDate?: Date | string | null;
3534
+ endDate?: Date | string | null;
3535
+ signedAt?: Date | string | null;
3536
+ terminatedAt?: Date | string | null;
3537
+ createdAt?: Date | string;
3538
+ updatedAt?: Date | string;
3539
+ tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
3540
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
3541
+ buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
3542
+ seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
3543
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
3544
+ phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
3545
+ documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
3546
+ payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
3547
+ events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
3548
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
3549
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
3550
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
3551
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
3552
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
3553
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
3554
+ };
3555
+ export type ContractUncheckedCreateWithoutTerminationsInput = {
3556
+ id?: string;
3557
+ tenantId: string;
3558
+ propertyUnitId: string;
3559
+ buyerId: string;
3560
+ sellerId?: string | null;
3561
+ paymentMethodId?: string | null;
3562
+ contractNumber: string;
3563
+ title: string;
3564
+ description?: string | null;
3565
+ contractType: string;
3566
+ totalAmount: number;
3567
+ downPayment?: number;
3568
+ downPaymentPaid?: number;
3569
+ principal?: number | null;
3570
+ interestRate?: number | null;
3571
+ termMonths?: number | null;
3572
+ periodicPayment?: number | null;
3573
+ totalPaidToDate?: number;
3574
+ totalInterestPaid?: number;
3575
+ monthlyIncome?: number | null;
3576
+ monthlyExpenses?: number | null;
3577
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3578
+ underwritingScore?: number | null;
3579
+ debtToIncomeRatio?: number | null;
3580
+ status?: $Enums.ContractStatus;
3581
+ state?: $Enums.ContractStatus;
3582
+ currentPhaseId?: string | null;
3583
+ nextPaymentDueDate?: Date | string | null;
3584
+ lastReminderSentAt?: Date | string | null;
3585
+ startDate?: Date | string | null;
3586
+ endDate?: Date | string | null;
3587
+ signedAt?: Date | string | null;
3588
+ terminatedAt?: Date | string | null;
3589
+ createdAt?: Date | string;
3590
+ updatedAt?: Date | string;
3591
+ transferredFromId?: string | null;
3592
+ phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
3593
+ documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
3594
+ payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
3595
+ events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
3596
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
3597
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
3598
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
3599
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
3600
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
3601
+ };
3602
+ export type ContractCreateOrConnectWithoutTerminationsInput = {
3603
+ where: Prisma.ContractWhereUniqueInput;
3604
+ create: Prisma.XOR<Prisma.ContractCreateWithoutTerminationsInput, Prisma.ContractUncheckedCreateWithoutTerminationsInput>;
3605
+ };
3606
+ export type ContractUpsertWithoutTerminationsInput = {
3607
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutTerminationsInput, Prisma.ContractUncheckedUpdateWithoutTerminationsInput>;
3608
+ create: Prisma.XOR<Prisma.ContractCreateWithoutTerminationsInput, Prisma.ContractUncheckedCreateWithoutTerminationsInput>;
3609
+ where?: Prisma.ContractWhereInput;
3610
+ };
3611
+ export type ContractUpdateToOneWithWhereWithoutTerminationsInput = {
3612
+ where?: Prisma.ContractWhereInput;
3613
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutTerminationsInput, Prisma.ContractUncheckedUpdateWithoutTerminationsInput>;
3614
+ };
3615
+ export type ContractUpdateWithoutTerminationsInput = {
3616
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3617
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3618
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
3619
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3620
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
3621
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
3622
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
3623
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3624
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3625
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3626
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3627
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3628
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
3629
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3630
+ monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3631
+ monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3632
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3633
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3634
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3635
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3636
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3637
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3638
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3639
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3640
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3641
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3642
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3643
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3644
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3645
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3646
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutContractsNestedInput;
3647
+ propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
3648
+ buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
3649
+ seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
3650
+ paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
3651
+ phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
3652
+ documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
3653
+ payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3654
+ events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3655
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3656
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
3657
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
3658
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
3659
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
3660
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3661
+ };
3662
+ export type ContractUncheckedUpdateWithoutTerminationsInput = {
3663
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3664
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
3665
+ propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
3666
+ buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
3667
+ sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3668
+ paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3669
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3670
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
3671
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3672
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
3673
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
3674
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
3675
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3676
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3677
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3678
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3679
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3680
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
3681
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3682
+ monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3683
+ monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3684
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3685
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3686
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3687
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3688
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3689
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3690
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3691
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3692
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3693
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3694
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3695
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3696
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3697
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3698
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3699
+ phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3700
+ documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3701
+ payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3702
+ events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3703
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3704
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
3705
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
3706
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
3707
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3708
+ };
3709
+ export type ContractCreateWithoutPaymentMethodChangeRequestsInput = {
3710
+ id?: string;
3711
+ contractNumber: string;
3712
+ title: string;
3713
+ description?: string | null;
3714
+ contractType: string;
3715
+ totalAmount: number;
3716
+ downPayment?: number;
3717
+ downPaymentPaid?: number;
3718
+ principal?: number | null;
3719
+ interestRate?: number | null;
3720
+ termMonths?: number | null;
3721
+ periodicPayment?: number | null;
3722
+ totalPaidToDate?: number;
3723
+ totalInterestPaid?: number;
3724
+ monthlyIncome?: number | null;
3725
+ monthlyExpenses?: number | null;
3726
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3727
+ underwritingScore?: number | null;
3728
+ debtToIncomeRatio?: number | null;
3729
+ status?: $Enums.ContractStatus;
3730
+ state?: $Enums.ContractStatus;
3731
+ currentPhaseId?: string | null;
3732
+ nextPaymentDueDate?: Date | string | null;
3733
+ lastReminderSentAt?: Date | string | null;
3734
+ startDate?: Date | string | null;
3735
+ endDate?: Date | string | null;
3736
+ signedAt?: Date | string | null;
3737
+ terminatedAt?: Date | string | null;
3738
+ createdAt?: Date | string;
3739
+ updatedAt?: Date | string;
3740
+ tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
3741
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
3742
+ buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
3743
+ seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
3744
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
3745
+ phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
3746
+ documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
3747
+ payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
3748
+ events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
3749
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
3750
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
3751
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
3752
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
3753
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
3754
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
3755
+ };
3756
+ export type ContractUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
3757
+ id?: string;
3758
+ tenantId: string;
3759
+ propertyUnitId: string;
3760
+ buyerId: string;
3761
+ sellerId?: string | null;
3762
+ paymentMethodId?: string | null;
3763
+ contractNumber: string;
3764
+ title: string;
3765
+ description?: string | null;
3766
+ contractType: string;
3767
+ totalAmount: number;
3768
+ downPayment?: number;
3769
+ downPaymentPaid?: number;
3770
+ principal?: number | null;
3771
+ interestRate?: number | null;
3772
+ termMonths?: number | null;
3773
+ periodicPayment?: number | null;
3774
+ totalPaidToDate?: number;
3775
+ totalInterestPaid?: number;
3776
+ monthlyIncome?: number | null;
3777
+ monthlyExpenses?: number | null;
3778
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3779
+ underwritingScore?: number | null;
3780
+ debtToIncomeRatio?: number | null;
3781
+ status?: $Enums.ContractStatus;
3782
+ state?: $Enums.ContractStatus;
3783
+ currentPhaseId?: string | null;
3784
+ nextPaymentDueDate?: Date | string | null;
3785
+ lastReminderSentAt?: Date | string | null;
3786
+ startDate?: Date | string | null;
3787
+ endDate?: Date | string | null;
3788
+ signedAt?: Date | string | null;
3789
+ terminatedAt?: Date | string | null;
3790
+ createdAt?: Date | string;
3791
+ updatedAt?: Date | string;
3792
+ transferredFromId?: string | null;
3793
+ phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
3794
+ documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
3795
+ payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
3796
+ events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
3797
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
3798
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
3799
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
3800
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
3801
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
3802
+ };
3803
+ export type ContractCreateOrConnectWithoutPaymentMethodChangeRequestsInput = {
3804
+ where: Prisma.ContractWhereUniqueInput;
3805
+ create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodChangeRequestsInput>;
3806
+ };
3807
+ export type ContractUpsertWithoutPaymentMethodChangeRequestsInput = {
3808
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput>;
3809
+ create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodChangeRequestsInput>;
3810
+ where?: Prisma.ContractWhereInput;
3811
+ };
3812
+ export type ContractUpdateToOneWithWhereWithoutPaymentMethodChangeRequestsInput = {
3813
+ where?: Prisma.ContractWhereInput;
3814
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput>;
3815
+ };
3816
+ export type ContractUpdateWithoutPaymentMethodChangeRequestsInput = {
3817
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3818
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3819
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
3820
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3821
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
3822
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
3823
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
3824
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3825
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3826
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3827
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3828
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3829
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
3830
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3831
+ monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3832
+ monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3833
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3834
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3835
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3836
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3837
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3838
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3839
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3840
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3841
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3842
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3843
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3844
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3845
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3846
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3847
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutContractsNestedInput;
3848
+ propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
3849
+ buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
3850
+ seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
3851
+ paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
3852
+ phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
3853
+ documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
3854
+ payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3855
+ events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3856
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3857
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3858
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
3859
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
3860
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
3861
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3862
+ };
3863
+ export type ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
3864
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3865
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
3866
+ propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
3867
+ buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
3868
+ sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3869
+ paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3870
+ contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3871
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
3872
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3873
+ contractType?: Prisma.StringFieldUpdateOperationsInput | string;
3874
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
3875
+ downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
3876
+ downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3877
+ principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3878
+ interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3879
+ termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3880
+ periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3881
+ totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
3882
+ totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
3883
+ monthlyIncome?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3884
+ monthlyExpenses?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3885
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3886
+ underwritingScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3887
+ debtToIncomeRatio?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
3888
+ status?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3889
+ state?: Prisma.EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus;
3890
+ currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3891
+ nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3892
+ lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3893
+ startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3894
+ endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3895
+ signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3896
+ terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3897
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3898
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3899
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3900
+ phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3901
+ documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3902
+ payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3903
+ events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3904
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3905
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3906
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
3907
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
3908
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3909
+ };
3910
+ export type ContractCreateWithoutOutgoingTransferRequestsInput = {
3911
+ id?: string;
3912
+ contractNumber: string;
3913
+ title: string;
3914
+ description?: string | null;
3915
+ contractType: string;
3916
+ totalAmount: number;
3917
+ downPayment?: number;
3918
+ downPaymentPaid?: number;
3919
+ principal?: number | null;
3920
+ interestRate?: number | null;
3921
+ termMonths?: number | null;
3922
+ periodicPayment?: number | null;
3923
+ totalPaidToDate?: number;
3924
+ totalInterestPaid?: number;
3925
+ monthlyIncome?: number | null;
3926
+ monthlyExpenses?: number | null;
3927
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3928
+ underwritingScore?: number | null;
3929
+ debtToIncomeRatio?: number | null;
3930
+ status?: $Enums.ContractStatus;
3931
+ state?: $Enums.ContractStatus;
3932
+ currentPhaseId?: string | null;
3933
+ nextPaymentDueDate?: Date | string | null;
3934
+ lastReminderSentAt?: Date | string | null;
3935
+ startDate?: Date | string | null;
3936
+ endDate?: Date | string | null;
3937
+ signedAt?: Date | string | null;
3938
+ terminatedAt?: Date | string | null;
3939
+ createdAt?: Date | string;
3940
+ updatedAt?: Date | string;
3941
+ tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
3942
+ propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
3943
+ buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
3944
+ seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
3945
+ paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
3946
+ phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
3947
+ documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
3948
+ payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
3949
+ events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
3950
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
3951
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
3952
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
3953
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
3954
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
3955
+ incomingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutTargetContractInput;
3956
+ };
3957
+ export type ContractUncheckedCreateWithoutOutgoingTransferRequestsInput = {
3958
+ id?: string;
3959
+ tenantId: string;
3960
+ propertyUnitId: string;
3961
+ buyerId: string;
3962
+ sellerId?: string | null;
3963
+ paymentMethodId?: string | null;
3964
+ contractNumber: string;
3965
+ title: string;
3966
+ description?: string | null;
3967
+ contractType: string;
3968
+ totalAmount: number;
3969
+ downPayment?: number;
3970
+ downPaymentPaid?: number;
3971
+ principal?: number | null;
3972
+ interestRate?: number | null;
3973
+ termMonths?: number | null;
3974
+ periodicPayment?: number | null;
3975
+ totalPaidToDate?: number;
3976
+ totalInterestPaid?: number;
3977
+ monthlyIncome?: number | null;
3978
+ monthlyExpenses?: number | null;
3979
+ preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3980
+ underwritingScore?: number | null;
3981
+ debtToIncomeRatio?: number | null;
3982
+ status?: $Enums.ContractStatus;
3983
+ state?: $Enums.ContractStatus;
3984
+ currentPhaseId?: string | null;
3985
+ nextPaymentDueDate?: Date | string | null;
3986
+ lastReminderSentAt?: Date | string | null;
3987
+ startDate?: Date | string | null;
3988
+ endDate?: Date | string | null;
3989
+ signedAt?: Date | string | null;
3990
+ terminatedAt?: Date | string | null;
3991
+ createdAt?: Date | string;
3992
+ updatedAt?: Date | string;
3993
+ transferredFromId?: string | null;
3994
+ phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
3995
+ documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
3996
+ payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
3997
+ events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
3998
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
3999
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
4000
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
4001
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
4002
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutTargetContractInput;
2867
4003
  };
2868
- export type ContractCreateWithoutTerminationsInput = {
4004
+ export type ContractCreateOrConnectWithoutOutgoingTransferRequestsInput = {
4005
+ where: Prisma.ContractWhereUniqueInput;
4006
+ create: Prisma.XOR<Prisma.ContractCreateWithoutOutgoingTransferRequestsInput, Prisma.ContractUncheckedCreateWithoutOutgoingTransferRequestsInput>;
4007
+ };
4008
+ export type ContractCreateWithoutIncomingTransferRequestsInput = {
2869
4009
  id?: string;
2870
4010
  contractNumber: string;
2871
4011
  title: string;
@@ -2905,10 +4045,14 @@ export type ContractCreateWithoutTerminationsInput = {
2905
4045
  documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
2906
4046
  payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
2907
4047
  events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
4048
+ terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
2908
4049
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
2909
4050
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutContractInput;
4051
+ transferredFrom?: Prisma.ContractCreateNestedOneWithoutTransferredToInput;
4052
+ transferredTo?: Prisma.ContractCreateNestedOneWithoutTransferredFromInput;
4053
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestCreateNestedManyWithoutSourceContractInput;
2910
4054
  };
2911
- export type ContractUncheckedCreateWithoutTerminationsInput = {
4055
+ export type ContractUncheckedCreateWithoutIncomingTransferRequestsInput = {
2912
4056
  id?: string;
2913
4057
  tenantId: string;
2914
4058
  propertyUnitId: string;
@@ -2944,27 +4088,31 @@ export type ContractUncheckedCreateWithoutTerminationsInput = {
2944
4088
  terminatedAt?: Date | string | null;
2945
4089
  createdAt?: Date | string;
2946
4090
  updatedAt?: Date | string;
4091
+ transferredFromId?: string | null;
2947
4092
  phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
2948
4093
  documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
2949
4094
  payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
2950
4095
  events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
4096
+ terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
2951
4097
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
2952
4098
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutContractInput;
4099
+ transferredTo?: Prisma.ContractUncheckedCreateNestedOneWithoutTransferredFromInput;
4100
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedCreateNestedManyWithoutSourceContractInput;
2953
4101
  };
2954
- export type ContractCreateOrConnectWithoutTerminationsInput = {
4102
+ export type ContractCreateOrConnectWithoutIncomingTransferRequestsInput = {
2955
4103
  where: Prisma.ContractWhereUniqueInput;
2956
- create: Prisma.XOR<Prisma.ContractCreateWithoutTerminationsInput, Prisma.ContractUncheckedCreateWithoutTerminationsInput>;
4104
+ create: Prisma.XOR<Prisma.ContractCreateWithoutIncomingTransferRequestsInput, Prisma.ContractUncheckedCreateWithoutIncomingTransferRequestsInput>;
2957
4105
  };
2958
- export type ContractUpsertWithoutTerminationsInput = {
2959
- update: Prisma.XOR<Prisma.ContractUpdateWithoutTerminationsInput, Prisma.ContractUncheckedUpdateWithoutTerminationsInput>;
2960
- create: Prisma.XOR<Prisma.ContractCreateWithoutTerminationsInput, Prisma.ContractUncheckedCreateWithoutTerminationsInput>;
4106
+ export type ContractUpsertWithoutOutgoingTransferRequestsInput = {
4107
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutOutgoingTransferRequestsInput, Prisma.ContractUncheckedUpdateWithoutOutgoingTransferRequestsInput>;
4108
+ create: Prisma.XOR<Prisma.ContractCreateWithoutOutgoingTransferRequestsInput, Prisma.ContractUncheckedCreateWithoutOutgoingTransferRequestsInput>;
2961
4109
  where?: Prisma.ContractWhereInput;
2962
4110
  };
2963
- export type ContractUpdateToOneWithWhereWithoutTerminationsInput = {
4111
+ export type ContractUpdateToOneWithWhereWithoutOutgoingTransferRequestsInput = {
2964
4112
  where?: Prisma.ContractWhereInput;
2965
- data: Prisma.XOR<Prisma.ContractUpdateWithoutTerminationsInput, Prisma.ContractUncheckedUpdateWithoutTerminationsInput>;
4113
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutOutgoingTransferRequestsInput, Prisma.ContractUncheckedUpdateWithoutOutgoingTransferRequestsInput>;
2966
4114
  };
2967
- export type ContractUpdateWithoutTerminationsInput = {
4115
+ export type ContractUpdateWithoutOutgoingTransferRequestsInput = {
2968
4116
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2969
4117
  contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
2970
4118
  title?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3004,10 +4152,14 @@ export type ContractUpdateWithoutTerminationsInput = {
3004
4152
  documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
3005
4153
  payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
3006
4154
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
4155
+ terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3007
4156
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3008
4157
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
4158
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
4159
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
4160
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3009
4161
  };
3010
- export type ContractUncheckedUpdateWithoutTerminationsInput = {
4162
+ export type ContractUncheckedUpdateWithoutOutgoingTransferRequestsInput = {
3011
4163
  id?: Prisma.StringFieldUpdateOperationsInput | string;
3012
4164
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
3013
4165
  propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3043,113 +4195,27 @@ export type ContractUncheckedUpdateWithoutTerminationsInput = {
3043
4195
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3044
4196
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3045
4197
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4198
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3046
4199
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3047
4200
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3048
4201
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3049
4202
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
4203
+ terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3050
4204
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3051
4205
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
4206
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
4207
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3052
4208
  };
3053
- export type ContractCreateWithoutPaymentMethodChangeRequestsInput = {
3054
- id?: string;
3055
- contractNumber: string;
3056
- title: string;
3057
- description?: string | null;
3058
- contractType: string;
3059
- totalAmount: number;
3060
- downPayment?: number;
3061
- downPaymentPaid?: number;
3062
- principal?: number | null;
3063
- interestRate?: number | null;
3064
- termMonths?: number | null;
3065
- periodicPayment?: number | null;
3066
- totalPaidToDate?: number;
3067
- totalInterestPaid?: number;
3068
- monthlyIncome?: number | null;
3069
- monthlyExpenses?: number | null;
3070
- preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3071
- underwritingScore?: number | null;
3072
- debtToIncomeRatio?: number | null;
3073
- status?: $Enums.ContractStatus;
3074
- state?: $Enums.ContractStatus;
3075
- currentPhaseId?: string | null;
3076
- nextPaymentDueDate?: Date | string | null;
3077
- lastReminderSentAt?: Date | string | null;
3078
- startDate?: Date | string | null;
3079
- endDate?: Date | string | null;
3080
- signedAt?: Date | string | null;
3081
- terminatedAt?: Date | string | null;
3082
- createdAt?: Date | string;
3083
- updatedAt?: Date | string;
3084
- tenant: Prisma.TenantCreateNestedOneWithoutContractsInput;
3085
- propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
3086
- buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
3087
- seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
3088
- paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
3089
- phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
3090
- documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
3091
- payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
3092
- events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
3093
- terminations?: Prisma.ContractTerminationCreateNestedManyWithoutContractInput;
3094
- offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutContractInput;
3095
- };
3096
- export type ContractUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
3097
- id?: string;
3098
- tenantId: string;
3099
- propertyUnitId: string;
3100
- buyerId: string;
3101
- sellerId?: string | null;
3102
- paymentMethodId?: string | null;
3103
- contractNumber: string;
3104
- title: string;
3105
- description?: string | null;
3106
- contractType: string;
3107
- totalAmount: number;
3108
- downPayment?: number;
3109
- downPaymentPaid?: number;
3110
- principal?: number | null;
3111
- interestRate?: number | null;
3112
- termMonths?: number | null;
3113
- periodicPayment?: number | null;
3114
- totalPaidToDate?: number;
3115
- totalInterestPaid?: number;
3116
- monthlyIncome?: number | null;
3117
- monthlyExpenses?: number | null;
3118
- preApprovalAnswers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3119
- underwritingScore?: number | null;
3120
- debtToIncomeRatio?: number | null;
3121
- status?: $Enums.ContractStatus;
3122
- state?: $Enums.ContractStatus;
3123
- currentPhaseId?: string | null;
3124
- nextPaymentDueDate?: Date | string | null;
3125
- lastReminderSentAt?: Date | string | null;
3126
- startDate?: Date | string | null;
3127
- endDate?: Date | string | null;
3128
- signedAt?: Date | string | null;
3129
- terminatedAt?: Date | string | null;
3130
- createdAt?: Date | string;
3131
- updatedAt?: Date | string;
3132
- phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
3133
- documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
3134
- payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
3135
- events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
3136
- terminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutContractInput;
3137
- offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutContractInput;
3138
- };
3139
- export type ContractCreateOrConnectWithoutPaymentMethodChangeRequestsInput = {
3140
- where: Prisma.ContractWhereUniqueInput;
3141
- create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodChangeRequestsInput>;
3142
- };
3143
- export type ContractUpsertWithoutPaymentMethodChangeRequestsInput = {
3144
- update: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput>;
3145
- create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodChangeRequestsInput>;
4209
+ export type ContractUpsertWithoutIncomingTransferRequestsInput = {
4210
+ update: Prisma.XOR<Prisma.ContractUpdateWithoutIncomingTransferRequestsInput, Prisma.ContractUncheckedUpdateWithoutIncomingTransferRequestsInput>;
4211
+ create: Prisma.XOR<Prisma.ContractCreateWithoutIncomingTransferRequestsInput, Prisma.ContractUncheckedCreateWithoutIncomingTransferRequestsInput>;
3146
4212
  where?: Prisma.ContractWhereInput;
3147
4213
  };
3148
- export type ContractUpdateToOneWithWhereWithoutPaymentMethodChangeRequestsInput = {
4214
+ export type ContractUpdateToOneWithWhereWithoutIncomingTransferRequestsInput = {
3149
4215
  where?: Prisma.ContractWhereInput;
3150
- data: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentMethodChangeRequestsInput, Prisma.ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput>;
4216
+ data: Prisma.XOR<Prisma.ContractUpdateWithoutIncomingTransferRequestsInput, Prisma.ContractUncheckedUpdateWithoutIncomingTransferRequestsInput>;
3151
4217
  };
3152
- export type ContractUpdateWithoutPaymentMethodChangeRequestsInput = {
4218
+ export type ContractUpdateWithoutIncomingTransferRequestsInput = {
3153
4219
  id?: Prisma.StringFieldUpdateOperationsInput | string;
3154
4220
  contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
3155
4221
  title?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3191,8 +4257,12 @@ export type ContractUpdateWithoutPaymentMethodChangeRequestsInput = {
3191
4257
  events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
3192
4258
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3193
4259
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
4260
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
4261
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
4262
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
4263
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
3194
4264
  };
3195
- export type ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
4265
+ export type ContractUncheckedUpdateWithoutIncomingTransferRequestsInput = {
3196
4266
  id?: Prisma.StringFieldUpdateOperationsInput | string;
3197
4267
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
3198
4268
  propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3228,12 +4298,16 @@ export type ContractUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
3228
4298
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3229
4299
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3230
4300
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4301
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3231
4302
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3232
4303
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3233
4304
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
3234
4305
  events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
3235
4306
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3236
4307
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
4308
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
4309
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
4310
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
3237
4311
  };
3238
4312
  export type ContractCreateManyBuyerInput = {
3239
4313
  id?: string;
@@ -3270,6 +4344,7 @@ export type ContractCreateManyBuyerInput = {
3270
4344
  terminatedAt?: Date | string | null;
3271
4345
  createdAt?: Date | string;
3272
4346
  updatedAt?: Date | string;
4347
+ transferredFromId?: string | null;
3273
4348
  };
3274
4349
  export type ContractCreateManySellerInput = {
3275
4350
  id?: string;
@@ -3306,6 +4381,7 @@ export type ContractCreateManySellerInput = {
3306
4381
  terminatedAt?: Date | string | null;
3307
4382
  createdAt?: Date | string;
3308
4383
  updatedAt?: Date | string;
4384
+ transferredFromId?: string | null;
3309
4385
  };
3310
4386
  export type ContractUpdateWithoutBuyerInput = {
3311
4387
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3349,6 +4425,10 @@ export type ContractUpdateWithoutBuyerInput = {
3349
4425
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3350
4426
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3351
4427
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
4428
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
4429
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
4430
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
4431
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3352
4432
  };
3353
4433
  export type ContractUncheckedUpdateWithoutBuyerInput = {
3354
4434
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3385,6 +4465,7 @@ export type ContractUncheckedUpdateWithoutBuyerInput = {
3385
4465
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3386
4466
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3387
4467
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4468
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3388
4469
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3389
4470
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3390
4471
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
@@ -3392,6 +4473,9 @@ export type ContractUncheckedUpdateWithoutBuyerInput = {
3392
4473
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3393
4474
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3394
4475
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
4476
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
4477
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
4478
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3395
4479
  };
3396
4480
  export type ContractUncheckedUpdateManyWithoutBuyerInput = {
3397
4481
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3428,6 +4512,7 @@ export type ContractUncheckedUpdateManyWithoutBuyerInput = {
3428
4512
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3429
4513
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3430
4514
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4515
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3431
4516
  };
3432
4517
  export type ContractUpdateWithoutSellerInput = {
3433
4518
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3471,6 +4556,10 @@ export type ContractUpdateWithoutSellerInput = {
3471
4556
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3472
4557
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3473
4558
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
4559
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
4560
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
4561
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
4562
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3474
4563
  };
3475
4564
  export type ContractUncheckedUpdateWithoutSellerInput = {
3476
4565
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3507,6 +4596,7 @@ export type ContractUncheckedUpdateWithoutSellerInput = {
3507
4596
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3508
4597
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3509
4598
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4599
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3510
4600
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3511
4601
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3512
4602
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
@@ -3514,6 +4604,9 @@ export type ContractUncheckedUpdateWithoutSellerInput = {
3514
4604
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3515
4605
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3516
4606
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
4607
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
4608
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
4609
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3517
4610
  };
3518
4611
  export type ContractUncheckedUpdateManyWithoutSellerInput = {
3519
4612
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3550,6 +4643,7 @@ export type ContractUncheckedUpdateManyWithoutSellerInput = {
3550
4643
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3551
4644
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3552
4645
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4646
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3553
4647
  };
3554
4648
  export type ContractCreateManyTenantInput = {
3555
4649
  id?: string;
@@ -3586,6 +4680,7 @@ export type ContractCreateManyTenantInput = {
3586
4680
  terminatedAt?: Date | string | null;
3587
4681
  createdAt?: Date | string;
3588
4682
  updatedAt?: Date | string;
4683
+ transferredFromId?: string | null;
3589
4684
  };
3590
4685
  export type ContractUpdateWithoutTenantInput = {
3591
4686
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3629,6 +4724,10 @@ export type ContractUpdateWithoutTenantInput = {
3629
4724
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3630
4725
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3631
4726
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
4727
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
4728
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
4729
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
4730
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3632
4731
  };
3633
4732
  export type ContractUncheckedUpdateWithoutTenantInput = {
3634
4733
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3665,6 +4764,7 @@ export type ContractUncheckedUpdateWithoutTenantInput = {
3665
4764
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3666
4765
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3667
4766
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4767
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3668
4768
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3669
4769
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3670
4770
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
@@ -3672,6 +4772,9 @@ export type ContractUncheckedUpdateWithoutTenantInput = {
3672
4772
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3673
4773
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3674
4774
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
4775
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
4776
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
4777
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3675
4778
  };
3676
4779
  export type ContractUncheckedUpdateManyWithoutTenantInput = {
3677
4780
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3708,6 +4811,7 @@ export type ContractUncheckedUpdateManyWithoutTenantInput = {
3708
4811
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3709
4812
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3710
4813
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4814
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3711
4815
  };
3712
4816
  export type ContractCreateManyPropertyUnitInput = {
3713
4817
  id?: string;
@@ -3744,6 +4848,7 @@ export type ContractCreateManyPropertyUnitInput = {
3744
4848
  terminatedAt?: Date | string | null;
3745
4849
  createdAt?: Date | string;
3746
4850
  updatedAt?: Date | string;
4851
+ transferredFromId?: string | null;
3747
4852
  };
3748
4853
  export type ContractUpdateWithoutPropertyUnitInput = {
3749
4854
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3787,6 +4892,10 @@ export type ContractUpdateWithoutPropertyUnitInput = {
3787
4892
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3788
4893
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3789
4894
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
4895
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
4896
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
4897
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
4898
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3790
4899
  };
3791
4900
  export type ContractUncheckedUpdateWithoutPropertyUnitInput = {
3792
4901
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3823,6 +4932,7 @@ export type ContractUncheckedUpdateWithoutPropertyUnitInput = {
3823
4932
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3824
4933
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3825
4934
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4935
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3826
4936
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3827
4937
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3828
4938
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
@@ -3830,6 +4940,9 @@ export type ContractUncheckedUpdateWithoutPropertyUnitInput = {
3830
4940
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3831
4941
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3832
4942
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
4943
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
4944
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
4945
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3833
4946
  };
3834
4947
  export type ContractUncheckedUpdateManyWithoutPropertyUnitInput = {
3835
4948
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3866,6 +4979,7 @@ export type ContractUncheckedUpdateManyWithoutPropertyUnitInput = {
3866
4979
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3867
4980
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3868
4981
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4982
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3869
4983
  };
3870
4984
  export type ContractCreateManyPaymentMethodInput = {
3871
4985
  id?: string;
@@ -3902,6 +5016,7 @@ export type ContractCreateManyPaymentMethodInput = {
3902
5016
  terminatedAt?: Date | string | null;
3903
5017
  createdAt?: Date | string;
3904
5018
  updatedAt?: Date | string;
5019
+ transferredFromId?: string | null;
3905
5020
  };
3906
5021
  export type ContractUpdateWithoutPaymentMethodInput = {
3907
5022
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3945,6 +5060,10 @@ export type ContractUpdateWithoutPaymentMethodInput = {
3945
5060
  terminations?: Prisma.ContractTerminationUpdateManyWithoutContractNestedInput;
3946
5061
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutContractNestedInput;
3947
5062
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutContractNestedInput;
5063
+ transferredFrom?: Prisma.ContractUpdateOneWithoutTransferredToNestedInput;
5064
+ transferredTo?: Prisma.ContractUpdateOneWithoutTransferredFromNestedInput;
5065
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutSourceContractNestedInput;
5066
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUpdateManyWithoutTargetContractNestedInput;
3948
5067
  };
3949
5068
  export type ContractUncheckedUpdateWithoutPaymentMethodInput = {
3950
5069
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3981,6 +5100,7 @@ export type ContractUncheckedUpdateWithoutPaymentMethodInput = {
3981
5100
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3982
5101
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3983
5102
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
5103
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3984
5104
  phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
3985
5105
  documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
3986
5106
  payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
@@ -3988,6 +5108,9 @@ export type ContractUncheckedUpdateWithoutPaymentMethodInput = {
3988
5108
  terminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutContractNestedInput;
3989
5109
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutContractNestedInput;
3990
5110
  paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutContractNestedInput;
5111
+ transferredTo?: Prisma.ContractUncheckedUpdateOneWithoutTransferredFromNestedInput;
5112
+ outgoingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutSourceContractNestedInput;
5113
+ incomingTransferRequests?: Prisma.PropertyTransferRequestUncheckedUpdateManyWithoutTargetContractNestedInput;
3991
5114
  };
3992
5115
  export type ContractUncheckedUpdateManyWithoutPaymentMethodInput = {
3993
5116
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -4024,6 +5147,7 @@ export type ContractUncheckedUpdateManyWithoutPaymentMethodInput = {
4024
5147
  terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4025
5148
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4026
5149
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
5150
+ transferredFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4027
5151
  };
4028
5152
  /**
4029
5153
  * Count Type ContractCountOutputType
@@ -4036,6 +5160,8 @@ export type ContractCountOutputType = {
4036
5160
  terminations: number;
4037
5161
  offerLetters: number;
4038
5162
  paymentMethodChangeRequests: number;
5163
+ outgoingTransferRequests: number;
5164
+ incomingTransferRequests: number;
4039
5165
  };
4040
5166
  export type ContractCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4041
5167
  phases?: boolean | ContractCountOutputTypeCountPhasesArgs;
@@ -4045,6 +5171,8 @@ export type ContractCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensio
4045
5171
  terminations?: boolean | ContractCountOutputTypeCountTerminationsArgs;
4046
5172
  offerLetters?: boolean | ContractCountOutputTypeCountOfferLettersArgs;
4047
5173
  paymentMethodChangeRequests?: boolean | ContractCountOutputTypeCountPaymentMethodChangeRequestsArgs;
5174
+ outgoingTransferRequests?: boolean | ContractCountOutputTypeCountOutgoingTransferRequestsArgs;
5175
+ incomingTransferRequests?: boolean | ContractCountOutputTypeCountIncomingTransferRequestsArgs;
4048
5176
  };
4049
5177
  /**
4050
5178
  * ContractCountOutputType without action
@@ -4097,6 +5225,18 @@ export type ContractCountOutputTypeCountOfferLettersArgs<ExtArgs extends runtime
4097
5225
  export type ContractCountOutputTypeCountPaymentMethodChangeRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4098
5226
  where?: Prisma.PaymentMethodChangeRequestWhereInput;
4099
5227
  };
5228
+ /**
5229
+ * ContractCountOutputType without action
5230
+ */
5231
+ export type ContractCountOutputTypeCountOutgoingTransferRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
5232
+ where?: Prisma.PropertyTransferRequestWhereInput;
5233
+ };
5234
+ /**
5235
+ * ContractCountOutputType without action
5236
+ */
5237
+ export type ContractCountOutputTypeCountIncomingTransferRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
5238
+ where?: Prisma.PropertyTransferRequestWhereInput;
5239
+ };
4100
5240
  export type ContractSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
4101
5241
  id?: boolean;
4102
5242
  tenantId?: boolean;
@@ -4133,6 +5273,7 @@ export type ContractSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
4133
5273
  terminatedAt?: boolean;
4134
5274
  createdAt?: boolean;
4135
5275
  updatedAt?: boolean;
5276
+ transferredFromId?: boolean;
4136
5277
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
4137
5278
  propertyUnit?: boolean | Prisma.PropertyUnitDefaultArgs<ExtArgs>;
4138
5279
  buyer?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
@@ -4145,6 +5286,10 @@ export type ContractSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
4145
5286
  terminations?: boolean | Prisma.Contract$terminationsArgs<ExtArgs>;
4146
5287
  offerLetters?: boolean | Prisma.Contract$offerLettersArgs<ExtArgs>;
4147
5288
  paymentMethodChangeRequests?: boolean | Prisma.Contract$paymentMethodChangeRequestsArgs<ExtArgs>;
5289
+ transferredFrom?: boolean | Prisma.Contract$transferredFromArgs<ExtArgs>;
5290
+ transferredTo?: boolean | Prisma.Contract$transferredToArgs<ExtArgs>;
5291
+ outgoingTransferRequests?: boolean | Prisma.Contract$outgoingTransferRequestsArgs<ExtArgs>;
5292
+ incomingTransferRequests?: boolean | Prisma.Contract$incomingTransferRequestsArgs<ExtArgs>;
4148
5293
  _count?: boolean | Prisma.ContractCountOutputTypeDefaultArgs<ExtArgs>;
4149
5294
  }, ExtArgs["result"]["contract"]>;
4150
5295
  export type ContractSelectScalar = {
@@ -4183,8 +5328,9 @@ export type ContractSelectScalar = {
4183
5328
  terminatedAt?: boolean;
4184
5329
  createdAt?: boolean;
4185
5330
  updatedAt?: boolean;
5331
+ transferredFromId?: boolean;
4186
5332
  };
4187
- export type ContractOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "propertyUnitId" | "buyerId" | "sellerId" | "paymentMethodId" | "contractNumber" | "title" | "description" | "contractType" | "totalAmount" | "downPayment" | "downPaymentPaid" | "principal" | "interestRate" | "termMonths" | "periodicPayment" | "totalPaidToDate" | "totalInterestPaid" | "monthlyIncome" | "monthlyExpenses" | "preApprovalAnswers" | "underwritingScore" | "debtToIncomeRatio" | "status" | "state" | "currentPhaseId" | "nextPaymentDueDate" | "lastReminderSentAt" | "startDate" | "endDate" | "signedAt" | "terminatedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["contract"]>;
5333
+ export type ContractOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "propertyUnitId" | "buyerId" | "sellerId" | "paymentMethodId" | "contractNumber" | "title" | "description" | "contractType" | "totalAmount" | "downPayment" | "downPaymentPaid" | "principal" | "interestRate" | "termMonths" | "periodicPayment" | "totalPaidToDate" | "totalInterestPaid" | "monthlyIncome" | "monthlyExpenses" | "preApprovalAnswers" | "underwritingScore" | "debtToIncomeRatio" | "status" | "state" | "currentPhaseId" | "nextPaymentDueDate" | "lastReminderSentAt" | "startDate" | "endDate" | "signedAt" | "terminatedAt" | "createdAt" | "updatedAt" | "transferredFromId", ExtArgs["result"]["contract"]>;
4188
5334
  export type ContractInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4189
5335
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
4190
5336
  propertyUnit?: boolean | Prisma.PropertyUnitDefaultArgs<ExtArgs>;
@@ -4198,6 +5344,10 @@ export type ContractInclude<ExtArgs extends runtime.Types.Extensions.InternalArg
4198
5344
  terminations?: boolean | Prisma.Contract$terminationsArgs<ExtArgs>;
4199
5345
  offerLetters?: boolean | Prisma.Contract$offerLettersArgs<ExtArgs>;
4200
5346
  paymentMethodChangeRequests?: boolean | Prisma.Contract$paymentMethodChangeRequestsArgs<ExtArgs>;
5347
+ transferredFrom?: boolean | Prisma.Contract$transferredFromArgs<ExtArgs>;
5348
+ transferredTo?: boolean | Prisma.Contract$transferredToArgs<ExtArgs>;
5349
+ outgoingTransferRequests?: boolean | Prisma.Contract$outgoingTransferRequestsArgs<ExtArgs>;
5350
+ incomingTransferRequests?: boolean | Prisma.Contract$incomingTransferRequestsArgs<ExtArgs>;
4201
5351
  _count?: boolean | Prisma.ContractCountOutputTypeDefaultArgs<ExtArgs>;
4202
5352
  };
4203
5353
  export type $ContractPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -4215,6 +5365,10 @@ export type $ContractPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
4215
5365
  terminations: Prisma.$ContractTerminationPayload<ExtArgs>[];
4216
5366
  offerLetters: Prisma.$OfferLetterPayload<ExtArgs>[];
4217
5367
  paymentMethodChangeRequests: Prisma.$PaymentMethodChangeRequestPayload<ExtArgs>[];
5368
+ transferredFrom: Prisma.$ContractPayload<ExtArgs> | null;
5369
+ transferredTo: Prisma.$ContractPayload<ExtArgs> | null;
5370
+ outgoingTransferRequests: Prisma.$PropertyTransferRequestPayload<ExtArgs>[];
5371
+ incomingTransferRequests: Prisma.$PropertyTransferRequestPayload<ExtArgs>[];
4218
5372
  };
4219
5373
  scalars: runtime.Types.Extensions.GetPayloadResult<{
4220
5374
  id: string;
@@ -4252,6 +5406,7 @@ export type $ContractPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
4252
5406
  terminatedAt: Date | null;
4253
5407
  createdAt: Date;
4254
5408
  updatedAt: Date;
5409
+ transferredFromId: string | null;
4255
5410
  }, ExtArgs["result"]["contract"]>;
4256
5411
  composites: {};
4257
5412
  };
@@ -4541,6 +5696,10 @@ export interface Prisma__ContractClient<T, Null = never, ExtArgs extends runtime
4541
5696
  terminations<T extends Prisma.Contract$terminationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$terminationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractTerminationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4542
5697
  offerLetters<T extends Prisma.Contract$offerLettersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$offerLettersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4543
5698
  paymentMethodChangeRequests<T extends Prisma.Contract$paymentMethodChangeRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$paymentMethodChangeRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentMethodChangeRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
5699
+ transferredFrom<T extends Prisma.Contract$transferredFromArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$transferredFromArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
5700
+ transferredTo<T extends Prisma.Contract$transferredToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$transferredToArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
5701
+ outgoingTransferRequests<T extends Prisma.Contract$outgoingTransferRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$outgoingTransferRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyTransferRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
5702
+ incomingTransferRequests<T extends Prisma.Contract$incomingTransferRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$incomingTransferRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyTransferRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4544
5703
  /**
4545
5704
  * Attaches callbacks for the resolution and/or rejection of the Promise.
4546
5705
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4601,6 +5760,7 @@ export interface ContractFieldRefs {
4601
5760
  readonly terminatedAt: Prisma.FieldRef<"Contract", 'DateTime'>;
4602
5761
  readonly createdAt: Prisma.FieldRef<"Contract", 'DateTime'>;
4603
5762
  readonly updatedAt: Prisma.FieldRef<"Contract", 'DateTime'>;
5763
+ readonly transferredFromId: Prisma.FieldRef<"Contract", 'String'>;
4604
5764
  }
4605
5765
  /**
4606
5766
  * Contract findUnique
@@ -5125,6 +6285,88 @@ export type Contract$paymentMethodChangeRequestsArgs<ExtArgs extends runtime.Typ
5125
6285
  skip?: number;
5126
6286
  distinct?: Prisma.PaymentMethodChangeRequestScalarFieldEnum | Prisma.PaymentMethodChangeRequestScalarFieldEnum[];
5127
6287
  };
6288
+ /**
6289
+ * Contract.transferredFrom
6290
+ */
6291
+ export type Contract$transferredFromArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6292
+ /**
6293
+ * Select specific fields to fetch from the Contract
6294
+ */
6295
+ select?: Prisma.ContractSelect<ExtArgs> | null;
6296
+ /**
6297
+ * Omit specific fields from the Contract
6298
+ */
6299
+ omit?: Prisma.ContractOmit<ExtArgs> | null;
6300
+ /**
6301
+ * Choose, which related nodes to fetch as well
6302
+ */
6303
+ include?: Prisma.ContractInclude<ExtArgs> | null;
6304
+ where?: Prisma.ContractWhereInput;
6305
+ };
6306
+ /**
6307
+ * Contract.transferredTo
6308
+ */
6309
+ export type Contract$transferredToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6310
+ /**
6311
+ * Select specific fields to fetch from the Contract
6312
+ */
6313
+ select?: Prisma.ContractSelect<ExtArgs> | null;
6314
+ /**
6315
+ * Omit specific fields from the Contract
6316
+ */
6317
+ omit?: Prisma.ContractOmit<ExtArgs> | null;
6318
+ /**
6319
+ * Choose, which related nodes to fetch as well
6320
+ */
6321
+ include?: Prisma.ContractInclude<ExtArgs> | null;
6322
+ where?: Prisma.ContractWhereInput;
6323
+ };
6324
+ /**
6325
+ * Contract.outgoingTransferRequests
6326
+ */
6327
+ export type Contract$outgoingTransferRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6328
+ /**
6329
+ * Select specific fields to fetch from the PropertyTransferRequest
6330
+ */
6331
+ select?: Prisma.PropertyTransferRequestSelect<ExtArgs> | null;
6332
+ /**
6333
+ * Omit specific fields from the PropertyTransferRequest
6334
+ */
6335
+ omit?: Prisma.PropertyTransferRequestOmit<ExtArgs> | null;
6336
+ /**
6337
+ * Choose, which related nodes to fetch as well
6338
+ */
6339
+ include?: Prisma.PropertyTransferRequestInclude<ExtArgs> | null;
6340
+ where?: Prisma.PropertyTransferRequestWhereInput;
6341
+ orderBy?: Prisma.PropertyTransferRequestOrderByWithRelationInput | Prisma.PropertyTransferRequestOrderByWithRelationInput[];
6342
+ cursor?: Prisma.PropertyTransferRequestWhereUniqueInput;
6343
+ take?: number;
6344
+ skip?: number;
6345
+ distinct?: Prisma.PropertyTransferRequestScalarFieldEnum | Prisma.PropertyTransferRequestScalarFieldEnum[];
6346
+ };
6347
+ /**
6348
+ * Contract.incomingTransferRequests
6349
+ */
6350
+ export type Contract$incomingTransferRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6351
+ /**
6352
+ * Select specific fields to fetch from the PropertyTransferRequest
6353
+ */
6354
+ select?: Prisma.PropertyTransferRequestSelect<ExtArgs> | null;
6355
+ /**
6356
+ * Omit specific fields from the PropertyTransferRequest
6357
+ */
6358
+ omit?: Prisma.PropertyTransferRequestOmit<ExtArgs> | null;
6359
+ /**
6360
+ * Choose, which related nodes to fetch as well
6361
+ */
6362
+ include?: Prisma.PropertyTransferRequestInclude<ExtArgs> | null;
6363
+ where?: Prisma.PropertyTransferRequestWhereInput;
6364
+ orderBy?: Prisma.PropertyTransferRequestOrderByWithRelationInput | Prisma.PropertyTransferRequestOrderByWithRelationInput[];
6365
+ cursor?: Prisma.PropertyTransferRequestWhereUniqueInput;
6366
+ take?: number;
6367
+ skip?: number;
6368
+ distinct?: Prisma.PropertyTransferRequestScalarFieldEnum | Prisma.PropertyTransferRequestScalarFieldEnum[];
6369
+ };
5128
6370
  /**
5129
6371
  * Contract without action
5130
6372
  */