@valentine-efagene/qshelter-common 2.0.19 → 2.0.22

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