@valentine-efagene/qshelter-common 2.0.52 → 2.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/src/middleware/tenant.js +3 -3
  2. package/package.json +1 -1
  3. package/dist/generated/client/models/ContractPhaseStep.d.ts +0 -1819
  4. package/dist/generated/client/models/ContractPhaseStep.js +0 -1
  5. package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +0 -1253
  6. package/dist/generated/client/models/ContractPhaseStepApproval.js +0 -1
  7. package/dist/generated/client/models/ContractPhaseStepDocument.d.ts +0 -1052
  8. package/dist/generated/client/models/ContractPhaseStepDocument.js +0 -1
  9. package/dist/generated/client/models/Mortgage.d.ts +0 -2777
  10. package/dist/generated/client/models/Mortgage.js +0 -1
  11. package/dist/generated/client/models/MortgageDocument.d.ts +0 -1118
  12. package/dist/generated/client/models/MortgageDocument.js +0 -1
  13. package/dist/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
  14. package/dist/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
  15. package/dist/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
  16. package/dist/generated/client/models/MortgageDownpaymentPayment.js +0 -1
  17. package/dist/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
  18. package/dist/generated/client/models/MortgageDownpaymentPlan.js +0 -1
  19. package/dist/generated/client/models/MortgageStep.d.ts +0 -1222
  20. package/dist/generated/client/models/MortgageStep.js +0 -1
  21. package/dist/generated/client/models/MortgageTransition.d.ts +0 -1118
  22. package/dist/generated/client/models/MortgageTransition.js +0 -1
  23. package/dist/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
  24. package/dist/generated/client/models/MortgageTransitionEvent.js +0 -1
  25. package/dist/generated/client/models/MortgageType.d.ts +0 -1052
  26. package/dist/generated/client/models/MortgageType.js +0 -1
  27. package/dist/generated/client/models/Payment.d.ts +0 -2026
  28. package/dist/generated/client/models/Payment.js +0 -1
  29. package/dist/generated/client/models/PaymentInstallment.d.ts +0 -1539
  30. package/dist/generated/client/models/PaymentInstallment.js +0 -1
  31. package/dist/generated/client/models/PaymentSchedule.d.ts +0 -1450
  32. package/dist/generated/client/models/PaymentSchedule.js +0 -1
  33. package/dist/index.d.ts +0 -6
  34. package/dist/index.js +0 -6
  35. package/dist/src/generated/client/client.d.ts +0 -201
  36. package/dist/src/generated/client/client.js +0 -32
  37. package/dist/src/generated/client/commonInputTypes.d.ts +0 -403
  38. package/dist/src/generated/client/commonInputTypes.js +0 -10
  39. package/dist/src/generated/client/enums.d.ts +0 -1
  40. package/dist/src/generated/client/enums.js +0 -10
  41. package/dist/src/generated/client/internal/class.d.ts +0 -511
  42. package/dist/src/generated/client/internal/class.js +0 -40
  43. package/dist/src/generated/client/internal/prismaNamespace.d.ts +0 -3571
  44. package/dist/src/generated/client/internal/prismaNamespace.js +0 -739
  45. package/dist/src/generated/client/models/Amenity.d.ts +0 -1020
  46. package/dist/src/generated/client/models/Amenity.js +0 -1
  47. package/dist/src/generated/client/models/Contract.d.ts +0 -2099
  48. package/dist/src/generated/client/models/Contract.js +0 -1
  49. package/dist/src/generated/client/models/ContractDocument.d.ts +0 -1118
  50. package/dist/src/generated/client/models/ContractDocument.js +0 -1
  51. package/dist/src/generated/client/models/DeviceEndpoint.d.ts +0 -1118
  52. package/dist/src/generated/client/models/DeviceEndpoint.js +0 -1
  53. package/dist/src/generated/client/models/EmailPreference.d.ts +0 -1151
  54. package/dist/src/generated/client/models/EmailPreference.js +0 -1
  55. package/dist/src/generated/client/models/Mortgage.d.ts +0 -2777
  56. package/dist/src/generated/client/models/Mortgage.js +0 -1
  57. package/dist/src/generated/client/models/MortgageDocument.d.ts +0 -1118
  58. package/dist/src/generated/client/models/MortgageDocument.js +0 -1
  59. package/dist/src/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
  60. package/dist/src/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
  61. package/dist/src/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
  62. package/dist/src/generated/client/models/MortgageDownpaymentPayment.js +0 -1
  63. package/dist/src/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
  64. package/dist/src/generated/client/models/MortgageDownpaymentPlan.js +0 -1
  65. package/dist/src/generated/client/models/MortgageStep.d.ts +0 -1222
  66. package/dist/src/generated/client/models/MortgageStep.js +0 -1
  67. package/dist/src/generated/client/models/MortgageTransition.d.ts +0 -1118
  68. package/dist/src/generated/client/models/MortgageTransition.js +0 -1
  69. package/dist/src/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
  70. package/dist/src/generated/client/models/MortgageTransitionEvent.js +0 -1
  71. package/dist/src/generated/client/models/MortgageType.d.ts +0 -1052
  72. package/dist/src/generated/client/models/MortgageType.js +0 -1
  73. package/dist/src/generated/client/models/OAuthState.d.ts +0 -864
  74. package/dist/src/generated/client/models/OAuthState.js +0 -1
  75. package/dist/src/generated/client/models/PasswordReset.d.ts +0 -1085
  76. package/dist/src/generated/client/models/PasswordReset.js +0 -1
  77. package/dist/src/generated/client/models/Payment.d.ts +0 -2026
  78. package/dist/src/generated/client/models/Payment.js +0 -1
  79. package/dist/src/generated/client/models/PaymentInstallment.d.ts +0 -1539
  80. package/dist/src/generated/client/models/PaymentInstallment.js +0 -1
  81. package/dist/src/generated/client/models/PaymentPlan.d.ts +0 -2148
  82. package/dist/src/generated/client/models/PaymentPlan.js +0 -1
  83. package/dist/src/generated/client/models/PaymentSchedule.d.ts +0 -1450
  84. package/dist/src/generated/client/models/PaymentSchedule.js +0 -1
  85. package/dist/src/generated/client/models/Permission.d.ts +0 -1115
  86. package/dist/src/generated/client/models/Permission.js +0 -1
  87. package/dist/src/generated/client/models/Property.d.ts +0 -3254
  88. package/dist/src/generated/client/models/Property.js +0 -1
  89. package/dist/src/generated/client/models/PropertyAmenity.d.ts +0 -1080
  90. package/dist/src/generated/client/models/PropertyAmenity.js +0 -1
  91. package/dist/src/generated/client/models/PropertyDocument.d.ts +0 -1118
  92. package/dist/src/generated/client/models/PropertyDocument.js +0 -1
  93. package/dist/src/generated/client/models/PropertyMedia.d.ts +0 -1331
  94. package/dist/src/generated/client/models/PropertyMedia.js +0 -1
  95. package/dist/src/generated/client/models/RefreshToken.d.ts +0 -1085
  96. package/dist/src/generated/client/models/RefreshToken.js +0 -1
  97. package/dist/src/generated/client/models/Role.d.ts +0 -1153
  98. package/dist/src/generated/client/models/Role.js +0 -1
  99. package/dist/src/generated/client/models/RolePermission.d.ts +0 -1080
  100. package/dist/src/generated/client/models/RolePermission.js +0 -1
  101. package/dist/src/generated/client/models/Settings.d.ts +0 -916
  102. package/dist/src/generated/client/models/Settings.js +0 -1
  103. package/dist/src/generated/client/models/Social.d.ts +0 -1090
  104. package/dist/src/generated/client/models/Social.js +0 -1
  105. package/dist/src/generated/client/models/Tenant.d.ts +0 -1082
  106. package/dist/src/generated/client/models/Tenant.js +0 -1
  107. package/dist/src/generated/client/models/Transaction.d.ts +0 -1222
  108. package/dist/src/generated/client/models/Transaction.js +0 -1
  109. package/dist/src/generated/client/models/User.d.ts +0 -4239
  110. package/dist/src/generated/client/models/User.js +0 -1
  111. package/dist/src/generated/client/models/UserRole.d.ts +0 -1080
  112. package/dist/src/generated/client/models/UserRole.js +0 -1
  113. package/dist/src/generated/client/models/UserSuspension.d.ts +0 -1085
  114. package/dist/src/generated/client/models/UserSuspension.js +0 -1
  115. package/dist/src/generated/client/models/Wallet.d.ts +0 -1191
  116. package/dist/src/generated/client/models/Wallet.js +0 -1
  117. package/dist/src/generated/client/models.d.ts +0 -37
  118. package/dist/src/generated/client/models.js +0 -1
