@valentine-efagene/qshelter-common 2.0.22 → 2.0.24

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.
@@ -24,6 +24,7 @@ export type PaymentPlanSumAggregateOutputType = {
24
24
  };
25
25
  export type PaymentPlanMinAggregateOutputType = {
26
26
  id: string | null;
27
+ tenantId: string | null;
27
28
  name: string | null;
28
29
  description: string | null;
29
30
  isActive: boolean | null;
@@ -37,6 +38,7 @@ export type PaymentPlanMinAggregateOutputType = {
37
38
  };
38
39
  export type PaymentPlanMaxAggregateOutputType = {
39
40
  id: string | null;
41
+ tenantId: string | null;
40
42
  name: string | null;
41
43
  description: string | null;
42
44
  isActive: boolean | null;
@@ -50,6 +52,7 @@ export type PaymentPlanMaxAggregateOutputType = {
50
52
  };
51
53
  export type PaymentPlanCountAggregateOutputType = {
52
54
  id: number;
55
+ tenantId: number;
53
56
  name: number;
54
57
  description: number;
55
58
  isActive: number;
@@ -74,6 +77,7 @@ export type PaymentPlanSumAggregateInputType = {
74
77
  };
75
78
  export type PaymentPlanMinAggregateInputType = {
76
79
  id?: true;
80
+ tenantId?: true;
77
81
  name?: true;
78
82
  description?: true;
79
83
  isActive?: true;
@@ -87,6 +91,7 @@ export type PaymentPlanMinAggregateInputType = {
87
91
  };
88
92
  export type PaymentPlanMaxAggregateInputType = {
89
93
  id?: true;
94
+ tenantId?: true;
90
95
  name?: true;
91
96
  description?: true;
92
97
  isActive?: true;
@@ -100,6 +105,7 @@ export type PaymentPlanMaxAggregateInputType = {
100
105
  };
101
106
  export type PaymentPlanCountAggregateInputType = {
102
107
  id?: true;
108
+ tenantId?: true;
103
109
  name?: true;
104
110
  description?: true;
105
111
  isActive?: true;
@@ -190,6 +196,7 @@ export type PaymentPlanGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inte
190
196
  };
191
197
  export type PaymentPlanGroupByOutputType = {
192
198
  id: string;
199
+ tenantId: string | null;
193
200
  name: string;
194
201
  description: string | null;
195
202
  isActive: boolean;
@@ -214,6 +221,7 @@ export type PaymentPlanWhereInput = {
214
221
  OR?: Prisma.PaymentPlanWhereInput[];
215
222
  NOT?: Prisma.PaymentPlanWhereInput | Prisma.PaymentPlanWhereInput[];
216
223
  id?: Prisma.StringFilter<"PaymentPlan"> | string;
224
+ tenantId?: Prisma.StringNullableFilter<"PaymentPlan"> | string | null;
217
225
  name?: Prisma.StringFilter<"PaymentPlan"> | string;
218
226
  description?: Prisma.StringNullableFilter<"PaymentPlan"> | string | null;
219
227
  isActive?: Prisma.BoolFilter<"PaymentPlan"> | boolean;
@@ -224,11 +232,13 @@ export type PaymentPlanWhereInput = {
224
232
  gracePeriodDays?: Prisma.IntFilter<"PaymentPlan"> | number;
225
233
  createdAt?: Prisma.DateTimeFilter<"PaymentPlan"> | Date | string;
226
234
  updatedAt?: Prisma.DateTimeFilter<"PaymentPlan"> | Date | string;
235
+ tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null;
227
236
  methodPhases?: Prisma.PropertyPaymentMethodPhaseListRelationFilter;
228
237
  contractPhases?: Prisma.ContractPhaseListRelationFilter;
229
238
  };
230
239
  export type PaymentPlanOrderByWithRelationInput = {
231
240
  id?: Prisma.SortOrder;
241
+ tenantId?: Prisma.SortOrderInput | Prisma.SortOrder;
232
242
  name?: Prisma.SortOrder;
233
243
  description?: Prisma.SortOrderInput | Prisma.SortOrder;
234
244
  isActive?: Prisma.SortOrder;
@@ -239,16 +249,19 @@ export type PaymentPlanOrderByWithRelationInput = {
239
249
  gracePeriodDays?: Prisma.SortOrder;
240
250
  createdAt?: Prisma.SortOrder;
241
251
  updatedAt?: Prisma.SortOrder;
252
+ tenant?: Prisma.TenantOrderByWithRelationInput;
242
253
  methodPhases?: Prisma.PropertyPaymentMethodPhaseOrderByRelationAggregateInput;
243
254
  contractPhases?: Prisma.ContractPhaseOrderByRelationAggregateInput;
244
255
  _relevance?: Prisma.PaymentPlanOrderByRelevanceInput;
245
256
  };
246
257
  export type PaymentPlanWhereUniqueInput = Prisma.AtLeast<{
247
258
  id?: string;
248
- name?: string;
259
+ tenantId_name?: Prisma.PaymentPlanTenantIdNameCompoundUniqueInput;
249
260
  AND?: Prisma.PaymentPlanWhereInput | Prisma.PaymentPlanWhereInput[];
250
261
  OR?: Prisma.PaymentPlanWhereInput[];
251
262
  NOT?: Prisma.PaymentPlanWhereInput | Prisma.PaymentPlanWhereInput[];
263
+ tenantId?: Prisma.StringNullableFilter<"PaymentPlan"> | string | null;
264
+ name?: Prisma.StringFilter<"PaymentPlan"> | string;
252
265
  description?: Prisma.StringNullableFilter<"PaymentPlan"> | string | null;
253
266
  isActive?: Prisma.BoolFilter<"PaymentPlan"> | boolean;
254
267
  paymentFrequency?: Prisma.StringFilter<"PaymentPlan"> | string;
@@ -258,11 +271,13 @@ export type PaymentPlanWhereUniqueInput = Prisma.AtLeast<{
258
271
  gracePeriodDays?: Prisma.IntFilter<"PaymentPlan"> | number;
259
272
  createdAt?: Prisma.DateTimeFilter<"PaymentPlan"> | Date | string;
260
273
  updatedAt?: Prisma.DateTimeFilter<"PaymentPlan"> | Date | string;
274
+ tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null;
261
275
  methodPhases?: Prisma.PropertyPaymentMethodPhaseListRelationFilter;
262
276
  contractPhases?: Prisma.ContractPhaseListRelationFilter;
263
- }, "id" | "name">;
277
+ }, "id" | "tenantId_name">;
264
278
  export type PaymentPlanOrderByWithAggregationInput = {
265
279
  id?: Prisma.SortOrder;
280
+ tenantId?: Prisma.SortOrderInput | Prisma.SortOrder;
266
281
  name?: Prisma.SortOrder;
267
282
  description?: Prisma.SortOrderInput | Prisma.SortOrder;
268
283
  isActive?: Prisma.SortOrder;
@@ -284,6 +299,7 @@ export type PaymentPlanScalarWhereWithAggregatesInput = {
284
299
  OR?: Prisma.PaymentPlanScalarWhereWithAggregatesInput[];
285
300
  NOT?: Prisma.PaymentPlanScalarWhereWithAggregatesInput | Prisma.PaymentPlanScalarWhereWithAggregatesInput[];
286
301
  id?: Prisma.StringWithAggregatesFilter<"PaymentPlan"> | string;
302
+ tenantId?: Prisma.StringNullableWithAggregatesFilter<"PaymentPlan"> | string | null;
287
303
  name?: Prisma.StringWithAggregatesFilter<"PaymentPlan"> | string;
288
304
  description?: Prisma.StringNullableWithAggregatesFilter<"PaymentPlan"> | string | null;
289
305
  isActive?: Prisma.BoolWithAggregatesFilter<"PaymentPlan"> | boolean;
@@ -307,11 +323,13 @@ export type PaymentPlanCreateInput = {
307
323
  gracePeriodDays?: number;
308
324
  createdAt?: Date | string;
309
325
  updatedAt?: Date | string;
326
+ tenant?: Prisma.TenantCreateNestedOneWithoutPaymentPlansInput;
310
327
  methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutPaymentPlanInput;
311
328
  contractPhases?: Prisma.ContractPhaseCreateNestedManyWithoutPaymentPlanInput;
312
329
  };
313
330
  export type PaymentPlanUncheckedCreateInput = {
314
331
  id?: string;
332
+ tenantId?: string | null;
315
333
  name: string;
316
334
  description?: string | null;
317
335
  isActive?: boolean;
@@ -337,11 +355,13 @@ export type PaymentPlanUpdateInput = {
337
355
  gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
338
356
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
339
357
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
358
+ tenant?: Prisma.TenantUpdateOneWithoutPaymentPlansNestedInput;
340
359
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutPaymentPlanNestedInput;
341
360
  contractPhases?: Prisma.ContractPhaseUpdateManyWithoutPaymentPlanNestedInput;
342
361
  };
343
362
  export type PaymentPlanUncheckedUpdateInput = {
344
363
  id?: Prisma.StringFieldUpdateOperationsInput | string;
364
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
345
365
  name?: Prisma.StringFieldUpdateOperationsInput | string;
346
366
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
347
367
  isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -357,6 +377,7 @@ export type PaymentPlanUncheckedUpdateInput = {
357
377
  };
358
378
  export type PaymentPlanCreateManyInput = {
359
379
  id?: string;
380
+ tenantId?: string | null;
360
381
  name: string;
361
382
  description?: string | null;
362
383
  isActive?: boolean;
@@ -383,6 +404,7 @@ export type PaymentPlanUpdateManyMutationInput = {
383
404
  };
384
405
  export type PaymentPlanUncheckedUpdateManyInput = {
385
406
  id?: Prisma.StringFieldUpdateOperationsInput | string;
407
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
386
408
  name?: Prisma.StringFieldUpdateOperationsInput | string;
387
409
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
388
410
  isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -394,13 +416,26 @@ export type PaymentPlanUncheckedUpdateManyInput = {
394
416
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
395
417
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
396
418
  };
419
+ export type PaymentPlanListRelationFilter = {
420
+ every?: Prisma.PaymentPlanWhereInput;
421
+ some?: Prisma.PaymentPlanWhereInput;
422
+ none?: Prisma.PaymentPlanWhereInput;
423
+ };
424
+ export type PaymentPlanOrderByRelationAggregateInput = {
425
+ _count?: Prisma.SortOrder;
426
+ };
397
427
  export type PaymentPlanOrderByRelevanceInput = {
398
428
  fields: Prisma.PaymentPlanOrderByRelevanceFieldEnum | Prisma.PaymentPlanOrderByRelevanceFieldEnum[];
399
429
  sort: Prisma.SortOrder;
400
430
  search: string;
401
431
  };
432
+ export type PaymentPlanTenantIdNameCompoundUniqueInput = {
433
+ tenantId: string;
434
+ name: string;
435
+ };
402
436
  export type PaymentPlanCountOrderByAggregateInput = {
403
437
  id?: Prisma.SortOrder;
438
+ tenantId?: Prisma.SortOrder;
404
439
  name?: Prisma.SortOrder;
405
440
  description?: Prisma.SortOrder;
406
441
  isActive?: Prisma.SortOrder;
@@ -419,6 +454,7 @@ export type PaymentPlanAvgOrderByAggregateInput = {
419
454
  };
420
455
  export type PaymentPlanMaxOrderByAggregateInput = {
421
456
  id?: Prisma.SortOrder;
457
+ tenantId?: Prisma.SortOrder;
422
458
  name?: Prisma.SortOrder;
423
459
  description?: Prisma.SortOrder;
424
460
  isActive?: Prisma.SortOrder;
@@ -432,6 +468,7 @@ export type PaymentPlanMaxOrderByAggregateInput = {
432
468
  };
433
469
  export type PaymentPlanMinOrderByAggregateInput = {
434
470
  id?: Prisma.SortOrder;
471
+ tenantId?: Prisma.SortOrder;
435
472
  name?: Prisma.SortOrder;
436
473
  description?: Prisma.SortOrder;
437
474
  isActive?: Prisma.SortOrder;
@@ -452,6 +489,44 @@ export type PaymentPlanNullableScalarRelationFilter = {
452
489
  is?: Prisma.PaymentPlanWhereInput | null;
453
490
  isNot?: Prisma.PaymentPlanWhereInput | null;
454
491
  };
492
+ export type PaymentPlanCreateNestedManyWithoutTenantInput = {
493
+ create?: Prisma.XOR<Prisma.PaymentPlanCreateWithoutTenantInput, Prisma.PaymentPlanUncheckedCreateWithoutTenantInput> | Prisma.PaymentPlanCreateWithoutTenantInput[] | Prisma.PaymentPlanUncheckedCreateWithoutTenantInput[];
494
+ connectOrCreate?: Prisma.PaymentPlanCreateOrConnectWithoutTenantInput | Prisma.PaymentPlanCreateOrConnectWithoutTenantInput[];
495
+ createMany?: Prisma.PaymentPlanCreateManyTenantInputEnvelope;
496
+ connect?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
497
+ };
498
+ export type PaymentPlanUncheckedCreateNestedManyWithoutTenantInput = {
499
+ create?: Prisma.XOR<Prisma.PaymentPlanCreateWithoutTenantInput, Prisma.PaymentPlanUncheckedCreateWithoutTenantInput> | Prisma.PaymentPlanCreateWithoutTenantInput[] | Prisma.PaymentPlanUncheckedCreateWithoutTenantInput[];
500
+ connectOrCreate?: Prisma.PaymentPlanCreateOrConnectWithoutTenantInput | Prisma.PaymentPlanCreateOrConnectWithoutTenantInput[];
501
+ createMany?: Prisma.PaymentPlanCreateManyTenantInputEnvelope;
502
+ connect?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
503
+ };
504
+ export type PaymentPlanUpdateManyWithoutTenantNestedInput = {
505
+ create?: Prisma.XOR<Prisma.PaymentPlanCreateWithoutTenantInput, Prisma.PaymentPlanUncheckedCreateWithoutTenantInput> | Prisma.PaymentPlanCreateWithoutTenantInput[] | Prisma.PaymentPlanUncheckedCreateWithoutTenantInput[];
506
+ connectOrCreate?: Prisma.PaymentPlanCreateOrConnectWithoutTenantInput | Prisma.PaymentPlanCreateOrConnectWithoutTenantInput[];
507
+ upsert?: Prisma.PaymentPlanUpsertWithWhereUniqueWithoutTenantInput | Prisma.PaymentPlanUpsertWithWhereUniqueWithoutTenantInput[];
508
+ createMany?: Prisma.PaymentPlanCreateManyTenantInputEnvelope;
509
+ set?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
510
+ disconnect?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
511
+ delete?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
512
+ connect?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
513
+ update?: Prisma.PaymentPlanUpdateWithWhereUniqueWithoutTenantInput | Prisma.PaymentPlanUpdateWithWhereUniqueWithoutTenantInput[];
514
+ updateMany?: Prisma.PaymentPlanUpdateManyWithWhereWithoutTenantInput | Prisma.PaymentPlanUpdateManyWithWhereWithoutTenantInput[];
515
+ deleteMany?: Prisma.PaymentPlanScalarWhereInput | Prisma.PaymentPlanScalarWhereInput[];
516
+ };
517
+ export type PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput = {
518
+ create?: Prisma.XOR<Prisma.PaymentPlanCreateWithoutTenantInput, Prisma.PaymentPlanUncheckedCreateWithoutTenantInput> | Prisma.PaymentPlanCreateWithoutTenantInput[] | Prisma.PaymentPlanUncheckedCreateWithoutTenantInput[];
519
+ connectOrCreate?: Prisma.PaymentPlanCreateOrConnectWithoutTenantInput | Prisma.PaymentPlanCreateOrConnectWithoutTenantInput[];
520
+ upsert?: Prisma.PaymentPlanUpsertWithWhereUniqueWithoutTenantInput | Prisma.PaymentPlanUpsertWithWhereUniqueWithoutTenantInput[];
521
+ createMany?: Prisma.PaymentPlanCreateManyTenantInputEnvelope;
522
+ set?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
523
+ disconnect?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
524
+ delete?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
525
+ connect?: Prisma.PaymentPlanWhereUniqueInput | Prisma.PaymentPlanWhereUniqueInput[];
526
+ update?: Prisma.PaymentPlanUpdateWithWhereUniqueWithoutTenantInput | Prisma.PaymentPlanUpdateWithWhereUniqueWithoutTenantInput[];
527
+ updateMany?: Prisma.PaymentPlanUpdateManyWithWhereWithoutTenantInput | Prisma.PaymentPlanUpdateManyWithWhereWithoutTenantInput[];
528
+ deleteMany?: Prisma.PaymentPlanScalarWhereInput | Prisma.PaymentPlanScalarWhereInput[];
529
+ };
455
530
  export type PaymentPlanCreateNestedOneWithoutMethodPhasesInput = {
456
531
  create?: Prisma.XOR<Prisma.PaymentPlanCreateWithoutMethodPhasesInput, Prisma.PaymentPlanUncheckedCreateWithoutMethodPhasesInput>;
457
532
  connectOrCreate?: Prisma.PaymentPlanCreateOrConnectWithoutMethodPhasesInput;
@@ -480,6 +555,74 @@ export type PaymentPlanUpdateOneWithoutContractPhasesNestedInput = {
480
555
  connect?: Prisma.PaymentPlanWhereUniqueInput;
481
556
  update?: Prisma.XOR<Prisma.XOR<Prisma.PaymentPlanUpdateToOneWithWhereWithoutContractPhasesInput, Prisma.PaymentPlanUpdateWithoutContractPhasesInput>, Prisma.PaymentPlanUncheckedUpdateWithoutContractPhasesInput>;
482
557
  };
558
+ export type PaymentPlanCreateWithoutTenantInput = {
559
+ id?: string;
560
+ name: string;
561
+ description?: string | null;
562
+ isActive?: boolean;
563
+ paymentFrequency: string;
564
+ customFrequencyDays?: number | null;
565
+ numberOfInstallments: number;
566
+ calculateInterestDaily?: boolean;
567
+ gracePeriodDays?: number;
568
+ createdAt?: Date | string;
569
+ updatedAt?: Date | string;
570
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutPaymentPlanInput;
571
+ contractPhases?: Prisma.ContractPhaseCreateNestedManyWithoutPaymentPlanInput;
572
+ };
573
+ export type PaymentPlanUncheckedCreateWithoutTenantInput = {
574
+ id?: string;
575
+ name: string;
576
+ description?: string | null;
577
+ isActive?: boolean;
578
+ paymentFrequency: string;
579
+ customFrequencyDays?: number | null;
580
+ numberOfInstallments: number;
581
+ calculateInterestDaily?: boolean;
582
+ gracePeriodDays?: number;
583
+ createdAt?: Date | string;
584
+ updatedAt?: Date | string;
585
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedCreateNestedManyWithoutPaymentPlanInput;
586
+ contractPhases?: Prisma.ContractPhaseUncheckedCreateNestedManyWithoutPaymentPlanInput;
587
+ };
588
+ export type PaymentPlanCreateOrConnectWithoutTenantInput = {
589
+ where: Prisma.PaymentPlanWhereUniqueInput;
590
+ create: Prisma.XOR<Prisma.PaymentPlanCreateWithoutTenantInput, Prisma.PaymentPlanUncheckedCreateWithoutTenantInput>;
591
+ };
592
+ export type PaymentPlanCreateManyTenantInputEnvelope = {
593
+ data: Prisma.PaymentPlanCreateManyTenantInput | Prisma.PaymentPlanCreateManyTenantInput[];
594
+ skipDuplicates?: boolean;
595
+ };
596
+ export type PaymentPlanUpsertWithWhereUniqueWithoutTenantInput = {
597
+ where: Prisma.PaymentPlanWhereUniqueInput;
598
+ update: Prisma.XOR<Prisma.PaymentPlanUpdateWithoutTenantInput, Prisma.PaymentPlanUncheckedUpdateWithoutTenantInput>;
599
+ create: Prisma.XOR<Prisma.PaymentPlanCreateWithoutTenantInput, Prisma.PaymentPlanUncheckedCreateWithoutTenantInput>;
600
+ };
601
+ export type PaymentPlanUpdateWithWhereUniqueWithoutTenantInput = {
602
+ where: Prisma.PaymentPlanWhereUniqueInput;
603
+ data: Prisma.XOR<Prisma.PaymentPlanUpdateWithoutTenantInput, Prisma.PaymentPlanUncheckedUpdateWithoutTenantInput>;
604
+ };
605
+ export type PaymentPlanUpdateManyWithWhereWithoutTenantInput = {
606
+ where: Prisma.PaymentPlanScalarWhereInput;
607
+ data: Prisma.XOR<Prisma.PaymentPlanUpdateManyMutationInput, Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantInput>;
608
+ };
609
+ export type PaymentPlanScalarWhereInput = {
610
+ AND?: Prisma.PaymentPlanScalarWhereInput | Prisma.PaymentPlanScalarWhereInput[];
611
+ OR?: Prisma.PaymentPlanScalarWhereInput[];
612
+ NOT?: Prisma.PaymentPlanScalarWhereInput | Prisma.PaymentPlanScalarWhereInput[];
613
+ id?: Prisma.StringFilter<"PaymentPlan"> | string;
614
+ tenantId?: Prisma.StringNullableFilter<"PaymentPlan"> | string | null;
615
+ name?: Prisma.StringFilter<"PaymentPlan"> | string;
616
+ description?: Prisma.StringNullableFilter<"PaymentPlan"> | string | null;
617
+ isActive?: Prisma.BoolFilter<"PaymentPlan"> | boolean;
618
+ paymentFrequency?: Prisma.StringFilter<"PaymentPlan"> | string;
619
+ customFrequencyDays?: Prisma.IntNullableFilter<"PaymentPlan"> | number | null;
620
+ numberOfInstallments?: Prisma.IntFilter<"PaymentPlan"> | number;
621
+ calculateInterestDaily?: Prisma.BoolFilter<"PaymentPlan"> | boolean;
622
+ gracePeriodDays?: Prisma.IntFilter<"PaymentPlan"> | number;
623
+ createdAt?: Prisma.DateTimeFilter<"PaymentPlan"> | Date | string;
624
+ updatedAt?: Prisma.DateTimeFilter<"PaymentPlan"> | Date | string;
625
+ };
483
626
  export type PaymentPlanCreateWithoutMethodPhasesInput = {
484
627
  id?: string;
485
628
  name: string;
@@ -492,10 +635,12 @@ export type PaymentPlanCreateWithoutMethodPhasesInput = {
492
635
  gracePeriodDays?: number;
493
636
  createdAt?: Date | string;
494
637
  updatedAt?: Date | string;
638
+ tenant?: Prisma.TenantCreateNestedOneWithoutPaymentPlansInput;
495
639
  contractPhases?: Prisma.ContractPhaseCreateNestedManyWithoutPaymentPlanInput;
496
640
  };
497
641
  export type PaymentPlanUncheckedCreateWithoutMethodPhasesInput = {
498
642
  id?: string;
643
+ tenantId?: string | null;
499
644
  name: string;
500
645
  description?: string | null;
501
646
  isActive?: boolean;
@@ -533,10 +678,12 @@ export type PaymentPlanUpdateWithoutMethodPhasesInput = {
533
678
  gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
534
679
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
535
680
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
681
+ tenant?: Prisma.TenantUpdateOneWithoutPaymentPlansNestedInput;
536
682
  contractPhases?: Prisma.ContractPhaseUpdateManyWithoutPaymentPlanNestedInput;
537
683
  };
538
684
  export type PaymentPlanUncheckedUpdateWithoutMethodPhasesInput = {
539
685
  id?: Prisma.StringFieldUpdateOperationsInput | string;
686
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
540
687
  name?: Prisma.StringFieldUpdateOperationsInput | string;
541
688
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
542
689
  isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -561,10 +708,12 @@ export type PaymentPlanCreateWithoutContractPhasesInput = {
561
708
  gracePeriodDays?: number;
562
709
  createdAt?: Date | string;
563
710
  updatedAt?: Date | string;
711
+ tenant?: Prisma.TenantCreateNestedOneWithoutPaymentPlansInput;
564
712
  methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutPaymentPlanInput;
565
713
  };
566
714
  export type PaymentPlanUncheckedCreateWithoutContractPhasesInput = {
567
715
  id?: string;
716
+ tenantId?: string | null;
568
717
  name: string;
569
718
  description?: string | null;
570
719
  isActive?: boolean;
@@ -602,10 +751,12 @@ export type PaymentPlanUpdateWithoutContractPhasesInput = {
602
751
  gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
603
752
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
604
753
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
754
+ tenant?: Prisma.TenantUpdateOneWithoutPaymentPlansNestedInput;
605
755
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutPaymentPlanNestedInput;
606
756
  };
607
757
  export type PaymentPlanUncheckedUpdateWithoutContractPhasesInput = {
608
758
  id?: Prisma.StringFieldUpdateOperationsInput | string;
759
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
609
760
  name?: Prisma.StringFieldUpdateOperationsInput | string;
610
761
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
611
762
  isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -618,6 +769,62 @@ export type PaymentPlanUncheckedUpdateWithoutContractPhasesInput = {
618
769
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
619
770
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutPaymentPlanNestedInput;
620
771
  };
772
+ export type PaymentPlanCreateManyTenantInput = {
773
+ id?: string;
774
+ name: string;
775
+ description?: string | null;
776
+ isActive?: boolean;
777
+ paymentFrequency: string;
778
+ customFrequencyDays?: number | null;
779
+ numberOfInstallments: number;
780
+ calculateInterestDaily?: boolean;
781
+ gracePeriodDays?: number;
782
+ createdAt?: Date | string;
783
+ updatedAt?: Date | string;
784
+ };
785
+ export type PaymentPlanUpdateWithoutTenantInput = {
786
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
787
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
788
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
789
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
790
+ paymentFrequency?: Prisma.StringFieldUpdateOperationsInput | string;
791
+ customFrequencyDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
792
+ numberOfInstallments?: Prisma.IntFieldUpdateOperationsInput | number;
793
+ calculateInterestDaily?: Prisma.BoolFieldUpdateOperationsInput | boolean;
794
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
795
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
796
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
797
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutPaymentPlanNestedInput;
798
+ contractPhases?: Prisma.ContractPhaseUpdateManyWithoutPaymentPlanNestedInput;
799
+ };
800
+ export type PaymentPlanUncheckedUpdateWithoutTenantInput = {
801
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
802
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
803
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
804
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
805
+ paymentFrequency?: Prisma.StringFieldUpdateOperationsInput | string;
806
+ customFrequencyDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
807
+ numberOfInstallments?: Prisma.IntFieldUpdateOperationsInput | number;
808
+ calculateInterestDaily?: Prisma.BoolFieldUpdateOperationsInput | boolean;
809
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
810
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
811
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
812
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutPaymentPlanNestedInput;
813
+ contractPhases?: Prisma.ContractPhaseUncheckedUpdateManyWithoutPaymentPlanNestedInput;
814
+ };
815
+ export type PaymentPlanUncheckedUpdateManyWithoutTenantInput = {
816
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
817
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
818
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
819
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
820
+ paymentFrequency?: Prisma.StringFieldUpdateOperationsInput | string;
821
+ customFrequencyDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
822
+ numberOfInstallments?: Prisma.IntFieldUpdateOperationsInput | number;
823
+ calculateInterestDaily?: Prisma.BoolFieldUpdateOperationsInput | boolean;
824
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
825
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
826
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
827
+ };
621
828
  /**
622
829
  * Count Type PaymentPlanCountOutputType
623
830
  */
@@ -652,6 +859,7 @@ export type PaymentPlanCountOutputTypeCountContractPhasesArgs<ExtArgs extends ru
652
859
  };
653
860
  export type PaymentPlanSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
654
861
  id?: boolean;
862
+ tenantId?: boolean;
655
863
  name?: boolean;
656
864
  description?: boolean;
657
865
  isActive?: boolean;
@@ -662,12 +870,14 @@ export type PaymentPlanSelect<ExtArgs extends runtime.Types.Extensions.InternalA
662
870
  gracePeriodDays?: boolean;
663
871
  createdAt?: boolean;
664
872
  updatedAt?: boolean;
873
+ tenant?: boolean | Prisma.PaymentPlan$tenantArgs<ExtArgs>;
665
874
  methodPhases?: boolean | Prisma.PaymentPlan$methodPhasesArgs<ExtArgs>;
666
875
  contractPhases?: boolean | Prisma.PaymentPlan$contractPhasesArgs<ExtArgs>;
667
876
  _count?: boolean | Prisma.PaymentPlanCountOutputTypeDefaultArgs<ExtArgs>;
668
877
  }, ExtArgs["result"]["paymentPlan"]>;
669
878
  export type PaymentPlanSelectScalar = {
670
879
  id?: boolean;
880
+ tenantId?: boolean;
671
881
  name?: boolean;
672
882
  description?: boolean;
673
883
  isActive?: boolean;
@@ -679,8 +889,9 @@ export type PaymentPlanSelectScalar = {
679
889
  createdAt?: boolean;
680
890
  updatedAt?: boolean;
681
891
  };
682
- export type PaymentPlanOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "isActive" | "paymentFrequency" | "customFrequencyDays" | "numberOfInstallments" | "calculateInterestDaily" | "gracePeriodDays" | "createdAt" | "updatedAt", ExtArgs["result"]["paymentPlan"]>;
892
+ export type PaymentPlanOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "description" | "isActive" | "paymentFrequency" | "customFrequencyDays" | "numberOfInstallments" | "calculateInterestDaily" | "gracePeriodDays" | "createdAt" | "updatedAt", ExtArgs["result"]["paymentPlan"]>;
683
893
  export type PaymentPlanInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
894
+ tenant?: boolean | Prisma.PaymentPlan$tenantArgs<ExtArgs>;
684
895
  methodPhases?: boolean | Prisma.PaymentPlan$methodPhasesArgs<ExtArgs>;
685
896
  contractPhases?: boolean | Prisma.PaymentPlan$contractPhasesArgs<ExtArgs>;
686
897
  _count?: boolean | Prisma.PaymentPlanCountOutputTypeDefaultArgs<ExtArgs>;
@@ -688,11 +899,13 @@ export type PaymentPlanInclude<ExtArgs extends runtime.Types.Extensions.Internal
688
899
  export type $PaymentPlanPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
689
900
  name: "PaymentPlan";
690
901
  objects: {
902
+ tenant: Prisma.$TenantPayload<ExtArgs> | null;
691
903
  methodPhases: Prisma.$PropertyPaymentMethodPhasePayload<ExtArgs>[];
692
904
  contractPhases: Prisma.$ContractPhasePayload<ExtArgs>[];
693
905
  };
694
906
  scalars: runtime.Types.Extensions.GetPayloadResult<{
695
907
  id: string;
908
+ tenantId: string | null;
696
909
  name: string;
697
910
  description: string | null;
698
911
  isActive: boolean;
@@ -980,6 +1193,7 @@ export interface PaymentPlanDelegate<ExtArgs extends runtime.Types.Extensions.In
980
1193
  */
981
1194
  export interface Prisma__PaymentPlanClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
982
1195
  readonly [Symbol.toStringTag]: "PrismaPromise";
1196
+ tenant<T extends Prisma.PaymentPlan$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentPlan$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
983
1197
  methodPhases<T extends Prisma.PaymentPlan$methodPhasesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentPlan$methodPhasesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyPaymentMethodPhasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
984
1198
  contractPhases<T extends Prisma.PaymentPlan$contractPhasesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentPlan$contractPhasesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractPhasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
985
1199
  /**
@@ -1008,6 +1222,7 @@ export interface Prisma__PaymentPlanClient<T, Null = never, ExtArgs extends runt
1008
1222
  */
1009
1223
  export interface PaymentPlanFieldRefs {
1010
1224
  readonly id: Prisma.FieldRef<"PaymentPlan", 'String'>;
1225
+ readonly tenantId: Prisma.FieldRef<"PaymentPlan", 'String'>;
1011
1226
  readonly name: Prisma.FieldRef<"PaymentPlan", 'String'>;
1012
1227
  readonly description: Prisma.FieldRef<"PaymentPlan", 'String'>;
1013
1228
  readonly isActive: Prisma.FieldRef<"PaymentPlan", 'Boolean'>;
@@ -1345,6 +1560,24 @@ export type PaymentPlanDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.I
1345
1560
  */
1346
1561
  limit?: number;
1347
1562
  };
1563
+ /**
1564
+ * PaymentPlan.tenant
1565
+ */
1566
+ export type PaymentPlan$tenantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1567
+ /**
1568
+ * Select specific fields to fetch from the Tenant
1569
+ */
1570
+ select?: Prisma.TenantSelect<ExtArgs> | null;
1571
+ /**
1572
+ * Omit specific fields from the Tenant
1573
+ */
1574
+ omit?: Prisma.TenantOmit<ExtArgs> | null;
1575
+ /**
1576
+ * Choose, which related nodes to fetch as well
1577
+ */
1578
+ include?: Prisma.TenantInclude<ExtArgs> | null;
1579
+ where?: Prisma.TenantWhereInput;
1580
+ };
1348
1581
  /**
1349
1582
  * PaymentPlan.methodPhases
1350
1583
  */