@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
@@ -30,6 +30,7 @@ export type PaymentPhaseSumAggregateOutputType = {
30
30
  };
31
31
  export type PaymentPhaseMinAggregateOutputType = {
32
32
  id: string | null;
33
+ tenantId: string | null;
33
34
  phaseId: string | null;
34
35
  paymentPlanId: string | null;
35
36
  totalAmount: number | null;
@@ -44,6 +45,7 @@ export type PaymentPhaseMinAggregateOutputType = {
44
45
  };
45
46
  export type PaymentPhaseMaxAggregateOutputType = {
46
47
  id: string | null;
48
+ tenantId: string | null;
47
49
  phaseId: string | null;
48
50
  paymentPlanId: string | null;
49
51
  totalAmount: number | null;
@@ -58,6 +60,7 @@ export type PaymentPhaseMaxAggregateOutputType = {
58
60
  };
59
61
  export type PaymentPhaseCountAggregateOutputType = {
60
62
  id: number;
63
+ tenantId: number;
61
64
  phaseId: number;
62
65
  paymentPlanId: number;
63
66
  totalAmount: number;
@@ -90,6 +93,7 @@ export type PaymentPhaseSumAggregateInputType = {
90
93
  };
91
94
  export type PaymentPhaseMinAggregateInputType = {
92
95
  id?: true;
96
+ tenantId?: true;
93
97
  phaseId?: true;
94
98
  paymentPlanId?: true;
95
99
  totalAmount?: true;
@@ -104,6 +108,7 @@ export type PaymentPhaseMinAggregateInputType = {
104
108
  };
105
109
  export type PaymentPhaseMaxAggregateInputType = {
106
110
  id?: true;
111
+ tenantId?: true;
107
112
  phaseId?: true;
108
113
  paymentPlanId?: true;
109
114
  totalAmount?: true;
@@ -118,6 +123,7 @@ export type PaymentPhaseMaxAggregateInputType = {
118
123
  };
119
124
  export type PaymentPhaseCountAggregateInputType = {
120
125
  id?: true;
126
+ tenantId?: true;
121
127
  phaseId?: true;
122
128
  paymentPlanId?: true;
123
129
  totalAmount?: true;
@@ -210,6 +216,7 @@ export type PaymentPhaseGroupByArgs<ExtArgs extends runtime.Types.Extensions.Int
210
216
  };
211
217
  export type PaymentPhaseGroupByOutputType = {
212
218
  id: string;
219
+ tenantId: string;
213
220
  phaseId: string;
214
221
  paymentPlanId: string | null;
215
222
  totalAmount: number;
@@ -236,6 +243,7 @@ export type PaymentPhaseWhereInput = {
236
243
  OR?: Prisma.PaymentPhaseWhereInput[];
237
244
  NOT?: Prisma.PaymentPhaseWhereInput | Prisma.PaymentPhaseWhereInput[];
238
245
  id?: Prisma.StringFilter<"PaymentPhase"> | string;
246
+ tenantId?: Prisma.StringFilter<"PaymentPhase"> | string;
239
247
  phaseId?: Prisma.StringFilter<"PaymentPhase"> | string;
240
248
  paymentPlanId?: Prisma.StringNullableFilter<"PaymentPhase"> | string | null;
241
249
  totalAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
@@ -248,12 +256,14 @@ export type PaymentPhaseWhereInput = {
248
256
  paymentPlanSnapshot?: Prisma.JsonNullableFilter<"PaymentPhase">;
249
257
  createdAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
250
258
  updatedAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
259
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
251
260
  phase?: Prisma.XOR<Prisma.ApplicationPhaseScalarRelationFilter, Prisma.ApplicationPhaseWhereInput>;
252
261
  paymentPlan?: Prisma.XOR<Prisma.PaymentPlanNullableScalarRelationFilter, Prisma.PaymentPlanWhereInput> | null;
253
262
  installments?: Prisma.PaymentInstallmentListRelationFilter;
254
263
  };
255
264
  export type PaymentPhaseOrderByWithRelationInput = {
256
265
  id?: Prisma.SortOrder;
266
+ tenantId?: Prisma.SortOrder;
257
267
  phaseId?: Prisma.SortOrder;
258
268
  paymentPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
259
269
  totalAmount?: Prisma.SortOrder;
@@ -266,6 +276,7 @@ export type PaymentPhaseOrderByWithRelationInput = {
266
276
  paymentPlanSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
267
277
  createdAt?: Prisma.SortOrder;
268
278
  updatedAt?: Prisma.SortOrder;
279
+ tenant?: Prisma.TenantOrderByWithRelationInput;
269
280
  phase?: Prisma.ApplicationPhaseOrderByWithRelationInput;
270
281
  paymentPlan?: Prisma.PaymentPlanOrderByWithRelationInput;
271
282
  installments?: Prisma.PaymentInstallmentOrderByRelationAggregateInput;
@@ -277,6 +288,7 @@ export type PaymentPhaseWhereUniqueInput = Prisma.AtLeast<{
277
288
  AND?: Prisma.PaymentPhaseWhereInput | Prisma.PaymentPhaseWhereInput[];
278
289
  OR?: Prisma.PaymentPhaseWhereInput[];
279
290
  NOT?: Prisma.PaymentPhaseWhereInput | Prisma.PaymentPhaseWhereInput[];
291
+ tenantId?: Prisma.StringFilter<"PaymentPhase"> | string;
280
292
  paymentPlanId?: Prisma.StringNullableFilter<"PaymentPhase"> | string | null;
281
293
  totalAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
282
294
  paidAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
@@ -288,12 +300,14 @@ export type PaymentPhaseWhereUniqueInput = Prisma.AtLeast<{
288
300
  paymentPlanSnapshot?: Prisma.JsonNullableFilter<"PaymentPhase">;
289
301
  createdAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
290
302
  updatedAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
303
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
291
304
  phase?: Prisma.XOR<Prisma.ApplicationPhaseScalarRelationFilter, Prisma.ApplicationPhaseWhereInput>;
292
305
  paymentPlan?: Prisma.XOR<Prisma.PaymentPlanNullableScalarRelationFilter, Prisma.PaymentPlanWhereInput> | null;
293
306
  installments?: Prisma.PaymentInstallmentListRelationFilter;
294
307
  }, "id" | "phaseId">;
295
308
  export type PaymentPhaseOrderByWithAggregationInput = {
296
309
  id?: Prisma.SortOrder;
310
+ tenantId?: Prisma.SortOrder;
297
311
  phaseId?: Prisma.SortOrder;
298
312
  paymentPlanId?: Prisma.SortOrderInput | Prisma.SortOrder;
299
313
  totalAmount?: Prisma.SortOrder;
@@ -317,6 +331,7 @@ export type PaymentPhaseScalarWhereWithAggregatesInput = {
317
331
  OR?: Prisma.PaymentPhaseScalarWhereWithAggregatesInput[];
318
332
  NOT?: Prisma.PaymentPhaseScalarWhereWithAggregatesInput | Prisma.PaymentPhaseScalarWhereWithAggregatesInput[];
319
333
  id?: Prisma.StringWithAggregatesFilter<"PaymentPhase"> | string;
334
+ tenantId?: Prisma.StringWithAggregatesFilter<"PaymentPhase"> | string;
320
335
  phaseId?: Prisma.StringWithAggregatesFilter<"PaymentPhase"> | string;
321
336
  paymentPlanId?: Prisma.StringNullableWithAggregatesFilter<"PaymentPhase"> | string | null;
322
337
  totalAmount?: Prisma.FloatWithAggregatesFilter<"PaymentPhase"> | number;
@@ -342,12 +357,14 @@ export type PaymentPhaseCreateInput = {
342
357
  paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
343
358
  createdAt?: Date | string;
344
359
  updatedAt?: Date | string;
360
+ tenant: Prisma.TenantCreateNestedOneWithoutPaymentPhasesInput;
345
361
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutPaymentPhaseInput;
346
362
  paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutPaymentPhasesInput;
347
363
  installments?: Prisma.PaymentInstallmentCreateNestedManyWithoutPaymentPhaseInput;
348
364
  };
349
365
  export type PaymentPhaseUncheckedCreateInput = {
350
366
  id?: string;
367
+ tenantId: string;
351
368
  phaseId: string;
352
369
  paymentPlanId?: string | null;
353
370
  totalAmount: number;
@@ -374,12 +391,14 @@ export type PaymentPhaseUpdateInput = {
374
391
  paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
375
392
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
376
393
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
394
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPaymentPhasesNestedInput;
377
395
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutPaymentPhaseNestedInput;
378
396
  paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutPaymentPhasesNestedInput;
379
397
  installments?: Prisma.PaymentInstallmentUpdateManyWithoutPaymentPhaseNestedInput;
380
398
  };
381
399
  export type PaymentPhaseUncheckedUpdateInput = {
382
400
  id?: Prisma.StringFieldUpdateOperationsInput | string;
401
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
383
402
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
384
403
  paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
385
404
  totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
@@ -396,6 +415,7 @@ export type PaymentPhaseUncheckedUpdateInput = {
396
415
  };
397
416
  export type PaymentPhaseCreateManyInput = {
398
417
  id?: string;
418
+ tenantId: string;
399
419
  phaseId: string;
400
420
  paymentPlanId?: string | null;
401
421
  totalAmount: number;
@@ -424,6 +444,7 @@ export type PaymentPhaseUpdateManyMutationInput = {
424
444
  };
425
445
  export type PaymentPhaseUncheckedUpdateManyInput = {
426
446
  id?: Prisma.StringFieldUpdateOperationsInput | string;
447
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
427
448
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
428
449
  paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
429
450
  totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
@@ -456,6 +477,7 @@ export type PaymentPhaseOrderByRelevanceInput = {
456
477
  };
457
478
  export type PaymentPhaseCountOrderByAggregateInput = {
458
479
  id?: Prisma.SortOrder;
480
+ tenantId?: Prisma.SortOrder;
459
481
  phaseId?: Prisma.SortOrder;
460
482
  paymentPlanId?: Prisma.SortOrder;
461
483
  totalAmount?: Prisma.SortOrder;
@@ -479,6 +501,7 @@ export type PaymentPhaseAvgOrderByAggregateInput = {
479
501
  };
480
502
  export type PaymentPhaseMaxOrderByAggregateInput = {
481
503
  id?: Prisma.SortOrder;
504
+ tenantId?: Prisma.SortOrder;
482
505
  phaseId?: Prisma.SortOrder;
483
506
  paymentPlanId?: Prisma.SortOrder;
484
507
  totalAmount?: Prisma.SortOrder;
@@ -493,6 +516,7 @@ export type PaymentPhaseMaxOrderByAggregateInput = {
493
516
  };
494
517
  export type PaymentPhaseMinOrderByAggregateInput = {
495
518
  id?: Prisma.SortOrder;
519
+ tenantId?: Prisma.SortOrder;
496
520
  phaseId?: Prisma.SortOrder;
497
521
  paymentPlanId?: Prisma.SortOrder;
498
522
  totalAmount?: Prisma.SortOrder;
@@ -517,6 +541,44 @@ export type PaymentPhaseScalarRelationFilter = {
517
541
  is?: Prisma.PaymentPhaseWhereInput;
518
542
  isNot?: Prisma.PaymentPhaseWhereInput;
519
543
  };
544
+ export type PaymentPhaseCreateNestedManyWithoutTenantInput = {
545
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutTenantInput, Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput> | Prisma.PaymentPhaseCreateWithoutTenantInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput[];
546
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutTenantInput | Prisma.PaymentPhaseCreateOrConnectWithoutTenantInput[];
547
+ createMany?: Prisma.PaymentPhaseCreateManyTenantInputEnvelope;
548
+ connect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
549
+ };
550
+ export type PaymentPhaseUncheckedCreateNestedManyWithoutTenantInput = {
551
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutTenantInput, Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput> | Prisma.PaymentPhaseCreateWithoutTenantInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput[];
552
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutTenantInput | Prisma.PaymentPhaseCreateOrConnectWithoutTenantInput[];
553
+ createMany?: Prisma.PaymentPhaseCreateManyTenantInputEnvelope;
554
+ connect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
555
+ };
556
+ export type PaymentPhaseUpdateManyWithoutTenantNestedInput = {
557
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutTenantInput, Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput> | Prisma.PaymentPhaseCreateWithoutTenantInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput[];
558
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutTenantInput | Prisma.PaymentPhaseCreateOrConnectWithoutTenantInput[];
559
+ upsert?: Prisma.PaymentPhaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.PaymentPhaseUpsertWithWhereUniqueWithoutTenantInput[];
560
+ createMany?: Prisma.PaymentPhaseCreateManyTenantInputEnvelope;
561
+ set?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
562
+ disconnect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
563
+ delete?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
564
+ connect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
565
+ update?: Prisma.PaymentPhaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.PaymentPhaseUpdateWithWhereUniqueWithoutTenantInput[];
566
+ updateMany?: Prisma.PaymentPhaseUpdateManyWithWhereWithoutTenantInput | Prisma.PaymentPhaseUpdateManyWithWhereWithoutTenantInput[];
567
+ deleteMany?: Prisma.PaymentPhaseScalarWhereInput | Prisma.PaymentPhaseScalarWhereInput[];
568
+ };
569
+ export type PaymentPhaseUncheckedUpdateManyWithoutTenantNestedInput = {
570
+ create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutTenantInput, Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput> | Prisma.PaymentPhaseCreateWithoutTenantInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput[];
571
+ connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutTenantInput | Prisma.PaymentPhaseCreateOrConnectWithoutTenantInput[];
572
+ upsert?: Prisma.PaymentPhaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.PaymentPhaseUpsertWithWhereUniqueWithoutTenantInput[];
573
+ createMany?: Prisma.PaymentPhaseCreateManyTenantInputEnvelope;
574
+ set?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
575
+ disconnect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
576
+ delete?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
577
+ connect?: Prisma.PaymentPhaseWhereUniqueInput | Prisma.PaymentPhaseWhereUniqueInput[];
578
+ update?: Prisma.PaymentPhaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.PaymentPhaseUpdateWithWhereUniqueWithoutTenantInput[];
579
+ updateMany?: Prisma.PaymentPhaseUpdateManyWithWhereWithoutTenantInput | Prisma.PaymentPhaseUpdateManyWithWhereWithoutTenantInput[];
580
+ deleteMany?: Prisma.PaymentPhaseScalarWhereInput | Prisma.PaymentPhaseScalarWhereInput[];
581
+ };
520
582
  export type PaymentPhaseCreateNestedManyWithoutPaymentPlanInput = {
521
583
  create?: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput> | Prisma.PaymentPhaseCreateWithoutPaymentPlanInput[] | Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput[];
522
584
  connectOrCreate?: Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput | Prisma.PaymentPhaseCreateOrConnectWithoutPaymentPlanInput[];
@@ -595,7 +657,7 @@ export type PaymentPhaseUpdateOneRequiredWithoutInstallmentsNestedInput = {
595
657
  connect?: Prisma.PaymentPhaseWhereUniqueInput;
596
658
  update?: Prisma.XOR<Prisma.XOR<Prisma.PaymentPhaseUpdateToOneWithWhereWithoutInstallmentsInput, Prisma.PaymentPhaseUpdateWithoutInstallmentsInput>, Prisma.PaymentPhaseUncheckedUpdateWithoutInstallmentsInput>;
597
659
  };
598
- export type PaymentPhaseCreateWithoutPaymentPlanInput = {
660
+ export type PaymentPhaseCreateWithoutTenantInput = {
599
661
  id?: string;
600
662
  totalAmount: number;
601
663
  paidAmount?: number;
@@ -608,11 +670,13 @@ export type PaymentPhaseCreateWithoutPaymentPlanInput = {
608
670
  createdAt?: Date | string;
609
671
  updatedAt?: Date | string;
610
672
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutPaymentPhaseInput;
673
+ paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutPaymentPhasesInput;
611
674
  installments?: Prisma.PaymentInstallmentCreateNestedManyWithoutPaymentPhaseInput;
612
675
  };
613
- export type PaymentPhaseUncheckedCreateWithoutPaymentPlanInput = {
676
+ export type PaymentPhaseUncheckedCreateWithoutTenantInput = {
614
677
  id?: string;
615
678
  phaseId: string;
679
+ paymentPlanId?: string | null;
616
680
  totalAmount: number;
617
681
  paidAmount?: number;
618
682
  interestRate?: number;
@@ -625,32 +689,33 @@ export type PaymentPhaseUncheckedCreateWithoutPaymentPlanInput = {
625
689
  updatedAt?: Date | string;
626
690
  installments?: Prisma.PaymentInstallmentUncheckedCreateNestedManyWithoutPaymentPhaseInput;
627
691
  };
628
- export type PaymentPhaseCreateOrConnectWithoutPaymentPlanInput = {
692
+ export type PaymentPhaseCreateOrConnectWithoutTenantInput = {
629
693
  where: Prisma.PaymentPhaseWhereUniqueInput;
630
- create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput>;
694
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutTenantInput, Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput>;
631
695
  };
632
- export type PaymentPhaseCreateManyPaymentPlanInputEnvelope = {
633
- data: Prisma.PaymentPhaseCreateManyPaymentPlanInput | Prisma.PaymentPhaseCreateManyPaymentPlanInput[];
696
+ export type PaymentPhaseCreateManyTenantInputEnvelope = {
697
+ data: Prisma.PaymentPhaseCreateManyTenantInput | Prisma.PaymentPhaseCreateManyTenantInput[];
634
698
  skipDuplicates?: boolean;
635
699
  };
636
- export type PaymentPhaseUpsertWithWhereUniqueWithoutPaymentPlanInput = {
700
+ export type PaymentPhaseUpsertWithWhereUniqueWithoutTenantInput = {
637
701
  where: Prisma.PaymentPhaseWhereUniqueInput;
638
- update: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput>;
639
- create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput>;
702
+ update: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutTenantInput, Prisma.PaymentPhaseUncheckedUpdateWithoutTenantInput>;
703
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutTenantInput, Prisma.PaymentPhaseUncheckedCreateWithoutTenantInput>;
640
704
  };
641
- export type PaymentPhaseUpdateWithWhereUniqueWithoutPaymentPlanInput = {
705
+ export type PaymentPhaseUpdateWithWhereUniqueWithoutTenantInput = {
642
706
  where: Prisma.PaymentPhaseWhereUniqueInput;
643
- data: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput>;
707
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutTenantInput, Prisma.PaymentPhaseUncheckedUpdateWithoutTenantInput>;
644
708
  };
645
- export type PaymentPhaseUpdateManyWithWhereWithoutPaymentPlanInput = {
709
+ export type PaymentPhaseUpdateManyWithWhereWithoutTenantInput = {
646
710
  where: Prisma.PaymentPhaseScalarWhereInput;
647
- data: Prisma.XOR<Prisma.PaymentPhaseUpdateManyMutationInput, Prisma.PaymentPhaseUncheckedUpdateManyWithoutPaymentPlanInput>;
711
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateManyMutationInput, Prisma.PaymentPhaseUncheckedUpdateManyWithoutTenantInput>;
648
712
  };
649
713
  export type PaymentPhaseScalarWhereInput = {
650
714
  AND?: Prisma.PaymentPhaseScalarWhereInput | Prisma.PaymentPhaseScalarWhereInput[];
651
715
  OR?: Prisma.PaymentPhaseScalarWhereInput[];
652
716
  NOT?: Prisma.PaymentPhaseScalarWhereInput | Prisma.PaymentPhaseScalarWhereInput[];
653
717
  id?: Prisma.StringFilter<"PaymentPhase"> | string;
718
+ tenantId?: Prisma.StringFilter<"PaymentPhase"> | string;
654
719
  phaseId?: Prisma.StringFilter<"PaymentPhase"> | string;
655
720
  paymentPlanId?: Prisma.StringNullableFilter<"PaymentPhase"> | string | null;
656
721
  totalAmount?: Prisma.FloatFilter<"PaymentPhase"> | number;
@@ -664,6 +729,59 @@ export type PaymentPhaseScalarWhereInput = {
664
729
  createdAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
665
730
  updatedAt?: Prisma.DateTimeFilter<"PaymentPhase"> | Date | string;
666
731
  };
732
+ export type PaymentPhaseCreateWithoutPaymentPlanInput = {
733
+ id?: string;
734
+ totalAmount: number;
735
+ paidAmount?: number;
736
+ interestRate?: number;
737
+ selectedTermMonths?: number | null;
738
+ numberOfInstallments?: number | null;
739
+ collectFunds?: boolean;
740
+ minimumCompletionPercentage?: number | null;
741
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
742
+ createdAt?: Date | string;
743
+ updatedAt?: Date | string;
744
+ tenant: Prisma.TenantCreateNestedOneWithoutPaymentPhasesInput;
745
+ phase: Prisma.ApplicationPhaseCreateNestedOneWithoutPaymentPhaseInput;
746
+ installments?: Prisma.PaymentInstallmentCreateNestedManyWithoutPaymentPhaseInput;
747
+ };
748
+ export type PaymentPhaseUncheckedCreateWithoutPaymentPlanInput = {
749
+ id?: string;
750
+ tenantId: string;
751
+ phaseId: string;
752
+ totalAmount: number;
753
+ paidAmount?: number;
754
+ interestRate?: number;
755
+ selectedTermMonths?: number | null;
756
+ numberOfInstallments?: number | null;
757
+ collectFunds?: boolean;
758
+ minimumCompletionPercentage?: number | null;
759
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
760
+ createdAt?: Date | string;
761
+ updatedAt?: Date | string;
762
+ installments?: Prisma.PaymentInstallmentUncheckedCreateNestedManyWithoutPaymentPhaseInput;
763
+ };
764
+ export type PaymentPhaseCreateOrConnectWithoutPaymentPlanInput = {
765
+ where: Prisma.PaymentPhaseWhereUniqueInput;
766
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput>;
767
+ };
768
+ export type PaymentPhaseCreateManyPaymentPlanInputEnvelope = {
769
+ data: Prisma.PaymentPhaseCreateManyPaymentPlanInput | Prisma.PaymentPhaseCreateManyPaymentPlanInput[];
770
+ skipDuplicates?: boolean;
771
+ };
772
+ export type PaymentPhaseUpsertWithWhereUniqueWithoutPaymentPlanInput = {
773
+ where: Prisma.PaymentPhaseWhereUniqueInput;
774
+ update: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput>;
775
+ create: Prisma.XOR<Prisma.PaymentPhaseCreateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedCreateWithoutPaymentPlanInput>;
776
+ };
777
+ export type PaymentPhaseUpdateWithWhereUniqueWithoutPaymentPlanInput = {
778
+ where: Prisma.PaymentPhaseWhereUniqueInput;
779
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateWithoutPaymentPlanInput, Prisma.PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput>;
780
+ };
781
+ export type PaymentPhaseUpdateManyWithWhereWithoutPaymentPlanInput = {
782
+ where: Prisma.PaymentPhaseScalarWhereInput;
783
+ data: Prisma.XOR<Prisma.PaymentPhaseUpdateManyMutationInput, Prisma.PaymentPhaseUncheckedUpdateManyWithoutPaymentPlanInput>;
784
+ };
667
785
  export type PaymentPhaseCreateWithoutPhaseInput = {
668
786
  id?: string;
669
787
  totalAmount: number;
@@ -676,11 +794,13 @@ export type PaymentPhaseCreateWithoutPhaseInput = {
676
794
  paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
677
795
  createdAt?: Date | string;
678
796
  updatedAt?: Date | string;
797
+ tenant: Prisma.TenantCreateNestedOneWithoutPaymentPhasesInput;
679
798
  paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutPaymentPhasesInput;
680
799
  installments?: Prisma.PaymentInstallmentCreateNestedManyWithoutPaymentPhaseInput;
681
800
  };
682
801
  export type PaymentPhaseUncheckedCreateWithoutPhaseInput = {
683
802
  id?: string;
803
+ tenantId: string;
684
804
  paymentPlanId?: string | null;
685
805
  totalAmount: number;
686
806
  paidAmount?: number;
@@ -719,11 +839,13 @@ export type PaymentPhaseUpdateWithoutPhaseInput = {
719
839
  paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
720
840
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
721
841
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
842
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPaymentPhasesNestedInput;
722
843
  paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutPaymentPhasesNestedInput;
723
844
  installments?: Prisma.PaymentInstallmentUpdateManyWithoutPaymentPhaseNestedInput;
724
845
  };
725
846
  export type PaymentPhaseUncheckedUpdateWithoutPhaseInput = {
726
847
  id?: Prisma.StringFieldUpdateOperationsInput | string;
848
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
727
849
  paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
728
850
  totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
729
851
  paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
@@ -749,11 +871,13 @@ export type PaymentPhaseCreateWithoutInstallmentsInput = {
749
871
  paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
750
872
  createdAt?: Date | string;
751
873
  updatedAt?: Date | string;
874
+ tenant: Prisma.TenantCreateNestedOneWithoutPaymentPhasesInput;
752
875
  phase: Prisma.ApplicationPhaseCreateNestedOneWithoutPaymentPhaseInput;
753
876
  paymentPlan?: Prisma.PaymentPlanCreateNestedOneWithoutPaymentPhasesInput;
754
877
  };
755
878
  export type PaymentPhaseUncheckedCreateWithoutInstallmentsInput = {
756
879
  id?: string;
880
+ tenantId: string;
757
881
  phaseId: string;
758
882
  paymentPlanId?: string | null;
759
883
  totalAmount: number;
@@ -792,10 +916,74 @@ export type PaymentPhaseUpdateWithoutInstallmentsInput = {
792
916
  paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
793
917
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
794
918
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
919
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPaymentPhasesNestedInput;
795
920
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutPaymentPhaseNestedInput;
796
921
  paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutPaymentPhasesNestedInput;
797
922
  };
798
923
  export type PaymentPhaseUncheckedUpdateWithoutInstallmentsInput = {
924
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
925
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
926
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
927
+ paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
928
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
929
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
930
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
931
+ selectedTermMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
932
+ numberOfInstallments?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
933
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
934
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
935
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
936
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
937
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
938
+ };
939
+ export type PaymentPhaseCreateManyTenantInput = {
940
+ id?: string;
941
+ phaseId: string;
942
+ paymentPlanId?: string | null;
943
+ totalAmount: number;
944
+ paidAmount?: number;
945
+ interestRate?: number;
946
+ selectedTermMonths?: number | null;
947
+ numberOfInstallments?: number | null;
948
+ collectFunds?: boolean;
949
+ minimumCompletionPercentage?: number | null;
950
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
951
+ createdAt?: Date | string;
952
+ updatedAt?: Date | string;
953
+ };
954
+ export type PaymentPhaseUpdateWithoutTenantInput = {
955
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
956
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
957
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
958
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
959
+ selectedTermMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
960
+ numberOfInstallments?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
961
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
962
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
963
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
964
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
965
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
966
+ phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutPaymentPhaseNestedInput;
967
+ paymentPlan?: Prisma.PaymentPlanUpdateOneWithoutPaymentPhasesNestedInput;
968
+ installments?: Prisma.PaymentInstallmentUpdateManyWithoutPaymentPhaseNestedInput;
969
+ };
970
+ export type PaymentPhaseUncheckedUpdateWithoutTenantInput = {
971
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
972
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
973
+ paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
974
+ totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
975
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
976
+ interestRate?: Prisma.FloatFieldUpdateOperationsInput | number;
977
+ selectedTermMonths?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
978
+ numberOfInstallments?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
979
+ collectFunds?: Prisma.BoolFieldUpdateOperationsInput | boolean;
980
+ minimumCompletionPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
981
+ paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
982
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
983
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
984
+ installments?: Prisma.PaymentInstallmentUncheckedUpdateManyWithoutPaymentPhaseNestedInput;
985
+ };
986
+ export type PaymentPhaseUncheckedUpdateManyWithoutTenantInput = {
799
987
  id?: Prisma.StringFieldUpdateOperationsInput | string;
800
988
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
801
989
  paymentPlanId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -812,6 +1000,7 @@ export type PaymentPhaseUncheckedUpdateWithoutInstallmentsInput = {
812
1000
  };
813
1001
  export type PaymentPhaseCreateManyPaymentPlanInput = {
814
1002
  id?: string;
1003
+ tenantId: string;
815
1004
  phaseId: string;
816
1005
  totalAmount: number;
817
1006
  paidAmount?: number;
@@ -836,11 +1025,13 @@ export type PaymentPhaseUpdateWithoutPaymentPlanInput = {
836
1025
  paymentPlanSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
837
1026
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
838
1027
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1028
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPaymentPhasesNestedInput;
839
1029
  phase?: Prisma.ApplicationPhaseUpdateOneRequiredWithoutPaymentPhaseNestedInput;
840
1030
  installments?: Prisma.PaymentInstallmentUpdateManyWithoutPaymentPhaseNestedInput;
841
1031
  };
842
1032
  export type PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput = {
843
1033
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1034
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
844
1035
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
845
1036
  totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
846
1037
  paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
@@ -856,6 +1047,7 @@ export type PaymentPhaseUncheckedUpdateWithoutPaymentPlanInput = {
856
1047
  };
857
1048
  export type PaymentPhaseUncheckedUpdateManyWithoutPaymentPlanInput = {
858
1049
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1050
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
859
1051
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
860
1052
  totalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
861
1053
  paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
@@ -894,6 +1086,7 @@ export type PaymentPhaseCountOutputTypeCountInstallmentsArgs<ExtArgs extends run
894
1086
  };
895
1087
  export type PaymentPhaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
896
1088
  id?: boolean;
1089
+ tenantId?: boolean;
897
1090
  phaseId?: boolean;
898
1091
  paymentPlanId?: boolean;
899
1092
  totalAmount?: boolean;
@@ -906,6 +1099,7 @@ export type PaymentPhaseSelect<ExtArgs extends runtime.Types.Extensions.Internal
906
1099
  paymentPlanSnapshot?: boolean;
907
1100
  createdAt?: boolean;
908
1101
  updatedAt?: boolean;
1102
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
909
1103
  phase?: boolean | Prisma.ApplicationPhaseDefaultArgs<ExtArgs>;
910
1104
  paymentPlan?: boolean | Prisma.PaymentPhase$paymentPlanArgs<ExtArgs>;
911
1105
  installments?: boolean | Prisma.PaymentPhase$installmentsArgs<ExtArgs>;
@@ -913,6 +1107,7 @@ export type PaymentPhaseSelect<ExtArgs extends runtime.Types.Extensions.Internal
913
1107
  }, ExtArgs["result"]["paymentPhase"]>;
914
1108
  export type PaymentPhaseSelectScalar = {
915
1109
  id?: boolean;
1110
+ tenantId?: boolean;
916
1111
  phaseId?: boolean;
917
1112
  paymentPlanId?: boolean;
918
1113
  totalAmount?: boolean;
@@ -926,8 +1121,9 @@ export type PaymentPhaseSelectScalar = {
926
1121
  createdAt?: boolean;
927
1122
  updatedAt?: boolean;
928
1123
  };
929
- export type PaymentPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phaseId" | "paymentPlanId" | "totalAmount" | "paidAmount" | "interestRate" | "selectedTermMonths" | "numberOfInstallments" | "collectFunds" | "minimumCompletionPercentage" | "paymentPlanSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["paymentPhase"]>;
1124
+ export type PaymentPhaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "phaseId" | "paymentPlanId" | "totalAmount" | "paidAmount" | "interestRate" | "selectedTermMonths" | "numberOfInstallments" | "collectFunds" | "minimumCompletionPercentage" | "paymentPlanSnapshot" | "createdAt" | "updatedAt", ExtArgs["result"]["paymentPhase"]>;
930
1125
  export type PaymentPhaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1126
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
931
1127
  phase?: boolean | Prisma.ApplicationPhaseDefaultArgs<ExtArgs>;
932
1128
  paymentPlan?: boolean | Prisma.PaymentPhase$paymentPlanArgs<ExtArgs>;
933
1129
  installments?: boolean | Prisma.PaymentPhase$installmentsArgs<ExtArgs>;
@@ -936,12 +1132,14 @@ export type PaymentPhaseInclude<ExtArgs extends runtime.Types.Extensions.Interna
936
1132
  export type $PaymentPhasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
937
1133
  name: "PaymentPhase";
938
1134
  objects: {
1135
+ tenant: Prisma.$TenantPayload<ExtArgs>;
939
1136
  phase: Prisma.$ApplicationPhasePayload<ExtArgs>;
940
1137
  paymentPlan: Prisma.$PaymentPlanPayload<ExtArgs> | null;
941
1138
  installments: Prisma.$PaymentInstallmentPayload<ExtArgs>[];
942
1139
  };
943
1140
  scalars: runtime.Types.Extensions.GetPayloadResult<{
944
1141
  id: string;
1142
+ tenantId: string;
945
1143
  phaseId: string;
946
1144
  paymentPlanId: string | null;
947
1145
  totalAmount: number;
@@ -1231,6 +1429,7 @@ export interface PaymentPhaseDelegate<ExtArgs extends runtime.Types.Extensions.I
1231
1429
  */
1232
1430
  export interface Prisma__PaymentPhaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1233
1431
  readonly [Symbol.toStringTag]: "PrismaPromise";
1432
+ 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>;
1234
1433
  phase<T extends Prisma.ApplicationPhaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPhaseDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationPhaseClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1235
1434
  paymentPlan<T extends Prisma.PaymentPhase$paymentPlanArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentPhase$paymentPlanArgs<ExtArgs>>): Prisma.Prisma__PaymentPlanClient<runtime.Types.Result.GetResult<Prisma.$PaymentPlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1236
1435
  installments<T extends Prisma.PaymentPhase$installmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentPhase$installmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -1260,6 +1459,7 @@ export interface Prisma__PaymentPhaseClient<T, Null = never, ExtArgs extends run
1260
1459
  */
1261
1460
  export interface PaymentPhaseFieldRefs {
1262
1461
  readonly id: Prisma.FieldRef<"PaymentPhase", 'String'>;
1462
+ readonly tenantId: Prisma.FieldRef<"PaymentPhase", 'String'>;
1263
1463
  readonly phaseId: Prisma.FieldRef<"PaymentPhase", 'String'>;
1264
1464
  readonly paymentPlanId: Prisma.FieldRef<"PaymentPhase", 'String'>;
1265
1465
  readonly totalAmount: Prisma.FieldRef<"PaymentPhase", 'Float'>;