@valentine-efagene/qshelter-common 2.0.99 → 2.0.100

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 (39) hide show
  1. package/dist/generated/client/internal/class.js +2 -2
  2. package/dist/generated/client/internal/prismaNamespace.d.ts +56 -0
  3. package/dist/generated/client/internal/prismaNamespace.js +56 -0
  4. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +56 -0
  5. package/dist/generated/client/internal/prismaNamespaceBrowser.js +56 -0
  6. package/dist/generated/client/models/Amenity.d.ts +183 -3
  7. package/dist/generated/client/models/ApplicationDocument.d.ts +183 -1
  8. package/dist/generated/client/models/ApplicationEvent.d.ts +190 -14
  9. package/dist/generated/client/models/ApplicationPayment.d.ts +225 -1
  10. package/dist/generated/client/models/ApplicationPhase.d.ts +272 -26
  11. package/dist/generated/client/models/DocumentationPhase.d.ts +224 -24
  12. package/dist/generated/client/models/DocumentationStep.d.ts +237 -1
  13. package/dist/generated/client/models/DocumentationStepApproval.d.ts +159 -1
  14. package/dist/generated/client/models/DocumentationStepDocument.d.ts +150 -10
  15. package/dist/generated/client/models/EventHandlerExecution.d.ts +208 -14
  16. package/dist/generated/client/models/PaymentInstallment.d.ts +228 -14
  17. package/dist/generated/client/models/PaymentMethodPhaseDocument.d.ts +178 -14
  18. package/dist/generated/client/models/PaymentMethodPhaseField.d.ts +208 -14
  19. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +180 -14
  20. package/dist/generated/client/models/PaymentPhase.d.ts +214 -14
  21. package/dist/generated/client/models/PhaseEventAttachment.d.ts +178 -14
  22. package/dist/generated/client/models/PropertyAmenity.d.ts +145 -11
  23. package/dist/generated/client/models/PropertyDocument.d.ts +164 -12
  24. package/dist/generated/client/models/PropertyMedia.d.ts +183 -17
  25. package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +159 -13
  26. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +270 -14
  27. package/dist/generated/client/models/PropertyUnit.d.ts +230 -14
  28. package/dist/generated/client/models/PropertyVariant.d.ts +256 -14
  29. package/dist/generated/client/models/PropertyVariantAmenity.d.ts +145 -11
  30. package/dist/generated/client/models/PropertyVariantMedia.d.ts +171 -13
  31. package/dist/generated/client/models/QuestionnaireField.d.ts +232 -14
  32. package/dist/generated/client/models/QuestionnairePhase.d.ts +207 -1
  33. package/dist/generated/client/models/StepEventAttachment.d.ts +178 -14
  34. package/dist/generated/client/models/Tenant.d.ts +11653 -1153
  35. package/dist/src/prisma/tenant.js +26 -32
  36. package/package.json +1 -1
  37. package/prisma/migrations/20260113000000_remove_workflow_analytics_summary/migration.sql +5 -0
  38. package/prisma/migrations/20260113110450_add_tenant_id_to_child_models/migration.sql +334 -0
  39. package/prisma/schema.prisma +143 -30
@@ -11,32 +11,38 @@ export type AggregatePropertyAmenity = {
11
11
  _max: PropertyAmenityMaxAggregateOutputType | null;
12
12
  };
13
13
  export type PropertyAmenityMinAggregateOutputType = {
14
+ tenantId: string | null;
14
15
  propertyId: string | null;
15
16
  amenityId: string | null;
16
17
  createdAt: Date | null;
17
18
  };
18
19
  export type PropertyAmenityMaxAggregateOutputType = {
20
+ tenantId: string | null;
19
21
  propertyId: string | null;
20
22
  amenityId: string | null;
21
23
  createdAt: Date | null;
22
24
  };
23
25
  export type PropertyAmenityCountAggregateOutputType = {
26
+ tenantId: number;
24
27
  propertyId: number;
25
28
  amenityId: number;
26
29
  createdAt: number;
27
30
  _all: number;
28
31
  };
29
32
  export type PropertyAmenityMinAggregateInputType = {
33
+ tenantId?: true;
30
34
  propertyId?: true;
31
35
  amenityId?: true;
32
36
  createdAt?: true;
33
37
  };
