@valentine-efagene/qshelter-common 2.0.21 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/client/browser.d.ts +45 -30
- package/dist/generated/client/client.d.ts +45 -30
- package/dist/generated/client/commonInputTypes.d.ts +40 -0
- package/dist/generated/client/internal/class.d.ts +93 -60
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +1050 -720
- package/dist/generated/client/internal/prismaNamespace.js +313 -190
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +344 -215
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +313 -190
- package/dist/generated/client/models/Amenity.d.ts +168 -1
- package/dist/generated/client/models/Contract.d.ts +2037 -298
- package/dist/generated/client/models/ContractDocument.d.ts +299 -12
- package/dist/generated/client/models/ContractEvent.d.ts +1052 -0
- package/dist/generated/client/models/ContractEvent.js +1 -0
- package/dist/generated/client/models/ContractInstallment.d.ts +1656 -0
- package/dist/generated/client/models/ContractInstallment.js +1 -0
- package/dist/generated/client/models/ContractPayment.d.ts +2026 -0
- package/dist/generated/client/models/ContractPayment.js +1 -0
- package/dist/generated/client/models/ContractPhase.d.ts +2467 -0
- package/dist/generated/client/models/ContractPhase.js +1 -0
- package/dist/generated/client/models/ContractPhaseStep.d.ts +1678 -0
- package/dist/generated/client/models/ContractPhaseStep.js +1 -0
- package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +1249 -0
- package/dist/generated/client/models/ContractPhaseStepApproval.js +1 -0
- package/dist/generated/client/models/ContractTransition.d.ts +1118 -0
- package/dist/generated/client/models/ContractTransition.js +1 -0
- package/dist/generated/client/models/DomainEvent.d.ts +1240 -0
- package/dist/generated/client/models/DomainEvent.js +1 -0
- package/dist/generated/client/models/PaymentPlan.d.ts +325 -1062
- package/dist/generated/client/models/Property.d.ts +154 -684
- package/dist/generated/client/models/PropertyPaymentMethod.d.ts +1498 -0
- package/dist/generated/client/models/PropertyPaymentMethod.js +1 -0
- package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +1158 -0
- package/dist/generated/client/models/PropertyPaymentMethodLink.js +1 -0
- package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +1656 -0
- package/dist/generated/client/models/PropertyPaymentMethodPhase.js +1 -0
- package/dist/generated/client/models/PropertyUnit.d.ts +1598 -0
- package/dist/generated/client/models/PropertyUnit.js +1 -0
- package/dist/generated/client/models/PropertyVariant.d.ts +2079 -0
- package/dist/generated/client/models/PropertyVariant.js +1 -0
- package/dist/generated/client/models/PropertyVariantAmenity.d.ts +1080 -0
- package/dist/generated/client/models/PropertyVariantAmenity.js +1 -0
- package/dist/generated/client/models/PropertyVariantMedia.d.ts +1189 -0
- package/dist/generated/client/models/PropertyVariantMedia.js +1 -0
- package/dist/generated/client/models/User.d.ts +684 -427
- package/dist/generated/client/models/index.d.ts +15 -12
- package/dist/generated/client/models/index.js +15 -12
- package/dist/generated/client/models.d.ts +15 -12
- package/package.json +1 -1
- package/prisma/schema.prisma +541 -267
|
@@ -7,20 +7,57 @@ import type * as Prisma from "../internal/prismaNamespace.js";
|
|
|
7
7
|
export type ContractModel = runtime.Types.Result.DefaultSelection<Prisma.$ContractPayload>;
|
|
8
8
|
export type AggregateContract = {
|
|
9
9
|
_count: ContractCountAggregateOutputType | null;
|
|
10
|
+
_avg: ContractAvgAggregateOutputType | null;
|
|
11
|
+
_sum: ContractSumAggregateOutputType | null;
|
|
10
12
|
_min: ContractMinAggregateOutputType | null;
|
|
11
13
|
_max: ContractMaxAggregateOutputType | null;
|
|
12
14
|
};
|
|
15
|
+
export type ContractAvgAggregateOutputType = {
|
|
16
|
+
totalAmount: number | null;
|
|
17
|
+
downPayment: number | null;
|
|
18
|
+
downPaymentPaid: number | null;
|
|
19
|
+
principal: number | null;
|
|
20
|
+
interestRate: number | null;
|
|
21
|
+
termMonths: number | null;
|
|
22
|
+
periodicPayment: number | null;
|
|
23
|
+
totalPaidToDate: number | null;
|
|
24
|
+
totalInterestPaid: number | null;
|
|
25
|
+
};
|
|
26
|
+
export type ContractSumAggregateOutputType = {
|
|
27
|
+
totalAmount: number | null;
|
|
28
|
+
downPayment: number | null;
|
|
29
|
+
downPaymentPaid: number | null;
|
|
30
|
+
principal: number | null;
|
|
31
|
+
interestRate: number | null;
|
|
32
|
+
termMonths: number | null;
|
|
33
|
+
periodicPayment: number | null;
|
|
34
|
+
totalPaidToDate: number | null;
|
|
35
|
+
totalInterestPaid: number | null;
|
|
36
|
+
};
|
|
13
37
|
export type ContractMinAggregateOutputType = {
|
|
14
38
|
id: string | null;
|
|
15
|
-
|
|
16
|
-
paymentPlanId: string | null;
|
|
39
|
+
propertyUnitId: string | null;
|
|
17
40
|
buyerId: string | null;
|
|
18
41
|
sellerId: string | null;
|
|
19
|
-
|
|
42
|
+
paymentMethodId: string | null;
|
|
20
43
|
contractNumber: string | null;
|
|
21
44
|
title: string | null;
|
|
22
45
|
description: string | null;
|
|
46
|
+
contractType: string | null;
|
|
47
|
+
totalAmount: number | null;
|
|
48
|
+
downPayment: number | null;
|
|
49
|
+
downPaymentPaid: number | null;
|
|
50
|
+
principal: number | null;
|
|
51
|
+
interestRate: number | null;
|
|
52
|
+
termMonths: number | null;
|
|
53
|
+
periodicPayment: number | null;
|
|
54
|
+
totalPaidToDate: number | null;
|
|
55
|
+
totalInterestPaid: number | null;
|
|
23
56
|
status: string | null;
|
|
57
|
+
state: string | null;
|
|
58
|
+
currentPhaseId: string | null;
|
|
59
|
+
nextPaymentDueDate: Date | null;
|
|
60
|
+
lastReminderSentAt: Date | null;
|
|
24
61
|
startDate: Date | null;
|
|
25
62
|
endDate: Date | null;
|
|
26
63
|
signedAt: Date | null;
|
|
@@ -30,15 +67,28 @@ export type ContractMinAggregateOutputType = {
|
|
|
30
67
|
};
|
|
31
68
|
export type ContractMaxAggregateOutputType = {
|
|
32
69
|
id: string | null;
|
|
33
|
-
|
|
34
|
-
paymentPlanId: string | null;
|
|
70
|
+
propertyUnitId: string | null;
|
|
35
71
|
buyerId: string | null;
|
|
36
72
|
sellerId: string | null;
|
|
37
|
-
|
|
73
|
+
paymentMethodId: string | null;
|
|
38
74
|
contractNumber: string | null;
|
|
39
75
|
title: string | null;
|
|
40
76
|
description: string | null;
|
|
77
|
+
contractType: string | null;
|
|
78
|
+
totalAmount: number | null;
|
|
79
|
+
downPayment: number | null;
|
|
80
|
+
downPaymentPaid: number | null;
|
|
81
|
+
principal: number | null;
|
|
82
|
+
interestRate: number | null;
|
|
83
|
+
termMonths: number | null;
|
|
84
|
+
periodicPayment: number | null;
|
|
85
|
+
totalPaidToDate: number | null;
|
|
86
|
+
totalInterestPaid: number | null;
|
|
41
87
|
status: string | null;
|
|
88
|
+
state: string | null;
|
|
89
|
+
currentPhaseId: string | null;
|
|
90
|
+
nextPaymentDueDate: Date | null;
|
|
91
|
+
lastReminderSentAt: Date | null;
|
|
42
92
|
startDate: Date | null;
|
|
43
93
|
endDate: Date | null;
|
|
44
94
|
signedAt: Date | null;
|
|
@@ -48,15 +98,28 @@ export type ContractMaxAggregateOutputType = {
|
|
|
48
98
|
};
|
|
49
99
|
export type ContractCountAggregateOutputType = {
|
|
50
100
|
id: number;
|
|
51
|
-
|
|
52
|
-
paymentPlanId: number;
|
|
101
|
+
propertyUnitId: number;
|
|
53
102
|
buyerId: number;
|
|
54
103
|
sellerId: number;
|
|
55
|
-
|
|
104
|
+
paymentMethodId: number;
|
|
56
105
|
contractNumber: number;
|
|
57
106
|
title: number;
|
|
58
107
|
description: number;
|
|
108
|
+
contractType: number;
|
|
109
|
+
totalAmount: number;
|
|
110
|
+
downPayment: number;
|
|
111
|
+
downPaymentPaid: number;
|
|
112
|
+
principal: number;
|
|
113
|
+
interestRate: number;
|
|
114
|
+
termMonths: number;
|
|
115
|
+
periodicPayment: number;
|
|
116
|
+
totalPaidToDate: number;
|
|
117
|
+
totalInterestPaid: number;
|
|
59
118
|
status: number;
|
|
119
|
+
state: number;
|
|
120
|
+
currentPhaseId: number;
|
|
121
|
+
nextPaymentDueDate: number;
|
|
122
|
+
lastReminderSentAt: number;
|
|
60
123
|
startDate: number;
|
|
61
124
|
endDate: number;
|
|
62
125
|
signedAt: number;
|
|
@@ -65,17 +128,52 @@ export type ContractCountAggregateOutputType = {
|
|
|
65
128
|
updatedAt: number;
|
|
66
129
|
_all: number;
|
|
67
130
|
};
|
|
131
|
+
export type ContractAvgAggregateInputType = {
|
|
132
|
+
totalAmount?: true;
|
|
133
|
+
downPayment?: true;
|
|
134
|
+
downPaymentPaid?: true;
|
|
135
|
+
principal?: true;
|
|
136
|
+
interestRate?: true;
|
|
137
|
+
termMonths?: true;
|
|
138
|
+
periodicPayment?: true;
|
|
139
|
+
totalPaidToDate?: true;
|
|
140
|
+
totalInterestPaid?: true;
|
|
141
|
+
};
|
|
142
|
+
export type ContractSumAggregateInputType = {
|
|
143
|
+
totalAmount?: true;
|
|
144
|
+
downPayment?: true;
|
|
145
|
+
downPaymentPaid?: true;
|
|
146
|
+
principal?: true;
|
|
147
|
+
interestRate?: true;
|
|
148
|
+
termMonths?: true;
|
|
149
|
+
periodicPayment?: true;
|
|
150
|
+
totalPaidToDate?: true;
|
|
151
|
+
totalInterestPaid?: true;
|
|
152
|
+
};
|
|
68
153
|
export type ContractMinAggregateInputType = {
|
|
69
154
|
id?: true;
|
|
70
|
-
|
|
71
|
-
paymentPlanId?: true;
|
|
155
|
+
propertyUnitId?: true;
|
|
72
156
|
buyerId?: true;
|
|
73
157
|
sellerId?: true;
|
|
74
|
-
|
|
158
|
+
paymentMethodId?: true;
|
|
75
159
|
contractNumber?: true;
|
|
76
160
|
title?: true;
|
|
77
161
|
description?: true;
|
|
162
|
+
contractType?: true;
|
|
163
|
+
totalAmount?: true;
|
|
164
|
+
downPayment?: true;
|
|
165
|
+
downPaymentPaid?: true;
|
|
166
|
+
principal?: true;
|
|
167
|
+
interestRate?: true;
|
|
168
|
+
termMonths?: true;
|
|
169
|
+
periodicPayment?: true;
|
|
170
|
+
totalPaidToDate?: true;
|
|
171
|
+
totalInterestPaid?: true;
|
|
78
172
|
status?: true;
|
|
173
|
+
state?: true;
|
|
174
|
+
currentPhaseId?: true;
|
|
175
|
+
nextPaymentDueDate?: true;
|
|
176
|
+
lastReminderSentAt?: true;
|
|
79
177
|
startDate?: true;
|
|
80
178
|
endDate?: true;
|
|
81
179
|
signedAt?: true;
|
|
@@ -85,15 +183,28 @@ export type ContractMinAggregateInputType = {
|
|
|
85
183
|
};
|
|
86
184
|
export type ContractMaxAggregateInputType = {
|
|
87
185
|
id?: true;
|
|
88
|
-
|
|
89
|
-
paymentPlanId?: true;
|
|
186
|
+
propertyUnitId?: true;
|
|
90
187
|
buyerId?: true;
|
|
91
188
|
sellerId?: true;
|
|
92
|
-
|
|
189
|
+
paymentMethodId?: true;
|
|
93
190
|
contractNumber?: true;
|
|
94
191
|
title?: true;
|
|
95
192
|
description?: true;
|
|
193
|
+
contractType?: true;
|
|
194
|
+
totalAmount?: true;
|
|
195
|
+
downPayment?: true;
|
|
196
|
+
downPaymentPaid?: true;
|
|
197
|
+
principal?: true;
|
|
198
|
+
interestRate?: true;
|
|
199
|
+
termMonths?: true;
|
|
200
|
+
periodicPayment?: true;
|
|
201
|
+
totalPaidToDate?: true;
|
|
202
|
+
totalInterestPaid?: true;
|
|
96
203
|
status?: true;
|
|
204
|
+
state?: true;
|
|
205
|
+
currentPhaseId?: true;
|
|
206
|
+
nextPaymentDueDate?: true;
|
|
207
|
+
lastReminderSentAt?: true;
|
|
97
208
|
startDate?: true;
|
|
98
209
|
endDate?: true;
|
|
99
210
|
signedAt?: true;
|
|
@@ -103,15 +214,28 @@ export type ContractMaxAggregateInputType = {
|
|
|
103
214
|
};
|
|
104
215
|
export type ContractCountAggregateInputType = {
|
|
105
216
|
id?: true;
|
|
106
|
-
|
|
107
|
-
paymentPlanId?: true;
|
|
217
|
+
propertyUnitId?: true;
|
|
108
218
|
buyerId?: true;
|
|
109
219
|
sellerId?: true;
|
|
110
|
-
|
|
220
|
+
paymentMethodId?: true;
|
|
111
221
|
contractNumber?: true;
|
|
112
222
|
title?: true;
|
|
113
223
|
description?: true;
|
|
224
|
+
contractType?: true;
|
|
225
|
+
totalAmount?: true;
|
|
226
|
+
downPayment?: true;
|
|
227
|
+
downPaymentPaid?: true;
|
|
228
|
+
principal?: true;
|
|
229
|
+
interestRate?: true;
|
|
230
|
+
termMonths?: true;
|
|
231
|
+
periodicPayment?: true;
|
|
232
|
+
totalPaidToDate?: true;
|
|
233
|
+
totalInterestPaid?: true;
|
|
114
234
|
status?: true;
|
|
235
|
+
state?: true;
|
|
236
|
+
currentPhaseId?: true;
|
|
237
|
+
nextPaymentDueDate?: true;
|
|
238
|
+
lastReminderSentAt?: true;
|
|
115
239
|
startDate?: true;
|
|
116
240
|
endDate?: true;
|
|
117
241
|
signedAt?: true;
|
|
@@ -155,6 +279,18 @@ export type ContractAggregateArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
155
279
|
* Count returned Contracts
|
|
156
280
|
**/
|
|
157
281
|
_count?: true | ContractCountAggregateInputType;
|
|
282
|
+
/**
|
|
283
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
284
|
+
*
|
|
285
|
+
* Select which fields to average
|
|
286
|
+
**/
|
|
287
|
+
_avg?: ContractAvgAggregateInputType;
|
|
288
|
+
/**
|
|
289
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
290
|
+
*
|
|
291
|
+
* Select which fields to sum
|
|
292
|
+
**/
|
|
293
|
+
_sum?: ContractSumAggregateInputType;
|
|
158
294
|
/**
|
|
159
295
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
160
296
|
*
|
|
@@ -179,20 +315,35 @@ export type ContractGroupByArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
179
315
|
take?: number;
|
|
180
316
|
skip?: number;
|
|
181
317
|
_count?: ContractCountAggregateInputType | true;
|
|
318
|
+
_avg?: ContractAvgAggregateInputType;
|
|
319
|
+
_sum?: ContractSumAggregateInputType;
|
|
182
320
|
_min?: ContractMinAggregateInputType;
|
|
183
321
|
_max?: ContractMaxAggregateInputType;
|
|
184
322
|
};
|
|
185
323
|
export type ContractGroupByOutputType = {
|
|
186
324
|
id: string;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
buyerId: string | null;
|
|
325
|
+
propertyUnitId: string;
|
|
326
|
+
buyerId: string;
|
|
190
327
|
sellerId: string | null;
|
|
191
|
-
|
|
328
|
+
paymentMethodId: string | null;
|
|
192
329
|
contractNumber: string;
|
|
193
330
|
title: string;
|
|
194
331
|
description: string | null;
|
|
332
|
+
contractType: string;
|
|
333
|
+
totalAmount: number;
|
|
334
|
+
downPayment: number;
|
|
335
|
+
downPaymentPaid: number;
|
|
336
|
+
principal: number | null;
|
|
337
|
+
interestRate: number | null;
|
|
338
|
+
termMonths: number | null;
|
|
339
|
+
periodicPayment: number | null;
|
|
340
|
+
totalPaidToDate: number;
|
|
341
|
+
totalInterestPaid: number;
|
|
195
342
|
status: string;
|
|
343
|
+
state: string;
|
|
344
|
+
currentPhaseId: string | null;
|
|
345
|
+
nextPaymentDueDate: Date | null;
|
|
346
|
+
lastReminderSentAt: Date | null;
|
|
196
347
|
startDate: Date | null;
|
|
197
348
|
endDate: Date | null;
|
|
198
349
|
signedAt: Date | null;
|
|
@@ -200,6 +351,8 @@ export type ContractGroupByOutputType = {
|
|
|
200
351
|
createdAt: Date;
|
|
201
352
|
updatedAt: Date;
|
|
202
353
|
_count: ContractCountAggregateOutputType | null;
|
|
354
|
+
_avg: ContractAvgAggregateOutputType | null;
|
|
355
|
+
_sum: ContractSumAggregateOutputType | null;
|
|
203
356
|
_min: ContractMinAggregateOutputType | null;
|
|
204
357
|
_max: ContractMaxAggregateOutputType | null;
|
|
205
358
|
};
|
|
@@ -211,88 +364,152 @@ export type ContractWhereInput = {
|
|
|
211
364
|
OR?: Prisma.ContractWhereInput[];
|
|
212
365
|
NOT?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
|
|
213
366
|
id?: Prisma.StringFilter<"Contract"> | string;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
buyerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
367
|
+
propertyUnitId?: Prisma.StringFilter<"Contract"> | string;
|
|
368
|
+
buyerId?: Prisma.StringFilter<"Contract"> | string;
|
|
217
369
|
sellerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
218
|
-
|
|
370
|
+
paymentMethodId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
219
371
|
contractNumber?: Prisma.StringFilter<"Contract"> | string;
|
|
220
372
|
title?: Prisma.StringFilter<"Contract"> | string;
|
|
221
373
|
description?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
374
|
+
contractType?: Prisma.StringFilter<"Contract"> | string;
|
|
375
|
+
totalAmount?: Prisma.FloatFilter<"Contract"> | number;
|
|
376
|
+
downPayment?: Prisma.FloatFilter<"Contract"> | number;
|
|
377
|
+
downPaymentPaid?: Prisma.FloatFilter<"Contract"> | number;
|
|
378
|
+
principal?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
379
|
+
interestRate?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
380
|
+
termMonths?: Prisma.IntNullableFilter<"Contract"> | number | null;
|
|
381
|
+
periodicPayment?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
382
|
+
totalPaidToDate?: Prisma.FloatFilter<"Contract"> | number;
|
|
383
|
+
totalInterestPaid?: Prisma.FloatFilter<"Contract"> | number;
|
|
222
384
|
status?: Prisma.StringFilter<"Contract"> | string;
|
|
385
|
+
state?: Prisma.StringFilter<"Contract"> | string;
|
|
386
|
+
currentPhaseId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
387
|
+
nextPaymentDueDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
388
|
+
lastReminderSentAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
223
389
|
startDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
224
390
|
endDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
225
391
|
signedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
226
392
|
terminatedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
227
393
|
createdAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
|
|
228
394
|
updatedAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
buyer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
395
|
+
propertyUnit?: Prisma.XOR<Prisma.PropertyUnitScalarRelationFilter, Prisma.PropertyUnitWhereInput>;
|
|
396
|
+
buyer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
232
397
|
seller?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
398
|
+
paymentMethod?: Prisma.XOR<Prisma.PropertyPaymentMethodNullableScalarRelationFilter, Prisma.PropertyPaymentMethodWhereInput> | null;
|
|
399
|
+
phases?: Prisma.ContractPhaseListRelationFilter;
|
|
233
400
|
documents?: Prisma.ContractDocumentListRelationFilter;
|
|
401
|
+
payments?: Prisma.ContractPaymentListRelationFilter;
|
|
402
|
+
transitions?: Prisma.ContractTransitionListRelationFilter;
|
|
403
|
+
events?: Prisma.ContractEventListRelationFilter;
|
|
234
404
|
};
|
|
235
405
|
export type ContractOrderByWithRelationInput = {
|
|
236
406
|
id?: Prisma.SortOrder;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
buyerId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
407
|
+
propertyUnitId?: Prisma.SortOrder;
|
|
408
|
+
buyerId?: Prisma.SortOrder;
|
|
240
409
|
sellerId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
241
|
-
|
|
410
|
+
paymentMethodId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
242
411
|
contractNumber?: Prisma.SortOrder;
|
|
243
412
|
title?: Prisma.SortOrder;
|
|
244
413
|
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
414
|
+
contractType?: Prisma.SortOrder;
|
|
415
|
+
totalAmount?: Prisma.SortOrder;
|
|
416
|
+
downPayment?: Prisma.SortOrder;
|
|
417
|
+
downPaymentPaid?: Prisma.SortOrder;
|
|
418
|
+
principal?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
419
|
+
interestRate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
420
|
+
termMonths?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
421
|
+
periodicPayment?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
422
|
+
totalPaidToDate?: Prisma.SortOrder;
|
|
423
|
+
totalInterestPaid?: Prisma.SortOrder;
|
|
245
424
|
status?: Prisma.SortOrder;
|
|
425
|
+
state?: Prisma.SortOrder;
|
|
426
|
+
currentPhaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
427
|
+
nextPaymentDueDate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
428
|
+
lastReminderSentAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
246
429
|
startDate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
247
430
|
endDate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
248
431
|
signedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
249
432
|
terminatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
250
433
|
createdAt?: Prisma.SortOrder;
|
|
251
434
|
updatedAt?: Prisma.SortOrder;
|
|
252
|
-
|
|
253
|
-
paymentPlan?: Prisma.PaymentPlanOrderByWithRelationInput;
|
|
435
|
+
propertyUnit?: Prisma.PropertyUnitOrderByWithRelationInput;
|
|
254
436
|
buyer?: Prisma.UserOrderByWithRelationInput;
|
|
255
437
|
seller?: Prisma.UserOrderByWithRelationInput;
|
|
438
|
+
paymentMethod?: Prisma.PropertyPaymentMethodOrderByWithRelationInput;
|
|
439
|
+
phases?: Prisma.ContractPhaseOrderByRelationAggregateInput;
|
|
256
440
|
documents?: Prisma.ContractDocumentOrderByRelationAggregateInput;
|
|
441
|
+
payments?: Prisma.ContractPaymentOrderByRelationAggregateInput;
|
|
442
|
+
transitions?: Prisma.ContractTransitionOrderByRelationAggregateInput;
|
|
443
|
+
events?: Prisma.ContractEventOrderByRelationAggregateInput;
|
|
257
444
|
_relevance?: Prisma.ContractOrderByRelevanceInput;
|
|
258
445
|
};
|
|
259
446
|
export type ContractWhereUniqueInput = Prisma.AtLeast<{
|
|
260
447
|
id?: string;
|
|
261
|
-
paymentPlanId?: string;
|
|
262
448
|
contractNumber?: string;
|
|
263
449
|
AND?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
|
|
264
450
|
OR?: Prisma.ContractWhereInput[];
|
|
265
451
|
NOT?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
|
|
266
|
-
|
|
267
|
-
buyerId?: Prisma.
|
|
452
|
+
propertyUnitId?: Prisma.StringFilter<"Contract"> | string;
|
|
453
|
+
buyerId?: Prisma.StringFilter<"Contract"> | string;
|
|
268
454
|
sellerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
269
|
-
|
|
455
|
+
paymentMethodId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
270
456
|
title?: Prisma.StringFilter<"Contract"> | string;
|
|
271
457
|
description?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
458
|
+
contractType?: Prisma.StringFilter<"Contract"> | string;
|
|
459
|
+
totalAmount?: Prisma.FloatFilter<"Contract"> | number;
|
|
460
|
+
downPayment?: Prisma.FloatFilter<"Contract"> | number;
|
|
461
|
+
downPaymentPaid?: Prisma.FloatFilter<"Contract"> | number;
|
|
462
|
+
principal?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
463
|
+
interestRate?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
464
|
+
termMonths?: Prisma.IntNullableFilter<"Contract"> | number | null;
|
|
465
|
+
periodicPayment?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
466
|
+
totalPaidToDate?: Prisma.FloatFilter<"Contract"> | number;
|
|
467
|
+
totalInterestPaid?: Prisma.FloatFilter<"Contract"> | number;
|
|
272
468
|
status?: Prisma.StringFilter<"Contract"> | string;
|
|
469
|
+
state?: Prisma.StringFilter<"Contract"> | string;
|
|
470
|
+
currentPhaseId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
471
|
+
nextPaymentDueDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
472
|
+
lastReminderSentAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
273
473
|
startDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
274
474
|
endDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
275
475
|
signedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
276
476
|
terminatedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
277
477
|
createdAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
|
|
278
478
|
updatedAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
buyer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
479
|
+
propertyUnit?: Prisma.XOR<Prisma.PropertyUnitScalarRelationFilter, Prisma.PropertyUnitWhereInput>;
|
|
480
|
+
buyer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
282
481
|
seller?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
482
|
+
paymentMethod?: Prisma.XOR<Prisma.PropertyPaymentMethodNullableScalarRelationFilter, Prisma.PropertyPaymentMethodWhereInput> | null;
|
|
483
|
+
phases?: Prisma.ContractPhaseListRelationFilter;
|
|
283
484
|
documents?: Prisma.ContractDocumentListRelationFilter;
|
|
284
|
-
|
|
485
|
+
payments?: Prisma.ContractPaymentListRelationFilter;
|
|
486
|
+
transitions?: Prisma.ContractTransitionListRelationFilter;
|
|
487
|
+
events?: Prisma.ContractEventListRelationFilter;
|
|
488
|
+
}, "id" | "contractNumber">;
|
|
285
489
|
export type ContractOrderByWithAggregationInput = {
|
|
286
490
|
id?: Prisma.SortOrder;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
buyerId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
491
|
+
propertyUnitId?: Prisma.SortOrder;
|
|
492
|
+
buyerId?: Prisma.SortOrder;
|
|
290
493
|
sellerId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
291
|
-
|
|
494
|
+
paymentMethodId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
292
495
|
contractNumber?: Prisma.SortOrder;
|
|
293
496
|
title?: Prisma.SortOrder;
|
|
294
497
|
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
498
|
+
contractType?: Prisma.SortOrder;
|
|
499
|
+
totalAmount?: Prisma.SortOrder;
|
|
500
|
+
downPayment?: Prisma.SortOrder;
|
|
501
|
+
downPaymentPaid?: Prisma.SortOrder;
|
|
502
|
+
principal?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
503
|
+
interestRate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
504
|
+
termMonths?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
505
|
+
periodicPayment?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
506
|
+
totalPaidToDate?: Prisma.SortOrder;
|
|
507
|
+
totalInterestPaid?: Prisma.SortOrder;
|
|
295
508
|
status?: Prisma.SortOrder;
|
|
509
|
+
state?: Prisma.SortOrder;
|
|
510
|
+
currentPhaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
511
|
+
nextPaymentDueDate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
512
|
+
lastReminderSentAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
296
513
|
startDate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
297
514
|
endDate?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
298
515
|
signedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
@@ -300,23 +517,38 @@ export type ContractOrderByWithAggregationInput = {
|
|
|
300
517
|
createdAt?: Prisma.SortOrder;
|
|
301
518
|
updatedAt?: Prisma.SortOrder;
|
|
302
519
|
_count?: Prisma.ContractCountOrderByAggregateInput;
|
|
520
|
+
_avg?: Prisma.ContractAvgOrderByAggregateInput;
|
|
303
521
|
_max?: Prisma.ContractMaxOrderByAggregateInput;
|
|
304
522
|
_min?: Prisma.ContractMinOrderByAggregateInput;
|
|
523
|
+
_sum?: Prisma.ContractSumOrderByAggregateInput;
|
|
305
524
|
};
|
|
306
525
|
export type ContractScalarWhereWithAggregatesInput = {
|
|
307
526
|
AND?: Prisma.ContractScalarWhereWithAggregatesInput | Prisma.ContractScalarWhereWithAggregatesInput[];
|
|
308
527
|
OR?: Prisma.ContractScalarWhereWithAggregatesInput[];
|
|
309
528
|
NOT?: Prisma.ContractScalarWhereWithAggregatesInput | Prisma.ContractScalarWhereWithAggregatesInput[];
|
|
310
529
|
id?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
buyerId?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
|
|
530
|
+
propertyUnitId?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
|
|
531
|
+
buyerId?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
|
|
314
532
|
sellerId?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
|
|
315
|
-
|
|
533
|
+
paymentMethodId?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
|
|
316
534
|
contractNumber?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
|
|
317
535
|
title?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
|
|
318
536
|
description?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
|
|
537
|
+
contractType?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
|
|
538
|
+
totalAmount?: Prisma.FloatWithAggregatesFilter<"Contract"> | number;
|
|
539
|
+
downPayment?: Prisma.FloatWithAggregatesFilter<"Contract"> | number;
|
|
540
|
+
downPaymentPaid?: Prisma.FloatWithAggregatesFilter<"Contract"> | number;
|
|
541
|
+
principal?: Prisma.FloatNullableWithAggregatesFilter<"Contract"> | number | null;
|
|
542
|
+
interestRate?: Prisma.FloatNullableWithAggregatesFilter<"Contract"> | number | null;
|
|
543
|
+
termMonths?: Prisma.IntNullableWithAggregatesFilter<"Contract"> | number | null;
|
|
544
|
+
periodicPayment?: Prisma.FloatNullableWithAggregatesFilter<"Contract"> | number | null;
|
|
545
|
+
totalPaidToDate?: Prisma.FloatWithAggregatesFilter<"Contract"> | number;
|
|
546
|
+
totalInterestPaid?: Prisma.FloatWithAggregatesFilter<"Contract"> | number;
|
|
319
547
|
status?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
|
|
548
|
+
state?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
|
|
549
|
+
currentPhaseId?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
|
|
550
|
+
nextPaymentDueDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
|
|
551
|
+
lastReminderSentAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
|
|
320
552
|
startDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
|
|
321
553
|
endDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
|
|
322
554
|
signedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
|
|
@@ -326,91 +558,172 @@ export type ContractScalarWhereWithAggregatesInput = {
|
|
|
326
558
|
};
|
|
327
559
|
export type ContractCreateInput = {
|
|
328
560
|
id?: string;
|
|
329
|
-
contractType: string;
|
|
330
561
|
contractNumber: string;
|
|
331
562
|
title: string;
|
|
332
563
|
description?: string | null;
|
|
564
|
+
contractType: string;
|
|
565
|
+
totalAmount: number;
|
|
566
|
+
downPayment?: number;
|
|
567
|
+
downPaymentPaid?: number;
|
|
568
|
+
principal?: number | null;
|
|
569
|
+
interestRate?: number | null;
|
|
570
|
+
termMonths?: number | null;
|
|
571
|
+
periodicPayment?: number | null;
|
|
572
|
+
totalPaidToDate?: number;
|
|
573
|
+
totalInterestPaid?: number;
|
|
333
574
|
status?: string;
|
|
575
|
+
state?: string;
|
|
576
|
+
currentPhaseId?: string | null;
|
|
577
|
+
nextPaymentDueDate?: Date | string | null;
|
|
578
|
+
lastReminderSentAt?: Date | string | null;
|
|
334
579
|
startDate?: Date | string | null;
|
|
335
580
|
endDate?: Date | string | null;
|
|
336
581
|
signedAt?: Date | string | null;
|
|
337
582
|
terminatedAt?: Date | string | null;
|
|
338
583
|
createdAt?: Date | string;
|
|
339
584
|
updatedAt?: Date | string;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
buyer?: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
585
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
586
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
343
587
|
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
588
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
589
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
344
590
|
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
591
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
592
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
593
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
345
594
|
};
|
|
346
595
|
export type ContractUncheckedCreateInput = {
|
|
347
596
|
id?: string;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
buyerId?: string | null;
|
|
597
|
+
propertyUnitId: string;
|
|
598
|
+
buyerId: string;
|
|
351
599
|
sellerId?: string | null;
|
|
352
|
-
|
|
600
|
+
paymentMethodId?: string | null;
|
|
353
601
|
contractNumber: string;
|
|
354
602
|
title: string;
|
|
355
603
|
description?: string | null;
|
|
604
|
+
contractType: string;
|
|
605
|
+
totalAmount: number;
|
|
606
|
+
downPayment?: number;
|
|
607
|
+
downPaymentPaid?: number;
|
|
608
|
+
principal?: number | null;
|
|
609
|
+
interestRate?: number | null;
|
|
610
|
+
termMonths?: number | null;
|
|
611
|
+
periodicPayment?: number | null;
|
|
612
|
+
totalPaidToDate?: number;
|
|
613
|
+
totalInterestPaid?: number;
|
|
356
614
|
status?: string;
|
|
615
|
+
state?: string;
|
|
616
|
+
currentPhaseId?: string | null;
|
|
617
|
+
nextPaymentDueDate?: Date | string | null;
|
|
618
|
+
lastReminderSentAt?: Date | string | null;
|
|
357
619
|
startDate?: Date | string | null;
|
|
358
620
|
endDate?: Date | string | null;
|
|
359
621
|
signedAt?: Date | string | null;
|
|
360
622
|
terminatedAt?: Date | string | null;
|
|
361
623
|
createdAt?: Date | string;
|
|
362
624
|
updatedAt?: Date | string;
|
|
625
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
363
626
|
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
627
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
628
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
629
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
364
630
|
};
|
|
365
631
|
export type ContractUpdateInput = {
|
|
366
632
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
367
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
368
633
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
369
634
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
370
635
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
636
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
637
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
638
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
639
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
640
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
641
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
642
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
643
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
644
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
645
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
371
646
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
647
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
648
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
649
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
650
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
372
651
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
373
652
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
374
653
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
375
654
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
376
655
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
377
656
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
buyer?: Prisma.UserUpdateOneWithoutContractsNestedInput;
|
|
657
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
658
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
381
659
|
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
660
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
661
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
382
662
|
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
663
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
664
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
665
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
383
666
|
};
|
|
384
667
|
export type ContractUncheckedUpdateInput = {
|
|
385
668
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
669
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
670
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
389
671
|
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
390
|
-
|
|
672
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
391
673
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
392
674
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
393
675
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
676
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
677
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
678
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
679
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
680
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
681
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
682
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
683
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
684
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
685
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
394
686
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
687
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
688
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
689
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
690
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
395
691
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
396
692
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
397
693
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
398
694
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
399
695
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
400
696
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
697
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
401
698
|
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
699
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
700
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
701
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
402
702
|
};
|
|
403
703
|
export type ContractCreateManyInput = {
|
|
404
704
|
id?: string;
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
buyerId?: string | null;
|
|
705
|
+
propertyUnitId: string;
|
|
706
|
+
buyerId: string;
|
|
408
707
|
sellerId?: string | null;
|
|
409
|
-
|
|
708
|
+
paymentMethodId?: string | null;
|
|
410
709
|
contractNumber: string;
|
|
411
710
|
title: string;
|
|
412
711
|
description?: string | null;
|
|
712
|
+
contractType: string;
|
|
713
|
+
totalAmount: number;
|
|
714
|
+
downPayment?: number;
|
|
715
|
+
downPaymentPaid?: number;
|
|
716
|
+
principal?: number | null;
|
|
717
|
+
interestRate?: number | null;
|
|
718
|
+
termMonths?: number | null;
|
|
719
|
+
periodicPayment?: number | null;
|
|
720
|
+
totalPaidToDate?: number;
|
|
721
|
+
totalInterestPaid?: number;
|
|
413
722
|
status?: string;
|
|
723
|
+
state?: string;
|
|
724
|
+
currentPhaseId?: string | null;
|
|
725
|
+
nextPaymentDueDate?: Date | string | null;
|
|
726
|
+
lastReminderSentAt?: Date | string | null;
|
|
414
727
|
startDate?: Date | string | null;
|
|
415
728
|
endDate?: Date | string | null;
|
|
416
729
|
signedAt?: Date | string | null;
|
|
@@ -420,11 +733,24 @@ export type ContractCreateManyInput = {
|
|
|
420
733
|
};
|
|
421
734
|
export type ContractUpdateManyMutationInput = {
|
|
422
735
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
423
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
424
736
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
425
737
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
426
738
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
739
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
740
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
741
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
742
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
743
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
744
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
745
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
746
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
747
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
748
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
427
749
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
750
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
751
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
752
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
753
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
428
754
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
429
755
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
430
756
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
@@ -434,15 +760,28 @@ export type ContractUpdateManyMutationInput = {
|
|
|
434
760
|
};
|
|
435
761
|
export type ContractUncheckedUpdateManyInput = {
|
|
436
762
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
763
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
764
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
440
765
|
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
441
|
-
|
|
766
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
442
767
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
443
768
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
444
769
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
770
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
771
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
772
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
773
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
774
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
775
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
776
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
777
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
778
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
779
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
445
780
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
781
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
782
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
783
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
784
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
446
785
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
447
786
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
448
787
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
@@ -458,10 +797,6 @@ export type ContractListRelationFilter = {
|
|
|
458
797
|
export type ContractOrderByRelationAggregateInput = {
|
|
459
798
|
_count?: Prisma.SortOrder;
|
|
460
799
|
};
|
|
461
|
-
export type ContractNullableScalarRelationFilter = {
|
|
462
|
-
is?: Prisma.ContractWhereInput | null;
|
|
463
|
-
isNot?: Prisma.ContractWhereInput | null;
|
|
464
|
-
};
|
|
465
800
|
export type ContractOrderByRelevanceInput = {
|
|
466
801
|
fields: Prisma.ContractOrderByRelevanceFieldEnum | Prisma.ContractOrderByRelevanceFieldEnum[];
|
|
467
802
|
sort: Prisma.SortOrder;
|
|
@@ -469,15 +804,28 @@ export type ContractOrderByRelevanceInput = {
|
|
|
469
804
|
};
|
|
470
805
|
export type ContractCountOrderByAggregateInput = {
|
|
471
806
|
id?: Prisma.SortOrder;
|
|
472
|
-
|
|
473
|
-
paymentPlanId?: Prisma.SortOrder;
|
|
807
|
+
propertyUnitId?: Prisma.SortOrder;
|
|
474
808
|
buyerId?: Prisma.SortOrder;
|
|
475
809
|
sellerId?: Prisma.SortOrder;
|
|
476
|
-
|
|
810
|
+
paymentMethodId?: Prisma.SortOrder;
|
|
477
811
|
contractNumber?: Prisma.SortOrder;
|
|
478
812
|
title?: Prisma.SortOrder;
|
|
479
813
|
description?: Prisma.SortOrder;
|
|
814
|
+
contractType?: Prisma.SortOrder;
|
|
815
|
+
totalAmount?: Prisma.SortOrder;
|
|
816
|
+
downPayment?: Prisma.SortOrder;
|
|
817
|
+
downPaymentPaid?: Prisma.SortOrder;
|
|
818
|
+
principal?: Prisma.SortOrder;
|
|
819
|
+
interestRate?: Prisma.SortOrder;
|
|
820
|
+
termMonths?: Prisma.SortOrder;
|
|
821
|
+
periodicPayment?: Prisma.SortOrder;
|
|
822
|
+
totalPaidToDate?: Prisma.SortOrder;
|
|
823
|
+
totalInterestPaid?: Prisma.SortOrder;
|
|
480
824
|
status?: Prisma.SortOrder;
|
|
825
|
+
state?: Prisma.SortOrder;
|
|
826
|
+
currentPhaseId?: Prisma.SortOrder;
|
|
827
|
+
nextPaymentDueDate?: Prisma.SortOrder;
|
|
828
|
+
lastReminderSentAt?: Prisma.SortOrder;
|
|
481
829
|
startDate?: Prisma.SortOrder;
|
|
482
830
|
endDate?: Prisma.SortOrder;
|
|
483
831
|
signedAt?: Prisma.SortOrder;
|
|
@@ -485,17 +833,41 @@ export type ContractCountOrderByAggregateInput = {
|
|
|
485
833
|
createdAt?: Prisma.SortOrder;
|
|
486
834
|
updatedAt?: Prisma.SortOrder;
|
|
487
835
|
};
|
|
836
|
+
export type ContractAvgOrderByAggregateInput = {
|
|
837
|
+
totalAmount?: Prisma.SortOrder;
|
|
838
|
+
downPayment?: Prisma.SortOrder;
|
|
839
|
+
downPaymentPaid?: Prisma.SortOrder;
|
|
840
|
+
principal?: Prisma.SortOrder;
|
|
841
|
+
interestRate?: Prisma.SortOrder;
|
|
842
|
+
termMonths?: Prisma.SortOrder;
|
|
843
|
+
periodicPayment?: Prisma.SortOrder;
|
|
844
|
+
totalPaidToDate?: Prisma.SortOrder;
|
|
845
|
+
totalInterestPaid?: Prisma.SortOrder;
|
|
846
|
+
};
|
|
488
847
|
export type ContractMaxOrderByAggregateInput = {
|
|
489
848
|
id?: Prisma.SortOrder;
|
|
490
|
-
|
|
491
|
-
paymentPlanId?: Prisma.SortOrder;
|
|
849
|
+
propertyUnitId?: Prisma.SortOrder;
|
|
492
850
|
buyerId?: Prisma.SortOrder;
|
|
493
851
|
sellerId?: Prisma.SortOrder;
|
|
494
|
-
|
|
852
|
+
paymentMethodId?: Prisma.SortOrder;
|
|
495
853
|
contractNumber?: Prisma.SortOrder;
|
|
496
854
|
title?: Prisma.SortOrder;
|
|
497
855
|
description?: Prisma.SortOrder;
|
|
856
|
+
contractType?: Prisma.SortOrder;
|
|
857
|
+
totalAmount?: Prisma.SortOrder;
|
|
858
|
+
downPayment?: Prisma.SortOrder;
|
|
859
|
+
downPaymentPaid?: Prisma.SortOrder;
|
|
860
|
+
principal?: Prisma.SortOrder;
|
|
861
|
+
interestRate?: Prisma.SortOrder;
|
|
862
|
+
termMonths?: Prisma.SortOrder;
|
|
863
|
+
periodicPayment?: Prisma.SortOrder;
|
|
864
|
+
totalPaidToDate?: Prisma.SortOrder;
|
|
865
|
+
totalInterestPaid?: Prisma.SortOrder;
|
|
498
866
|
status?: Prisma.SortOrder;
|
|
867
|
+
state?: Prisma.SortOrder;
|
|
868
|
+
currentPhaseId?: Prisma.SortOrder;
|
|
869
|
+
nextPaymentDueDate?: Prisma.SortOrder;
|
|
870
|
+
lastReminderSentAt?: Prisma.SortOrder;
|
|
499
871
|
startDate?: Prisma.SortOrder;
|
|
500
872
|
endDate?: Prisma.SortOrder;
|
|
501
873
|
signedAt?: Prisma.SortOrder;
|
|
@@ -505,15 +877,28 @@ export type ContractMaxOrderByAggregateInput = {
|
|
|
505
877
|
};
|
|
506
878
|
export type ContractMinOrderByAggregateInput = {
|
|
507
879
|
id?: Prisma.SortOrder;
|
|
508
|
-
|
|
509
|
-
paymentPlanId?: Prisma.SortOrder;
|
|
880
|
+
propertyUnitId?: Prisma.SortOrder;
|
|
510
881
|
buyerId?: Prisma.SortOrder;
|
|
511
882
|
sellerId?: Prisma.SortOrder;
|
|
512
|
-
|
|
883
|
+
paymentMethodId?: Prisma.SortOrder;
|
|
513
884
|
contractNumber?: Prisma.SortOrder;
|
|
514
885
|
title?: Prisma.SortOrder;
|
|
515
886
|
description?: Prisma.SortOrder;
|
|
887
|
+
contractType?: Prisma.SortOrder;
|
|
888
|
+
totalAmount?: Prisma.SortOrder;
|
|
889
|
+
downPayment?: Prisma.SortOrder;
|
|
890
|
+
downPaymentPaid?: Prisma.SortOrder;
|
|
891
|
+
principal?: Prisma.SortOrder;
|
|
892
|
+
interestRate?: Prisma.SortOrder;
|
|
893
|
+
termMonths?: Prisma.SortOrder;
|
|
894
|
+
periodicPayment?: Prisma.SortOrder;
|
|
895
|
+
totalPaidToDate?: Prisma.SortOrder;
|
|
896
|
+
totalInterestPaid?: Prisma.SortOrder;
|
|
516
897
|
status?: Prisma.SortOrder;
|
|
898
|
+
state?: Prisma.SortOrder;
|
|
899
|
+
currentPhaseId?: Prisma.SortOrder;
|
|
900
|
+
nextPaymentDueDate?: Prisma.SortOrder;
|
|
901
|
+
lastReminderSentAt?: Prisma.SortOrder;
|
|
517
902
|
startDate?: Prisma.SortOrder;
|
|
518
903
|
endDate?: Prisma.SortOrder;
|
|
519
904
|
signedAt?: Prisma.SortOrder;
|
|
@@ -521,6 +906,17 @@ export type ContractMinOrderByAggregateInput = {
|
|
|
521
906
|
createdAt?: Prisma.SortOrder;
|
|
522
907
|
updatedAt?: Prisma.SortOrder;
|
|
523
908
|
};
|
|
909
|
+
export type ContractSumOrderByAggregateInput = {
|
|
910
|
+
totalAmount?: Prisma.SortOrder;
|
|
911
|
+
downPayment?: Prisma.SortOrder;
|
|
912
|
+
downPaymentPaid?: Prisma.SortOrder;
|
|
913
|
+
principal?: Prisma.SortOrder;
|
|
914
|
+
interestRate?: Prisma.SortOrder;
|
|
915
|
+
termMonths?: Prisma.SortOrder;
|
|
916
|
+
periodicPayment?: Prisma.SortOrder;
|
|
917
|
+
totalPaidToDate?: Prisma.SortOrder;
|
|
918
|
+
totalInterestPaid?: Prisma.SortOrder;
|
|
919
|
+
};
|
|
524
920
|
export type ContractScalarRelationFilter = {
|
|
525
921
|
is?: Prisma.ContractWhereInput;
|
|
526
922
|
isNot?: Prisma.ContractWhereInput;
|
|
@@ -601,71 +997,105 @@ export type ContractUncheckedUpdateManyWithoutSellerNestedInput = {
|
|
|
601
997
|
updateMany?: Prisma.ContractUpdateManyWithWhereWithoutSellerInput | Prisma.ContractUpdateManyWithWhereWithoutSellerInput[];
|
|
602
998
|
deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
|
|
603
999
|
};
|
|
604
|
-
export type
|
|
605
|
-
create?: Prisma.XOR<Prisma.
|
|
606
|
-
connectOrCreate?: Prisma.
|
|
607
|
-
createMany?: Prisma.
|
|
1000
|
+
export type ContractCreateNestedManyWithoutPropertyUnitInput = {
|
|
1001
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPropertyUnitInput, Prisma.ContractUncheckedCreateWithoutPropertyUnitInput> | Prisma.ContractCreateWithoutPropertyUnitInput[] | Prisma.ContractUncheckedCreateWithoutPropertyUnitInput[];
|
|
1002
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPropertyUnitInput | Prisma.ContractCreateOrConnectWithoutPropertyUnitInput[];
|
|
1003
|
+
createMany?: Prisma.ContractCreateManyPropertyUnitInputEnvelope;
|
|
1004
|
+
connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1005
|
+
};
|
|
1006
|
+
export type ContractUncheckedCreateNestedManyWithoutPropertyUnitInput = {
|
|
1007
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPropertyUnitInput, Prisma.ContractUncheckedCreateWithoutPropertyUnitInput> | Prisma.ContractCreateWithoutPropertyUnitInput[] | Prisma.ContractUncheckedCreateWithoutPropertyUnitInput[];
|
|
1008
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPropertyUnitInput | Prisma.ContractCreateOrConnectWithoutPropertyUnitInput[];
|
|
1009
|
+
createMany?: Prisma.ContractCreateManyPropertyUnitInputEnvelope;
|
|
1010
|
+
connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1011
|
+
};
|
|
1012
|
+
export type ContractUpdateManyWithoutPropertyUnitNestedInput = {
|
|
1013
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPropertyUnitInput, Prisma.ContractUncheckedCreateWithoutPropertyUnitInput> | Prisma.ContractCreateWithoutPropertyUnitInput[] | Prisma.ContractUncheckedCreateWithoutPropertyUnitInput[];
|
|
1014
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPropertyUnitInput | Prisma.ContractCreateOrConnectWithoutPropertyUnitInput[];
|
|
1015
|
+
upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutPropertyUnitInput | Prisma.ContractUpsertWithWhereUniqueWithoutPropertyUnitInput[];
|
|
1016
|
+
createMany?: Prisma.ContractCreateManyPropertyUnitInputEnvelope;
|
|
1017
|
+
set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1018
|
+
disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1019
|
+
delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1020
|
+
connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1021
|
+
update?: Prisma.ContractUpdateWithWhereUniqueWithoutPropertyUnitInput | Prisma.ContractUpdateWithWhereUniqueWithoutPropertyUnitInput[];
|
|
1022
|
+
updateMany?: Prisma.ContractUpdateManyWithWhereWithoutPropertyUnitInput | Prisma.ContractUpdateManyWithWhereWithoutPropertyUnitInput[];
|
|
1023
|
+
deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
|
|
1024
|
+
};
|
|
1025
|
+
export type ContractUncheckedUpdateManyWithoutPropertyUnitNestedInput = {
|
|
1026
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPropertyUnitInput, Prisma.ContractUncheckedCreateWithoutPropertyUnitInput> | Prisma.ContractCreateWithoutPropertyUnitInput[] | Prisma.ContractUncheckedCreateWithoutPropertyUnitInput[];
|
|
1027
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPropertyUnitInput | Prisma.ContractCreateOrConnectWithoutPropertyUnitInput[];
|
|
1028
|
+
upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutPropertyUnitInput | Prisma.ContractUpsertWithWhereUniqueWithoutPropertyUnitInput[];
|
|
1029
|
+
createMany?: Prisma.ContractCreateManyPropertyUnitInputEnvelope;
|
|
1030
|
+
set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1031
|
+
disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1032
|
+
delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1033
|
+
connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
1034
|
+
update?: Prisma.ContractUpdateWithWhereUniqueWithoutPropertyUnitInput | Prisma.ContractUpdateWithWhereUniqueWithoutPropertyUnitInput[];
|
|
1035
|
+
updateMany?: Prisma.ContractUpdateManyWithWhereWithoutPropertyUnitInput | Prisma.ContractUpdateManyWithWhereWithoutPropertyUnitInput[];
|
|
1036
|
+
deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
|
|
1037
|
+
};
|
|
1038
|
+
export type ContractCreateNestedManyWithoutPaymentMethodInput = {
|
|
1039
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodInput> | Prisma.ContractCreateWithoutPaymentMethodInput[] | Prisma.ContractUncheckedCreateWithoutPaymentMethodInput[];
|
|
1040
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentMethodInput | Prisma.ContractCreateOrConnectWithoutPaymentMethodInput[];
|
|
1041
|
+
createMany?: Prisma.ContractCreateManyPaymentMethodInputEnvelope;
|
|
608
1042
|
connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
609
1043
|
};
|
|
610
|
-
export type
|
|
611
|
-
create?: Prisma.XOR<Prisma.
|
|
612
|
-
connectOrCreate?: Prisma.
|
|
613
|
-
createMany?: Prisma.
|
|
1044
|
+
export type ContractUncheckedCreateNestedManyWithoutPaymentMethodInput = {
|
|
1045
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodInput> | Prisma.ContractCreateWithoutPaymentMethodInput[] | Prisma.ContractUncheckedCreateWithoutPaymentMethodInput[];
|
|
1046
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentMethodInput | Prisma.ContractCreateOrConnectWithoutPaymentMethodInput[];
|
|
1047
|
+
createMany?: Prisma.ContractCreateManyPaymentMethodInputEnvelope;
|
|
614
1048
|
connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
615
1049
|
};
|
|
616
|
-
export type
|
|
617
|
-
create?: Prisma.XOR<Prisma.
|
|
618
|
-
connectOrCreate?: Prisma.
|
|
619
|
-
upsert?: Prisma.
|
|
620
|
-
createMany?: Prisma.
|
|
1050
|
+
export type ContractUpdateManyWithoutPaymentMethodNestedInput = {
|
|
1051
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodInput> | Prisma.ContractCreateWithoutPaymentMethodInput[] | Prisma.ContractUncheckedCreateWithoutPaymentMethodInput[];
|
|
1052
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentMethodInput | Prisma.ContractCreateOrConnectWithoutPaymentMethodInput[];
|
|
1053
|
+
upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutPaymentMethodInput | Prisma.ContractUpsertWithWhereUniqueWithoutPaymentMethodInput[];
|
|
1054
|
+
createMany?: Prisma.ContractCreateManyPaymentMethodInputEnvelope;
|
|
621
1055
|
set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
622
1056
|
disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
623
1057
|
delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
624
1058
|
connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
625
|
-
update?: Prisma.
|
|
626
|
-
updateMany?: Prisma.
|
|
1059
|
+
update?: Prisma.ContractUpdateWithWhereUniqueWithoutPaymentMethodInput | Prisma.ContractUpdateWithWhereUniqueWithoutPaymentMethodInput[];
|
|
1060
|
+
updateMany?: Prisma.ContractUpdateManyWithWhereWithoutPaymentMethodInput | Prisma.ContractUpdateManyWithWhereWithoutPaymentMethodInput[];
|
|
627
1061
|
deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
|
|
628
1062
|
};
|
|
629
|
-
export type
|
|
630
|
-
create?: Prisma.XOR<Prisma.
|
|
631
|
-
connectOrCreate?: Prisma.
|
|
632
|
-
upsert?: Prisma.
|
|
633
|
-
createMany?: Prisma.
|
|
1063
|
+
export type ContractUncheckedUpdateManyWithoutPaymentMethodNestedInput = {
|
|
1064
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodInput> | Prisma.ContractCreateWithoutPaymentMethodInput[] | Prisma.ContractUncheckedCreateWithoutPaymentMethodInput[];
|
|
1065
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentMethodInput | Prisma.ContractCreateOrConnectWithoutPaymentMethodInput[];
|
|
1066
|
+
upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutPaymentMethodInput | Prisma.ContractUpsertWithWhereUniqueWithoutPaymentMethodInput[];
|
|
1067
|
+
createMany?: Prisma.ContractCreateManyPaymentMethodInputEnvelope;
|
|
634
1068
|
set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
635
1069
|
disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
636
1070
|
delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
637
1071
|
connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
|
|
638
|
-
update?: Prisma.
|
|
639
|
-
updateMany?: Prisma.
|
|
1072
|
+
update?: Prisma.ContractUpdateWithWhereUniqueWithoutPaymentMethodInput | Prisma.ContractUpdateWithWhereUniqueWithoutPaymentMethodInput[];
|
|
1073
|
+
updateMany?: Prisma.ContractUpdateManyWithWhereWithoutPaymentMethodInput | Prisma.ContractUpdateManyWithWhereWithoutPaymentMethodInput[];
|
|
640
1074
|
deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
|
|
641
1075
|
};
|
|
642
|
-
export type
|
|
643
|
-
create?: Prisma.XOR<Prisma.
|
|
644
|
-
connectOrCreate?: Prisma.
|
|
1076
|
+
export type ContractCreateNestedOneWithoutPhasesInput = {
|
|
1077
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
|
|
1078
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPhasesInput;
|
|
645
1079
|
connect?: Prisma.ContractWhereUniqueInput;
|
|
646
1080
|
};
|
|
647
|
-
export type
|
|
648
|
-
create?: Prisma.XOR<Prisma.
|
|
649
|
-
connectOrCreate?: Prisma.
|
|
1081
|
+
export type ContractUpdateOneRequiredWithoutPhasesNestedInput = {
|
|
1082
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
|
|
1083
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPhasesInput;
|
|
1084
|
+
upsert?: Prisma.ContractUpsertWithoutPhasesInput;
|
|
650
1085
|
connect?: Prisma.ContractWhereUniqueInput;
|
|
1086
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutPhasesInput, Prisma.ContractUpdateWithoutPhasesInput>, Prisma.ContractUncheckedUpdateWithoutPhasesInput>;
|
|
651
1087
|
};
|
|
652
|
-
export type
|
|
653
|
-
create?: Prisma.XOR<Prisma.
|
|
654
|
-
connectOrCreate?: Prisma.
|
|
655
|
-
upsert?: Prisma.ContractUpsertWithoutPaymentPlanInput;
|
|
656
|
-
disconnect?: Prisma.ContractWhereInput | boolean;
|
|
657
|
-
delete?: Prisma.ContractWhereInput | boolean;
|
|
1088
|
+
export type ContractCreateNestedOneWithoutPaymentsInput = {
|
|
1089
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentsInput, Prisma.ContractUncheckedCreateWithoutPaymentsInput>;
|
|
1090
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentsInput;
|
|
658
1091
|
connect?: Prisma.ContractWhereUniqueInput;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
upsert?: Prisma.ContractUpsertWithoutPaymentPlanInput;
|
|
665
|
-
disconnect?: Prisma.ContractWhereInput | boolean;
|
|
666
|
-
delete?: Prisma.ContractWhereInput | boolean;
|
|
1092
|
+
};
|
|
1093
|
+
export type ContractUpdateOneRequiredWithoutPaymentsNestedInput = {
|
|
1094
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentsInput, Prisma.ContractUncheckedCreateWithoutPaymentsInput>;
|
|
1095
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentsInput;
|
|
1096
|
+
upsert?: Prisma.ContractUpsertWithoutPaymentsInput;
|
|
667
1097
|
connect?: Prisma.ContractWhereUniqueInput;
|
|
668
|
-
update?: Prisma.XOR<Prisma.XOR<Prisma.
|
|
1098
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutPaymentsInput, Prisma.ContractUpdateWithoutPaymentsInput>, Prisma.ContractUncheckedUpdateWithoutPaymentsInput>;
|
|
669
1099
|
};
|
|
670
1100
|
export type ContractCreateNestedOneWithoutDocumentsInput = {
|
|
671
1101
|
create?: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
|
|
@@ -679,41 +1109,99 @@ export type ContractUpdateOneRequiredWithoutDocumentsNestedInput = {
|
|
|
679
1109
|
connect?: Prisma.ContractWhereUniqueInput;
|
|
680
1110
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutDocumentsInput, Prisma.ContractUpdateWithoutDocumentsInput>, Prisma.ContractUncheckedUpdateWithoutDocumentsInput>;
|
|
681
1111
|
};
|
|
1112
|
+
export type ContractCreateNestedOneWithoutTransitionsInput = {
|
|
1113
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutTransitionsInput, Prisma.ContractUncheckedCreateWithoutTransitionsInput>;
|
|
1114
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTransitionsInput;
|
|
1115
|
+
connect?: Prisma.ContractWhereUniqueInput;
|
|
1116
|
+
};
|
|
1117
|
+
export type ContractUpdateOneRequiredWithoutTransitionsNestedInput = {
|
|
1118
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutTransitionsInput, Prisma.ContractUncheckedCreateWithoutTransitionsInput>;
|
|
1119
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutTransitionsInput;
|
|
1120
|
+
upsert?: Prisma.ContractUpsertWithoutTransitionsInput;
|
|
1121
|
+
connect?: Prisma.ContractWhereUniqueInput;
|
|
1122
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutTransitionsInput, Prisma.ContractUpdateWithoutTransitionsInput>, Prisma.ContractUncheckedUpdateWithoutTransitionsInput>;
|
|
1123
|
+
};
|
|
1124
|
+
export type ContractCreateNestedOneWithoutEventsInput = {
|
|
1125
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutEventsInput, Prisma.ContractUncheckedCreateWithoutEventsInput>;
|
|
1126
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutEventsInput;
|
|
1127
|
+
connect?: Prisma.ContractWhereUniqueInput;
|
|
1128
|
+
};
|
|
1129
|
+
export type ContractUpdateOneRequiredWithoutEventsNestedInput = {
|
|
1130
|
+
create?: Prisma.XOR<Prisma.ContractCreateWithoutEventsInput, Prisma.ContractUncheckedCreateWithoutEventsInput>;
|
|
1131
|
+
connectOrCreate?: Prisma.ContractCreateOrConnectWithoutEventsInput;
|
|
1132
|
+
upsert?: Prisma.ContractUpsertWithoutEventsInput;
|
|
1133
|
+
connect?: Prisma.ContractWhereUniqueInput;
|
|
1134
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutEventsInput, Prisma.ContractUpdateWithoutEventsInput>, Prisma.ContractUncheckedUpdateWithoutEventsInput>;
|
|
1135
|
+
};
|
|
682
1136
|
export type ContractCreateWithoutBuyerInput = {
|
|
683
1137
|
id?: string;
|
|
684
|
-
contractType: string;
|
|
685
1138
|
contractNumber: string;
|
|
686
1139
|
title: string;
|
|
687
1140
|
description?: string | null;
|
|
1141
|
+
contractType: string;
|
|
1142
|
+
totalAmount: number;
|
|
1143
|
+
downPayment?: number;
|
|
1144
|
+
downPaymentPaid?: number;
|
|
1145
|
+
principal?: number | null;
|
|
1146
|
+
interestRate?: number | null;
|
|
1147
|
+
termMonths?: number | null;
|
|
1148
|
+
periodicPayment?: number | null;
|
|
1149
|
+
totalPaidToDate?: number;
|
|
1150
|
+
totalInterestPaid?: number;
|
|
688
1151
|
status?: string;
|
|
1152
|
+
state?: string;
|
|
1153
|
+
currentPhaseId?: string | null;
|
|
1154
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1155
|
+
lastReminderSentAt?: Date | string | null;
|
|
689
1156
|
startDate?: Date | string | null;
|
|
690
1157
|
endDate?: Date | string | null;
|
|
691
1158
|
signedAt?: Date | string | null;
|
|
692
1159
|
terminatedAt?: Date | string | null;
|
|
693
1160
|
createdAt?: Date | string;
|
|
694
1161
|
updatedAt?: Date | string;
|
|
695
|
-
|
|
696
|
-
paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractInput;
|
|
1162
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
697
1163
|
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
1164
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
1165
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
698
1166
|
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
1167
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
1168
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
1169
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
699
1170
|
};
|
|
700
1171
|
export type ContractUncheckedCreateWithoutBuyerInput = {
|
|
701
1172
|
id?: string;
|
|
702
|
-
|
|
703
|
-
paymentPlanId?: string | null;
|
|
1173
|
+
propertyUnitId: string;
|
|
704
1174
|
sellerId?: string | null;
|
|
705
|
-
|
|
1175
|
+
paymentMethodId?: string | null;
|
|
706
1176
|
contractNumber: string;
|
|
707
1177
|
title: string;
|
|
708
1178
|
description?: string | null;
|
|
1179
|
+
contractType: string;
|
|
1180
|
+
totalAmount: number;
|
|
1181
|
+
downPayment?: number;
|
|
1182
|
+
downPaymentPaid?: number;
|
|
1183
|
+
principal?: number | null;
|
|
1184
|
+
interestRate?: number | null;
|
|
1185
|
+
termMonths?: number | null;
|
|
1186
|
+
periodicPayment?: number | null;
|
|
1187
|
+
totalPaidToDate?: number;
|
|
1188
|
+
totalInterestPaid?: number;
|
|
709
1189
|
status?: string;
|
|
1190
|
+
state?: string;
|
|
1191
|
+
currentPhaseId?: string | null;
|
|
1192
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1193
|
+
lastReminderSentAt?: Date | string | null;
|
|
710
1194
|
startDate?: Date | string | null;
|
|
711
1195
|
endDate?: Date | string | null;
|
|
712
1196
|
signedAt?: Date | string | null;
|
|
713
1197
|
terminatedAt?: Date | string | null;
|
|
714
1198
|
createdAt?: Date | string;
|
|
715
1199
|
updatedAt?: Date | string;
|
|
1200
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
716
1201
|
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
1202
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
1203
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
1204
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
717
1205
|
};
|
|
718
1206
|
export type ContractCreateOrConnectWithoutBuyerInput = {
|
|
719
1207
|
where: Prisma.ContractWhereUniqueInput;
|
|
@@ -725,39 +1213,73 @@ export type ContractCreateManyBuyerInputEnvelope = {
|
|
|
725
1213
|
};
|
|
726
1214
|
export type ContractCreateWithoutSellerInput = {
|
|
727
1215
|
id?: string;
|
|
728
|
-
contractType: string;
|
|
729
1216
|
contractNumber: string;
|
|
730
1217
|
title: string;
|
|
731
1218
|
description?: string | null;
|
|
1219
|
+
contractType: string;
|
|
1220
|
+
totalAmount: number;
|
|
1221
|
+
downPayment?: number;
|
|
1222
|
+
downPaymentPaid?: number;
|
|
1223
|
+
principal?: number | null;
|
|
1224
|
+
interestRate?: number | null;
|
|
1225
|
+
termMonths?: number | null;
|
|
1226
|
+
periodicPayment?: number | null;
|
|
1227
|
+
totalPaidToDate?: number;
|
|
1228
|
+
totalInterestPaid?: number;
|
|
732
1229
|
status?: string;
|
|
1230
|
+
state?: string;
|
|
1231
|
+
currentPhaseId?: string | null;
|
|
1232
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1233
|
+
lastReminderSentAt?: Date | string | null;
|
|
733
1234
|
startDate?: Date | string | null;
|
|
734
1235
|
endDate?: Date | string | null;
|
|
735
1236
|
signedAt?: Date | string | null;
|
|
736
1237
|
terminatedAt?: Date | string | null;
|
|
737
1238
|
createdAt?: Date | string;
|
|
738
1239
|
updatedAt?: Date | string;
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
1240
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
1241
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
1242
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
1243
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
742
1244
|
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
1245
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
1246
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
1247
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
743
1248
|
};
|
|
744
1249
|
export type ContractUncheckedCreateWithoutSellerInput = {
|
|
745
1250
|
id?: string;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
contractType: string;
|
|
1251
|
+
propertyUnitId: string;
|
|
1252
|
+
buyerId: string;
|
|
1253
|
+
paymentMethodId?: string | null;
|
|
750
1254
|
contractNumber: string;
|
|
751
1255
|
title: string;
|
|
752
1256
|
description?: string | null;
|
|
1257
|
+
contractType: string;
|
|
1258
|
+
totalAmount: number;
|
|
1259
|
+
downPayment?: number;
|
|
1260
|
+
downPaymentPaid?: number;
|
|
1261
|
+
principal?: number | null;
|
|
1262
|
+
interestRate?: number | null;
|
|
1263
|
+
termMonths?: number | null;
|
|
1264
|
+
periodicPayment?: number | null;
|
|
1265
|
+
totalPaidToDate?: number;
|
|
1266
|
+
totalInterestPaid?: number;
|
|
753
1267
|
status?: string;
|
|
1268
|
+
state?: string;
|
|
1269
|
+
currentPhaseId?: string | null;
|
|
1270
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1271
|
+
lastReminderSentAt?: Date | string | null;
|
|
754
1272
|
startDate?: Date | string | null;
|
|
755
1273
|
endDate?: Date | string | null;
|
|
756
1274
|
signedAt?: Date | string | null;
|
|
757
1275
|
terminatedAt?: Date | string | null;
|
|
758
1276
|
createdAt?: Date | string;
|
|
759
1277
|
updatedAt?: Date | string;
|
|
1278
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
760
1279
|
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
1280
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
1281
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
1282
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
761
1283
|
};
|
|
762
1284
|
export type ContractCreateOrConnectWithoutSellerInput = {
|
|
763
1285
|
where: Prisma.ContractWhereUniqueInput;
|
|
@@ -785,15 +1307,28 @@ export type ContractScalarWhereInput = {
|
|
|
785
1307
|
OR?: Prisma.ContractScalarWhereInput[];
|
|
786
1308
|
NOT?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
|
|
787
1309
|
id?: Prisma.StringFilter<"Contract"> | string;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
buyerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
1310
|
+
propertyUnitId?: Prisma.StringFilter<"Contract"> | string;
|
|
1311
|
+
buyerId?: Prisma.StringFilter<"Contract"> | string;
|
|
791
1312
|
sellerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
792
|
-
|
|
1313
|
+
paymentMethodId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
793
1314
|
contractNumber?: Prisma.StringFilter<"Contract"> | string;
|
|
794
1315
|
title?: Prisma.StringFilter<"Contract"> | string;
|
|
795
1316
|
description?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
1317
|
+
contractType?: Prisma.StringFilter<"Contract"> | string;
|
|
1318
|
+
totalAmount?: Prisma.FloatFilter<"Contract"> | number;
|
|
1319
|
+
downPayment?: Prisma.FloatFilter<"Contract"> | number;
|
|
1320
|
+
downPaymentPaid?: Prisma.FloatFilter<"Contract"> | number;
|
|
1321
|
+
principal?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
1322
|
+
interestRate?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
1323
|
+
termMonths?: Prisma.IntNullableFilter<"Contract"> | number | null;
|
|
1324
|
+
periodicPayment?: Prisma.FloatNullableFilter<"Contract"> | number | null;
|
|
1325
|
+
totalPaidToDate?: Prisma.FloatFilter<"Contract"> | number;
|
|
1326
|
+
totalInterestPaid?: Prisma.FloatFilter<"Contract"> | number;
|
|
796
1327
|
status?: Prisma.StringFilter<"Contract"> | string;
|
|
1328
|
+
state?: Prisma.StringFilter<"Contract"> | string;
|
|
1329
|
+
currentPhaseId?: Prisma.StringNullableFilter<"Contract"> | string | null;
|
|
1330
|
+
nextPaymentDueDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
1331
|
+
lastReminderSentAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
797
1332
|
startDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
798
1333
|
endDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
799
1334
|
signedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
|
|
@@ -814,91 +1349,247 @@ export type ContractUpdateManyWithWhereWithoutSellerInput = {
|
|
|
814
1349
|
where: Prisma.ContractScalarWhereInput;
|
|
815
1350
|
data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.ContractUncheckedUpdateManyWithoutSellerInput>;
|
|
816
1351
|
};
|
|
817
|
-
export type
|
|
1352
|
+
export type ContractCreateWithoutPropertyUnitInput = {
|
|
818
1353
|
id?: string;
|
|
819
|
-
contractType: string;
|
|
820
1354
|
contractNumber: string;
|
|
821
1355
|
title: string;
|
|
822
1356
|
description?: string | null;
|
|
1357
|
+
contractType: string;
|
|
1358
|
+
totalAmount: number;
|
|
1359
|
+
downPayment?: number;
|
|
1360
|
+
downPaymentPaid?: number;
|
|
1361
|
+
principal?: number | null;
|
|
1362
|
+
interestRate?: number | null;
|
|
1363
|
+
termMonths?: number | null;
|
|
1364
|
+
periodicPayment?: number | null;
|
|
1365
|
+
totalPaidToDate?: number;
|
|
1366
|
+
totalInterestPaid?: number;
|
|
823
1367
|
status?: string;
|
|
1368
|
+
state?: string;
|
|
1369
|
+
currentPhaseId?: string | null;
|
|
1370
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1371
|
+
lastReminderSentAt?: Date | string | null;
|
|
824
1372
|
startDate?: Date | string | null;
|
|
825
1373
|
endDate?: Date | string | null;
|
|
826
1374
|
signedAt?: Date | string | null;
|
|
827
1375
|
terminatedAt?: Date | string | null;
|
|
828
1376
|
createdAt?: Date | string;
|
|
829
1377
|
updatedAt?: Date | string;
|
|
830
|
-
|
|
831
|
-
buyer?: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
1378
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
832
1379
|
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
1380
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
1381
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
833
1382
|
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
1383
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
1384
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
1385
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
834
1386
|
};
|
|
835
|
-
export type
|
|
1387
|
+
export type ContractUncheckedCreateWithoutPropertyUnitInput = {
|
|
836
1388
|
id?: string;
|
|
837
|
-
|
|
838
|
-
buyerId?: string | null;
|
|
1389
|
+
buyerId: string;
|
|
839
1390
|
sellerId?: string | null;
|
|
840
|
-
|
|
1391
|
+
paymentMethodId?: string | null;
|
|
841
1392
|
contractNumber: string;
|
|
842
1393
|
title: string;
|
|
843
1394
|
description?: string | null;
|
|
1395
|
+
contractType: string;
|
|
1396
|
+
totalAmount: number;
|
|
1397
|
+
downPayment?: number;
|
|
1398
|
+
downPaymentPaid?: number;
|
|
1399
|
+
principal?: number | null;
|
|
1400
|
+
interestRate?: number | null;
|
|
1401
|
+
termMonths?: number | null;
|
|
1402
|
+
periodicPayment?: number | null;
|
|
1403
|
+
totalPaidToDate?: number;
|
|
1404
|
+
totalInterestPaid?: number;
|
|
844
1405
|
status?: string;
|
|
1406
|
+
state?: string;
|
|
1407
|
+
currentPhaseId?: string | null;
|
|
1408
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1409
|
+
lastReminderSentAt?: Date | string | null;
|
|
845
1410
|
startDate?: Date | string | null;
|
|
846
1411
|
endDate?: Date | string | null;
|
|
847
1412
|
signedAt?: Date | string | null;
|
|
848
1413
|
terminatedAt?: Date | string | null;
|
|
849
1414
|
createdAt?: Date | string;
|
|
850
1415
|
updatedAt?: Date | string;
|
|
1416
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
851
1417
|
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
1418
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
1419
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
1420
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
852
1421
|
};
|
|
853
|
-
export type
|
|
1422
|
+
export type ContractCreateOrConnectWithoutPropertyUnitInput = {
|
|
854
1423
|
where: Prisma.ContractWhereUniqueInput;
|
|
855
|
-
create: Prisma.XOR<Prisma.
|
|
1424
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutPropertyUnitInput, Prisma.ContractUncheckedCreateWithoutPropertyUnitInput>;
|
|
856
1425
|
};
|
|
857
|
-
export type
|
|
858
|
-
data: Prisma.
|
|
1426
|
+
export type ContractCreateManyPropertyUnitInputEnvelope = {
|
|
1427
|
+
data: Prisma.ContractCreateManyPropertyUnitInput | Prisma.ContractCreateManyPropertyUnitInput[];
|
|
859
1428
|
skipDuplicates?: boolean;
|
|
860
1429
|
};
|
|
861
|
-
export type
|
|
1430
|
+
export type ContractUpsertWithWhereUniqueWithoutPropertyUnitInput = {
|
|
862
1431
|
where: Prisma.ContractWhereUniqueInput;
|
|
863
|
-
update: Prisma.XOR<Prisma.
|
|
864
|
-
create: Prisma.XOR<Prisma.
|
|
1432
|
+
update: Prisma.XOR<Prisma.ContractUpdateWithoutPropertyUnitInput, Prisma.ContractUncheckedUpdateWithoutPropertyUnitInput>;
|
|
1433
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutPropertyUnitInput, Prisma.ContractUncheckedCreateWithoutPropertyUnitInput>;
|
|
865
1434
|
};
|
|
866
|
-
export type
|
|
1435
|
+
export type ContractUpdateWithWhereUniqueWithoutPropertyUnitInput = {
|
|
867
1436
|
where: Prisma.ContractWhereUniqueInput;
|
|
868
|
-
data: Prisma.XOR<Prisma.
|
|
1437
|
+
data: Prisma.XOR<Prisma.ContractUpdateWithoutPropertyUnitInput, Prisma.ContractUncheckedUpdateWithoutPropertyUnitInput>;
|
|
869
1438
|
};
|
|
870
|
-
export type
|
|
1439
|
+
export type ContractUpdateManyWithWhereWithoutPropertyUnitInput = {
|
|
871
1440
|
where: Prisma.ContractScalarWhereInput;
|
|
872
|
-
data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.
|
|
1441
|
+
data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.ContractUncheckedUpdateManyWithoutPropertyUnitInput>;
|
|
873
1442
|
};
|
|
874
|
-
export type
|
|
1443
|
+
export type ContractCreateWithoutPaymentMethodInput = {
|
|
875
1444
|
id?: string;
|
|
876
|
-
contractType: string;
|
|
877
1445
|
contractNumber: string;
|
|
878
1446
|
title: string;
|
|
879
1447
|
description?: string | null;
|
|
1448
|
+
contractType: string;
|
|
1449
|
+
totalAmount: number;
|
|
1450
|
+
downPayment?: number;
|
|
1451
|
+
downPaymentPaid?: number;
|
|
1452
|
+
principal?: number | null;
|
|
1453
|
+
interestRate?: number | null;
|
|
1454
|
+
termMonths?: number | null;
|
|
1455
|
+
periodicPayment?: number | null;
|
|
1456
|
+
totalPaidToDate?: number;
|
|
1457
|
+
totalInterestPaid?: number;
|
|
880
1458
|
status?: string;
|
|
1459
|
+
state?: string;
|
|
1460
|
+
currentPhaseId?: string | null;
|
|
1461
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1462
|
+
lastReminderSentAt?: Date | string | null;
|
|
881
1463
|
startDate?: Date | string | null;
|
|
882
1464
|
endDate?: Date | string | null;
|
|
883
1465
|
signedAt?: Date | string | null;
|
|
884
1466
|
terminatedAt?: Date | string | null;
|
|
885
1467
|
createdAt?: Date | string;
|
|
886
1468
|
updatedAt?: Date | string;
|
|
887
|
-
|
|
888
|
-
buyer
|
|
1469
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
1470
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
889
1471
|
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
1472
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
890
1473
|
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
1474
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
1475
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
1476
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
891
1477
|
};
|
|
892
|
-
export type
|
|
1478
|
+
export type ContractUncheckedCreateWithoutPaymentMethodInput = {
|
|
893
1479
|
id?: string;
|
|
894
|
-
|
|
895
|
-
buyerId
|
|
1480
|
+
propertyUnitId: string;
|
|
1481
|
+
buyerId: string;
|
|
896
1482
|
sellerId?: string | null;
|
|
1483
|
+
contractNumber: string;
|
|
1484
|
+
title: string;
|
|
1485
|
+
description?: string | null;
|
|
1486
|
+
contractType: string;
|
|
1487
|
+
totalAmount: number;
|
|
1488
|
+
downPayment?: number;
|
|
1489
|
+
downPaymentPaid?: number;
|
|
1490
|
+
principal?: number | null;
|
|
1491
|
+
interestRate?: number | null;
|
|
1492
|
+
termMonths?: number | null;
|
|
1493
|
+
periodicPayment?: number | null;
|
|
1494
|
+
totalPaidToDate?: number;
|
|
1495
|
+
totalInterestPaid?: number;
|
|
1496
|
+
status?: string;
|
|
1497
|
+
state?: string;
|
|
1498
|
+
currentPhaseId?: string | null;
|
|
1499
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1500
|
+
lastReminderSentAt?: Date | string | null;
|
|
1501
|
+
startDate?: Date | string | null;
|
|
1502
|
+
endDate?: Date | string | null;
|
|
1503
|
+
signedAt?: Date | string | null;
|
|
1504
|
+
terminatedAt?: Date | string | null;
|
|
1505
|
+
createdAt?: Date | string;
|
|
1506
|
+
updatedAt?: Date | string;
|
|
1507
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
1508
|
+
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
1509
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
1510
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
1511
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
1512
|
+
};
|
|
1513
|
+
export type ContractCreateOrConnectWithoutPaymentMethodInput = {
|
|
1514
|
+
where: Prisma.ContractWhereUniqueInput;
|
|
1515
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodInput>;
|
|
1516
|
+
};
|
|
1517
|
+
export type ContractCreateManyPaymentMethodInputEnvelope = {
|
|
1518
|
+
data: Prisma.ContractCreateManyPaymentMethodInput | Prisma.ContractCreateManyPaymentMethodInput[];
|
|
1519
|
+
skipDuplicates?: boolean;
|
|
1520
|
+
};
|
|
1521
|
+
export type ContractUpsertWithWhereUniqueWithoutPaymentMethodInput = {
|
|
1522
|
+
where: Prisma.ContractWhereUniqueInput;
|
|
1523
|
+
update: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentMethodInput, Prisma.ContractUncheckedUpdateWithoutPaymentMethodInput>;
|
|
1524
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentMethodInput, Prisma.ContractUncheckedCreateWithoutPaymentMethodInput>;
|
|
1525
|
+
};
|
|
1526
|
+
export type ContractUpdateWithWhereUniqueWithoutPaymentMethodInput = {
|
|
1527
|
+
where: Prisma.ContractWhereUniqueInput;
|
|
1528
|
+
data: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentMethodInput, Prisma.ContractUncheckedUpdateWithoutPaymentMethodInput>;
|
|
1529
|
+
};
|
|
1530
|
+
export type ContractUpdateManyWithWhereWithoutPaymentMethodInput = {
|
|
1531
|
+
where: Prisma.ContractScalarWhereInput;
|
|
1532
|
+
data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.ContractUncheckedUpdateManyWithoutPaymentMethodInput>;
|
|
1533
|
+
};
|
|
1534
|
+
export type ContractCreateWithoutPhasesInput = {
|
|
1535
|
+
id?: string;
|
|
1536
|
+
contractNumber: string;
|
|
1537
|
+
title: string;
|
|
1538
|
+
description?: string | null;
|
|
897
1539
|
contractType: string;
|
|
1540
|
+
totalAmount: number;
|
|
1541
|
+
downPayment?: number;
|
|
1542
|
+
downPaymentPaid?: number;
|
|
1543
|
+
principal?: number | null;
|
|
1544
|
+
interestRate?: number | null;
|
|
1545
|
+
termMonths?: number | null;
|
|
1546
|
+
periodicPayment?: number | null;
|
|
1547
|
+
totalPaidToDate?: number;
|
|
1548
|
+
totalInterestPaid?: number;
|
|
1549
|
+
status?: string;
|
|
1550
|
+
state?: string;
|
|
1551
|
+
currentPhaseId?: string | null;
|
|
1552
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1553
|
+
lastReminderSentAt?: Date | string | null;
|
|
1554
|
+
startDate?: Date | string | null;
|
|
1555
|
+
endDate?: Date | string | null;
|
|
1556
|
+
signedAt?: Date | string | null;
|
|
1557
|
+
terminatedAt?: Date | string | null;
|
|
1558
|
+
createdAt?: Date | string;
|
|
1559
|
+
updatedAt?: Date | string;
|
|
1560
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
1561
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
1562
|
+
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
1563
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
1564
|
+
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
1565
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
1566
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
1567
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
1568
|
+
};
|
|
1569
|
+
export type ContractUncheckedCreateWithoutPhasesInput = {
|
|
1570
|
+
id?: string;
|
|
1571
|
+
propertyUnitId: string;
|
|
1572
|
+
buyerId: string;
|
|
1573
|
+
sellerId?: string | null;
|
|
1574
|
+
paymentMethodId?: string | null;
|
|
898
1575
|
contractNumber: string;
|
|
899
1576
|
title: string;
|
|
900
1577
|
description?: string | null;
|
|
1578
|
+
contractType: string;
|
|
1579
|
+
totalAmount: number;
|
|
1580
|
+
downPayment?: number;
|
|
1581
|
+
downPaymentPaid?: number;
|
|
1582
|
+
principal?: number | null;
|
|
1583
|
+
interestRate?: number | null;
|
|
1584
|
+
termMonths?: number | null;
|
|
1585
|
+
periodicPayment?: number | null;
|
|
1586
|
+
totalPaidToDate?: number;
|
|
1587
|
+
totalInterestPaid?: number;
|
|
901
1588
|
status?: string;
|
|
1589
|
+
state?: string;
|
|
1590
|
+
currentPhaseId?: string | null;
|
|
1591
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1592
|
+
lastReminderSentAt?: Date | string | null;
|
|
902
1593
|
startDate?: Date | string | null;
|
|
903
1594
|
endDate?: Date | string | null;
|
|
904
1595
|
signedAt?: Date | string | null;
|
|
@@ -906,91 +1597,315 @@ export type ContractUncheckedCreateWithoutPaymentPlanInput = {
|
|
|
906
1597
|
createdAt?: Date | string;
|
|
907
1598
|
updatedAt?: Date | string;
|
|
908
1599
|
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
1600
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
1601
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
1602
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
909
1603
|
};
|
|
910
|
-
export type
|
|
1604
|
+
export type ContractCreateOrConnectWithoutPhasesInput = {
|
|
911
1605
|
where: Prisma.ContractWhereUniqueInput;
|
|
912
|
-
create: Prisma.XOR<Prisma.
|
|
1606
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
|
|
913
1607
|
};
|
|
914
|
-
export type
|
|
915
|
-
update: Prisma.XOR<Prisma.
|
|
916
|
-
create: Prisma.XOR<Prisma.
|
|
1608
|
+
export type ContractUpsertWithoutPhasesInput = {
|
|
1609
|
+
update: Prisma.XOR<Prisma.ContractUpdateWithoutPhasesInput, Prisma.ContractUncheckedUpdateWithoutPhasesInput>;
|
|
1610
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutPhasesInput, Prisma.ContractUncheckedCreateWithoutPhasesInput>;
|
|
917
1611
|
where?: Prisma.ContractWhereInput;
|
|
918
1612
|
};
|
|
919
|
-
export type
|
|
1613
|
+
export type ContractUpdateToOneWithWhereWithoutPhasesInput = {
|
|
920
1614
|
where?: Prisma.ContractWhereInput;
|
|
921
|
-
data: Prisma.XOR<Prisma.
|
|
1615
|
+
data: Prisma.XOR<Prisma.ContractUpdateWithoutPhasesInput, Prisma.ContractUncheckedUpdateWithoutPhasesInput>;
|
|
922
1616
|
};
|
|
923
|
-
export type
|
|
1617
|
+
export type ContractUpdateWithoutPhasesInput = {
|
|
924
1618
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
925
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
926
1619
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
927
1620
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
928
1621
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1622
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1623
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1624
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1625
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1626
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1627
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1628
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1629
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1630
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1631
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
929
1632
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1633
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1634
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1635
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1636
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
930
1637
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
931
1638
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
932
1639
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
933
1640
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
934
1641
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
935
1642
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
936
|
-
|
|
937
|
-
buyer?: Prisma.
|
|
1643
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
1644
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
938
1645
|
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
1646
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
939
1647
|
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
1648
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
1649
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
1650
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
940
1651
|
};
|
|
941
|
-
export type
|
|
1652
|
+
export type ContractUncheckedUpdateWithoutPhasesInput = {
|
|
942
1653
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
943
|
-
|
|
944
|
-
buyerId?: Prisma.
|
|
1654
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1655
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
945
1656
|
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1657
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1658
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1659
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1660
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1661
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1662
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1663
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1664
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1665
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1666
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1667
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1668
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1669
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1670
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1671
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1672
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1673
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1674
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1675
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1676
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1677
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1678
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1679
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1680
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1681
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1682
|
+
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
1683
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
1684
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
1685
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
1686
|
+
};
|
|
1687
|
+
export type ContractCreateWithoutPaymentsInput = {
|
|
1688
|
+
id?: string;
|
|
1689
|
+
contractNumber: string;
|
|
1690
|
+
title: string;
|
|
1691
|
+
description?: string | null;
|
|
1692
|
+
contractType: string;
|
|
1693
|
+
totalAmount: number;
|
|
1694
|
+
downPayment?: number;
|
|
1695
|
+
downPaymentPaid?: number;
|
|
1696
|
+
principal?: number | null;
|
|
1697
|
+
interestRate?: number | null;
|
|
1698
|
+
termMonths?: number | null;
|
|
1699
|
+
periodicPayment?: number | null;
|
|
1700
|
+
totalPaidToDate?: number;
|
|
1701
|
+
totalInterestPaid?: number;
|
|
1702
|
+
status?: string;
|
|
1703
|
+
state?: string;
|
|
1704
|
+
currentPhaseId?: string | null;
|
|
1705
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1706
|
+
lastReminderSentAt?: Date | string | null;
|
|
1707
|
+
startDate?: Date | string | null;
|
|
1708
|
+
endDate?: Date | string | null;
|
|
1709
|
+
signedAt?: Date | string | null;
|
|
1710
|
+
terminatedAt?: Date | string | null;
|
|
1711
|
+
createdAt?: Date | string;
|
|
1712
|
+
updatedAt?: Date | string;
|
|
1713
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
1714
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
1715
|
+
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
1716
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
1717
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
1718
|
+
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
1719
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
1720
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
1721
|
+
};
|
|
1722
|
+
export type ContractUncheckedCreateWithoutPaymentsInput = {
|
|
1723
|
+
id?: string;
|
|
1724
|
+
propertyUnitId: string;
|
|
1725
|
+
buyerId: string;
|
|
1726
|
+
sellerId?: string | null;
|
|
1727
|
+
paymentMethodId?: string | null;
|
|
1728
|
+
contractNumber: string;
|
|
1729
|
+
title: string;
|
|
1730
|
+
description?: string | null;
|
|
1731
|
+
contractType: string;
|
|
1732
|
+
totalAmount: number;
|
|
1733
|
+
downPayment?: number;
|
|
1734
|
+
downPaymentPaid?: number;
|
|
1735
|
+
principal?: number | null;
|
|
1736
|
+
interestRate?: number | null;
|
|
1737
|
+
termMonths?: number | null;
|
|
1738
|
+
periodicPayment?: number | null;
|
|
1739
|
+
totalPaidToDate?: number;
|
|
1740
|
+
totalInterestPaid?: number;
|
|
1741
|
+
status?: string;
|
|
1742
|
+
state?: string;
|
|
1743
|
+
currentPhaseId?: string | null;
|
|
1744
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1745
|
+
lastReminderSentAt?: Date | string | null;
|
|
1746
|
+
startDate?: Date | string | null;
|
|
1747
|
+
endDate?: Date | string | null;
|
|
1748
|
+
signedAt?: Date | string | null;
|
|
1749
|
+
terminatedAt?: Date | string | null;
|
|
1750
|
+
createdAt?: Date | string;
|
|
1751
|
+
updatedAt?: Date | string;
|
|
1752
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
1753
|
+
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
1754
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
1755
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
1756
|
+
};
|
|
1757
|
+
export type ContractCreateOrConnectWithoutPaymentsInput = {
|
|
1758
|
+
where: Prisma.ContractWhereUniqueInput;
|
|
1759
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentsInput, Prisma.ContractUncheckedCreateWithoutPaymentsInput>;
|
|
1760
|
+
};
|
|
1761
|
+
export type ContractUpsertWithoutPaymentsInput = {
|
|
1762
|
+
update: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentsInput, Prisma.ContractUncheckedUpdateWithoutPaymentsInput>;
|
|
1763
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentsInput, Prisma.ContractUncheckedCreateWithoutPaymentsInput>;
|
|
1764
|
+
where?: Prisma.ContractWhereInput;
|
|
1765
|
+
};
|
|
1766
|
+
export type ContractUpdateToOneWithWhereWithoutPaymentsInput = {
|
|
1767
|
+
where?: Prisma.ContractWhereInput;
|
|
1768
|
+
data: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentsInput, Prisma.ContractUncheckedUpdateWithoutPaymentsInput>;
|
|
1769
|
+
};
|
|
1770
|
+
export type ContractUpdateWithoutPaymentsInput = {
|
|
1771
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1772
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1773
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1774
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
946
1775
|
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1776
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1777
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1778
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1779
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1780
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1781
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1782
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1783
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1784
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1785
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1786
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1787
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1788
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1789
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1790
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1791
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1792
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1793
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1794
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1795
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1796
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
1797
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
1798
|
+
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
1799
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
1800
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
1801
|
+
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
1802
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
1803
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
1804
|
+
};
|
|
1805
|
+
export type ContractUncheckedUpdateWithoutPaymentsInput = {
|
|
1806
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1807
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1808
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1809
|
+
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1810
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
947
1811
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
948
1812
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
949
1813
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1814
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1815
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1816
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1817
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1818
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1819
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1820
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1821
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1822
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1823
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
950
1824
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1825
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1826
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1827
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1828
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
951
1829
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
952
1830
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
953
1831
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
954
1832
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
955
1833
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
956
1834
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1835
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
957
1836
|
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
1837
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
1838
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
958
1839
|
};
|
|
959
1840
|
export type ContractCreateWithoutDocumentsInput = {
|
|
960
1841
|
id?: string;
|
|
961
|
-
contractType: string;
|
|
962
1842
|
contractNumber: string;
|
|
963
1843
|
title: string;
|
|
964
1844
|
description?: string | null;
|
|
1845
|
+
contractType: string;
|
|
1846
|
+
totalAmount: number;
|
|
1847
|
+
downPayment?: number;
|
|
1848
|
+
downPaymentPaid?: number;
|
|
1849
|
+
principal?: number | null;
|
|
1850
|
+
interestRate?: number | null;
|
|
1851
|
+
termMonths?: number | null;
|
|
1852
|
+
periodicPayment?: number | null;
|
|
1853
|
+
totalPaidToDate?: number;
|
|
1854
|
+
totalInterestPaid?: number;
|
|
965
1855
|
status?: string;
|
|
1856
|
+
state?: string;
|
|
1857
|
+
currentPhaseId?: string | null;
|
|
1858
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1859
|
+
lastReminderSentAt?: Date | string | null;
|
|
966
1860
|
startDate?: Date | string | null;
|
|
967
1861
|
endDate?: Date | string | null;
|
|
968
1862
|
signedAt?: Date | string | null;
|
|
969
1863
|
terminatedAt?: Date | string | null;
|
|
970
1864
|
createdAt?: Date | string;
|
|
971
1865
|
updatedAt?: Date | string;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
buyer?: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
1866
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
1867
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
975
1868
|
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
1869
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
1870
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
1871
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
1872
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
1873
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
976
1874
|
};
|
|
977
1875
|
export type ContractUncheckedCreateWithoutDocumentsInput = {
|
|
978
1876
|
id?: string;
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
buyerId?: string | null;
|
|
1877
|
+
propertyUnitId: string;
|
|
1878
|
+
buyerId: string;
|
|
982
1879
|
sellerId?: string | null;
|
|
983
|
-
|
|
1880
|
+
paymentMethodId?: string | null;
|
|
984
1881
|
contractNumber: string;
|
|
985
1882
|
title: string;
|
|
986
1883
|
description?: string | null;
|
|
1884
|
+
contractType: string;
|
|
1885
|
+
totalAmount: number;
|
|
1886
|
+
downPayment?: number;
|
|
1887
|
+
downPaymentPaid?: number;
|
|
1888
|
+
principal?: number | null;
|
|
1889
|
+
interestRate?: number | null;
|
|
1890
|
+
termMonths?: number | null;
|
|
1891
|
+
periodicPayment?: number | null;
|
|
1892
|
+
totalPaidToDate?: number;
|
|
1893
|
+
totalInterestPaid?: number;
|
|
987
1894
|
status?: string;
|
|
1895
|
+
state?: string;
|
|
1896
|
+
currentPhaseId?: string | null;
|
|
1897
|
+
nextPaymentDueDate?: Date | string | null;
|
|
1898
|
+
lastReminderSentAt?: Date | string | null;
|
|
988
1899
|
startDate?: Date | string | null;
|
|
989
1900
|
endDate?: Date | string | null;
|
|
990
1901
|
signedAt?: Date | string | null;
|
|
991
1902
|
terminatedAt?: Date | string | null;
|
|
992
1903
|
createdAt?: Date | string;
|
|
993
1904
|
updatedAt?: Date | string;
|
|
1905
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
1906
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
1907
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
1908
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
994
1909
|
};
|
|
995
1910
|
export type ContractCreateOrConnectWithoutDocumentsInput = {
|
|
996
1911
|
where: Prisma.ContractWhereUniqueInput;
|
|
@@ -1007,50 +1922,403 @@ export type ContractUpdateToOneWithWhereWithoutDocumentsInput = {
|
|
|
1007
1922
|
};
|
|
1008
1923
|
export type ContractUpdateWithoutDocumentsInput = {
|
|
1009
1924
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1010
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1011
1925
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1012
1926
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1013
1927
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1928
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1929
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1930
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1931
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1932
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1933
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1934
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1935
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1936
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1937
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1014
1938
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1939
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1940
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1941
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1942
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1015
1943
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1016
1944
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1017
1945
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1018
1946
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1019
1947
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1020
1948
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
buyer?: Prisma.UserUpdateOneWithoutContractsNestedInput;
|
|
1949
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
1950
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
1024
1951
|
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
1952
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
1953
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
1954
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
1955
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
1956
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
1025
1957
|
};
|
|
1026
1958
|
export type ContractUncheckedUpdateWithoutDocumentsInput = {
|
|
1027
1959
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1960
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1961
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1031
1962
|
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1963
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1964
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1965
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1966
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1032
1967
|
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1968
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1969
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1970
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1971
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1972
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1973
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1974
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1975
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1976
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1977
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1978
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1979
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1980
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1981
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1982
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1983
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1984
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1985
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1986
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1987
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1988
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
1989
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
1990
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
1991
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
1992
|
+
};
|
|
1993
|
+
export type ContractCreateWithoutTransitionsInput = {
|
|
1994
|
+
id?: string;
|
|
1995
|
+
contractNumber: string;
|
|
1996
|
+
title: string;
|
|
1997
|
+
description?: string | null;
|
|
1998
|
+
contractType: string;
|
|
1999
|
+
totalAmount: number;
|
|
2000
|
+
downPayment?: number;
|
|
2001
|
+
downPaymentPaid?: number;
|
|
2002
|
+
principal?: number | null;
|
|
2003
|
+
interestRate?: number | null;
|
|
2004
|
+
termMonths?: number | null;
|
|
2005
|
+
periodicPayment?: number | null;
|
|
2006
|
+
totalPaidToDate?: number;
|
|
2007
|
+
totalInterestPaid?: number;
|
|
2008
|
+
status?: string;
|
|
2009
|
+
state?: string;
|
|
2010
|
+
currentPhaseId?: string | null;
|
|
2011
|
+
nextPaymentDueDate?: Date | string | null;
|
|
2012
|
+
lastReminderSentAt?: Date | string | null;
|
|
2013
|
+
startDate?: Date | string | null;
|
|
2014
|
+
endDate?: Date | string | null;
|
|
2015
|
+
signedAt?: Date | string | null;
|
|
2016
|
+
terminatedAt?: Date | string | null;
|
|
2017
|
+
createdAt?: Date | string;
|
|
2018
|
+
updatedAt?: Date | string;
|
|
2019
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
2020
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
2021
|
+
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
2022
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
2023
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
2024
|
+
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
2025
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
2026
|
+
events?: Prisma.ContractEventCreateNestedManyWithoutContractInput;
|
|
2027
|
+
};
|
|
2028
|
+
export type ContractUncheckedCreateWithoutTransitionsInput = {
|
|
2029
|
+
id?: string;
|
|
2030
|
+
propertyUnitId: string;
|
|
2031
|
+
buyerId: string;
|
|
2032
|
+
sellerId?: string | null;
|
|
2033
|
+
paymentMethodId?: string | null;
|
|
2034
|
+
contractNumber: string;
|
|
2035
|
+
title: string;
|
|
2036
|
+
description?: string | null;
|
|
2037
|
+
contractType: string;
|
|
2038
|
+
totalAmount: number;
|
|
2039
|
+
downPayment?: number;
|
|
2040
|
+
downPaymentPaid?: number;
|
|
2041
|
+
principal?: number | null;
|
|
2042
|
+
interestRate?: number | null;
|
|
2043
|
+
termMonths?: number | null;
|
|
2044
|
+
periodicPayment?: number | null;
|
|
2045
|
+
totalPaidToDate?: number;
|
|
2046
|
+
totalInterestPaid?: number;
|
|
2047
|
+
status?: string;
|
|
2048
|
+
state?: string;
|
|
2049
|
+
currentPhaseId?: string | null;
|
|
2050
|
+
nextPaymentDueDate?: Date | string | null;
|
|
2051
|
+
lastReminderSentAt?: Date | string | null;
|
|
2052
|
+
startDate?: Date | string | null;
|
|
2053
|
+
endDate?: Date | string | null;
|
|
2054
|
+
signedAt?: Date | string | null;
|
|
2055
|
+
terminatedAt?: Date | string | null;
|
|
2056
|
+
createdAt?: Date | string;
|
|
2057
|
+
updatedAt?: Date | string;
|
|
2058
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
2059
|
+
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
2060
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
2061
|
+
events?: Prisma.ContractEventUncheckedCreateNestedManyWithoutContractInput;
|
|
2062
|
+
};
|
|
2063
|
+
export type ContractCreateOrConnectWithoutTransitionsInput = {
|
|
2064
|
+
where: Prisma.ContractWhereUniqueInput;
|
|
2065
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutTransitionsInput, Prisma.ContractUncheckedCreateWithoutTransitionsInput>;
|
|
2066
|
+
};
|
|
2067
|
+
export type ContractUpsertWithoutTransitionsInput = {
|
|
2068
|
+
update: Prisma.XOR<Prisma.ContractUpdateWithoutTransitionsInput, Prisma.ContractUncheckedUpdateWithoutTransitionsInput>;
|
|
2069
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutTransitionsInput, Prisma.ContractUncheckedCreateWithoutTransitionsInput>;
|
|
2070
|
+
where?: Prisma.ContractWhereInput;
|
|
2071
|
+
};
|
|
2072
|
+
export type ContractUpdateToOneWithWhereWithoutTransitionsInput = {
|
|
2073
|
+
where?: Prisma.ContractWhereInput;
|
|
2074
|
+
data: Prisma.XOR<Prisma.ContractUpdateWithoutTransitionsInput, Prisma.ContractUncheckedUpdateWithoutTransitionsInput>;
|
|
2075
|
+
};
|
|
2076
|
+
export type ContractUpdateWithoutTransitionsInput = {
|
|
2077
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1033
2078
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1034
2079
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1035
2080
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2081
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2082
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2083
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2084
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2085
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2086
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2087
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2088
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2089
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2090
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1036
2091
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2092
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2093
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2094
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2095
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1037
2096
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1038
2097
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1039
2098
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1040
2099
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1041
2100
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1042
2101
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2102
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
2103
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
2104
|
+
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
2105
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
2106
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
2107
|
+
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
2108
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
2109
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
1043
2110
|
};
|
|
1044
|
-
export type
|
|
2111
|
+
export type ContractUncheckedUpdateWithoutTransitionsInput = {
|
|
2112
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2113
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2114
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2115
|
+
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2116
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2117
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2118
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2119
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2120
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2121
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2122
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2123
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2124
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2125
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2126
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2127
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2128
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2129
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2130
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2131
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2132
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2133
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2134
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2135
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2136
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2137
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2138
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2139
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2140
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2141
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
2142
|
+
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2143
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2144
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
2145
|
+
};
|
|
2146
|
+
export type ContractCreateWithoutEventsInput = {
|
|
2147
|
+
id?: string;
|
|
2148
|
+
contractNumber: string;
|
|
2149
|
+
title: string;
|
|
2150
|
+
description?: string | null;
|
|
2151
|
+
contractType: string;
|
|
2152
|
+
totalAmount: number;
|
|
2153
|
+
downPayment?: number;
|
|
2154
|
+
downPaymentPaid?: number;
|
|
2155
|
+
principal?: number | null;
|
|
2156
|
+
interestRate?: number | null;
|
|
2157
|
+
termMonths?: number | null;
|
|
2158
|
+
periodicPayment?: number | null;
|
|
2159
|
+
totalPaidToDate?: number;
|
|
2160
|
+
totalInterestPaid?: number;
|
|
2161
|
+
status?: string;
|
|
2162
|
+
state?: string;
|
|
2163
|
+
currentPhaseId?: string | null;
|
|
2164
|
+
nextPaymentDueDate?: Date | string | null;
|
|
2165
|
+
lastReminderSentAt?: Date | string | null;
|
|
2166
|
+
startDate?: Date | string | null;
|
|
2167
|
+
endDate?: Date | string | null;
|
|
2168
|
+
signedAt?: Date | string | null;
|
|
2169
|
+
terminatedAt?: Date | string | null;
|
|
2170
|
+
createdAt?: Date | string;
|
|
2171
|
+
updatedAt?: Date | string;
|
|
2172
|
+
propertyUnit: Prisma.PropertyUnitCreateNestedOneWithoutContractsInput;
|
|
2173
|
+
buyer: Prisma.UserCreateNestedOneWithoutContractsInput;
|
|
2174
|
+
seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
|
|
2175
|
+
paymentMethod?: Prisma.PropertyPaymentMethodCreateNestedOneWithoutContractsInput;
|
|
2176
|
+
phases?: Prisma.ContractPhaseCreateNestedManyWithoutContractInput;
|
|
2177
|
+
documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
|
|
2178
|
+
payments?: Prisma.ContractPaymentCreateNestedManyWithoutContractInput;
|
|
2179
|
+
transitions?: Prisma.ContractTransitionCreateNestedManyWithoutContractInput;
|
|
2180
|
+
};
|
|
2181
|
+
export type ContractUncheckedCreateWithoutEventsInput = {
|
|
1045
2182
|
id?: string;
|
|
1046
|
-
|
|
1047
|
-
|
|
2183
|
+
propertyUnitId: string;
|
|
2184
|
+
buyerId: string;
|
|
1048
2185
|
sellerId?: string | null;
|
|
2186
|
+
paymentMethodId?: string | null;
|
|
2187
|
+
contractNumber: string;
|
|
2188
|
+
title: string;
|
|
2189
|
+
description?: string | null;
|
|
1049
2190
|
contractType: string;
|
|
2191
|
+
totalAmount: number;
|
|
2192
|
+
downPayment?: number;
|
|
2193
|
+
downPaymentPaid?: number;
|
|
2194
|
+
principal?: number | null;
|
|
2195
|
+
interestRate?: number | null;
|
|
2196
|
+
termMonths?: number | null;
|
|
2197
|
+
periodicPayment?: number | null;
|
|
2198
|
+
totalPaidToDate?: number;
|
|
2199
|
+
totalInterestPaid?: number;
|
|
2200
|
+
status?: string;
|
|
2201
|
+
state?: string;
|
|
2202
|
+
currentPhaseId?: string | null;
|
|
2203
|
+
nextPaymentDueDate?: Date | string | null;
|
|
2204
|
+
lastReminderSentAt?: Date | string | null;
|
|
2205
|
+
startDate?: Date | string | null;
|
|
2206
|
+
endDate?: Date | string | null;
|
|
2207
|
+
signedAt?: Date | string | null;
|
|
2208
|
+
terminatedAt?: Date | string | null;
|
|
2209
|
+
createdAt?: Date | string;
|
|
2210
|
+
updatedAt?: Date | string;
|
|
2211
|
+
phases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutContractInput;
|
|
2212
|
+
documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
|
|
2213
|
+
payments?: Prisma.ContractPaymentUncheckedCreateNestedManyWithoutContractInput;
|
|
2214
|
+
transitions?: Prisma.ContractTransitionUncheckedCreateNestedManyWithoutContractInput;
|
|
2215
|
+
};
|
|
2216
|
+
export type ContractCreateOrConnectWithoutEventsInput = {
|
|
2217
|
+
where: Prisma.ContractWhereUniqueInput;
|
|
2218
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutEventsInput, Prisma.ContractUncheckedCreateWithoutEventsInput>;
|
|
2219
|
+
};
|
|
2220
|
+
export type ContractUpsertWithoutEventsInput = {
|
|
2221
|
+
update: Prisma.XOR<Prisma.ContractUpdateWithoutEventsInput, Prisma.ContractUncheckedUpdateWithoutEventsInput>;
|
|
2222
|
+
create: Prisma.XOR<Prisma.ContractCreateWithoutEventsInput, Prisma.ContractUncheckedCreateWithoutEventsInput>;
|
|
2223
|
+
where?: Prisma.ContractWhereInput;
|
|
2224
|
+
};
|
|
2225
|
+
export type ContractUpdateToOneWithWhereWithoutEventsInput = {
|
|
2226
|
+
where?: Prisma.ContractWhereInput;
|
|
2227
|
+
data: Prisma.XOR<Prisma.ContractUpdateWithoutEventsInput, Prisma.ContractUncheckedUpdateWithoutEventsInput>;
|
|
2228
|
+
};
|
|
2229
|
+
export type ContractUpdateWithoutEventsInput = {
|
|
2230
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2231
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2232
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2233
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2234
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2235
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2236
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2237
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2238
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2239
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2240
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2241
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2242
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2243
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2244
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2245
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2246
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2247
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2248
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2249
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2250
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2251
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2252
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2253
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2254
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2255
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
2256
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
2257
|
+
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
2258
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
2259
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
2260
|
+
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
2261
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
2262
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
2263
|
+
};
|
|
2264
|
+
export type ContractUncheckedUpdateWithoutEventsInput = {
|
|
2265
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2266
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2267
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2268
|
+
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2269
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2270
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2271
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2272
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2273
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2274
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2275
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2276
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2277
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2278
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2279
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2280
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2281
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2282
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2283
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2284
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2285
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2286
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2287
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2288
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2289
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2290
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2291
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2292
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2293
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2294
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
2295
|
+
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2296
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2297
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
2298
|
+
};
|
|
2299
|
+
export type ContractCreateManyBuyerInput = {
|
|
2300
|
+
id?: string;
|
|
2301
|
+
propertyUnitId: string;
|
|
2302
|
+
sellerId?: string | null;
|
|
2303
|
+
paymentMethodId?: string | null;
|
|
1050
2304
|
contractNumber: string;
|
|
1051
2305
|
title: string;
|
|
1052
2306
|
description?: string | null;
|
|
2307
|
+
contractType: string;
|
|
2308
|
+
totalAmount: number;
|
|
2309
|
+
downPayment?: number;
|
|
2310
|
+
downPaymentPaid?: number;
|
|
2311
|
+
principal?: number | null;
|
|
2312
|
+
interestRate?: number | null;
|
|
2313
|
+
termMonths?: number | null;
|
|
2314
|
+
periodicPayment?: number | null;
|
|
2315
|
+
totalPaidToDate?: number;
|
|
2316
|
+
totalInterestPaid?: number;
|
|
1053
2317
|
status?: string;
|
|
2318
|
+
state?: string;
|
|
2319
|
+
currentPhaseId?: string | null;
|
|
2320
|
+
nextPaymentDueDate?: Date | string | null;
|
|
2321
|
+
lastReminderSentAt?: Date | string | null;
|
|
1054
2322
|
startDate?: Date | string | null;
|
|
1055
2323
|
endDate?: Date | string | null;
|
|
1056
2324
|
signedAt?: Date | string | null;
|
|
@@ -1060,14 +2328,27 @@ export type ContractCreateManyBuyerInput = {
|
|
|
1060
2328
|
};
|
|
1061
2329
|
export type ContractCreateManySellerInput = {
|
|
1062
2330
|
id?: string;
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
contractType: string;
|
|
2331
|
+
propertyUnitId: string;
|
|
2332
|
+
buyerId: string;
|
|
2333
|
+
paymentMethodId?: string | null;
|
|
1067
2334
|
contractNumber: string;
|
|
1068
2335
|
title: string;
|
|
1069
2336
|
description?: string | null;
|
|
2337
|
+
contractType: string;
|
|
2338
|
+
totalAmount: number;
|
|
2339
|
+
downPayment?: number;
|
|
2340
|
+
downPaymentPaid?: number;
|
|
2341
|
+
principal?: number | null;
|
|
2342
|
+
interestRate?: number | null;
|
|
2343
|
+
termMonths?: number | null;
|
|
2344
|
+
periodicPayment?: number | null;
|
|
2345
|
+
totalPaidToDate?: number;
|
|
2346
|
+
totalInterestPaid?: number;
|
|
1070
2347
|
status?: string;
|
|
2348
|
+
state?: string;
|
|
2349
|
+
currentPhaseId?: string | null;
|
|
2350
|
+
nextPaymentDueDate?: Date | string | null;
|
|
2351
|
+
lastReminderSentAt?: Date | string | null;
|
|
1071
2352
|
startDate?: Date | string | null;
|
|
1072
2353
|
endDate?: Date | string | null;
|
|
1073
2354
|
signedAt?: Date | string | null;
|
|
@@ -1077,50 +2358,97 @@ export type ContractCreateManySellerInput = {
|
|
|
1077
2358
|
};
|
|
1078
2359
|
export type ContractUpdateWithoutBuyerInput = {
|
|
1079
2360
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1080
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1081
2361
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1082
2362
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1083
2363
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2364
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2365
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2366
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2367
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2368
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2369
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2370
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2371
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2372
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2373
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1084
2374
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2375
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2376
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2377
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2378
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1085
2379
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1086
2380
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1087
2381
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1088
2382
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1089
2383
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1090
2384
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1091
|
-
|
|
1092
|
-
paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractNestedInput;
|
|
2385
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
1093
2386
|
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
2387
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
2388
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
1094
2389
|
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
2390
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
2391
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
2392
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
1095
2393
|
};
|
|
1096
2394
|
export type ContractUncheckedUpdateWithoutBuyerInput = {
|
|
1097
2395
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1098
|
-
|
|
1099
|
-
paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2396
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1100
2397
|
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1101
|
-
|
|
2398
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1102
2399
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1103
2400
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1104
2401
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2402
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2403
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2404
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2405
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2406
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2407
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2408
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2409
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2410
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2411
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1105
2412
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2413
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2414
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2415
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2416
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1106
2417
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1107
2418
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1108
2419
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1109
2420
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1110
2421
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1111
2422
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2423
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
1112
2424
|
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2425
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2426
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
2427
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
1113
2428
|
};
|
|
1114
2429
|
export type ContractUncheckedUpdateManyWithoutBuyerInput = {
|
|
1115
2430
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1116
|
-
|
|
1117
|
-
paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2431
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1118
2432
|
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1119
|
-
|
|
2433
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1120
2434
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1121
2435
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1122
2436
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2437
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2438
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2439
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2440
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2441
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2442
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2443
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2444
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2445
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2446
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1123
2447
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2448
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2449
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2450
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2451
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1124
2452
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1125
2453
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1126
2454
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
@@ -1130,50 +2458,97 @@ export type ContractUncheckedUpdateManyWithoutBuyerInput = {
|
|
|
1130
2458
|
};
|
|
1131
2459
|
export type ContractUpdateWithoutSellerInput = {
|
|
1132
2460
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1133
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1134
2461
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1135
2462
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1136
2463
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2464
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2465
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2466
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2467
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2468
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2469
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2470
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2471
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2472
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2473
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1137
2474
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2475
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2476
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2477
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2478
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1138
2479
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1139
2480
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1140
2481
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1141
2482
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1142
2483
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1143
2484
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
2485
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
2486
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
2487
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
2488
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
1147
2489
|
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
2490
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
2491
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
2492
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
1148
2493
|
};
|
|
1149
2494
|
export type ContractUncheckedUpdateWithoutSellerInput = {
|
|
1150
2495
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2496
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2497
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2498
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1155
2499
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1156
2500
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1157
2501
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2502
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2503
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2504
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2505
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2506
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2507
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2508
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2509
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2510
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2511
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1158
2512
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2513
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2514
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2515
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2516
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1159
2517
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1160
2518
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1161
2519
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1162
2520
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1163
2521
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1164
2522
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2523
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
1165
2524
|
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2525
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2526
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
2527
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
1166
2528
|
};
|
|
1167
2529
|
export type ContractUncheckedUpdateManyWithoutSellerInput = {
|
|
1168
2530
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2531
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2532
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2533
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1173
2534
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1174
2535
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1175
2536
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2537
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2538
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2539
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2540
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2541
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2542
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2543
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2544
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2545
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2546
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1176
2547
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2548
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2549
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2550
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2551
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1177
2552
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1178
2553
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1179
2554
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
@@ -1181,16 +2556,29 @@ export type ContractUncheckedUpdateManyWithoutSellerInput = {
|
|
|
1181
2556
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1182
2557
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1183
2558
|
};
|
|
1184
|
-
export type
|
|
2559
|
+
export type ContractCreateManyPropertyUnitInput = {
|
|
1185
2560
|
id?: string;
|
|
1186
|
-
|
|
1187
|
-
buyerId?: string | null;
|
|
2561
|
+
buyerId: string;
|
|
1188
2562
|
sellerId?: string | null;
|
|
1189
|
-
|
|
2563
|
+
paymentMethodId?: string | null;
|
|
1190
2564
|
contractNumber: string;
|
|
1191
2565
|
title: string;
|
|
1192
2566
|
description?: string | null;
|
|
2567
|
+
contractType: string;
|
|
2568
|
+
totalAmount: number;
|
|
2569
|
+
downPayment?: number;
|
|
2570
|
+
downPaymentPaid?: number;
|
|
2571
|
+
principal?: number | null;
|
|
2572
|
+
interestRate?: number | null;
|
|
2573
|
+
termMonths?: number | null;
|
|
2574
|
+
periodicPayment?: number | null;
|
|
2575
|
+
totalPaidToDate?: number;
|
|
2576
|
+
totalInterestPaid?: number;
|
|
1193
2577
|
status?: string;
|
|
2578
|
+
state?: string;
|
|
2579
|
+
currentPhaseId?: string | null;
|
|
2580
|
+
nextPaymentDueDate?: Date | string | null;
|
|
2581
|
+
lastReminderSentAt?: Date | string | null;
|
|
1194
2582
|
startDate?: Date | string | null;
|
|
1195
2583
|
endDate?: Date | string | null;
|
|
1196
2584
|
signedAt?: Date | string | null;
|
|
@@ -1198,52 +2586,229 @@ export type ContractCreateManyPropertyInput = {
|
|
|
1198
2586
|
createdAt?: Date | string;
|
|
1199
2587
|
updatedAt?: Date | string;
|
|
1200
2588
|
};
|
|
1201
|
-
export type
|
|
2589
|
+
export type ContractUpdateWithoutPropertyUnitInput = {
|
|
1202
2590
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1203
|
-
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1204
2591
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1205
2592
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1206
2593
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2594
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2595
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2596
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2597
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2598
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2599
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2600
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2601
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2602
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2603
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1207
2604
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2605
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2606
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2607
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2608
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1208
2609
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1209
2610
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1210
2611
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1211
2612
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1212
2613
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1213
2614
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1214
|
-
|
|
1215
|
-
buyer?: Prisma.UserUpdateOneWithoutContractsNestedInput;
|
|
2615
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
1216
2616
|
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
2617
|
+
paymentMethod?: Prisma.PropertyPaymentMethodUpdateOneWithoutContractsNestedInput;
|
|
2618
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
1217
2619
|
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
2620
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
2621
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
2622
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
1218
2623
|
};
|
|
1219
|
-
export type
|
|
2624
|
+
export type ContractUncheckedUpdateWithoutPropertyUnitInput = {
|
|
1220
2625
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1221
|
-
|
|
1222
|
-
buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2626
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1223
2627
|
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1224
|
-
|
|
2628
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1225
2629
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1226
2630
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1227
2631
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2632
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2633
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2634
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2635
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2636
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2637
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2638
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2639
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2640
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2641
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1228
2642
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2643
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2644
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2645
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2646
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1229
2647
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1230
2648
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1231
2649
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1232
2650
|
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1233
2651
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1234
2652
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2653
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
1235
2654
|
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2655
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2656
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
2657
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
1236
2658
|
};
|
|
1237
|
-
export type
|
|
2659
|
+
export type ContractUncheckedUpdateManyWithoutPropertyUnitInput = {
|
|
1238
2660
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1239
|
-
|
|
1240
|
-
buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2661
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1241
2662
|
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2663
|
+
paymentMethodId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2664
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2665
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2666
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1242
2667
|
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2668
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2669
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2670
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2671
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2672
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2673
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2674
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2675
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2676
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2677
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2678
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2679
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2680
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2681
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2682
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2683
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2684
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2685
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2686
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2687
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2688
|
+
};
|
|
2689
|
+
export type ContractCreateManyPaymentMethodInput = {
|
|
2690
|
+
id?: string;
|
|
2691
|
+
propertyUnitId: string;
|
|
2692
|
+
buyerId: string;
|
|
2693
|
+
sellerId?: string | null;
|
|
2694
|
+
contractNumber: string;
|
|
2695
|
+
title: string;
|
|
2696
|
+
description?: string | null;
|
|
2697
|
+
contractType: string;
|
|
2698
|
+
totalAmount: number;
|
|
2699
|
+
downPayment?: number;
|
|
2700
|
+
downPaymentPaid?: number;
|
|
2701
|
+
principal?: number | null;
|
|
2702
|
+
interestRate?: number | null;
|
|
2703
|
+
termMonths?: number | null;
|
|
2704
|
+
periodicPayment?: number | null;
|
|
2705
|
+
totalPaidToDate?: number;
|
|
2706
|
+
totalInterestPaid?: number;
|
|
2707
|
+
status?: string;
|
|
2708
|
+
state?: string;
|
|
2709
|
+
currentPhaseId?: string | null;
|
|
2710
|
+
nextPaymentDueDate?: Date | string | null;
|
|
2711
|
+
lastReminderSentAt?: Date | string | null;
|
|
2712
|
+
startDate?: Date | string | null;
|
|
2713
|
+
endDate?: Date | string | null;
|
|
2714
|
+
signedAt?: Date | string | null;
|
|
2715
|
+
terminatedAt?: Date | string | null;
|
|
2716
|
+
createdAt?: Date | string;
|
|
2717
|
+
updatedAt?: Date | string;
|
|
2718
|
+
};
|
|
2719
|
+
export type ContractUpdateWithoutPaymentMethodInput = {
|
|
2720
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2721
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2722
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2723
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2724
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2725
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2726
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2727
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2728
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2729
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2730
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2731
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2732
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2733
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2734
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2735
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2736
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2737
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2738
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2739
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2740
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2741
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2742
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2743
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2744
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2745
|
+
propertyUnit?: Prisma.PropertyUnitUpdateOneRequiredWithoutContractsNestedInput;
|
|
2746
|
+
buyer?: Prisma.UserUpdateOneRequiredWithoutContractsNestedInput;
|
|
2747
|
+
seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
|
|
2748
|
+
phases?: Prisma.ContractPhaseUpdateManyWithoutContractNestedInput;
|
|
2749
|
+
documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
|
|
2750
|
+
payments?: Prisma.ContractPaymentUpdateManyWithoutContractNestedInput;
|
|
2751
|
+
transitions?: Prisma.ContractTransitionUpdateManyWithoutContractNestedInput;
|
|
2752
|
+
events?: Prisma.ContractEventUpdateManyWithoutContractNestedInput;
|
|
2753
|
+
};
|
|
2754
|
+
export type ContractUncheckedUpdateWithoutPaymentMethodInput = {
|
|
2755
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2756
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2757
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2758
|
+
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2759
|
+
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2760
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2761
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2762
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2763
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2764
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2765
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2766
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2767
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2768
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2769
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2770
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2771
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2772
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2773
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2774
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2775
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2776
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2777
|
+
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2778
|
+
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2779
|
+
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2780
|
+
terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2781
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2782
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
2783
|
+
phases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutContractNestedInput;
|
|
2784
|
+
documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2785
|
+
payments?: Prisma.ContractPaymentUncheckedUpdateManyWithoutContractNestedInput;
|
|
2786
|
+
transitions?: Prisma.ContractTransitionUncheckedUpdateManyWithoutContractNestedInput;
|
|
2787
|
+
events?: Prisma.ContractEventUncheckedUpdateManyWithoutContractNestedInput;
|
|
2788
|
+
};
|
|
2789
|
+
export type ContractUncheckedUpdateManyWithoutPaymentMethodInput = {
|
|
2790
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2791
|
+
propertyUnitId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2792
|
+
buyerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2793
|
+
sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1243
2794
|
contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1244
2795
|
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1245
2796
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2797
|
+
contractType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2798
|
+
totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2799
|
+
downPayment?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2800
|
+
downPaymentPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2801
|
+
principal?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2802
|
+
interestRate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2803
|
+
termMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
2804
|
+
periodicPayment?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
2805
|
+
totalPaidToDate?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
2806
|
+
totalInterestPaid?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
1246
2807
|
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2808
|
+
state?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
2809
|
+
currentPhaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
2810
|
+
nextPaymentDueDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
2811
|
+
lastReminderSentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1247
2812
|
startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1248
2813
|
endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1249
2814
|
signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
@@ -1255,10 +2820,18 @@ export type ContractUncheckedUpdateManyWithoutPropertyInput = {
|
|
|
1255
2820
|
* Count Type ContractCountOutputType
|
|
1256
2821
|
*/
|
|
1257
2822
|
export type ContractCountOutputType = {
|
|
2823
|
+
phases: number;
|
|
1258
2824
|
documents: number;
|
|
2825
|
+
payments: number;
|
|
2826
|
+
transitions: number;
|
|
2827
|
+
events: number;
|
|
1259
2828
|
};
|
|
1260
2829
|
export type ContractCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2830
|
+
phases?: boolean | ContractCountOutputTypeCountPhasesArgs;
|
|
1261
2831
|
documents?: boolean | ContractCountOutputTypeCountDocumentsArgs;
|
|
2832
|
+
payments?: boolean | ContractCountOutputTypeCountPaymentsArgs;
|
|
2833
|
+
transitions?: boolean | ContractCountOutputTypeCountTransitionsArgs;
|
|
2834
|
+
events?: boolean | ContractCountOutputTypeCountEventsArgs;
|
|
1262
2835
|
};
|
|
1263
2836
|
/**
|
|
1264
2837
|
* ContractCountOutputType without action
|
|
@@ -1269,47 +2842,101 @@ export type ContractCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Ext
|
|
|
1269
2842
|
*/
|
|
1270
2843
|
select?: Prisma.ContractCountOutputTypeSelect<ExtArgs> | null;
|
|
1271
2844
|
};
|
|
2845
|
+
/**
|
|
2846
|
+
* ContractCountOutputType without action
|
|
2847
|
+
*/
|
|
2848
|
+
export type ContractCountOutputTypeCountPhasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2849
|
+
where?: Prisma.ContractPhaseWhereInput;
|
|
2850
|
+
};
|
|
1272
2851
|
/**
|
|
1273
2852
|
* ContractCountOutputType without action
|
|
1274
2853
|
*/
|
|
1275
2854
|
export type ContractCountOutputTypeCountDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1276
2855
|
where?: Prisma.ContractDocumentWhereInput;
|
|
1277
2856
|
};
|
|
2857
|
+
/**
|
|
2858
|
+
* ContractCountOutputType without action
|
|
2859
|
+
*/
|
|
2860
|
+
export type ContractCountOutputTypeCountPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2861
|
+
where?: Prisma.ContractPaymentWhereInput;
|
|
2862
|
+
};
|
|
2863
|
+
/**
|
|
2864
|
+
* ContractCountOutputType without action
|
|
2865
|
+
*/
|
|
2866
|
+
export type ContractCountOutputTypeCountTransitionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2867
|
+
where?: Prisma.ContractTransitionWhereInput;
|
|
2868
|
+
};
|
|
2869
|
+
/**
|
|
2870
|
+
* ContractCountOutputType without action
|
|
2871
|
+
*/
|
|
2872
|
+
export type ContractCountOutputTypeCountEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2873
|
+
where?: Prisma.ContractEventWhereInput;
|
|
2874
|
+
};
|
|
1278
2875
|
export type ContractSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1279
2876
|
id?: boolean;
|
|
1280
|
-
|
|
1281
|
-
paymentPlanId?: boolean;
|
|
2877
|
+
propertyUnitId?: boolean;
|
|
1282
2878
|
buyerId?: boolean;
|
|
1283
2879
|
sellerId?: boolean;
|
|
1284
|
-
|
|
2880
|
+
paymentMethodId?: boolean;
|
|
1285
2881
|
contractNumber?: boolean;
|
|
1286
2882
|
title?: boolean;
|
|
1287
2883
|
description?: boolean;
|
|
2884
|
+
contractType?: boolean;
|
|
2885
|
+
totalAmount?: boolean;
|
|
2886
|
+
downPayment?: boolean;
|
|
2887
|
+
downPaymentPaid?: boolean;
|
|
2888
|
+
principal?: boolean;
|
|
2889
|
+
interestRate?: boolean;
|
|
2890
|
+
termMonths?: boolean;
|
|
2891
|
+
periodicPayment?: boolean;
|
|
2892
|
+
totalPaidToDate?: boolean;
|
|
2893
|
+
totalInterestPaid?: boolean;
|
|
1288
2894
|
status?: boolean;
|
|
2895
|
+
state?: boolean;
|
|
2896
|
+
currentPhaseId?: boolean;
|
|
2897
|
+
nextPaymentDueDate?: boolean;
|
|
2898
|
+
lastReminderSentAt?: boolean;
|
|
1289
2899
|
startDate?: boolean;
|
|
1290
2900
|
endDate?: boolean;
|
|
1291
2901
|
signedAt?: boolean;
|
|
1292
2902
|
terminatedAt?: boolean;
|
|
1293
2903
|
createdAt?: boolean;
|
|
1294
2904
|
updatedAt?: boolean;
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
buyer?: boolean | Prisma.Contract$buyerArgs<ExtArgs>;
|
|
2905
|
+
propertyUnit?: boolean | Prisma.PropertyUnitDefaultArgs<ExtArgs>;
|
|
2906
|
+
buyer?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
1298
2907
|
seller?: boolean | Prisma.Contract$sellerArgs<ExtArgs>;
|
|
2908
|
+
paymentMethod?: boolean | Prisma.Contract$paymentMethodArgs<ExtArgs>;
|
|
2909
|
+
phases?: boolean | Prisma.Contract$phasesArgs<ExtArgs>;
|
|
1299
2910
|
documents?: boolean | Prisma.Contract$documentsArgs<ExtArgs>;
|
|
2911
|
+
payments?: boolean | Prisma.Contract$paymentsArgs<ExtArgs>;
|
|
2912
|
+
transitions?: boolean | Prisma.Contract$transitionsArgs<ExtArgs>;
|
|
2913
|
+
events?: boolean | Prisma.Contract$eventsArgs<ExtArgs>;
|
|
1300
2914
|
_count?: boolean | Prisma.ContractCountOutputTypeDefaultArgs<ExtArgs>;
|
|
1301
2915
|
}, ExtArgs["result"]["contract"]>;
|
|
1302
2916
|
export type ContractSelectScalar = {
|
|
1303
2917
|
id?: boolean;
|
|
1304
|
-
|
|
1305
|
-
paymentPlanId?: boolean;
|
|
2918
|
+
propertyUnitId?: boolean;
|
|
1306
2919
|
buyerId?: boolean;
|
|
1307
2920
|
sellerId?: boolean;
|
|
1308
|
-
|
|
2921
|
+
paymentMethodId?: boolean;
|
|
1309
2922
|
contractNumber?: boolean;
|
|
1310
2923
|
title?: boolean;
|
|
1311
2924
|
description?: boolean;
|
|
2925
|
+
contractType?: boolean;
|
|
2926
|
+
totalAmount?: boolean;
|
|
2927
|
+
downPayment?: boolean;
|
|
2928
|
+
downPaymentPaid?: boolean;
|
|
2929
|
+
principal?: boolean;
|
|
2930
|
+
interestRate?: boolean;
|
|
2931
|
+
termMonths?: boolean;
|
|
2932
|
+
periodicPayment?: boolean;
|
|
2933
|
+
totalPaidToDate?: boolean;
|
|
2934
|
+
totalInterestPaid?: boolean;
|
|
1312
2935
|
status?: boolean;
|
|
2936
|
+
state?: boolean;
|
|
2937
|
+
currentPhaseId?: boolean;
|
|
2938
|
+
nextPaymentDueDate?: boolean;
|
|
2939
|
+
lastReminderSentAt?: boolean;
|
|
1313
2940
|
startDate?: boolean;
|
|
1314
2941
|
endDate?: boolean;
|
|
1315
2942
|
signedAt?: boolean;
|
|
@@ -1317,35 +2944,56 @@ export type ContractSelectScalar = {
|
|
|
1317
2944
|
createdAt?: boolean;
|
|
1318
2945
|
updatedAt?: boolean;
|
|
1319
2946
|
};
|
|
1320
|
-
export type ContractOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "
|
|
2947
|
+
export type ContractOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "propertyUnitId" | "buyerId" | "sellerId" | "paymentMethodId" | "contractNumber" | "title" | "description" | "contractType" | "totalAmount" | "downPayment" | "downPaymentPaid" | "principal" | "interestRate" | "termMonths" | "periodicPayment" | "totalPaidToDate" | "totalInterestPaid" | "status" | "state" | "currentPhaseId" | "nextPaymentDueDate" | "lastReminderSentAt" | "startDate" | "endDate" | "signedAt" | "terminatedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["contract"]>;
|
|
1321
2948
|
export type ContractInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
buyer?: boolean | Prisma.Contract$buyerArgs<ExtArgs>;
|
|
2949
|
+
propertyUnit?: boolean | Prisma.PropertyUnitDefaultArgs<ExtArgs>;
|
|
2950
|
+
buyer?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
1325
2951
|
seller?: boolean | Prisma.Contract$sellerArgs<ExtArgs>;
|
|
2952
|
+
paymentMethod?: boolean | Prisma.Contract$paymentMethodArgs<ExtArgs>;
|
|
2953
|
+
phases?: boolean | Prisma.Contract$phasesArgs<ExtArgs>;
|
|
1326
2954
|
documents?: boolean | Prisma.Contract$documentsArgs<ExtArgs>;
|
|
2955
|
+
payments?: boolean | Prisma.Contract$paymentsArgs<ExtArgs>;
|
|
2956
|
+
transitions?: boolean | Prisma.Contract$transitionsArgs<ExtArgs>;
|
|
2957
|
+
events?: boolean | Prisma.Contract$eventsArgs<ExtArgs>;
|
|
1327
2958
|
_count?: boolean | Prisma.ContractCountOutputTypeDefaultArgs<ExtArgs>;
|
|
1328
2959
|
};
|
|
1329
2960
|
export type $ContractPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1330
2961
|
name: "Contract";
|
|
1331
2962
|
objects: {
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
buyer: Prisma.$UserPayload<ExtArgs> | null;
|
|
2963
|
+
propertyUnit: Prisma.$PropertyUnitPayload<ExtArgs>;
|
|
2964
|
+
buyer: Prisma.$UserPayload<ExtArgs>;
|
|
1335
2965
|
seller: Prisma.$UserPayload<ExtArgs> | null;
|
|
2966
|
+
paymentMethod: Prisma.$PropertyPaymentMethodPayload<ExtArgs> | null;
|
|
2967
|
+
phases: Prisma.$ContractPhasePayload<ExtArgs>[];
|
|
1336
2968
|
documents: Prisma.$ContractDocumentPayload<ExtArgs>[];
|
|
2969
|
+
payments: Prisma.$ContractPaymentPayload<ExtArgs>[];
|
|
2970
|
+
transitions: Prisma.$ContractTransitionPayload<ExtArgs>[];
|
|
2971
|
+
events: Prisma.$ContractEventPayload<ExtArgs>[];
|
|
1337
2972
|
};
|
|
1338
2973
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1339
2974
|
id: string;
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
buyerId: string | null;
|
|
2975
|
+
propertyUnitId: string;
|
|
2976
|
+
buyerId: string;
|
|
1343
2977
|
sellerId: string | null;
|
|
1344
|
-
|
|
2978
|
+
paymentMethodId: string | null;
|
|
1345
2979
|
contractNumber: string;
|
|
1346
2980
|
title: string;
|
|
1347
2981
|
description: string | null;
|
|
2982
|
+
contractType: string;
|
|
2983
|
+
totalAmount: number;
|
|
2984
|
+
downPayment: number;
|
|
2985
|
+
downPaymentPaid: number;
|
|
2986
|
+
principal: number | null;
|
|
2987
|
+
interestRate: number | null;
|
|
2988
|
+
termMonths: number | null;
|
|
2989
|
+
periodicPayment: number | null;
|
|
2990
|
+
totalPaidToDate: number;
|
|
2991
|
+
totalInterestPaid: number;
|
|
1348
2992
|
status: string;
|
|
2993
|
+
state: string;
|
|
2994
|
+
currentPhaseId: string | null;
|
|
2995
|
+
nextPaymentDueDate: Date | null;
|
|
2996
|
+
lastReminderSentAt: Date | null;
|
|
1349
2997
|
startDate: Date | null;
|
|
1350
2998
|
endDate: Date | null;
|
|
1351
2999
|
signedAt: Date | null;
|
|
@@ -1629,11 +3277,15 @@ export interface ContractDelegate<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
1629
3277
|
*/
|
|
1630
3278
|
export interface Prisma__ContractClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1631
3279
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
buyer<T extends Prisma.Contract$buyerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$buyerArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
3280
|
+
propertyUnit<T extends Prisma.PropertyUnitDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PropertyUnitDefaultArgs<ExtArgs>>): Prisma.Prisma__PropertyUnitClient<runtime.Types.Result.GetResult<Prisma.$PropertyUnitPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
3281
|
+
buyer<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1635
3282
|
seller<T extends Prisma.Contract$sellerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$sellerArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
3283
|
+
paymentMethod<T extends Prisma.Contract$paymentMethodArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$paymentMethodArgs<ExtArgs>>): Prisma.Prisma__PropertyPaymentMethodClient<runtime.Types.Result.GetResult<Prisma.$PropertyPaymentMethodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
3284
|
+
phases<T extends Prisma.Contract$phasesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$phasesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPhasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1636
3285
|
documents<T extends Prisma.Contract$documentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$documentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
3286
|
+
payments<T extends Prisma.Contract$paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
3287
|
+
transitions<T extends Prisma.Contract$transitionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$transitionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractTransitionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
3288
|
+
events<T extends Prisma.Contract$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1637
3289
|
/**
|
|
1638
3290
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1639
3291
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1660,15 +3312,28 @@ export interface Prisma__ContractClient<T, Null = never, ExtArgs extends runtime
|
|
|
1660
3312
|
*/
|
|
1661
3313
|
export interface ContractFieldRefs {
|
|
1662
3314
|
readonly id: Prisma.FieldRef<"Contract", 'String'>;
|
|
1663
|
-
readonly
|
|
1664
|
-
readonly paymentPlanId: Prisma.FieldRef<"Contract", 'String'>;
|
|
3315
|
+
readonly propertyUnitId: Prisma.FieldRef<"Contract", 'String'>;
|
|
1665
3316
|
readonly buyerId: Prisma.FieldRef<"Contract", 'String'>;
|
|
1666
3317
|
readonly sellerId: Prisma.FieldRef<"Contract", 'String'>;
|
|
1667
|
-
readonly
|
|
3318
|
+
readonly paymentMethodId: Prisma.FieldRef<"Contract", 'String'>;
|
|
1668
3319
|
readonly contractNumber: Prisma.FieldRef<"Contract", 'String'>;
|
|
1669
3320
|
readonly title: Prisma.FieldRef<"Contract", 'String'>;
|
|
1670
3321
|
readonly description: Prisma.FieldRef<"Contract", 'String'>;
|
|
3322
|
+
readonly contractType: Prisma.FieldRef<"Contract", 'String'>;
|
|
3323
|
+
readonly totalAmount: Prisma.FieldRef<"Contract", 'Float'>;
|
|
3324
|
+
readonly downPayment: Prisma.FieldRef<"Contract", 'Float'>;
|
|
3325
|
+
readonly downPaymentPaid: Prisma.FieldRef<"Contract", 'Float'>;
|
|
3326
|
+
readonly principal: Prisma.FieldRef<"Contract", 'Float'>;
|
|
3327
|
+
readonly interestRate: Prisma.FieldRef<"Contract", 'Float'>;
|
|
3328
|
+
readonly termMonths: Prisma.FieldRef<"Contract", 'Int'>;
|
|
3329
|
+
readonly periodicPayment: Prisma.FieldRef<"Contract", 'Float'>;
|
|
3330
|
+
readonly totalPaidToDate: Prisma.FieldRef<"Contract", 'Float'>;
|
|
3331
|
+
readonly totalInterestPaid: Prisma.FieldRef<"Contract", 'Float'>;
|
|
1671
3332
|
readonly status: Prisma.FieldRef<"Contract", 'String'>;
|
|
3333
|
+
readonly state: Prisma.FieldRef<"Contract", 'String'>;
|
|
3334
|
+
readonly currentPhaseId: Prisma.FieldRef<"Contract", 'String'>;
|
|
3335
|
+
readonly nextPaymentDueDate: Prisma.FieldRef<"Contract", 'DateTime'>;
|
|
3336
|
+
readonly lastReminderSentAt: Prisma.FieldRef<"Contract", 'DateTime'>;
|
|
1672
3337
|
readonly startDate: Prisma.FieldRef<"Contract", 'DateTime'>;
|
|
1673
3338
|
readonly endDate: Prisma.FieldRef<"Contract", 'DateTime'>;
|
|
1674
3339
|
readonly signedAt: Prisma.FieldRef<"Contract", 'DateTime'>;
|
|
@@ -2003,58 +3668,63 @@ export type ContractDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|
|
2003
3668
|
limit?: number;
|
|
2004
3669
|
};
|
|
2005
3670
|
/**
|
|
2006
|
-
* Contract.
|
|
3671
|
+
* Contract.seller
|
|
2007
3672
|
*/
|
|
2008
|
-
export type Contract$
|
|
3673
|
+
export type Contract$sellerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2009
3674
|
/**
|
|
2010
|
-
* Select specific fields to fetch from the
|
|
3675
|
+
* Select specific fields to fetch from the User
|
|
2011
3676
|
*/
|
|
2012
|
-
select?: Prisma.
|
|
3677
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
2013
3678
|
/**
|
|
2014
|
-
* Omit specific fields from the
|
|
3679
|
+
* Omit specific fields from the User
|
|
2015
3680
|
*/
|
|
2016
|
-
omit?: Prisma.
|
|
3681
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
2017
3682
|
/**
|
|
2018
3683
|
* Choose, which related nodes to fetch as well
|
|
2019
3684
|
*/
|
|
2020
|
-
include?: Prisma.
|
|
2021
|
-
where?: Prisma.
|
|
3685
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
3686
|
+
where?: Prisma.UserWhereInput;
|
|
2022
3687
|
};
|
|
2023
3688
|
/**
|
|
2024
|
-
* Contract.
|
|
3689
|
+
* Contract.paymentMethod
|
|
2025
3690
|
*/
|
|
2026
|
-
export type Contract$
|
|
3691
|
+
export type Contract$paymentMethodArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2027
3692
|
/**
|
|
2028
|
-
* Select specific fields to fetch from the
|
|
3693
|
+
* Select specific fields to fetch from the PropertyPaymentMethod
|
|
2029
3694
|
*/
|
|
2030
|
-
select?: Prisma.
|
|
3695
|
+
select?: Prisma.PropertyPaymentMethodSelect<ExtArgs> | null;
|
|
2031
3696
|
/**
|
|
2032
|
-
* Omit specific fields from the
|
|
3697
|
+
* Omit specific fields from the PropertyPaymentMethod
|
|
2033
3698
|
*/
|
|
2034
|
-
omit?: Prisma.
|
|
3699
|
+
omit?: Prisma.PropertyPaymentMethodOmit<ExtArgs> | null;
|
|
2035
3700
|
/**
|
|
2036
3701
|
* Choose, which related nodes to fetch as well
|
|
2037
3702
|
*/
|
|
2038
|
-
include?: Prisma.
|
|
2039
|
-
where?: Prisma.
|
|
3703
|
+
include?: Prisma.PropertyPaymentMethodInclude<ExtArgs> | null;
|
|
3704
|
+
where?: Prisma.PropertyPaymentMethodWhereInput;
|
|
2040
3705
|
};
|
|
2041
3706
|
/**
|
|
2042
|
-
* Contract.
|
|
3707
|
+
* Contract.phases
|
|
2043
3708
|
*/
|
|
2044
|
-
export type Contract$
|
|
3709
|
+
export type Contract$phasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2045
3710
|
/**
|
|
2046
|
-
* Select specific fields to fetch from the
|
|
3711
|
+
* Select specific fields to fetch from the ContractPhase
|
|
2047
3712
|
*/
|
|
2048
|
-
select?: Prisma.
|
|
3713
|
+
select?: Prisma.ContractPhaseSelect<ExtArgs> | null;
|
|
2049
3714
|
/**
|
|
2050
|
-
* Omit specific fields from the
|
|
3715
|
+
* Omit specific fields from the ContractPhase
|
|
2051
3716
|
*/
|
|
2052
|
-
omit?: Prisma.
|
|
3717
|
+
omit?: Prisma.ContractPhaseOmit<ExtArgs> | null;
|
|
2053
3718
|
/**
|
|
2054
3719
|
* Choose, which related nodes to fetch as well
|
|
2055
3720
|
*/
|
|
2056
|
-
include?: Prisma.
|
|
2057
|
-
where?: Prisma.
|
|
3721
|
+
include?: Prisma.ContractPhaseInclude<ExtArgs> | null;
|
|
3722
|
+
where?: Prisma.ContractPhaseWhereInput;
|
|
3723
|
+
orderBy?: Prisma.ContractPhaseOrderByWithRelationInput | Prisma.ContractPhaseOrderByWithRelationInput[];
|
|
3724
|
+
cursor?: Prisma.ContractPhaseWhereUniqueInput;
|
|
3725
|
+
take?: number;
|
|
3726
|
+
skip?: number;
|
|
3727
|
+
distinct?: Prisma.ContractPhaseScalarFieldEnum | Prisma.ContractPhaseScalarFieldEnum[];
|
|
2058
3728
|
};
|
|
2059
3729
|
/**
|
|
2060
3730
|
* Contract.documents
|
|
@@ -2079,6 +3749,75 @@ export type Contract$documentsArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|
|
2079
3749
|
skip?: number;
|
|
2080
3750
|
distinct?: Prisma.ContractDocumentScalarFieldEnum | Prisma.ContractDocumentScalarFieldEnum[];
|
|
2081
3751
|
};
|
|
3752
|
+
/**
|
|
3753
|
+
* Contract.payments
|
|
3754
|
+
*/
|
|
3755
|
+
export type Contract$paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3756
|
+
/**
|
|
3757
|
+
* Select specific fields to fetch from the ContractPayment
|
|
3758
|
+
*/
|
|
3759
|
+
select?: Prisma.ContractPaymentSelect<ExtArgs> | null;
|
|
3760
|
+
/**
|
|
3761
|
+
* Omit specific fields from the ContractPayment
|
|
3762
|
+
*/
|
|
3763
|
+
omit?: Prisma.ContractPaymentOmit<ExtArgs> | null;
|
|
3764
|
+
/**
|
|
3765
|
+
* Choose, which related nodes to fetch as well
|
|
3766
|
+
*/
|
|
3767
|
+
include?: Prisma.ContractPaymentInclude<ExtArgs> | null;
|
|
3768
|
+
where?: Prisma.ContractPaymentWhereInput;
|
|
3769
|
+
orderBy?: Prisma.ContractPaymentOrderByWithRelationInput | Prisma.ContractPaymentOrderByWithRelationInput[];
|
|
3770
|
+
cursor?: Prisma.ContractPaymentWhereUniqueInput;
|
|
3771
|
+
take?: number;
|
|
3772
|
+
skip?: number;
|
|
3773
|
+
distinct?: Prisma.ContractPaymentScalarFieldEnum | Prisma.ContractPaymentScalarFieldEnum[];
|
|
3774
|
+
};
|
|
3775
|
+
/**
|
|
3776
|
+
* Contract.transitions
|
|
3777
|
+
*/
|
|
3778
|
+
export type Contract$transitionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3779
|
+
/**
|
|
3780
|
+
* Select specific fields to fetch from the ContractTransition
|
|
3781
|
+
*/
|
|
3782
|
+
select?: Prisma.ContractTransitionSelect<ExtArgs> | null;
|
|
3783
|
+
/**
|
|
3784
|
+
* Omit specific fields from the ContractTransition
|
|
3785
|
+
*/
|
|
3786
|
+
omit?: Prisma.ContractTransitionOmit<ExtArgs> | null;
|
|
3787
|
+
/**
|
|
3788
|
+
* Choose, which related nodes to fetch as well
|
|
3789
|
+
*/
|
|
3790
|
+
include?: Prisma.ContractTransitionInclude<ExtArgs> | null;
|
|
3791
|
+
where?: Prisma.ContractTransitionWhereInput;
|
|
3792
|
+
orderBy?: Prisma.ContractTransitionOrderByWithRelationInput | Prisma.ContractTransitionOrderByWithRelationInput[];
|
|
3793
|
+
cursor?: Prisma.ContractTransitionWhereUniqueInput;
|
|
3794
|
+
take?: number;
|
|
3795
|
+
skip?: number;
|
|
3796
|
+
distinct?: Prisma.ContractTransitionScalarFieldEnum | Prisma.ContractTransitionScalarFieldEnum[];
|
|
3797
|
+
};
|
|
3798
|
+
/**
|
|
3799
|
+
* Contract.events
|
|
3800
|
+
*/
|
|
3801
|
+
export type Contract$eventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3802
|
+
/**
|
|
3803
|
+
* Select specific fields to fetch from the ContractEvent
|
|
3804
|
+
*/
|
|
3805
|
+
select?: Prisma.ContractEventSelect<ExtArgs> | null;
|
|
3806
|
+
/**
|
|
3807
|
+
* Omit specific fields from the ContractEvent
|
|
3808
|
+
*/
|
|
3809
|
+
omit?: Prisma.ContractEventOmit<ExtArgs> | null;
|
|
3810
|
+
/**
|
|
3811
|
+
* Choose, which related nodes to fetch as well
|
|
3812
|
+
*/
|
|
3813
|
+
include?: Prisma.ContractEventInclude<ExtArgs> | null;
|
|
3814
|
+
where?: Prisma.ContractEventWhereInput;
|
|
3815
|
+
orderBy?: Prisma.ContractEventOrderByWithRelationInput | Prisma.ContractEventOrderByWithRelationInput[];
|
|
3816
|
+
cursor?: Prisma.ContractEventWhereUniqueInput;
|
|
3817
|
+
take?: number;
|
|
3818
|
+
skip?: number;
|
|
3819
|
+
distinct?: Prisma.ContractEventScalarFieldEnum | Prisma.ContractEventScalarFieldEnum[];
|
|
3820
|
+
};
|
|
2082
3821
|
/**
|
|
2083
3822
|
* Contract without action
|
|
2084
3823
|
*/
|