@@ -1,2099 +0,0 @@
1
- import type * as runtime from "@prisma/client/runtime/client";
2
- import type * as Prisma from "../internal/prismaNamespace.js";
3
- /**
4
- * Model Contract
5
- *
6
- */
7
- export type ContractModel = runtime.Types.Result.DefaultSelection<Prisma.$ContractPayload>;
8
- export type AggregateContract = {
9
- _count: ContractCountAggregateOutputType | null;
10
- _min: ContractMinAggregateOutputType | null;
11
- _max: ContractMaxAggregateOutputType | null;
12
- };
13
- export type ContractMinAggregateOutputType = {
14
- id: string | null;
15
- propertyId: string | null;
16
- paymentPlanId: string | null;
17
- buyerId: string | null;
18
- sellerId: string | null;
19
- contractType: string | null;
20
- contractNumber: string | null;
21
- title: string | null;
22
- description: string | null;
23
- status: string | null;
24
- startDate: Date | null;
25
- endDate: Date | null;
26
- signedAt: Date | null;
27
- terminatedAt: Date | null;
28
- createdAt: Date | null;
29
- updatedAt: Date | null;
30
- };
31
- export type ContractMaxAggregateOutputType = {
32
- id: string | null;
33
- propertyId: string | null;
34
- paymentPlanId: string | null;
35
- buyerId: string | null;
36
- sellerId: string | null;
37
- contractType: string | null;
38
- contractNumber: string | null;
39
- title: string | null;
40
- description: string | null;
41
- status: string | null;
42
- startDate: Date | null;
43
- endDate: Date | null;
44
- signedAt: Date | null;
45
- terminatedAt: Date | null;
46
- createdAt: Date | null;
47
- updatedAt: Date | null;
48
- };
49
- export type ContractCountAggregateOutputType = {
50
- id: number;
51
- propertyId: number;
52
- paymentPlanId: number;
53
- buyerId: number;
54
- sellerId: number;
55
- contractType: number;
56
- contractNumber: number;
57
- title: number;
58
- description: number;
59
- status: number;
60
- startDate: number;
61
- endDate: number;
62
- signedAt: number;
63
- terminatedAt: number;
64
- createdAt: number;
65
- updatedAt: number;
66
- _all: number;
67
- };
68
- export type ContractMinAggregateInputType = {
69
- id?: true;
70
- propertyId?: true;
71
- paymentPlanId?: true;
72
- buyerId?: true;
73
- sellerId?: true;
74
- contractType?: true;
75
- contractNumber?: true;
76
- title?: true;
77
- description?: true;
78
- status?: true;
79
- startDate?: true;
80
- endDate?: true;
81
- signedAt?: true;
82
- terminatedAt?: true;
83
- createdAt?: true;
84
- updatedAt?: true;
85
- };
86
- export type ContractMaxAggregateInputType = {
87
- id?: true;
88
- propertyId?: true;
89
- paymentPlanId?: true;
90
- buyerId?: true;
91
- sellerId?: true;
92
- contractType?: true;
93
- contractNumber?: true;
94
- title?: true;
95
- description?: true;
96
- status?: true;
97
- startDate?: true;
98
- endDate?: true;
99
- signedAt?: true;
100
- terminatedAt?: true;
101
- createdAt?: true;
102
- updatedAt?: true;
103
- };
104
- export type ContractCountAggregateInputType = {
105
- id?: true;
106
- propertyId?: true;
107
- paymentPlanId?: true;
108
- buyerId?: true;
109
- sellerId?: true;
110
- contractType?: true;
111
- contractNumber?: true;
112
- title?: true;
113
- description?: true;
114
- status?: true;
115
- startDate?: true;
116
- endDate?: true;
117
- signedAt?: true;
118
- terminatedAt?: true;
119
- createdAt?: true;
120
- updatedAt?: true;
121
- _all?: true;
122
- };
123
- export type ContractAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
124
- /**
125
- * Filter which Contract to aggregate.
126
- */
127
- where?: Prisma.ContractWhereInput;
128
- /**
129
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
130
- *
131
- * Determine the order of Contracts to fetch.
132
- */
133
- orderBy?: Prisma.ContractOrderByWithRelationInput | Prisma.ContractOrderByWithRelationInput[];
134
- /**
135
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
136
- *
137
- * Sets the start position
138
- */
139
- cursor?: Prisma.ContractWhereUniqueInput;
140
- /**
141
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
142
- *
143
- * Take `±n` Contracts from the position of the cursor.
144
- */
145
- take?: number;
146
- /**
147
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
148
- *
149
- * Skip the first `n` Contracts.
150
- */
151
- skip?: number;
152
- /**
153
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
154
- *
155
- * Count returned Contracts
156
- **/
157
- _count?: true | ContractCountAggregateInputType;
158
- /**
159
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
160
- *
161
- * Select which fields to find the minimum value
162
- **/
163
- _min?: ContractMinAggregateInputType;
164
- /**
165
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
166
- *
167
- * Select which fields to find the maximum value
168
- **/
169
- _max?: ContractMaxAggregateInputType;
170
- };
171
- export type GetContractAggregateType<T extends ContractAggregateArgs> = {
172
- [P in keyof T & keyof AggregateContract]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateContract[P]> : Prisma.GetScalarType<T[P], AggregateContract[P]>;
173
- };
174
- export type ContractGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
175
- where?: Prisma.ContractWhereInput;
176
- orderBy?: Prisma.ContractOrderByWithAggregationInput | Prisma.ContractOrderByWithAggregationInput[];
177
- by: Prisma.ContractScalarFieldEnum[] | Prisma.ContractScalarFieldEnum;
178
- having?: Prisma.ContractScalarWhereWithAggregatesInput;
179
- take?: number;
180
- skip?: number;
181
- _count?: ContractCountAggregateInputType | true;
182
- _min?: ContractMinAggregateInputType;
183
- _max?: ContractMaxAggregateInputType;
184
- };
185
- export type ContractGroupByOutputType = {
186
- id: string;
187
- propertyId: string;
188
- paymentPlanId: string | null;
189
- buyerId: string | null;
190
- sellerId: string | null;
191
- contractType: string;
192
- contractNumber: string;
193
- title: string;
194
- description: string | null;
195
- status: string;
196
- startDate: Date | null;
197
- endDate: Date | null;
198
- signedAt: Date | null;
199
- terminatedAt: Date | null;
200
- createdAt: Date;
201
- updatedAt: Date;
202
- _count: ContractCountAggregateOutputType | null;
203
- _min: ContractMinAggregateOutputType | null;
204
- _max: ContractMaxAggregateOutputType | null;
205
- };
206
- type GetContractGroupByPayload<T extends ContractGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ContractGroupByOutputType, T['by']> & {
207
- [P in ((keyof T) & (keyof ContractGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ContractGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ContractGroupByOutputType[P]>;
208
- }>>;
209
- export type ContractWhereInput = {
210
- AND?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
211
- OR?: Prisma.ContractWhereInput[];
212
- NOT?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
213
- id?: Prisma.StringFilter<"Contract"> | string;
214
- propertyId?: Prisma.StringFilter<"Contract"> | string;
215
- paymentPlanId?: Prisma.StringNullableFilter<"Contract"> | string | null;
216
- buyerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
217
- sellerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
218
- contractType?: Prisma.StringFilter<"Contract"> | string;
219
- contractNumber?: Prisma.StringFilter<"Contract"> | string;
220
- title?: Prisma.StringFilter<"Contract"> | string;
221
- description?: Prisma.StringNullableFilter<"Contract"> | string | null;
222
- status?: Prisma.StringFilter<"Contract"> | string;
223
- startDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
224
- endDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
225
- signedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
226
- terminatedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
227
- createdAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
228
- updatedAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
229
- property?: Prisma.XOR<Prisma.PropertyScalarRelationFilter, Prisma.PropertyWhereInput>;
230
- paymentPlan?: Prisma.XOR<Prisma.PaymentPlanNullableScalarRelationFilter, Prisma.PaymentPlanWhereInput> | null;
231
- buyer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
232
- seller?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
233
- documents?: Prisma.ContractDocumentListRelationFilter;
234
- };
235
- export type ContractOrderByWithRelationInput = {
236
- id?: Prisma.SortOrder;
237
- propertyId?: Prisma.SortOrder;
238
- paymentPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
239
- buyerId?: Prisma.SortOrderInput | Prisma.SortOrder;
240
- sellerId?: Prisma.SortOrderInput | Prisma.SortOrder;
241
- contractType?: Prisma.SortOrder;
242
- contractNumber?: Prisma.SortOrder;
243
- title?: Prisma.SortOrder;
244
- description?: Prisma.SortOrderInput | Prisma.SortOrder;
245
- status?: Prisma.SortOrder;
246
- startDate?: Prisma.SortOrderInput | Prisma.SortOrder;
247
- endDate?: Prisma.SortOrderInput | Prisma.SortOrder;
248
- signedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
249
- terminatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
250
- createdAt?: Prisma.SortOrder;
251
- updatedAt?: Prisma.SortOrder;
252
- property?: Prisma.PropertyOrderByWithRelationInput;
253
- paymentPlan?: Prisma.PaymentPlanOrderByWithRelationInput;
254
- buyer?: Prisma.UserOrderByWithRelationInput;
255
- seller?: Prisma.UserOrderByWithRelationInput;
256
- documents?: Prisma.ContractDocumentOrderByRelationAggregateInput;
257
- _relevance?: Prisma.ContractOrderByRelevanceInput;
258
- };
259
- export type ContractWhereUniqueInput = Prisma.AtLeast<{
260
- id?: string;
261
- paymentPlanId?: string;
262
- contractNumber?: string;
263
- AND?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
264
- OR?: Prisma.ContractWhereInput[];
265
- NOT?: Prisma.ContractWhereInput | Prisma.ContractWhereInput[];
266
- propertyId?: Prisma.StringFilter<"Contract"> | string;
267
- buyerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
268
- sellerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
269
- contractType?: Prisma.StringFilter<"Contract"> | string;
270
- title?: Prisma.StringFilter<"Contract"> | string;
271
- description?: Prisma.StringNullableFilter<"Contract"> | string | null;
272
- status?: Prisma.StringFilter<"Contract"> | string;
273
- startDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
274
- endDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
275
- signedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
276
- terminatedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
277
- createdAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
278
- updatedAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
279
- property?: Prisma.XOR<Prisma.PropertyScalarRelationFilter, Prisma.PropertyWhereInput>;
280
- paymentPlan?: Prisma.XOR<Prisma.PaymentPlanNullableScalarRelationFilter, Prisma.PaymentPlanWhereInput> | null;
281
- buyer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
282
- seller?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
283
- documents?: Prisma.ContractDocumentListRelationFilter;
284
- }, "id" | "paymentPlanId" | "contractNumber">;
285
- export type ContractOrderByWithAggregationInput = {
286
- id?: Prisma.SortOrder;
287
- propertyId?: Prisma.SortOrder;
288
- paymentPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
289
- buyerId?: Prisma.SortOrderInput | Prisma.SortOrder;
290
- sellerId?: Prisma.SortOrderInput | Prisma.SortOrder;
291
- contractType?: Prisma.SortOrder;
292
- contractNumber?: Prisma.SortOrder;
293
- title?: Prisma.SortOrder;
294
- description?: Prisma.SortOrderInput | Prisma.SortOrder;
295
- status?: Prisma.SortOrder;
296
- startDate?: Prisma.SortOrderInput | Prisma.SortOrder;
297
- endDate?: Prisma.SortOrderInput | Prisma.SortOrder;
298
- signedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
299
- terminatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
300
- createdAt?: Prisma.SortOrder;
301
- updatedAt?: Prisma.SortOrder;
302
- _count?: Prisma.ContractCountOrderByAggregateInput;
303
- _max?: Prisma.ContractMaxOrderByAggregateInput;
304
- _min?: Prisma.ContractMinOrderByAggregateInput;
305
- };
306
- export type ContractScalarWhereWithAggregatesInput = {
307
- AND?: Prisma.ContractScalarWhereWithAggregatesInput | Prisma.ContractScalarWhereWithAggregatesInput[];
308
- OR?: Prisma.ContractScalarWhereWithAggregatesInput[];
309
- NOT?: Prisma.ContractScalarWhereWithAggregatesInput | Prisma.ContractScalarWhereWithAggregatesInput[];
310
- id?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
311
- propertyId?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
312
- paymentPlanId?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
313
- buyerId?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
314
- sellerId?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
315
- contractType?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
316
- contractNumber?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
317
- title?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
318
- description?: Prisma.StringNullableWithAggregatesFilter<"Contract"> | string | null;
319
- status?: Prisma.StringWithAggregatesFilter<"Contract"> | string;
320
- startDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
321
- endDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
322
- signedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
323
- terminatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null;
324
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"Contract"> | Date | string;
325
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Contract"> | Date | string;
326
- };
327
- export type ContractCreateInput = {
328
- id?: string;
329
- contractType: string;
330
- contractNumber: string;
331
- title: string;
332
- description?: string | null;
333
- status?: string;
334
- startDate?: Date | string | null;
335
- endDate?: Date | string | null;
336
- signedAt?: Date | string | null;
337
- terminatedAt?: Date | string | null;
338
- createdAt?: Date | string;
339
- updatedAt?: Date | string;
340
- property: Prisma.PropertyCreateNestedOneWithoutContractsInput;
341
- paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractInput;
342
- buyer?: Prisma.UserCreateNestedOneWithoutContractsInput;
343
- seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
344
- documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
345
- };
346
- export type ContractUncheckedCreateInput = {
347
- id?: string;
348
- propertyId: string;
349
- paymentPlanId?: string | null;
350
- buyerId?: string | null;
351
- sellerId?: string | null;
352
- contractType: string;
353
- contractNumber: string;
354
- title: string;
355
- description?: string | null;
356
- status?: string;
357
- startDate?: Date | string | null;
358
- endDate?: Date | string | null;
359
- signedAt?: Date | string | null;
360
- terminatedAt?: Date | string | null;
361
- createdAt?: Date | string;
362
- updatedAt?: Date | string;
363
- documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
364
- };
365
- export type ContractUpdateInput = {
366
- id?: Prisma.StringFieldUpdateOperationsInput | string;
367
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
368
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
369
- title?: Prisma.StringFieldUpdateOperationsInput | string;
370
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
371
- status?: Prisma.StringFieldUpdateOperationsInput | string;
372
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
373
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
374
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
375
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
376
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
377
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
378
- property?: Prisma.PropertyUpdateOneRequiredWithoutContractsNestedInput;
379
- paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractNestedInput;
380
- buyer?: Prisma.UserUpdateOneWithoutContractsNestedInput;
381
- seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
382
- documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
383
- };
384
- export type ContractUncheckedUpdateInput = {
385
- id?: Prisma.StringFieldUpdateOperationsInput | string;
386
- propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
387
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
388
- buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
389
- sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
390
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
391
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
392
- title?: Prisma.StringFieldUpdateOperationsInput | string;
393
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
394
- status?: Prisma.StringFieldUpdateOperationsInput | string;
395
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
396
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
397
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
398
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
399
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
400
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
401
- documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
402
- };
403
- export type ContractCreateManyInput = {
404
- id?: string;
405
- propertyId: string;
406
- paymentPlanId?: string | null;
407
- buyerId?: string | null;
408
- sellerId?: string | null;
409
- contractType: string;
410
- contractNumber: string;
411
- title: string;
412
- description?: string | null;
413
- status?: string;
414
- startDate?: Date | string | null;
415
- endDate?: Date | string | null;
416
- signedAt?: Date | string | null;
417
- terminatedAt?: Date | string | null;
418
- createdAt?: Date | string;
419
- updatedAt?: Date | string;
420
- };
421
- export type ContractUpdateManyMutationInput = {
422
- id?: Prisma.StringFieldUpdateOperationsInput | string;
423
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
424
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
425
- title?: Prisma.StringFieldUpdateOperationsInput | string;
426
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
427
- status?: Prisma.StringFieldUpdateOperationsInput | string;
428
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
429
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
430
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
431
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
432
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
433
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
434
- };
435
- export type ContractUncheckedUpdateManyInput = {
436
- id?: Prisma.StringFieldUpdateOperationsInput | string;
437
- propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
438
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
439
- buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
440
- sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
441
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
442
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
443
- title?: Prisma.StringFieldUpdateOperationsInput | string;
444
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
445
- status?: Prisma.StringFieldUpdateOperationsInput | string;
446
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
447
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
448
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
449
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
450
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
451
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
452
- };
453
- export type ContractListRelationFilter = {
454
- every?: Prisma.ContractWhereInput;
455
- some?: Prisma.ContractWhereInput;
456
- none?: Prisma.ContractWhereInput;
457
- };
458
- export type ContractOrderByRelationAggregateInput = {
459
- _count?: Prisma.SortOrder;
460
- };
461
- export type ContractNullableScalarRelationFilter = {
462
- is?: Prisma.ContractWhereInput | null;
463
- isNot?: Prisma.ContractWhereInput | null;
464
- };
465
- export type ContractOrderByRelevanceInput = {
466
- fields: Prisma.ContractOrderByRelevanceFieldEnum | Prisma.ContractOrderByRelevanceFieldEnum[];
467
- sort: Prisma.SortOrder;
468
- search: string;
469
- };
470
- export type ContractCountOrderByAggregateInput = {
471
- id?: Prisma.SortOrder;
472
- propertyId?: Prisma.SortOrder;
473
- paymentPlanId?: Prisma.SortOrder;
474
- buyerId?: Prisma.SortOrder;
475
- sellerId?: Prisma.SortOrder;
476
- contractType?: Prisma.SortOrder;
477
- contractNumber?: Prisma.SortOrder;
478
- title?: Prisma.SortOrder;
479
- description?: Prisma.SortOrder;
480
- status?: Prisma.SortOrder;
481
- startDate?: Prisma.SortOrder;
482
- endDate?: Prisma.SortOrder;
483
- signedAt?: Prisma.SortOrder;
484
- terminatedAt?: Prisma.SortOrder;
485
- createdAt?: Prisma.SortOrder;
486
- updatedAt?: Prisma.SortOrder;
487
- };
488
- export type ContractMaxOrderByAggregateInput = {
489
- id?: Prisma.SortOrder;
490
- propertyId?: Prisma.SortOrder;
491
- paymentPlanId?: Prisma.SortOrder;
492
- buyerId?: Prisma.SortOrder;
493
- sellerId?: Prisma.SortOrder;
494
- contractType?: Prisma.SortOrder;
495
- contractNumber?: Prisma.SortOrder;
496
- title?: Prisma.SortOrder;
497
- description?: Prisma.SortOrder;
498
- status?: Prisma.SortOrder;
499
- startDate?: Prisma.SortOrder;
500
- endDate?: Prisma.SortOrder;
501
- signedAt?: Prisma.SortOrder;
502
- terminatedAt?: Prisma.SortOrder;
503
- createdAt?: Prisma.SortOrder;
504
- updatedAt?: Prisma.SortOrder;
505
- };
506
- export type ContractMinOrderByAggregateInput = {
507
- id?: Prisma.SortOrder;
508
- propertyId?: Prisma.SortOrder;
509
- paymentPlanId?: Prisma.SortOrder;
510
- buyerId?: Prisma.SortOrder;
511
- sellerId?: Prisma.SortOrder;
512
- contractType?: Prisma.SortOrder;
513
- contractNumber?: Prisma.SortOrder;
514
- title?: Prisma.SortOrder;
515
- description?: Prisma.SortOrder;
516
- status?: Prisma.SortOrder;
517
- startDate?: Prisma.SortOrder;
518
- endDate?: Prisma.SortOrder;
519
- signedAt?: Prisma.SortOrder;
520
- terminatedAt?: Prisma.SortOrder;
521
- createdAt?: Prisma.SortOrder;
522
- updatedAt?: Prisma.SortOrder;
523
- };
524
- export type ContractScalarRelationFilter = {
525
- is?: Prisma.ContractWhereInput;
526
- isNot?: Prisma.ContractWhereInput;
527
- };
528
- export type ContractCreateNestedManyWithoutBuyerInput = {
529
- create?: Prisma.XOR<Prisma.ContractCreateWithoutBuyerInput, Prisma.ContractUncheckedCreateWithoutBuyerInput> | Prisma.ContractCreateWithoutBuyerInput[] | Prisma.ContractUncheckedCreateWithoutBuyerInput[];
530
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutBuyerInput | Prisma.ContractCreateOrConnectWithoutBuyerInput[];
531
- createMany?: Prisma.ContractCreateManyBuyerInputEnvelope;
532
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
533
- };
534
- export type ContractCreateNestedManyWithoutSellerInput = {
535
- create?: Prisma.XOR<Prisma.ContractCreateWithoutSellerInput, Prisma.ContractUncheckedCreateWithoutSellerInput> | Prisma.ContractCreateWithoutSellerInput[] | Prisma.ContractUncheckedCreateWithoutSellerInput[];
536
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutSellerInput | Prisma.ContractCreateOrConnectWithoutSellerInput[];
537
- createMany?: Prisma.ContractCreateManySellerInputEnvelope;
538
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
539
- };
540
- export type ContractUncheckedCreateNestedManyWithoutBuyerInput = {
541
- create?: Prisma.XOR<Prisma.ContractCreateWithoutBuyerInput, Prisma.ContractUncheckedCreateWithoutBuyerInput> | Prisma.ContractCreateWithoutBuyerInput[] | Prisma.ContractUncheckedCreateWithoutBuyerInput[];
542
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutBuyerInput | Prisma.ContractCreateOrConnectWithoutBuyerInput[];
543
- createMany?: Prisma.ContractCreateManyBuyerInputEnvelope;
544
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
545
- };
546
- export type ContractUncheckedCreateNestedManyWithoutSellerInput = {
547
- create?: Prisma.XOR<Prisma.ContractCreateWithoutSellerInput, Prisma.ContractUncheckedCreateWithoutSellerInput> | Prisma.ContractCreateWithoutSellerInput[] | Prisma.ContractUncheckedCreateWithoutSellerInput[];
548
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutSellerInput | Prisma.ContractCreateOrConnectWithoutSellerInput[];
549
- createMany?: Prisma.ContractCreateManySellerInputEnvelope;
550
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
551
- };
552
- export type ContractUpdateManyWithoutBuyerNestedInput = {
553
- create?: Prisma.XOR<Prisma.ContractCreateWithoutBuyerInput, Prisma.ContractUncheckedCreateWithoutBuyerInput> | Prisma.ContractCreateWithoutBuyerInput[] | Prisma.ContractUncheckedCreateWithoutBuyerInput[];
554
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutBuyerInput | Prisma.ContractCreateOrConnectWithoutBuyerInput[];
555
- upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutBuyerInput | Prisma.ContractUpsertWithWhereUniqueWithoutBuyerInput[];
556
- createMany?: Prisma.ContractCreateManyBuyerInputEnvelope;
557
- set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
558
- disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
559
- delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
560
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
561
- update?: Prisma.ContractUpdateWithWhereUniqueWithoutBuyerInput | Prisma.ContractUpdateWithWhereUniqueWithoutBuyerInput[];
562
- updateMany?: Prisma.ContractUpdateManyWithWhereWithoutBuyerInput | Prisma.ContractUpdateManyWithWhereWithoutBuyerInput[];
563
- deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
564
- };
565
- export type ContractUpdateManyWithoutSellerNestedInput = {
566
- create?: Prisma.XOR<Prisma.ContractCreateWithoutSellerInput, Prisma.ContractUncheckedCreateWithoutSellerInput> | Prisma.ContractCreateWithoutSellerInput[] | Prisma.ContractUncheckedCreateWithoutSellerInput[];
567
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutSellerInput | Prisma.ContractCreateOrConnectWithoutSellerInput[];
568
- upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutSellerInput | Prisma.ContractUpsertWithWhereUniqueWithoutSellerInput[];
569
- createMany?: Prisma.ContractCreateManySellerInputEnvelope;
570
- set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
571
- disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
572
- delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
573
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
574
- update?: Prisma.ContractUpdateWithWhereUniqueWithoutSellerInput | Prisma.ContractUpdateWithWhereUniqueWithoutSellerInput[];
575
- updateMany?: Prisma.ContractUpdateManyWithWhereWithoutSellerInput | Prisma.ContractUpdateManyWithWhereWithoutSellerInput[];
576
- deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
577
- };
578
- export type ContractUncheckedUpdateManyWithoutBuyerNestedInput = {
579
- create?: Prisma.XOR<Prisma.ContractCreateWithoutBuyerInput, Prisma.ContractUncheckedCreateWithoutBuyerInput> | Prisma.ContractCreateWithoutBuyerInput[] | Prisma.ContractUncheckedCreateWithoutBuyerInput[];
580
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutBuyerInput | Prisma.ContractCreateOrConnectWithoutBuyerInput[];
581
- upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutBuyerInput | Prisma.ContractUpsertWithWhereUniqueWithoutBuyerInput[];
582
- createMany?: Prisma.ContractCreateManyBuyerInputEnvelope;
583
- set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
584
- disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
585
- delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
586
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
587
- update?: Prisma.ContractUpdateWithWhereUniqueWithoutBuyerInput | Prisma.ContractUpdateWithWhereUniqueWithoutBuyerInput[];
588
- updateMany?: Prisma.ContractUpdateManyWithWhereWithoutBuyerInput | Prisma.ContractUpdateManyWithWhereWithoutBuyerInput[];
589
- deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
590
- };
591
- export type ContractUncheckedUpdateManyWithoutSellerNestedInput = {
592
- create?: Prisma.XOR<Prisma.ContractCreateWithoutSellerInput, Prisma.ContractUncheckedCreateWithoutSellerInput> | Prisma.ContractCreateWithoutSellerInput[] | Prisma.ContractUncheckedCreateWithoutSellerInput[];
593
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutSellerInput | Prisma.ContractCreateOrConnectWithoutSellerInput[];
594
- upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutSellerInput | Prisma.ContractUpsertWithWhereUniqueWithoutSellerInput[];
595
- createMany?: Prisma.ContractCreateManySellerInputEnvelope;
596
- set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
597
- disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
598
- delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
599
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
600
- update?: Prisma.ContractUpdateWithWhereUniqueWithoutSellerInput | Prisma.ContractUpdateWithWhereUniqueWithoutSellerInput[];
601
- updateMany?: Prisma.ContractUpdateManyWithWhereWithoutSellerInput | Prisma.ContractUpdateManyWithWhereWithoutSellerInput[];
602
- deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
603
- };
604
- export type ContractCreateNestedManyWithoutPropertyInput = {
605
- create?: Prisma.XOR<Prisma.ContractCreateWithoutPropertyInput, Prisma.ContractUncheckedCreateWithoutPropertyInput> | Prisma.ContractCreateWithoutPropertyInput[] | Prisma.ContractUncheckedCreateWithoutPropertyInput[];
606
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPropertyInput | Prisma.ContractCreateOrConnectWithoutPropertyInput[];
607
- createMany?: Prisma.ContractCreateManyPropertyInputEnvelope;
608
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
609
- };
610
- export type ContractUncheckedCreateNestedManyWithoutPropertyInput = {
611
- create?: Prisma.XOR<Prisma.ContractCreateWithoutPropertyInput, Prisma.ContractUncheckedCreateWithoutPropertyInput> | Prisma.ContractCreateWithoutPropertyInput[] | Prisma.ContractUncheckedCreateWithoutPropertyInput[];
612
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPropertyInput | Prisma.ContractCreateOrConnectWithoutPropertyInput[];
613
- createMany?: Prisma.ContractCreateManyPropertyInputEnvelope;
614
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
615
- };
616
- export type ContractUpdateManyWithoutPropertyNestedInput = {
617
- create?: Prisma.XOR<Prisma.ContractCreateWithoutPropertyInput, Prisma.ContractUncheckedCreateWithoutPropertyInput> | Prisma.ContractCreateWithoutPropertyInput[] | Prisma.ContractUncheckedCreateWithoutPropertyInput[];
618
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPropertyInput | Prisma.ContractCreateOrConnectWithoutPropertyInput[];
619
- upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutPropertyInput | Prisma.ContractUpsertWithWhereUniqueWithoutPropertyInput[];
620
- createMany?: Prisma.ContractCreateManyPropertyInputEnvelope;
621
- set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
622
- disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
623
- delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
624
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
625
- update?: Prisma.ContractUpdateWithWhereUniqueWithoutPropertyInput | Prisma.ContractUpdateWithWhereUniqueWithoutPropertyInput[];
626
- updateMany?: Prisma.ContractUpdateManyWithWhereWithoutPropertyInput | Prisma.ContractUpdateManyWithWhereWithoutPropertyInput[];
627
- deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
628
- };
629
- export type ContractUncheckedUpdateManyWithoutPropertyNestedInput = {
630
- create?: Prisma.XOR<Prisma.ContractCreateWithoutPropertyInput, Prisma.ContractUncheckedCreateWithoutPropertyInput> | Prisma.ContractCreateWithoutPropertyInput[] | Prisma.ContractUncheckedCreateWithoutPropertyInput[];
631
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPropertyInput | Prisma.ContractCreateOrConnectWithoutPropertyInput[];
632
- upsert?: Prisma.ContractUpsertWithWhereUniqueWithoutPropertyInput | Prisma.ContractUpsertWithWhereUniqueWithoutPropertyInput[];
633
- createMany?: Prisma.ContractCreateManyPropertyInputEnvelope;
634
- set?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
635
- disconnect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
636
- delete?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
637
- connect?: Prisma.ContractWhereUniqueInput | Prisma.ContractWhereUniqueInput[];
638
- update?: Prisma.ContractUpdateWithWhereUniqueWithoutPropertyInput | Prisma.ContractUpdateWithWhereUniqueWithoutPropertyInput[];
639
- updateMany?: Prisma.ContractUpdateManyWithWhereWithoutPropertyInput | Prisma.ContractUpdateManyWithWhereWithoutPropertyInput[];
640
- deleteMany?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
641
- };
642
- export type ContractCreateNestedOneWithoutPaymentPlanInput = {
643
- create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentPlanInput, Prisma.ContractUncheckedCreateWithoutPaymentPlanInput>;
644
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentPlanInput;
645
- connect?: Prisma.ContractWhereUniqueInput;
646
- };
647
- export type ContractUncheckedCreateNestedOneWithoutPaymentPlanInput = {
648
- create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentPlanInput, Prisma.ContractUncheckedCreateWithoutPaymentPlanInput>;
649
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentPlanInput;
650
- connect?: Prisma.ContractWhereUniqueInput;
651
- };
652
- export type ContractUpdateOneWithoutPaymentPlanNestedInput = {
653
- create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentPlanInput, Prisma.ContractUncheckedCreateWithoutPaymentPlanInput>;
654
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentPlanInput;
655
- upsert?: Prisma.ContractUpsertWithoutPaymentPlanInput;
656
- disconnect?: Prisma.ContractWhereInput | boolean;
657
- delete?: Prisma.ContractWhereInput | boolean;
658
- connect?: Prisma.ContractWhereUniqueInput;
659
- update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutPaymentPlanInput, Prisma.ContractUpdateWithoutPaymentPlanInput>, Prisma.ContractUncheckedUpdateWithoutPaymentPlanInput>;
660
- };
661
- export type ContractUncheckedUpdateOneWithoutPaymentPlanNestedInput = {
662
- create?: Prisma.XOR<Prisma.ContractCreateWithoutPaymentPlanInput, Prisma.ContractUncheckedCreateWithoutPaymentPlanInput>;
663
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutPaymentPlanInput;
664
- upsert?: Prisma.ContractUpsertWithoutPaymentPlanInput;
665
- disconnect?: Prisma.ContractWhereInput | boolean;
666
- delete?: Prisma.ContractWhereInput | boolean;
667
- connect?: Prisma.ContractWhereUniqueInput;
668
- update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutPaymentPlanInput, Prisma.ContractUpdateWithoutPaymentPlanInput>, Prisma.ContractUncheckedUpdateWithoutPaymentPlanInput>;
669
- };
670
- export type ContractCreateNestedOneWithoutDocumentsInput = {
671
- create?: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
672
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutDocumentsInput;
673
- connect?: Prisma.ContractWhereUniqueInput;
674
- };
675
- export type ContractUpdateOneRequiredWithoutDocumentsNestedInput = {
676
- create?: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
677
- connectOrCreate?: Prisma.ContractCreateOrConnectWithoutDocumentsInput;
678
- upsert?: Prisma.ContractUpsertWithoutDocumentsInput;
679
- connect?: Prisma.ContractWhereUniqueInput;
680
- update?: Prisma.XOR<Prisma.XOR<Prisma.ContractUpdateToOneWithWhereWithoutDocumentsInput, Prisma.ContractUpdateWithoutDocumentsInput>, Prisma.ContractUncheckedUpdateWithoutDocumentsInput>;
681
- };
682
- export type ContractCreateWithoutBuyerInput = {
683
- id?: string;
684
- contractType: string;
685
- contractNumber: string;
686
- title: string;
687
- description?: string | null;
688
- status?: string;
689
- startDate?: Date | string | null;
690
- endDate?: Date | string | null;
691
- signedAt?: Date | string | null;
692
- terminatedAt?: Date | string | null;
693
- createdAt?: Date | string;
694
- updatedAt?: Date | string;
695
- property: Prisma.PropertyCreateNestedOneWithoutContractsInput;
696
- paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractInput;
697
- seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
698
- documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
699
- };
700
- export type ContractUncheckedCreateWithoutBuyerInput = {
701
- id?: string;
702
- propertyId: string;
703
- paymentPlanId?: string | null;
704
- sellerId?: string | null;
705
- contractType: string;
706
- contractNumber: string;
707
- title: string;
708
- description?: string | null;
709
- status?: string;
710
- startDate?: Date | string | null;
711
- endDate?: Date | string | null;
712
- signedAt?: Date | string | null;
713
- terminatedAt?: Date | string | null;
714
- createdAt?: Date | string;
715
- updatedAt?: Date | string;
716
- documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
717
- };
718
- export type ContractCreateOrConnectWithoutBuyerInput = {
719
- where: Prisma.ContractWhereUniqueInput;
720
- create: Prisma.XOR<Prisma.ContractCreateWithoutBuyerInput, Prisma.ContractUncheckedCreateWithoutBuyerInput>;
721
- };
722
- export type ContractCreateManyBuyerInputEnvelope = {
723
- data: Prisma.ContractCreateManyBuyerInput | Prisma.ContractCreateManyBuyerInput[];
724
- skipDuplicates?: boolean;
725
- };
726
- export type ContractCreateWithoutSellerInput = {
727
- id?: string;
728
- contractType: string;
729
- contractNumber: string;
730
- title: string;
731
- description?: string | null;
732
- status?: string;
733
- startDate?: Date | string | null;
734
- endDate?: Date | string | null;
735
- signedAt?: Date | string | null;
736
- terminatedAt?: Date | string | null;
737
- createdAt?: Date | string;
738
- updatedAt?: Date | string;
739
- property: Prisma.PropertyCreateNestedOneWithoutContractsInput;
740
- paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractInput;
741
- buyer?: Prisma.UserCreateNestedOneWithoutContractsInput;
742
- documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
743
- };
744
- export type ContractUncheckedCreateWithoutSellerInput = {
745
- id?: string;
746
- propertyId: string;
747
- paymentPlanId?: string | null;
748
- buyerId?: string | null;
749
- contractType: string;
750
- contractNumber: string;
751
- title: string;
752
- description?: string | null;
753
- status?: string;
754
- startDate?: Date | string | null;
755
- endDate?: Date | string | null;
756
- signedAt?: Date | string | null;
757
- terminatedAt?: Date | string | null;
758
- createdAt?: Date | string;
759
- updatedAt?: Date | string;
760
- documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
761
- };
762
- export type ContractCreateOrConnectWithoutSellerInput = {
763
- where: Prisma.ContractWhereUniqueInput;
764
- create: Prisma.XOR<Prisma.ContractCreateWithoutSellerInput, Prisma.ContractUncheckedCreateWithoutSellerInput>;
765
- };
766
- export type ContractCreateManySellerInputEnvelope = {
767
- data: Prisma.ContractCreateManySellerInput | Prisma.ContractCreateManySellerInput[];
768
- skipDuplicates?: boolean;
769
- };
770
- export type ContractUpsertWithWhereUniqueWithoutBuyerInput = {
771
- where: Prisma.ContractWhereUniqueInput;
772
- update: Prisma.XOR<Prisma.ContractUpdateWithoutBuyerInput, Prisma.ContractUncheckedUpdateWithoutBuyerInput>;
773
- create: Prisma.XOR<Prisma.ContractCreateWithoutBuyerInput, Prisma.ContractUncheckedCreateWithoutBuyerInput>;
774
- };
775
- export type ContractUpdateWithWhereUniqueWithoutBuyerInput = {
776
- where: Prisma.ContractWhereUniqueInput;
777
- data: Prisma.XOR<Prisma.ContractUpdateWithoutBuyerInput, Prisma.ContractUncheckedUpdateWithoutBuyerInput>;
778
- };
779
- export type ContractUpdateManyWithWhereWithoutBuyerInput = {
780
- where: Prisma.ContractScalarWhereInput;
781
- data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.ContractUncheckedUpdateManyWithoutBuyerInput>;
782
- };
783
- export type ContractScalarWhereInput = {
784
- AND?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
785
- OR?: Prisma.ContractScalarWhereInput[];
786
- NOT?: Prisma.ContractScalarWhereInput | Prisma.ContractScalarWhereInput[];
787
- id?: Prisma.StringFilter<"Contract"> | string;
788
- propertyId?: Prisma.StringFilter<"Contract"> | string;
789
- paymentPlanId?: Prisma.StringNullableFilter<"Contract"> | string | null;
790
- buyerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
791
- sellerId?: Prisma.StringNullableFilter<"Contract"> | string | null;
792
- contractType?: Prisma.StringFilter<"Contract"> | string;
793
- contractNumber?: Prisma.StringFilter<"Contract"> | string;
794
- title?: Prisma.StringFilter<"Contract"> | string;
795
- description?: Prisma.StringNullableFilter<"Contract"> | string | null;
796
- status?: Prisma.StringFilter<"Contract"> | string;
797
- startDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
798
- endDate?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
799
- signedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
800
- terminatedAt?: Prisma.DateTimeNullableFilter<"Contract"> | Date | string | null;
801
- createdAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
802
- updatedAt?: Prisma.DateTimeFilter<"Contract"> | Date | string;
803
- };
804
- export type ContractUpsertWithWhereUniqueWithoutSellerInput = {
805
- where: Prisma.ContractWhereUniqueInput;
806
- update: Prisma.XOR<Prisma.ContractUpdateWithoutSellerInput, Prisma.ContractUncheckedUpdateWithoutSellerInput>;
807
- create: Prisma.XOR<Prisma.ContractCreateWithoutSellerInput, Prisma.ContractUncheckedCreateWithoutSellerInput>;
808
- };
809
- export type ContractUpdateWithWhereUniqueWithoutSellerInput = {
810
- where: Prisma.ContractWhereUniqueInput;
811
- data: Prisma.XOR<Prisma.ContractUpdateWithoutSellerInput, Prisma.ContractUncheckedUpdateWithoutSellerInput>;
812
- };
813
- export type ContractUpdateManyWithWhereWithoutSellerInput = {
814
- where: Prisma.ContractScalarWhereInput;
815
- data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.ContractUncheckedUpdateManyWithoutSellerInput>;
816
- };
817
- export type ContractCreateWithoutPropertyInput = {
818
- id?: string;
819
- contractType: string;
820
- contractNumber: string;
821
- title: string;
822
- description?: string | null;
823
- status?: string;
824
- startDate?: Date | string | null;
825
- endDate?: Date | string | null;
826
- signedAt?: Date | string | null;
827
- terminatedAt?: Date | string | null;
828
- createdAt?: Date | string;
829
- updatedAt?: Date | string;
830
- paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractInput;
831
- buyer?: Prisma.UserCreateNestedOneWithoutContractsInput;
832
- seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
833
- documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
834
- };
835
- export type ContractUncheckedCreateWithoutPropertyInput = {
836
- id?: string;
837
- paymentPlanId?: string | null;
838
- buyerId?: string | null;
839
- sellerId?: string | null;
840
- contractType: string;
841
- contractNumber: string;
842
- title: string;
843
- description?: string | null;
844
- status?: string;
845
- startDate?: Date | string | null;
846
- endDate?: Date | string | null;
847
- signedAt?: Date | string | null;
848
- terminatedAt?: Date | string | null;
849
- createdAt?: Date | string;
850
- updatedAt?: Date | string;
851
- documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
852
- };
853
- export type ContractCreateOrConnectWithoutPropertyInput = {
854
- where: Prisma.ContractWhereUniqueInput;
855
- create: Prisma.XOR<Prisma.ContractCreateWithoutPropertyInput, Prisma.ContractUncheckedCreateWithoutPropertyInput>;
856
- };
857
- export type ContractCreateManyPropertyInputEnvelope = {
858
- data: Prisma.ContractCreateManyPropertyInput | Prisma.ContractCreateManyPropertyInput[];
859
- skipDuplicates?: boolean;
860
- };
861
- export type ContractUpsertWithWhereUniqueWithoutPropertyInput = {
862
- where: Prisma.ContractWhereUniqueInput;
863
- update: Prisma.XOR<Prisma.ContractUpdateWithoutPropertyInput, Prisma.ContractUncheckedUpdateWithoutPropertyInput>;
864
- create: Prisma.XOR<Prisma.ContractCreateWithoutPropertyInput, Prisma.ContractUncheckedCreateWithoutPropertyInput>;
865
- };
866
- export type ContractUpdateWithWhereUniqueWithoutPropertyInput = {
867
- where: Prisma.ContractWhereUniqueInput;
868
- data: Prisma.XOR<Prisma.ContractUpdateWithoutPropertyInput, Prisma.ContractUncheckedUpdateWithoutPropertyInput>;
869
- };
870
- export type ContractUpdateManyWithWhereWithoutPropertyInput = {
871
- where: Prisma.ContractScalarWhereInput;
872
- data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.ContractUncheckedUpdateManyWithoutPropertyInput>;
873
- };
874
- export type ContractCreateWithoutPaymentPlanInput = {
875
- id?: string;
876
- contractType: string;
877
- contractNumber: string;
878
- title: string;
879
- description?: string | null;
880
- status?: string;
881
- startDate?: Date | string | null;
882
- endDate?: Date | string | null;
883
- signedAt?: Date | string | null;
884
- terminatedAt?: Date | string | null;
885
- createdAt?: Date | string;
886
- updatedAt?: Date | string;
887
- property: Prisma.PropertyCreateNestedOneWithoutContractsInput;
888
- buyer?: Prisma.UserCreateNestedOneWithoutContractsInput;
889
- seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
890
- documents?: Prisma.ContractDocumentCreateNestedManyWithoutContractInput;
891
- };
892
- export type ContractUncheckedCreateWithoutPaymentPlanInput = {
893
- id?: string;
894
- propertyId: string;
895
- buyerId?: string | null;
896
- sellerId?: string | null;
897
- contractType: string;
898
- contractNumber: string;
899
- title: string;
900
- description?: string | null;
901
- status?: string;
902
- startDate?: Date | string | null;
903
- endDate?: Date | string | null;
904
- signedAt?: Date | string | null;
905
- terminatedAt?: Date | string | null;
906
- createdAt?: Date | string;
907
- updatedAt?: Date | string;
908
- documents?: Prisma.ContractDocumentUncheckedCreateNestedManyWithoutContractInput;
909
- };
910
- export type ContractCreateOrConnectWithoutPaymentPlanInput = {
911
- where: Prisma.ContractWhereUniqueInput;
912
- create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentPlanInput, Prisma.ContractUncheckedCreateWithoutPaymentPlanInput>;
913
- };
914
- export type ContractUpsertWithoutPaymentPlanInput = {
915
- update: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentPlanInput, Prisma.ContractUncheckedUpdateWithoutPaymentPlanInput>;
916
- create: Prisma.XOR<Prisma.ContractCreateWithoutPaymentPlanInput, Prisma.ContractUncheckedCreateWithoutPaymentPlanInput>;
917
- where?: Prisma.ContractWhereInput;
918
- };
919
- export type ContractUpdateToOneWithWhereWithoutPaymentPlanInput = {
920
- where?: Prisma.ContractWhereInput;
921
- data: Prisma.XOR<Prisma.ContractUpdateWithoutPaymentPlanInput, Prisma.ContractUncheckedUpdateWithoutPaymentPlanInput>;
922
- };
923
- export type ContractUpdateWithoutPaymentPlanInput = {
924
- id?: Prisma.StringFieldUpdateOperationsInput | string;
925
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
926
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
927
- title?: Prisma.StringFieldUpdateOperationsInput | string;
928
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
929
- status?: Prisma.StringFieldUpdateOperationsInput | string;
930
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
931
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
932
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
933
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
934
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
935
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
936
- property?: Prisma.PropertyUpdateOneRequiredWithoutContractsNestedInput;
937
- buyer?: Prisma.UserUpdateOneWithoutContractsNestedInput;
938
- seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
939
- documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
940
- };
941
- export type ContractUncheckedUpdateWithoutPaymentPlanInput = {
942
- id?: Prisma.StringFieldUpdateOperationsInput | string;
943
- propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
944
- buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
945
- sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
946
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
947
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
948
- title?: Prisma.StringFieldUpdateOperationsInput | string;
949
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
950
- status?: Prisma.StringFieldUpdateOperationsInput | string;
951
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
952
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
953
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
954
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
955
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
956
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
957
- documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
958
- };
959
- export type ContractCreateWithoutDocumentsInput = {
960
- id?: string;
961
- contractType: string;
962
- contractNumber: string;
963
- title: string;
964
- description?: string | null;
965
- status?: string;
966
- startDate?: Date | string | null;
967
- endDate?: Date | string | null;
968
- signedAt?: Date | string | null;
969
- terminatedAt?: Date | string | null;
970
- createdAt?: Date | string;
971
- updatedAt?: Date | string;
972
- property: Prisma.PropertyCreateNestedOneWithoutContractsInput;
973
- paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutContractInput;
974
- buyer?: Prisma.UserCreateNestedOneWithoutContractsInput;
975
- seller?: Prisma.UserCreateNestedOneWithoutSoldContractsInput;
976
- };
977
- export type ContractUncheckedCreateWithoutDocumentsInput = {
978
- id?: string;
979
- propertyId: string;
980
- paymentPlanId?: string | null;
981
- buyerId?: string | null;
982
- sellerId?: string | null;
983
- contractType: string;
984
- contractNumber: string;
985
- title: string;
986
- description?: string | null;
987
- status?: string;
988
- startDate?: Date | string | null;
989
- endDate?: Date | string | null;
990
- signedAt?: Date | string | null;
991
- terminatedAt?: Date | string | null;
992
- createdAt?: Date | string;
993
- updatedAt?: Date | string;
994
- };
995
- export type ContractCreateOrConnectWithoutDocumentsInput = {
996
- where: Prisma.ContractWhereUniqueInput;
997
- create: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
998
- };
999
- export type ContractUpsertWithoutDocumentsInput = {
1000
- update: Prisma.XOR<Prisma.ContractUpdateWithoutDocumentsInput, Prisma.ContractUncheckedUpdateWithoutDocumentsInput>;
1001
- create: Prisma.XOR<Prisma.ContractCreateWithoutDocumentsInput, Prisma.ContractUncheckedCreateWithoutDocumentsInput>;
1002
- where?: Prisma.ContractWhereInput;
1003
- };
1004
- export type ContractUpdateToOneWithWhereWithoutDocumentsInput = {
1005
- where?: Prisma.ContractWhereInput;
1006
- data: Prisma.XOR<Prisma.ContractUpdateWithoutDocumentsInput, Prisma.ContractUncheckedUpdateWithoutDocumentsInput>;
1007
- };
1008
- export type ContractUpdateWithoutDocumentsInput = {
1009
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1010
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1011
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1012
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1013
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1014
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1015
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1016
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1017
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1018
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1019
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1020
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1021
- property?: Prisma.PropertyUpdateOneRequiredWithoutContractsNestedInput;
1022
- paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractNestedInput;
1023
- buyer?: Prisma.UserUpdateOneWithoutContractsNestedInput;
1024
- seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
1025
- };
1026
- export type ContractUncheckedUpdateWithoutDocumentsInput = {
1027
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1028
- propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
1029
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1030
- buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1031
- sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1032
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1033
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1034
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1035
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1036
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1037
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1038
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1039
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1040
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1041
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1042
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1043
- };
1044
- export type ContractCreateManyBuyerInput = {
1045
- id?: string;
1046
- propertyId: string;
1047
- paymentPlanId?: string | null;
1048
- sellerId?: string | null;
1049
- contractType: string;
1050
- contractNumber: string;
1051
- title: string;
1052
- description?: string | null;
1053
- status?: string;
1054
- startDate?: Date | string | null;
1055
- endDate?: Date | string | null;
1056
- signedAt?: Date | string | null;
1057
- terminatedAt?: Date | string | null;
1058
- createdAt?: Date | string;
1059
- updatedAt?: Date | string;
1060
- };
1061
- export type ContractCreateManySellerInput = {
1062
- id?: string;
1063
- propertyId: string;
1064
- paymentPlanId?: string | null;
1065
- buyerId?: string | null;
1066
- contractType: string;
1067
- contractNumber: string;
1068
- title: string;
1069
- description?: string | null;
1070
- status?: string;
1071
- startDate?: Date | string | null;
1072
- endDate?: Date | string | null;
1073
- signedAt?: Date | string | null;
1074
- terminatedAt?: Date | string | null;
1075
- createdAt?: Date | string;
1076
- updatedAt?: Date | string;
1077
- };
1078
- export type ContractUpdateWithoutBuyerInput = {
1079
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1080
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1081
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1082
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1083
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1084
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1085
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1086
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1087
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1088
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1089
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1090
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1091
- property?: Prisma.PropertyUpdateOneRequiredWithoutContractsNestedInput;
1092
- paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractNestedInput;
1093
- seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
1094
- documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
1095
- };
1096
- export type ContractUncheckedUpdateWithoutBuyerInput = {
1097
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1098
- propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
1099
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1100
- sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1101
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1102
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1103
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1104
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1105
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1106
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1107
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1108
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1109
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1110
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1111
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1112
- documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
1113
- };
1114
- export type ContractUncheckedUpdateManyWithoutBuyerInput = {
1115
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1116
- propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
1117
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1118
- sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1119
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1120
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1121
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1122
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1123
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1124
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1125
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1126
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1127
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1128
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1129
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1130
- };
1131
- export type ContractUpdateWithoutSellerInput = {
1132
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1133
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1134
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1135
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1136
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1137
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1138
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1139
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1140
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1141
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1142
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1143
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1144
- property?: Prisma.PropertyUpdateOneRequiredWithoutContractsNestedInput;
1145
- paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractNestedInput;
1146
- buyer?: Prisma.UserUpdateOneWithoutContractsNestedInput;
1147
- documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
1148
- };
1149
- export type ContractUncheckedUpdateWithoutSellerInput = {
1150
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1151
- propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
1152
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1153
- buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1154
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1155
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1156
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1157
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1158
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1159
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1160
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1161
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1162
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1163
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1164
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1165
- documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
1166
- };
1167
- export type ContractUncheckedUpdateManyWithoutSellerInput = {
1168
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1169
- propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
1170
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1171
- buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1172
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1173
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1174
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1175
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1176
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1177
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1178
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1179
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1180
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1181
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1182
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1183
- };
1184
- export type ContractCreateManyPropertyInput = {
1185
- id?: string;
1186
- paymentPlanId?: string | null;
1187
- buyerId?: string | null;
1188
- sellerId?: string | null;
1189
- contractType: string;
1190
- contractNumber: string;
1191
- title: string;
1192
- description?: string | null;
1193
- status?: string;
1194
- startDate?: Date | string | null;
1195
- endDate?: Date | string | null;
1196
- signedAt?: Date | string | null;
1197
- terminatedAt?: Date | string | null;
1198
- createdAt?: Date | string;
1199
- updatedAt?: Date | string;
1200
- };
1201
- export type ContractUpdateWithoutPropertyInput = {
1202
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1203
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1204
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1205
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1206
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1207
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1208
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1209
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1210
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1211
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1212
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1213
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1214
- paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutContractNestedInput;
1215
- buyer?: Prisma.UserUpdateOneWithoutContractsNestedInput;
1216
- seller?: Prisma.UserUpdateOneWithoutSoldContractsNestedInput;
1217
- documents?: Prisma.ContractDocumentUpdateManyWithoutContractNestedInput;
1218
- };
1219
- export type ContractUncheckedUpdateWithoutPropertyInput = {
1220
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1221
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1222
- buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1223
- sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1224
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1225
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1226
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1227
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1228
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1229
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1230
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1231
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1232
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1233
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1234
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1235
- documents?: Prisma.ContractDocumentUncheckedUpdateManyWithoutContractNestedInput;
1236
- };
1237
- export type ContractUncheckedUpdateManyWithoutPropertyInput = {
1238
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1239
- paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1240
- buyerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1241
- sellerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1242
- contractType?: Prisma.StringFieldUpdateOperationsInput | string;
1243
- contractNumber?: Prisma.StringFieldUpdateOperationsInput | string;
1244
- title?: Prisma.StringFieldUpdateOperationsInput | string;
1245
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1246
- status?: Prisma.StringFieldUpdateOperationsInput | string;
1247
- startDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1248
- endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1249
- signedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1250
- terminatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1251
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1252
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1253
- };
1254
- /**
1255
- * Count Type ContractCountOutputType
1256
- */
1257
- export type ContractCountOutputType = {
1258
- documents: number;
1259
- };
1260
- export type ContractCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1261
- documents?: boolean | ContractCountOutputTypeCountDocumentsArgs;
1262
- };
1263
- /**
1264
- * ContractCountOutputType without action
1265
- */
1266
- export type ContractCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1267
- /**
1268
- * Select specific fields to fetch from the ContractCountOutputType
1269
- */
1270
- select?: Prisma.ContractCountOutputTypeSelect<ExtArgs> | null;
1271
- };
1272
- /**
1273
- * ContractCountOutputType without action
1274
- */
1275
- export type ContractCountOutputTypeCountDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1276
- where?: Prisma.ContractDocumentWhereInput;
1277
- };
1278
- export type ContractSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1279
- id?: boolean;
1280
- propertyId?: boolean;
1281
- paymentPlanId?: boolean;
1282
- buyerId?: boolean;
1283
- sellerId?: boolean;
1284
- contractType?: boolean;
1285
- contractNumber?: boolean;
1286
- title?: boolean;
1287
- description?: boolean;
1288
- status?: boolean;
1289
- startDate?: boolean;
1290
- endDate?: boolean;
1291
- signedAt?: boolean;
1292
- terminatedAt?: boolean;
1293
- createdAt?: boolean;
1294
- updatedAt?: boolean;
1295
- property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>;
1296
- paymentPlan?: boolean | Prisma.Contract$paymentPlanArgs<ExtArgs>;
1297
- buyer?: boolean | Prisma.Contract$buyerArgs<ExtArgs>;
1298
- seller?: boolean | Prisma.Contract$sellerArgs<ExtArgs>;
1299
- documents?: boolean | Prisma.Contract$documentsArgs<ExtArgs>;
1300
- _count?: boolean | Prisma.ContractCountOutputTypeDefaultArgs<ExtArgs>;
1301
- }, ExtArgs["result"]["contract"]>;
1302
- export type ContractSelectScalar = {
1303
- id?: boolean;
1304
- propertyId?: boolean;
1305
- paymentPlanId?: boolean;
1306
- buyerId?: boolean;
1307
- sellerId?: boolean;
1308
- contractType?: boolean;
1309
- contractNumber?: boolean;
1310
- title?: boolean;
1311
- description?: boolean;
1312
- status?: boolean;
1313
- startDate?: boolean;
1314
- endDate?: boolean;
1315
- signedAt?: boolean;
1316
- terminatedAt?: boolean;
1317
- createdAt?: boolean;
1318
- updatedAt?: boolean;
1319
- };
1320
- export type ContractOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "propertyId" | "paymentPlanId" | "buyerId" | "sellerId" | "contractType" | "contractNumber" | "title" | "description" | "status" | "startDate" | "endDate" | "signedAt" | "terminatedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["contract"]>;
1321
- export type ContractInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
- property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>;
1323
- paymentPlan?: boolean | Prisma.Contract$paymentPlanArgs<ExtArgs>;
1324
- buyer?: boolean | Prisma.Contract$buyerArgs<ExtArgs>;
1325
- seller?: boolean | Prisma.Contract$sellerArgs<ExtArgs>;
1326
- documents?: boolean | Prisma.Contract$documentsArgs<ExtArgs>;
1327
- _count?: boolean | Prisma.ContractCountOutputTypeDefaultArgs<ExtArgs>;
1328
- };
1329
- export type $ContractPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1330
- name: "Contract";
1331
- objects: {
1332
- property: Prisma.$PropertyPayload<ExtArgs>;
1333
- paymentPlan: Prisma.$PaymentPlanPayload<ExtArgs> | null;
1334
- buyer: Prisma.$UserPayload<ExtArgs> | null;
1335
- seller: Prisma.$UserPayload<ExtArgs> | null;
1336
- documents: Prisma.$ContractDocumentPayload<ExtArgs>[];
1337
- };
1338
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1339
- id: string;
1340
- propertyId: string;
1341
- paymentPlanId: string | null;
1342
- buyerId: string | null;
1343
- sellerId: string | null;
1344
- contractType: string;
1345
- contractNumber: string;
1346
- title: string;
1347
- description: string | null;
1348
- status: string;
1349
- startDate: Date | null;
1350
- endDate: Date | null;
1351
- signedAt: Date | null;
1352
- terminatedAt: Date | null;
1353
- createdAt: Date;
1354
- updatedAt: Date;
1355
- }, ExtArgs["result"]["contract"]>;
1356
- composites: {};
1357
- };
1358
- export type ContractGetPayload<S extends boolean | null | undefined | ContractDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ContractPayload, S>;
1359
- export type ContractCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ContractFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1360
- select?: ContractCountAggregateInputType | true;
1361
- };
1362
- export interface ContractDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1363
- [K: symbol]: {
1364
- types: Prisma.TypeMap<ExtArgs>['model']['Contract'];
1365
- meta: {
1366
- name: 'Contract';
1367
- };
1368
- };
1369
- /**
1370
- * Find zero or one Contract that matches the filter.
1371
- * @param {ContractFindUniqueArgs} args - Arguments to find a Contract
1372
- * @example
1373
- * // Get one Contract
1374
- * const contract = await prisma.contract.findUnique({
1375
- * where: {
1376
- * // ... provide filter here
1377
- * }
1378
- * })
1379
- */
1380
- findUnique<T extends ContractFindUniqueArgs>(args: Prisma.SelectSubset<T, ContractFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1381
- /**
1382
- * Find one Contract that matches the filter or throw an error with `error.code='P2025'`
1383
- * if no matches were found.
1384
- * @param {ContractFindUniqueOrThrowArgs} args - Arguments to find a Contract
1385
- * @example
1386
- * // Get one Contract
1387
- * const contract = await prisma.contract.findUniqueOrThrow({
1388
- * where: {
1389
- * // ... provide filter here
1390
- * }
1391
- * })
1392
- */
1393
- findUniqueOrThrow<T extends ContractFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ContractFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1394
- /**
1395
- * Find the first Contract that matches the filter.
1396
- * Note, that providing `undefined` is treated as the value not being there.
1397
- * Read more here: https://pris.ly/d/null-undefined
1398
- * @param {ContractFindFirstArgs} args - Arguments to find a Contract
1399
- * @example
1400
- * // Get one Contract
1401
- * const contract = await prisma.contract.findFirst({
1402
- * where: {
1403
- * // ... provide filter here
1404
- * }
1405
- * })
1406
- */
1407
- findFirst<T extends ContractFindFirstArgs>(args?: Prisma.SelectSubset<T, ContractFindFirstArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1408
- /**
1409
- * Find the first Contract that matches the filter or
1410
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1411
- * Note, that providing `undefined` is treated as the value not being there.
1412
- * Read more here: https://pris.ly/d/null-undefined
1413
- * @param {ContractFindFirstOrThrowArgs} args - Arguments to find a Contract
1414
- * @example
1415
- * // Get one Contract
1416
- * const contract = await prisma.contract.findFirstOrThrow({
1417
- * where: {
1418
- * // ... provide filter here
1419
- * }
1420
- * })
1421
- */
1422
- findFirstOrThrow<T extends ContractFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ContractFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1423
- /**
1424
- * Find zero or more Contracts that matches the filter.
1425
- * Note, that providing `undefined` is treated as the value not being there.
1426
- * Read more here: https://pris.ly/d/null-undefined
1427
- * @param {ContractFindManyArgs} args - Arguments to filter and select certain fields only.
1428
- * @example
1429
- * // Get all Contracts
1430
- * const contracts = await prisma.contract.findMany()
1431
- *
1432
- * // Get first 10 Contracts
1433
- * const contracts = await prisma.contract.findMany({ take: 10 })
1434
- *
1435
- * // Only select the `id`
1436
- * const contractWithIdOnly = await prisma.contract.findMany({ select: { id: true } })
1437
- *
1438
- */
1439
- findMany<T extends ContractFindManyArgs>(args?: Prisma.SelectSubset<T, ContractFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1440
- /**
1441
- * Create a Contract.
1442
- * @param {ContractCreateArgs} args - Arguments to create a Contract.
1443
- * @example
1444
- * // Create one Contract
1445
- * const Contract = await prisma.contract.create({
1446
- * data: {
1447
- * // ... data to create a Contract
1448
- * }
1449
- * })
1450
- *
1451
- */
1452
- create<T extends ContractCreateArgs>(args: Prisma.SelectSubset<T, ContractCreateArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1453
- /**
1454
- * Create many Contracts.
1455
- * @param {ContractCreateManyArgs} args - Arguments to create many Contracts.
1456
- * @example
1457
- * // Create many Contracts
1458
- * const contract = await prisma.contract.createMany({
1459
- * data: [
1460
- * // ... provide data here
1461
- * ]
1462
- * })
1463
- *
1464
- */
1465
- createMany<T extends ContractCreateManyArgs>(args?: Prisma.SelectSubset<T, ContractCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1466
- /**
1467
- * Delete a Contract.
1468
- * @param {ContractDeleteArgs} args - Arguments to delete one Contract.
1469
- * @example
1470
- * // Delete one Contract
1471
- * const Contract = await prisma.contract.delete({
1472
- * where: {
1473
- * // ... filter to delete one Contract
1474
- * }
1475
- * })
1476
- *
1477
- */
1478
- delete<T extends ContractDeleteArgs>(args: Prisma.SelectSubset<T, ContractDeleteArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1479
- /**
1480
- * Update one Contract.
1481
- * @param {ContractUpdateArgs} args - Arguments to update one Contract.
1482
- * @example
1483
- * // Update one Contract
1484
- * const contract = await prisma.contract.update({
1485
- * where: {
1486
- * // ... provide filter here
1487
- * },
1488
- * data: {
1489
- * // ... provide data here
1490
- * }
1491
- * })
1492
- *
1493
- */
1494
- update<T extends ContractUpdateArgs>(args: Prisma.SelectSubset<T, ContractUpdateArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1495
- /**
1496
- * Delete zero or more Contracts.
1497
- * @param {ContractDeleteManyArgs} args - Arguments to filter Contracts to delete.
1498
- * @example
1499
- * // Delete a few Contracts
1500
- * const { count } = await prisma.contract.deleteMany({
1501
- * where: {
1502
- * // ... provide filter here
1503
- * }
1504
- * })
1505
- *
1506
- */
1507
- deleteMany<T extends ContractDeleteManyArgs>(args?: Prisma.SelectSubset<T, ContractDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1508
- /**
1509
- * Update zero or more Contracts.
1510
- * Note, that providing `undefined` is treated as the value not being there.
1511
- * Read more here: https://pris.ly/d/null-undefined
1512
- * @param {ContractUpdateManyArgs} args - Arguments to update one or more rows.
1513
- * @example
1514
- * // Update many Contracts
1515
- * const contract = await prisma.contract.updateMany({
1516
- * where: {
1517
- * // ... provide filter here
1518
- * },
1519
- * data: {
1520
- * // ... provide data here
1521
- * }
1522
- * })
1523
- *
1524
- */
1525
- updateMany<T extends ContractUpdateManyArgs>(args: Prisma.SelectSubset<T, ContractUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1526
- /**
1527
- * Create or update one Contract.
1528
- * @param {ContractUpsertArgs} args - Arguments to update or create a Contract.
1529
- * @example
1530
- * // Update or create a Contract
1531
- * const contract = await prisma.contract.upsert({
1532
- * create: {
1533
- * // ... data to create a Contract
1534
- * },
1535
- * update: {
1536
- * // ... in case it already exists, update
1537
- * },
1538
- * where: {
1539
- * // ... the filter for the Contract we want to update
1540
- * }
1541
- * })
1542
- */
1543
- upsert<T extends ContractUpsertArgs>(args: Prisma.SelectSubset<T, ContractUpsertArgs<ExtArgs>>): Prisma.Prisma__ContractClient<runtime.Types.Result.GetResult<Prisma.$ContractPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1544
- /**
1545
- * Count the number of Contracts.
1546
- * Note, that providing `undefined` is treated as the value not being there.
1547
- * Read more here: https://pris.ly/d/null-undefined
1548
- * @param {ContractCountArgs} args - Arguments to filter Contracts to count.
1549
- * @example
1550
- * // Count the number of Contracts
1551
- * const count = await prisma.contract.count({
1552
- * where: {
1553
- * // ... the filter for the Contracts we want to count
1554
- * }
1555
- * })
1556
- **/
1557
- count<T extends ContractCountArgs>(args?: Prisma.Subset<T, ContractCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ContractCountAggregateOutputType> : number>;
1558
- /**
1559
- * Allows you to perform aggregations operations on a Contract.
1560
- * Note, that providing `undefined` is treated as the value not being there.
1561
- * Read more here: https://pris.ly/d/null-undefined
1562
- * @param {ContractAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1563
- * @example
1564
- * // Ordered by age ascending
1565
- * // Where email contains prisma.io
1566
- * // Limited to the 10 users
1567
- * const aggregations = await prisma.user.aggregate({
1568
- * _avg: {
1569
- * age: true,
1570
- * },
1571
- * where: {
1572
- * email: {
1573
- * contains: "prisma.io",
1574
- * },
1575
- * },
1576
- * orderBy: {
1577
- * age: "asc",
1578
- * },
1579
- * take: 10,
1580
- * })
1581
- **/
1582
- aggregate<T extends ContractAggregateArgs>(args: Prisma.Subset<T, ContractAggregateArgs>): Prisma.PrismaPromise<GetContractAggregateType<T>>;
1583
- /**
1584
- * Group by Contract.
1585
- * Note, that providing `undefined` is treated as the value not being there.
1586
- * Read more here: https://pris.ly/d/null-undefined
1587
- * @param {ContractGroupByArgs} args - Group by arguments.
1588
- * @example
1589
- * // Group by city, order by createdAt, get count
1590
- * const result = await prisma.user.groupBy({
1591
- * by: ['city', 'createdAt'],
1592
- * orderBy: {
1593
- * createdAt: true
1594
- * },
1595
- * _count: {
1596
- * _all: true
1597
- * },
1598
- * })
1599
- *
1600
- **/
1601
- groupBy<T extends ContractGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1602
- orderBy: ContractGroupByArgs['orderBy'];
1603
- } : {
1604
- orderBy?: ContractGroupByArgs['orderBy'];
1605
- }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1606
- [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1607
- Error,
1608
- 'Field ',
1609
- P,
1610
- ` in "having" needs to be provided in "by"`
1611
- ];
1612
- }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1613
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1614
- }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1615
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1616
- }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1617
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1618
- }[OrderFields]>(args: Prisma.SubsetIntersection<T, ContractGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContractGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1619
- /**
1620
- * Fields of the Contract model
1621
- */
1622
- readonly fields: ContractFieldRefs;
1623
- }
1624
- /**
1625
- * The delegate class that acts as a "Promise-like" for Contract.
1626
- * Why is this prefixed with `Prisma__`?
1627
- * Because we want to prevent naming conflicts as mentioned in
1628
- * https://github.com/prisma/prisma-client-js/issues/707
1629
- */
1630
- export interface Prisma__ContractClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1631
- readonly [Symbol.toStringTag]: "PrismaPromise";
1632
- property<T extends Prisma.PropertyDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PropertyDefaultArgs<ExtArgs>>): Prisma.Prisma__PropertyClient<runtime.Types.Result.GetResult<Prisma.$PropertyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1633
- paymentPlan<T extends Prisma.Contract$paymentPlanArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Contract$paymentPlanArgs<ExtArgs>>): Prisma.Prisma__PaymentPlanClient<runtime.Types.Result.GetResult<Prisma.$PaymentPlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
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>;
1635
- 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>;
1636
- 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>;
1637
- /**
1638
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1639
- * @param onfulfilled The callback to execute when the Promise is resolved.
1640
- * @param onrejected The callback to execute when the Promise is rejected.
1641
- * @returns A Promise for the completion of which ever callback is executed.
1642
- */
1643
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
1644
- /**
1645
- * Attaches a callback for only the rejection of the Promise.
1646
- * @param onrejected The callback to execute when the Promise is rejected.
1647
- * @returns A Promise for the completion of the callback.
1648
- */
1649
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1650
- /**
1651
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1652
- * resolved value cannot be modified from the callback.
1653
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1654
- * @returns A Promise for the completion of the callback.
1655
- */
1656
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1657
- }
1658
- /**
1659
- * Fields of the Contract model
1660
- */
1661
- export interface ContractFieldRefs {
1662
- readonly id: Prisma.FieldRef<"Contract", 'String'>;
1663
- readonly propertyId: Prisma.FieldRef<"Contract", 'String'>;
1664
- readonly paymentPlanId: Prisma.FieldRef<"Contract", 'String'>;
1665
- readonly buyerId: Prisma.FieldRef<"Contract", 'String'>;
1666
- readonly sellerId: Prisma.FieldRef<"Contract", 'String'>;
1667
- readonly contractType: Prisma.FieldRef<"Contract", 'String'>;
1668
- readonly contractNumber: Prisma.FieldRef<"Contract", 'String'>;
1669
- readonly title: Prisma.FieldRef<"Contract", 'String'>;
1670
- readonly description: Prisma.FieldRef<"Contract", 'String'>;
1671
- readonly status: Prisma.FieldRef<"Contract", 'String'>;
1672
- readonly startDate: Prisma.FieldRef<"Contract", 'DateTime'>;
1673
- readonly endDate: Prisma.FieldRef<"Contract", 'DateTime'>;
1674
- readonly signedAt: Prisma.FieldRef<"Contract", 'DateTime'>;
1675
- readonly terminatedAt: Prisma.FieldRef<"Contract", 'DateTime'>;
1676
- readonly createdAt: Prisma.FieldRef<"Contract", 'DateTime'>;
1677
- readonly updatedAt: Prisma.FieldRef<"Contract", 'DateTime'>;
1678
- }
1679
- /**
1680
- * Contract findUnique
1681
- */
1682
- export type ContractFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1683
- /**
1684
- * Select specific fields to fetch from the Contract
1685
- */
1686
- select?: Prisma.ContractSelect<ExtArgs> | null;
1687
- /**
1688
- * Omit specific fields from the Contract
1689
- */
1690
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1691
- /**
1692
- * Choose, which related nodes to fetch as well
1693
- */
1694
- include?: Prisma.ContractInclude<ExtArgs> | null;
1695
- /**
1696
- * Filter, which Contract to fetch.
1697
- */
1698
- where: Prisma.ContractWhereUniqueInput;
1699
- };
1700
- /**
1701
- * Contract findUniqueOrThrow
1702
- */
1703
- export type ContractFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1704
- /**
1705
- * Select specific fields to fetch from the Contract
1706
- */
1707
- select?: Prisma.ContractSelect<ExtArgs> | null;
1708
- /**
1709
- * Omit specific fields from the Contract
1710
- */
1711
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1712
- /**
1713
- * Choose, which related nodes to fetch as well
1714
- */
1715
- include?: Prisma.ContractInclude<ExtArgs> | null;
1716
- /**
1717
- * Filter, which Contract to fetch.
1718
- */
1719
- where: Prisma.ContractWhereUniqueInput;
1720
- };
1721
- /**
1722
- * Contract findFirst
1723
- */
1724
- export type ContractFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1725
- /**
1726
- * Select specific fields to fetch from the Contract
1727
- */
1728
- select?: Prisma.ContractSelect<ExtArgs> | null;
1729
- /**
1730
- * Omit specific fields from the Contract
1731
- */
1732
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1733
- /**
1734
- * Choose, which related nodes to fetch as well
1735
- */
1736
- include?: Prisma.ContractInclude<ExtArgs> | null;
1737
- /**
1738
- * Filter, which Contract to fetch.
1739
- */
1740
- where?: Prisma.ContractWhereInput;
1741
- /**
1742
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1743
- *
1744
- * Determine the order of Contracts to fetch.
1745
- */
1746
- orderBy?: Prisma.ContractOrderByWithRelationInput | Prisma.ContractOrderByWithRelationInput[];
1747
- /**
1748
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1749
- *
1750
- * Sets the position for searching for Contracts.
1751
- */
1752
- cursor?: Prisma.ContractWhereUniqueInput;
1753
- /**
1754
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1755
- *
1756
- * Take `±n` Contracts from the position of the cursor.
1757
- */
1758
- take?: number;
1759
- /**
1760
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1761
- *
1762
- * Skip the first `n` Contracts.
1763
- */
1764
- skip?: number;
1765
- /**
1766
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1767
- *
1768
- * Filter by unique combinations of Contracts.
1769
- */
1770
- distinct?: Prisma.ContractScalarFieldEnum | Prisma.ContractScalarFieldEnum[];
1771
- };
1772
- /**
1773
- * Contract findFirstOrThrow
1774
- */
1775
- export type ContractFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1776
- /**
1777
- * Select specific fields to fetch from the Contract
1778
- */
1779
- select?: Prisma.ContractSelect<ExtArgs> | null;
1780
- /**
1781
- * Omit specific fields from the Contract
1782
- */
1783
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1784
- /**
1785
- * Choose, which related nodes to fetch as well
1786
- */
1787
- include?: Prisma.ContractInclude<ExtArgs> | null;
1788
- /**
1789
- * Filter, which Contract to fetch.
1790
- */
1791
- where?: Prisma.ContractWhereInput;
1792
- /**
1793
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1794
- *
1795
- * Determine the order of Contracts to fetch.
1796
- */
1797
- orderBy?: Prisma.ContractOrderByWithRelationInput | Prisma.ContractOrderByWithRelationInput[];
1798
- /**
1799
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1800
- *
1801
- * Sets the position for searching for Contracts.
1802
- */
1803
- cursor?: Prisma.ContractWhereUniqueInput;
1804
- /**
1805
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1806
- *
1807
- * Take `±n` Contracts from the position of the cursor.
1808
- */
1809
- take?: number;
1810
- /**
1811
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1812
- *
1813
- * Skip the first `n` Contracts.
1814
- */
1815
- skip?: number;
1816
- /**
1817
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1818
- *
1819
- * Filter by unique combinations of Contracts.
1820
- */
1821
- distinct?: Prisma.ContractScalarFieldEnum | Prisma.ContractScalarFieldEnum[];
1822
- };
1823
- /**
1824
- * Contract findMany
1825
- */
1826
- export type ContractFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1827
- /**
1828
- * Select specific fields to fetch from the Contract
1829
- */
1830
- select?: Prisma.ContractSelect<ExtArgs> | null;
1831
- /**
1832
- * Omit specific fields from the Contract
1833
- */
1834
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1835
- /**
1836
- * Choose, which related nodes to fetch as well
1837
- */
1838
- include?: Prisma.ContractInclude<ExtArgs> | null;
1839
- /**
1840
- * Filter, which Contracts to fetch.
1841
- */
1842
- where?: Prisma.ContractWhereInput;
1843
- /**
1844
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1845
- *
1846
- * Determine the order of Contracts to fetch.
1847
- */
1848
- orderBy?: Prisma.ContractOrderByWithRelationInput | Prisma.ContractOrderByWithRelationInput[];
1849
- /**
1850
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1851
- *
1852
- * Sets the position for listing Contracts.
1853
- */
1854
- cursor?: Prisma.ContractWhereUniqueInput;
1855
- /**
1856
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1857
- *
1858
- * Take `±n` Contracts from the position of the cursor.
1859
- */
1860
- take?: number;
1861
- /**
1862
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1863
- *
1864
- * Skip the first `n` Contracts.
1865
- */
1866
- skip?: number;
1867
- distinct?: Prisma.ContractScalarFieldEnum | Prisma.ContractScalarFieldEnum[];
1868
- };
1869
- /**
1870
- * Contract create
1871
- */
1872
- export type ContractCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1873
- /**
1874
- * Select specific fields to fetch from the Contract
1875
- */
1876
- select?: Prisma.ContractSelect<ExtArgs> | null;
1877
- /**
1878
- * Omit specific fields from the Contract
1879
- */
1880
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1881
- /**
1882
- * Choose, which related nodes to fetch as well
1883
- */
1884
- include?: Prisma.ContractInclude<ExtArgs> | null;
1885
- /**
1886
- * The data needed to create a Contract.
1887
- */
1888
- data: Prisma.XOR<Prisma.ContractCreateInput, Prisma.ContractUncheckedCreateInput>;
1889
- };
1890
- /**
1891
- * Contract createMany
1892
- */
1893
- export type ContractCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1894
- /**
1895
- * The data used to create many Contracts.
1896
- */
1897
- data: Prisma.ContractCreateManyInput | Prisma.ContractCreateManyInput[];
1898
- skipDuplicates?: boolean;
1899
- };
1900
- /**
1901
- * Contract update
1902
- */
1903
- export type ContractUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1904
- /**
1905
- * Select specific fields to fetch from the Contract
1906
- */
1907
- select?: Prisma.ContractSelect<ExtArgs> | null;
1908
- /**
1909
- * Omit specific fields from the Contract
1910
- */
1911
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1912
- /**
1913
- * Choose, which related nodes to fetch as well
1914
- */
1915
- include?: Prisma.ContractInclude<ExtArgs> | null;
1916
- /**
1917
- * The data needed to update a Contract.
1918
- */
1919
- data: Prisma.XOR<Prisma.ContractUpdateInput, Prisma.ContractUncheckedUpdateInput>;
1920
- /**
1921
- * Choose, which Contract to update.
1922
- */
1923
- where: Prisma.ContractWhereUniqueInput;
1924
- };
1925
- /**
1926
- * Contract updateMany
1927
- */
1928
- export type ContractUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1929
- /**
1930
- * The data used to update Contracts.
1931
- */
1932
- data: Prisma.XOR<Prisma.ContractUpdateManyMutationInput, Prisma.ContractUncheckedUpdateManyInput>;
1933
- /**
1934
- * Filter which Contracts to update
1935
- */
1936
- where?: Prisma.ContractWhereInput;
1937
- /**
1938
- * Limit how many Contracts to update.
1939
- */
1940
- limit?: number;
1941
- };
1942
- /**
1943
- * Contract upsert
1944
- */
1945
- export type ContractUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1946
- /**
1947
- * Select specific fields to fetch from the Contract
1948
- */
1949
- select?: Prisma.ContractSelect<ExtArgs> | null;
1950
- /**
1951
- * Omit specific fields from the Contract
1952
- */
1953
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1954
- /**
1955
- * Choose, which related nodes to fetch as well
1956
- */
1957
- include?: Prisma.ContractInclude<ExtArgs> | null;
1958
- /**
1959
- * The filter to search for the Contract to update in case it exists.
1960
- */
1961
- where: Prisma.ContractWhereUniqueInput;
1962
- /**
1963
- * In case the Contract found by the `where` argument doesn't exist, create a new Contract with this data.
1964
- */
1965
- create: Prisma.XOR<Prisma.ContractCreateInput, Prisma.ContractUncheckedCreateInput>;
1966
- /**
1967
- * In case the Contract was found with the provided `where` argument, update it with this data.
1968
- */
1969
- update: Prisma.XOR<Prisma.ContractUpdateInput, Prisma.ContractUncheckedUpdateInput>;
1970
- };
1971
- /**
1972
- * Contract delete
1973
- */
1974
- export type ContractDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1975
- /**
1976
- * Select specific fields to fetch from the Contract
1977
- */
1978
- select?: Prisma.ContractSelect<ExtArgs> | null;
1979
- /**
1980
- * Omit specific fields from the Contract
1981
- */
1982
- omit?: Prisma.ContractOmit<ExtArgs> | null;
1983
- /**
1984
- * Choose, which related nodes to fetch as well
1985
- */
1986
- include?: Prisma.ContractInclude<ExtArgs> | null;
1987
- /**
1988
- * Filter which Contract to delete.
1989
- */
1990
- where: Prisma.ContractWhereUniqueInput;
1991
- };
1992
- /**
1993
- * Contract deleteMany
1994
- */
1995
- export type ContractDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1996
- /**
1997
- * Filter which Contracts to delete
1998
- */
1999
- where?: Prisma.ContractWhereInput;
2000
- /**
2001
- * Limit how many Contracts to delete.
2002
- */
2003
- limit?: number;
2004
- };
2005
- /**
2006
- * Contract.paymentPlan
2007
- */
2008
- export type Contract$paymentPlanArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2009
- /**
2010
- * Select specific fields to fetch from the PaymentPlan
2011
- */
2012
- select?: Prisma.PaymentPlanSelect<ExtArgs> | null;
2013
- /**
2014
- * Omit specific fields from the PaymentPlan
2015
- */
2016
- omit?: Prisma.PaymentPlanOmit<ExtArgs> | null;
2017
- /**
2018
- * Choose, which related nodes to fetch as well
2019
- */
2020
- include?: Prisma.PaymentPlanInclude<ExtArgs> | null;
2021
- where?: Prisma.PaymentPlanWhereInput;
2022
- };
2023
- /**
2024
- * Contract.buyer
2025
- */
2026
- export type Contract$buyerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2027
- /**
2028
- * Select specific fields to fetch from the User
2029
- */
2030
- select?: Prisma.UserSelect<ExtArgs> | null;
2031
- /**
2032
- * Omit specific fields from the User
2033
- */
2034
- omit?: Prisma.UserOmit<ExtArgs> | null;
2035
- /**
2036
- * Choose, which related nodes to fetch as well
2037
- */
2038
- include?: Prisma.UserInclude<ExtArgs> | null;
2039
- where?: Prisma.UserWhereInput;
2040
- };
2041
- /**
2042
- * Contract.seller
2043
- */
2044
- export type Contract$sellerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2045
- /**
2046
- * Select specific fields to fetch from the User
2047
- */
2048
- select?: Prisma.UserSelect<ExtArgs> | null;
2049
- /**
2050
- * Omit specific fields from the User
2051
- */
2052
- omit?: Prisma.UserOmit<ExtArgs> | null;
2053
- /**
2054
- * Choose, which related nodes to fetch as well
2055
- */
2056
- include?: Prisma.UserInclude<ExtArgs> | null;
2057
- where?: Prisma.UserWhereInput;
2058
- };
2059
- /**
2060
- * Contract.documents
2061
- */
2062
- export type Contract$documentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2063
- /**
2064
- * Select specific fields to fetch from the ContractDocument
2065
- */
2066
- select?: Prisma.ContractDocumentSelect<ExtArgs> | null;
2067
- /**
2068
- * Omit specific fields from the ContractDocument
2069
- */
2070
- omit?: Prisma.ContractDocumentOmit<ExtArgs> | null;
2071
- /**
2072
- * Choose, which related nodes to fetch as well
2073
- */
2074
- include?: Prisma.ContractDocumentInclude<ExtArgs> | null;
2075
- where?: Prisma.ContractDocumentWhereInput;
2076
- orderBy?: Prisma.ContractDocumentOrderByWithRelationInput | Prisma.ContractDocumentOrderByWithRelationInput[];
2077
- cursor?: Prisma.ContractDocumentWhereUniqueInput;
2078
- take?: number;
2079
- skip?: number;
2080
- distinct?: Prisma.ContractDocumentScalarFieldEnum | Prisma.ContractDocumentScalarFieldEnum[];
2081
- };
2082
- /**
2083
- * Contract without action
2084
- */
2085
- export type ContractDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2086
- /**
2087
- * Select specific fields to fetch from the Contract
2088
- */
2089
- select?: Prisma.ContractSelect<ExtArgs> | null;
2090
- /**
2091
- * Omit specific fields from the Contract
2092
- */
2093
- omit?: Prisma.ContractOmit<ExtArgs> | null;
2094
- /**
2095
- * Choose, which related nodes to fetch as well
2096
- */
2097
- include?: Prisma.ContractInclude<ExtArgs> | null;
2098
- };
2099
- export {};