34
38
  export type PropertyAmenityMaxAggregateInputType = {
39
+ tenantId?: true;
35
40
  propertyId?: true;
36
41
  amenityId?: true;
37
42
  createdAt?: true;
38
43
  };
39
44
  export type PropertyAmenityCountAggregateInputType = {
45
+ tenantId?: true;
40
46
  propertyId?: true;
41
47
  amenityId?: true;
42
48
  createdAt?: true;
@@ -105,6 +111,7 @@ export type PropertyAmenityGroupByArgs<ExtArgs extends runtime.Types.Extensions.
105
111
  _max?: PropertyAmenityMaxAggregateInputType;
106
112
  };
107
113
  export type PropertyAmenityGroupByOutputType = {
114
+ tenantId: string;
108
115
  propertyId: string;
109
116
  amenityId: string;
110
117
  createdAt: Date;
@@ -119,16 +126,20 @@ export type PropertyAmenityWhereInput = {
119
126
  AND?: Prisma.PropertyAmenityWhereInput | Prisma.PropertyAmenityWhereInput[];
120
127
  OR?: Prisma.PropertyAmenityWhereInput[];
121
128
  NOT?: Prisma.PropertyAmenityWhereInput | Prisma.PropertyAmenityWhereInput[];
129
+ tenantId?: Prisma.StringFilter<"PropertyAmenity"> | string;
122
130
  propertyId?: Prisma.StringFilter<"PropertyAmenity"> | string;
123
131
  amenityId?: Prisma.StringFilter<"PropertyAmenity"> | string;
124
132
  createdAt?: Prisma.DateTimeFilter<"PropertyAmenity"> | Date | string;
133
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
125
134
  property?: Prisma.XOR<Prisma.PropertyScalarRelationFilter, Prisma.PropertyWhereInput>;
126
135
  amenity?: Prisma.XOR<Prisma.AmenityScalarRelationFilter, Prisma.AmenityWhereInput>;
127
136
  };
128
137
  export type PropertyAmenityOrderByWithRelationInput = {
138
+ tenantId?: Prisma.SortOrder;
129
139
  propertyId?: Prisma.SortOrder;
130
140
  amenityId?: Prisma.SortOrder;
131
141
  createdAt?: Prisma.SortOrder;
142
+ tenant?: Prisma.TenantOrderByWithRelationInput;
132
143
  property?: Prisma.PropertyOrderByWithRelationInput;
133
144
  amenity?: Prisma.AmenityOrderByWithRelationInput;
134
145
  _relevance?: Prisma.PropertyAmenityOrderByRelevanceInput;
@@ -138,13 +149,16 @@ export type PropertyAmenityWhereUniqueInput = Prisma.AtLeast<{
138
149
  AND?: Prisma.PropertyAmenityWhereInput | Prisma.PropertyAmenityWhereInput[];
139
150
  OR?: Prisma.PropertyAmenityWhereInput[];
140
151
  NOT?: Prisma.PropertyAmenityWhereInput | Prisma.PropertyAmenityWhereInput[];
152
+ tenantId?: Prisma.StringFilter<"PropertyAmenity"> | string;
141
153
  propertyId?: Prisma.StringFilter<"PropertyAmenity"> | string;
142
154
  amenityId?: Prisma.StringFilter<"PropertyAmenity"> | string;
143
155
  createdAt?: Prisma.DateTimeFilter<"PropertyAmenity"> | Date | string;
156
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
144
157
  property?: Prisma.XOR<Prisma.PropertyScalarRelationFilter, Prisma.PropertyWhereInput>;
145
158
  amenity?: Prisma.XOR<Prisma.AmenityScalarRelationFilter, Prisma.AmenityWhereInput>;
146
159
  }, "propertyId_amenityId">;
147
160
  export type PropertyAmenityOrderByWithAggregationInput = {
161
+ tenantId?: Prisma.SortOrder;
148
162
  propertyId?: Prisma.SortOrder;
149
163
  amenityId?: Prisma.SortOrder;
150
164
  createdAt?: Prisma.SortOrder;
@@ -156,31 +170,37 @@ export type PropertyAmenityScalarWhereWithAggregatesInput = {
156
170
  AND?: Prisma.PropertyAmenityScalarWhereWithAggregatesInput | Prisma.PropertyAmenityScalarWhereWithAggregatesInput[];
157
171
  OR?: Prisma.PropertyAmenityScalarWhereWithAggregatesInput[];
158
172
  NOT?: Prisma.PropertyAmenityScalarWhereWithAggregatesInput | Prisma.PropertyAmenityScalarWhereWithAggregatesInput[];
173
+ tenantId?: Prisma.StringWithAggregatesFilter<"PropertyAmenity"> | string;
159
174
  propertyId?: Prisma.StringWithAggregatesFilter<"PropertyAmenity"> | string;
160
175
  amenityId?: Prisma.StringWithAggregatesFilter<"PropertyAmenity"> | string;
161
176
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"PropertyAmenity"> | Date | string;
162
177
  };
163
178
  export type PropertyAmenityCreateInput = {
164
179
  createdAt?: Date | string;
180
+ tenant: Prisma.TenantCreateNestedOneWithoutPropertyAmenitiesInput;
165
181
  property: Prisma.PropertyCreateNestedOneWithoutAmenitiesInput;
166
182
  amenity: Prisma.AmenityCreateNestedOneWithoutPropertiesInput;
167
183
  };
168
184
  export type PropertyAmenityUncheckedCreateInput = {
185
+ tenantId: string;
169
186
  propertyId: string;
170
187
  amenityId: string;
171
188
  createdAt?: Date | string;
172
189
  };
173
190
  export type PropertyAmenityUpdateInput = {
174
191
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
192
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPropertyAmenitiesNestedInput;
175
193
  property?: Prisma.PropertyUpdateOneRequiredWithoutAmenitiesNestedInput;
176
194
  amenity?: Prisma.AmenityUpdateOneRequiredWithoutPropertiesNestedInput;
177
195
  };
178
196
  export type PropertyAmenityUncheckedUpdateInput = {
197
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
179
198
  propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
180
199
  amenityId?: Prisma.StringFieldUpdateOperationsInput | string;
181
200
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
182
201
  };
183
202
  export type PropertyAmenityCreateManyInput = {
203
+ tenantId: string;
184
204
  propertyId: string;
185
205
  amenityId: string;
186
206
  createdAt?: Date | string;
@@ -189,6 +209,7 @@ export type PropertyAmenityUpdateManyMutationInput = {
189
209
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
190
210
  };
191
211
  export type PropertyAmenityUncheckedUpdateManyInput = {
212
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
192
213
  propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
193
214
  amenityId?: Prisma.StringFieldUpdateOperationsInput | string;
194
215
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -211,20 +232,61 @@ export type PropertyAmenityPropertyIdAmenityIdCompoundUniqueInput = {
211
232
  amenityId: string;
212
233
  };
213
234
  export type PropertyAmenityCountOrderByAggregateInput = {
235
+ tenantId?: Prisma.SortOrder;
214
236
  propertyId?: Prisma.SortOrder;
215
237
  amenityId?: Prisma.SortOrder;
216
238
  createdAt?: Prisma.SortOrder;
217
239
  };
218
240
  export type PropertyAmenityMaxOrderByAggregateInput = {
241
+ tenantId?: Prisma.SortOrder;
219
242
  propertyId?: Prisma.SortOrder;
220
243
  amenityId?: Prisma.SortOrder;
221
244
  createdAt?: Prisma.SortOrder;
222
245
  };
223
246
  export type PropertyAmenityMinOrderByAggregateInput = {
247
+ tenantId?: Prisma.SortOrder;
224
248
  propertyId?: Prisma.SortOrder;
225
249
  amenityId?: Prisma.SortOrder;
226
250
  createdAt?: Prisma.SortOrder;
227
251
  };
252
+ export type PropertyAmenityCreateNestedManyWithoutTenantInput = {
253
+ create?: Prisma.XOR<Prisma.PropertyAmenityCreateWithoutTenantInput, Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput> | Prisma.PropertyAmenityCreateWithoutTenantInput[] | Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput[];
254
+ connectOrCreate?: Prisma.PropertyAmenityCreateOrConnectWithoutTenantInput | Prisma.PropertyAmenityCreateOrConnectWithoutTenantInput[];
255
+ createMany?: Prisma.PropertyAmenityCreateManyTenantInputEnvelope;
256
+ connect?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
257
+ };
258
+ export type PropertyAmenityUncheckedCreateNestedManyWithoutTenantInput = {
259
+ create?: Prisma.XOR<Prisma.PropertyAmenityCreateWithoutTenantInput, Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput> | Prisma.PropertyAmenityCreateWithoutTenantInput[] | Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput[];
260
+ connectOrCreate?: Prisma.PropertyAmenityCreateOrConnectWithoutTenantInput | Prisma.PropertyAmenityCreateOrConnectWithoutTenantInput[];
261
+ createMany?: Prisma.PropertyAmenityCreateManyTenantInputEnvelope;
262
+ connect?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
263
+ };
264
+ export type PropertyAmenityUpdateManyWithoutTenantNestedInput = {
265
+ create?: Prisma.XOR<Prisma.PropertyAmenityCreateWithoutTenantInput, Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput> | Prisma.PropertyAmenityCreateWithoutTenantInput[] | Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput[];
266
+ connectOrCreate?: Prisma.PropertyAmenityCreateOrConnectWithoutTenantInput | Prisma.PropertyAmenityCreateOrConnectWithoutTenantInput[];
267
+ upsert?: Prisma.PropertyAmenityUpsertWithWhereUniqueWithoutTenantInput | Prisma.PropertyAmenityUpsertWithWhereUniqueWithoutTenantInput[];
268
+ createMany?: Prisma.PropertyAmenityCreateManyTenantInputEnvelope;
269
+ set?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
270
+ disconnect?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
271
+ delete?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
272
+ connect?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
273
+ update?: Prisma.PropertyAmenityUpdateWithWhereUniqueWithoutTenantInput | Prisma.PropertyAmenityUpdateWithWhereUniqueWithoutTenantInput[];
274
+ updateMany?: Prisma.PropertyAmenityUpdateManyWithWhereWithoutTenantInput | Prisma.PropertyAmenityUpdateManyWithWhereWithoutTenantInput[];
275
+ deleteMany?: Prisma.PropertyAmenityScalarWhereInput | Prisma.PropertyAmenityScalarWhereInput[];
276
+ };
277
+ export type PropertyAmenityUncheckedUpdateManyWithoutTenantNestedInput = {
278
+ create?: Prisma.XOR<Prisma.PropertyAmenityCreateWithoutTenantInput, Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput> | Prisma.PropertyAmenityCreateWithoutTenantInput[] | Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput[];
279
+ connectOrCreate?: Prisma.PropertyAmenityCreateOrConnectWithoutTenantInput | Prisma.PropertyAmenityCreateOrConnectWithoutTenantInput[];
280
+ upsert?: Prisma.PropertyAmenityUpsertWithWhereUniqueWithoutTenantInput | Prisma.PropertyAmenityUpsertWithWhereUniqueWithoutTenantInput[];
281
+ createMany?: Prisma.PropertyAmenityCreateManyTenantInputEnvelope;
282
+ set?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
283
+ disconnect?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
284
+ delete?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
285
+ connect?: Prisma.PropertyAmenityWhereUniqueInput | Prisma.PropertyAmenityWhereUniqueInput[];
286
+ update?: Prisma.PropertyAmenityUpdateWithWhereUniqueWithoutTenantInput | Prisma.PropertyAmenityUpdateWithWhereUniqueWithoutTenantInput[];
287
+ updateMany?: Prisma.PropertyAmenityUpdateManyWithWhereWithoutTenantInput | Prisma.PropertyAmenityUpdateManyWithWhereWithoutTenantInput[];
288
+ deleteMany?: Prisma.PropertyAmenityScalarWhereInput | Prisma.PropertyAmenityScalarWhereInput[];
289
+ };
228
290
  export type PropertyAmenityCreateNestedManyWithoutPropertyInput = {
229
291
  create?: Prisma.XOR<Prisma.PropertyAmenityCreateWithoutPropertyInput, Prisma.PropertyAmenityUncheckedCreateWithoutPropertyInput> | Prisma.PropertyAmenityCreateWithoutPropertyInput[] | Prisma.PropertyAmenityUncheckedCreateWithoutPropertyInput[];
230
292
  connectOrCreate?: Prisma.PropertyAmenityCreateOrConnectWithoutPropertyInput | Prisma.PropertyAmenityCreateOrConnectWithoutPropertyInput[];
@@ -301,11 +363,53 @@ export type PropertyAmenityUncheckedUpdateManyWithoutAmenityNestedInput = {
301
363
  updateMany?: Prisma.PropertyAmenityUpdateManyWithWhereWithoutAmenityInput | Prisma.PropertyAmenityUpdateManyWithWhereWithoutAmenityInput[];
302
364
  deleteMany?: Prisma.PropertyAmenityScalarWhereInput | Prisma.PropertyAmenityScalarWhereInput[];
303
365
  };
366
+ export type PropertyAmenityCreateWithoutTenantInput = {
367
+ createdAt?: Date | string;
368
+ property: Prisma.PropertyCreateNestedOneWithoutAmenitiesInput;
369
+ amenity: Prisma.AmenityCreateNestedOneWithoutPropertiesInput;
370
+ };
371
+ export type PropertyAmenityUncheckedCreateWithoutTenantInput = {
372
+ propertyId: string;
373
+ amenityId: string;
374
+ createdAt?: Date | string;
375
+ };
376
+ export type PropertyAmenityCreateOrConnectWithoutTenantInput = {
377
+ where: Prisma.PropertyAmenityWhereUniqueInput;
378
+ create: Prisma.XOR<Prisma.PropertyAmenityCreateWithoutTenantInput, Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput>;
379
+ };
380
+ export type PropertyAmenityCreateManyTenantInputEnvelope = {
381
+ data: Prisma.PropertyAmenityCreateManyTenantInput | Prisma.PropertyAmenityCreateManyTenantInput[];
382
+ skipDuplicates?: boolean;
383
+ };
384
+ export type PropertyAmenityUpsertWithWhereUniqueWithoutTenantInput = {
385
+ where: Prisma.PropertyAmenityWhereUniqueInput;
386
+ update: Prisma.XOR<Prisma.PropertyAmenityUpdateWithoutTenantInput, Prisma.PropertyAmenityUncheckedUpdateWithoutTenantInput>;
387
+ create: Prisma.XOR<Prisma.PropertyAmenityCreateWithoutTenantInput, Prisma.PropertyAmenityUncheckedCreateWithoutTenantInput>;
388
+ };
389
+ export type PropertyAmenityUpdateWithWhereUniqueWithoutTenantInput = {
390
+ where: Prisma.PropertyAmenityWhereUniqueInput;
391
+ data: Prisma.XOR<Prisma.PropertyAmenityUpdateWithoutTenantInput, Prisma.PropertyAmenityUncheckedUpdateWithoutTenantInput>;
392
+ };
393
+ export type PropertyAmenityUpdateManyWithWhereWithoutTenantInput = {
394
+ where: Prisma.PropertyAmenityScalarWhereInput;
395
+ data: Prisma.XOR<Prisma.PropertyAmenityUpdateManyMutationInput, Prisma.PropertyAmenityUncheckedUpdateManyWithoutTenantInput>;
396
+ };
397
+ export type PropertyAmenityScalarWhereInput = {
398
+ AND?: Prisma.PropertyAmenityScalarWhereInput | Prisma.PropertyAmenityScalarWhereInput[];
399
+ OR?: Prisma.PropertyAmenityScalarWhereInput[];
400
+ NOT?: Prisma.PropertyAmenityScalarWhereInput | Prisma.PropertyAmenityScalarWhereInput[];
401
+ tenantId?: Prisma.StringFilter<"PropertyAmenity"> | string;
402
+ propertyId?: Prisma.StringFilter<"PropertyAmenity"> | string;
403
+ amenityId?: Prisma.StringFilter<"PropertyAmenity"> | string;
404
+ createdAt?: Prisma.DateTimeFilter<"PropertyAmenity"> | Date | string;
405
+ };
304
406
  export type PropertyAmenityCreateWithoutPropertyInput = {
305
407
  createdAt?: Date | string;
408
+ tenant: Prisma.TenantCreateNestedOneWithoutPropertyAmenitiesInput;
306
409
  amenity: Prisma.AmenityCreateNestedOneWithoutPropertiesInput;
307
410
  };
308
411
  export type PropertyAmenityUncheckedCreateWithoutPropertyInput = {
412
+ tenantId: string;
309
413
  amenityId: string;
310
414
  createdAt?: Date | string;
311
415
  };
@@ -330,19 +434,13 @@ export type PropertyAmenityUpdateManyWithWhereWithoutPropertyInput = {
330
434
  where: Prisma.PropertyAmenityScalarWhereInput;
331
435
  data: Prisma.XOR<Prisma.PropertyAmenityUpdateManyMutationInput, Prisma.PropertyAmenityUncheckedUpdateManyWithoutPropertyInput>;
332
436
  };
333
- export type PropertyAmenityScalarWhereInput = {
334
- AND?: Prisma.PropertyAmenityScalarWhereInput | Prisma.PropertyAmenityScalarWhereInput[];
335
- OR?: Prisma.PropertyAmenityScalarWhereInput[];
336
- NOT?: Prisma.PropertyAmenityScalarWhereInput | Prisma.PropertyAmenityScalarWhereInput[];
337
- propertyId?: Prisma.StringFilter<"PropertyAmenity"> | string;
338
- amenityId?: Prisma.StringFilter<"PropertyAmenity"> | string;
339
- createdAt?: Prisma.DateTimeFilter<"PropertyAmenity"> | Date | string;
340
- };
341
437
  export type PropertyAmenityCreateWithoutAmenityInput = {
342
438
  createdAt?: Date | string;
439
+ tenant: Prisma.TenantCreateNestedOneWithoutPropertyAmenitiesInput;
343
440
  property: Prisma.PropertyCreateNestedOneWithoutAmenitiesInput;
344
441
  };
345
442
  export type PropertyAmenityUncheckedCreateWithoutAmenityInput = {
443
+ tenantId: string;
346
444
  propertyId: string;
347
445
  createdAt?: Date | string;
348
446
  };
@@ -367,62 +465,96 @@ export type PropertyAmenityUpdateManyWithWhereWithoutAmenityInput = {
367
465
  where: Prisma.PropertyAmenityScalarWhereInput;
368
466
  data: Prisma.XOR<Prisma.PropertyAmenityUpdateManyMutationInput, Prisma.PropertyAmenityUncheckedUpdateManyWithoutAmenityInput>;
369
467
  };
468
+ export type PropertyAmenityCreateManyTenantInput = {
469
+ propertyId: string;
470
+ amenityId: string;
471
+ createdAt?: Date | string;
472
+ };
473
+ export type PropertyAmenityUpdateWithoutTenantInput = {
474
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
475
+ property?: Prisma.PropertyUpdateOneRequiredWithoutAmenitiesNestedInput;
476
+ amenity?: Prisma.AmenityUpdateOneRequiredWithoutPropertiesNestedInput;
477
+ };
478
+ export type PropertyAmenityUncheckedUpdateWithoutTenantInput = {
479
+ propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
480
+ amenityId?: Prisma.StringFieldUpdateOperationsInput | string;
481
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
482
+ };
483
+ export type PropertyAmenityUncheckedUpdateManyWithoutTenantInput = {
484
+ propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
485
+ amenityId?: Prisma.StringFieldUpdateOperationsInput | string;
486
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
487
+ };
370
488
  export type PropertyAmenityCreateManyPropertyInput = {
489
+ tenantId: string;
371
490
  amenityId: string;
372
491
  createdAt?: Date | string;
373
492
  };
374
493
  export type PropertyAmenityUpdateWithoutPropertyInput = {
375
494
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
495
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPropertyAmenitiesNestedInput;
376
496
  amenity?: Prisma.AmenityUpdateOneRequiredWithoutPropertiesNestedInput;
377
497
  };
378
498
  export type PropertyAmenityUncheckedUpdateWithoutPropertyInput = {
499
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
379
500
  amenityId?: Prisma.StringFieldUpdateOperationsInput | string;
380
501
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
381
502
  };
382
503
  export type PropertyAmenityUncheckedUpdateManyWithoutPropertyInput = {
504
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
383
505
  amenityId?: Prisma.StringFieldUpdateOperationsInput | string;
384
506
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
385
507
  };
386
508
  export type PropertyAmenityCreateManyAmenityInput = {
509
+ tenantId: string;
387
510
  propertyId: string;
388
511
  createdAt?: Date | string;
389
512
  };
390
513
  export type PropertyAmenityUpdateWithoutAmenityInput = {
391
514
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
515
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPropertyAmenitiesNestedInput;
392
516
  property?: Prisma.PropertyUpdateOneRequiredWithoutAmenitiesNestedInput;
393
517
  };
394
518
  export type PropertyAmenityUncheckedUpdateWithoutAmenityInput = {
519
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
395
520
  propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
396
521
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
397
522
  };
398
523
  export type PropertyAmenityUncheckedUpdateManyWithoutAmenityInput = {
524
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
399
525
  propertyId?: Prisma.StringFieldUpdateOperationsInput | string;
400
526
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
401
527
  };
402
528
  export type PropertyAmenitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
529
+ tenantId?: boolean;
403
530
  propertyId?: boolean;
404
531
  amenityId?: boolean;
405
532
  createdAt?: boolean;
533
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
406
534
  property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>;
407
535
  amenity?: boolean | Prisma.AmenityDefaultArgs<ExtArgs>;
408
536
  }, ExtArgs["result"]["propertyAmenity"]>;
409
537
  export type PropertyAmenitySelectScalar = {
538
+ tenantId?: boolean;
410
539
  propertyId?: boolean;
411
540
  amenityId?: boolean;
412
541
  createdAt?: boolean;
413
542
  };
414
- export type PropertyAmenityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"propertyId" | "amenityId" | "createdAt", ExtArgs["result"]["propertyAmenity"]>;
543
+ export type PropertyAmenityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"tenantId" | "propertyId" | "amenityId" | "createdAt", ExtArgs["result"]["propertyAmenity"]>;
415
544
  export type PropertyAmenityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
545
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
416
546
  property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>;
417
547
  amenity?: boolean | Prisma.AmenityDefaultArgs<ExtArgs>;
418
548
  };
419
549
  export type $PropertyAmenityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
420
550
  name: "PropertyAmenity";
421
551
  objects: {
552
+ tenant: Prisma.$TenantPayload<ExtArgs>;
422
553
  property: Prisma.$PropertyPayload<ExtArgs>;
423
554
  amenity: Prisma.$AmenityPayload<ExtArgs>;
424
555
  };
425
556
  scalars: runtime.Types.Extensions.GetPayloadResult<{
557
+ tenantId: string;
426
558
  propertyId: string;
427
559
  amenityId: string;
428
560
  createdAt: Date;
@@ -506,8 +638,8 @@ export interface PropertyAmenityDelegate<ExtArgs extends runtime.Types.Extension
506
638
  * // Get first 10 PropertyAmenities
507
639
  * const propertyAmenities = await prisma.propertyAmenity.findMany({ take: 10 })
508
640
  *
509
- * // Only select the `propertyId`
510
- * const propertyAmenityWithPropertyIdOnly = await prisma.propertyAmenity.findMany({ select: { propertyId: true } })
641
+ * // Only select the `tenantId`
642
+ * const propertyAmenityWithTenantIdOnly = await prisma.propertyAmenity.findMany({ select: { tenantId: true } })
511
643
  *
512
644
  */
513
645
  findMany<T extends PropertyAmenityFindManyArgs>(args?: Prisma.SelectSubset<T, PropertyAmenityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyAmenityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
@@ -703,6 +835,7 @@ export interface PropertyAmenityDelegate<ExtArgs extends runtime.Types.Extension
703
835
  */
704
836
  export interface Prisma__PropertyAmenityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
705
837
  readonly [Symbol.toStringTag]: "PrismaPromise";
838
+ tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
706
839
  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>;
707
840
  amenity<T extends Prisma.AmenityDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AmenityDefaultArgs<ExtArgs>>): Prisma.Prisma__AmenityClient<runtime.Types.Result.GetResult<Prisma.$AmenityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
708
841
  /**
@@ -730,6 +863,7 @@ export interface Prisma__PropertyAmenityClient<T, Null = never, ExtArgs extends
730
863
  * Fields of the PropertyAmenity model
731
864
  */
732
865
  export interface PropertyAmenityFieldRefs {
866
+ readonly tenantId: Prisma.FieldRef<"PropertyAmenity", 'String'>;
733
867
  readonly propertyId: Prisma.FieldRef<"PropertyAmenity", 'String'>;
734
868
  readonly amenityId: Prisma.FieldRef<"PropertyAmenity", 'String'>;
735
869
  readonly createdAt: Prisma.FieldRef<"PropertyAmenity", 'DateTime'>;