@valentine-efagene/qshelter-common 2.0.63 → 2.0.65

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -156,6 +156,7 @@ export type TenantWhereInput = {
156
156
  contractTerminations?: Prisma.ContractTerminationListRelationFilter;
157
157
  documentTemplates?: Prisma.DocumentTemplateListRelationFilter;
158
158
  offerLetters?: Prisma.OfferLetterListRelationFilter;
159
+ apiKeys?: Prisma.ApiKeyListRelationFilter;
159
160
  };
160
161
  export type TenantOrderByWithRelationInput = {
161
162
  id?: Prisma.SortOrder;
@@ -174,6 +175,7 @@ export type TenantOrderByWithRelationInput = {
174
175
  contractTerminations?: Prisma.ContractTerminationOrderByRelationAggregateInput;
175
176
  documentTemplates?: Prisma.DocumentTemplateOrderByRelationAggregateInput;
176
177
  offerLetters?: Prisma.OfferLetterOrderByRelationAggregateInput;
178
+ apiKeys?: Prisma.ApiKeyOrderByRelationAggregateInput;
177
179
  _relevance?: Prisma.TenantOrderByRelevanceInput;
178
180
  };
179
181
  export type TenantWhereUniqueInput = Prisma.AtLeast<{
@@ -196,6 +198,7 @@ export type TenantWhereUniqueInput = Prisma.AtLeast<{
196
198
  contractTerminations?: Prisma.ContractTerminationListRelationFilter;
197
199
  documentTemplates?: Prisma.DocumentTemplateListRelationFilter;
198
200
  offerLetters?: Prisma.OfferLetterListRelationFilter;
201
+ apiKeys?: Prisma.ApiKeyListRelationFilter;
199
202
  }, "id" | "subdomain">;
200
203
  export type TenantOrderByWithAggregationInput = {
201
204
  id?: Prisma.SortOrder;
@@ -236,6 +239,7 @@ export type TenantCreateInput = {
236
239
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
237
240
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
238
241
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
242
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
239
243
  };
240
244
  export type TenantUncheckedCreateInput = {
241
245
  id?: string;
@@ -254,6 +258,7 @@ export type TenantUncheckedCreateInput = {
254
258
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
255
259
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
256
260
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
261
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
257
262
  };
258
263
  export type TenantUpdateInput = {
259
264
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -272,6 +277,7 @@ export type TenantUpdateInput = {
272
277
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
273
278
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
274
279
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
280
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
275
281
  };
276
282
  export type TenantUncheckedUpdateInput = {
277
283
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -290,6 +296,7 @@ export type TenantUncheckedUpdateInput = {
290
296
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
291
297
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
292
298
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
299
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
293
300
  };
294
301
  export type TenantCreateManyInput = {
295
302
  id?: string;
@@ -366,6 +373,18 @@ export type TenantUpdateOneWithoutUsersNestedInput = {
366
373
  connect?: Prisma.TenantWhereUniqueInput;
367
374
  update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutUsersInput, Prisma.TenantUpdateWithoutUsersInput>, Prisma.TenantUncheckedUpdateWithoutUsersInput>;
368
375
  };
376
+ export type TenantCreateNestedOneWithoutApiKeysInput = {
377
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutApiKeysInput, Prisma.TenantUncheckedCreateWithoutApiKeysInput>;
378
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutApiKeysInput;
379
+ connect?: Prisma.TenantWhereUniqueInput;
380
+ };
381
+ export type TenantUpdateOneRequiredWithoutApiKeysNestedInput = {
382
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutApiKeysInput, Prisma.TenantUncheckedCreateWithoutApiKeysInput>;
383
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutApiKeysInput;
384
+ upsert?: Prisma.TenantUpsertWithoutApiKeysInput;
385
+ connect?: Prisma.TenantWhereUniqueInput;
386
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutApiKeysInput, Prisma.TenantUpdateWithoutApiKeysInput>, Prisma.TenantUncheckedUpdateWithoutApiKeysInput>;
387
+ };
369
388
  export type TenantCreateNestedOneWithoutPropertiesInput = {
370
389
  create?: Prisma.XOR<Prisma.TenantCreateWithoutPropertiesInput, Prisma.TenantUncheckedCreateWithoutPropertiesInput>;
371
390
  connectOrCreate?: Prisma.TenantCreateOrConnectWithoutPropertiesInput;
@@ -492,6 +511,7 @@ export type TenantCreateWithoutUsersInput = {
492
511
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
493
512
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
494
513
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
514
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
495
515
  };
496
516
  export type TenantUncheckedCreateWithoutUsersInput = {
497
517
  id?: string;
@@ -509,6 +529,7 @@ export type TenantUncheckedCreateWithoutUsersInput = {
509
529
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
510
530
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
511
531
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
532
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
512
533
  };
513
534
  export type TenantCreateOrConnectWithoutUsersInput = {
514
535
  where: Prisma.TenantWhereUniqueInput;
@@ -539,6 +560,7 @@ export type TenantUpdateWithoutUsersInput = {
539
560
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
540
561
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
541
562
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
563
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
542
564
  };
543
565
  export type TenantUncheckedUpdateWithoutUsersInput = {
544
566
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -556,6 +578,92 @@ export type TenantUncheckedUpdateWithoutUsersInput = {
556
578
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
557
579
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
558
580
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
581
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
582
+ };
583
+ export type TenantCreateWithoutApiKeysInput = {
584
+ id?: string;
585
+ name: string;
586
+ subdomain: string;
587
+ isActive?: boolean;
588
+ createdAt?: Date | string;
589
+ updatedAt?: Date | string;
590
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
591
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
592
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
593
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
594
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
595
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
596
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
597
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
598
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
599
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
600
+ };
601
+ export type TenantUncheckedCreateWithoutApiKeysInput = {
602
+ id?: string;
603
+ name: string;
604
+ subdomain: string;
605
+ isActive?: boolean;
606
+ createdAt?: Date | string;
607
+ updatedAt?: Date | string;
608
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
609
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
610
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
611
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
612
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
613
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
614
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
615
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
616
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
617
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
618
+ };
619
+ export type TenantCreateOrConnectWithoutApiKeysInput = {
620
+ where: Prisma.TenantWhereUniqueInput;
621
+ create: Prisma.XOR<Prisma.TenantCreateWithoutApiKeysInput, Prisma.TenantUncheckedCreateWithoutApiKeysInput>;
622
+ };
623
+ export type TenantUpsertWithoutApiKeysInput = {
624
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutApiKeysInput, Prisma.TenantUncheckedUpdateWithoutApiKeysInput>;
625
+ create: Prisma.XOR<Prisma.TenantCreateWithoutApiKeysInput, Prisma.TenantUncheckedCreateWithoutApiKeysInput>;
626
+ where?: Prisma.TenantWhereInput;
627
+ };
628
+ export type TenantUpdateToOneWithWhereWithoutApiKeysInput = {
629
+ where?: Prisma.TenantWhereInput;
630
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutApiKeysInput, Prisma.TenantUncheckedUpdateWithoutApiKeysInput>;
631
+ };
632
+ export type TenantUpdateWithoutApiKeysInput = {
633
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
634
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
635
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
636
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
637
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
638
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
639
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
640
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
641
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
642
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
643
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
644
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
645
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
646
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
647
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
648
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
649
+ };
650
+ export type TenantUncheckedUpdateWithoutApiKeysInput = {
651
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
652
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
653
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
654
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
655
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
656
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
657
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
658
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
659
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
660
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
661
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
662
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
663
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
664
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
665
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
666
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
559
667
  };
560
668
  export type TenantCreateWithoutPropertiesInput = {
561
669
  id?: string;
@@ -573,6 +681,7 @@ export type TenantCreateWithoutPropertiesInput = {
573
681
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
574
682
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
575
683
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
684
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
576
685
  };
577
686
  export type TenantUncheckedCreateWithoutPropertiesInput = {
578
687
  id?: string;
@@ -590,6 +699,7 @@ export type TenantUncheckedCreateWithoutPropertiesInput = {
590
699
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
591
700
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
592
701
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
702
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
593
703
  };
594
704
  export type TenantCreateOrConnectWithoutPropertiesInput = {
595
705
  where: Prisma.TenantWhereUniqueInput;
@@ -620,6 +730,7 @@ export type TenantUpdateWithoutPropertiesInput = {
620
730
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
621
731
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
622
732
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
733
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
623
734
  };
624
735
  export type TenantUncheckedUpdateWithoutPropertiesInput = {
625
736
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -637,6 +748,7 @@ export type TenantUncheckedUpdateWithoutPropertiesInput = {
637
748
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
638
749
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
639
750
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
751
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
640
752
  };
641
753
  export type TenantCreateWithoutPaymentPlansInput = {
642
754
  id?: string;
@@ -654,6 +766,7 @@ export type TenantCreateWithoutPaymentPlansInput = {
654
766
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
655
767
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
656
768
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
769
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
657
770
  };
658
771
  export type TenantUncheckedCreateWithoutPaymentPlansInput = {
659
772
  id?: string;
@@ -671,6 +784,7 @@ export type TenantUncheckedCreateWithoutPaymentPlansInput = {
671
784
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
672
785
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
673
786
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
787
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
674
788
  };
675
789
  export type TenantCreateOrConnectWithoutPaymentPlansInput = {
676
790
  where: Prisma.TenantWhereUniqueInput;
@@ -701,6 +815,7 @@ export type TenantUpdateWithoutPaymentPlansInput = {
701
815
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
702
816
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
703
817
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
818
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
704
819
  };
705
820
  export type TenantUncheckedUpdateWithoutPaymentPlansInput = {
706
821
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -718,6 +833,7 @@ export type TenantUncheckedUpdateWithoutPaymentPlansInput = {
718
833
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
719
834
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
720
835
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
836
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
721
837
  };
722
838
  export type TenantCreateWithoutPaymentMethodsInput = {
723
839
  id?: string;
@@ -735,6 +851,7 @@ export type TenantCreateWithoutPaymentMethodsInput = {
735
851
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
736
852
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
737
853
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
854
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
738
855
  };
739
856
  export type TenantUncheckedCreateWithoutPaymentMethodsInput = {
740
857
  id?: string;
@@ -752,6 +869,7 @@ export type TenantUncheckedCreateWithoutPaymentMethodsInput = {
752
869
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
753
870
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
754
871
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
872
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
755
873
  };
756
874
  export type TenantCreateOrConnectWithoutPaymentMethodsInput = {
757
875
  where: Prisma.TenantWhereUniqueInput;
@@ -782,6 +900,7 @@ export type TenantUpdateWithoutPaymentMethodsInput = {
782
900
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
783
901
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
784
902
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
903
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
785
904
  };
786
905
  export type TenantUncheckedUpdateWithoutPaymentMethodsInput = {
787
906
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -799,6 +918,7 @@ export type TenantUncheckedUpdateWithoutPaymentMethodsInput = {
799
918
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
800
919
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
801
920
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
921
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
802
922
  };
803
923
  export type TenantCreateWithoutContractsInput = {
804
924
  id?: string;
@@ -816,6 +936,7 @@ export type TenantCreateWithoutContractsInput = {
816
936
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
817
937
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
818
938
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
939
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
819
940
  };
820
941
  export type TenantUncheckedCreateWithoutContractsInput = {
821
942
  id?: string;
@@ -833,6 +954,7 @@ export type TenantUncheckedCreateWithoutContractsInput = {
833
954
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
834
955
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
835
956
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
957
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
836
958
  };
837
959
  export type TenantCreateOrConnectWithoutContractsInput = {
838
960
  where: Prisma.TenantWhereUniqueInput;
@@ -863,6 +985,7 @@ export type TenantUpdateWithoutContractsInput = {
863
985
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
864
986
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
865
987
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
988
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
866
989
  };
867
990
  export type TenantUncheckedUpdateWithoutContractsInput = {
868
991
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -880,6 +1003,7 @@ export type TenantUncheckedUpdateWithoutContractsInput = {
880
1003
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
881
1004
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
882
1005
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1006
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
883
1007
  };
884
1008
  export type TenantCreateWithoutDocumentTemplatesInput = {
885
1009
  id?: string;
@@ -897,6 +1021,7 @@ export type TenantCreateWithoutDocumentTemplatesInput = {
897
1021
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
898
1022
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
899
1023
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1024
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
900
1025
  };
901
1026
  export type TenantUncheckedCreateWithoutDocumentTemplatesInput = {
902
1027
  id?: string;
@@ -914,6 +1039,7 @@ export type TenantUncheckedCreateWithoutDocumentTemplatesInput = {
914
1039
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
915
1040
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
916
1041
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1042
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
917
1043
  };
918
1044
  export type TenantCreateOrConnectWithoutDocumentTemplatesInput = {
919
1045
  where: Prisma.TenantWhereUniqueInput;
@@ -944,6 +1070,7 @@ export type TenantUpdateWithoutDocumentTemplatesInput = {
944
1070
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
945
1071
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
946
1072
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1073
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
947
1074
  };
948
1075
  export type TenantUncheckedUpdateWithoutDocumentTemplatesInput = {
949
1076
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -961,6 +1088,7 @@ export type TenantUncheckedUpdateWithoutDocumentTemplatesInput = {
961
1088
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
962
1089
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
963
1090
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1091
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
964
1092
  };
965
1093
  export type TenantCreateWithoutOfferLettersInput = {
966
1094
  id?: string;
@@ -978,6 +1106,7 @@ export type TenantCreateWithoutOfferLettersInput = {
978
1106
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
979
1107
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
980
1108
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1109
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
981
1110
  };
982
1111
  export type TenantUncheckedCreateWithoutOfferLettersInput = {
983
1112
  id?: string;
@@ -995,6 +1124,7 @@ export type TenantUncheckedCreateWithoutOfferLettersInput = {
995
1124
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
996
1125
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
997
1126
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1127
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
998
1128
  };
999
1129
  export type TenantCreateOrConnectWithoutOfferLettersInput = {
1000
1130
  where: Prisma.TenantWhereUniqueInput;
@@ -1025,6 +1155,7 @@ export type TenantUpdateWithoutOfferLettersInput = {
1025
1155
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1026
1156
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1027
1157
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1158
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1028
1159
  };
1029
1160
  export type TenantUncheckedUpdateWithoutOfferLettersInput = {
1030
1161
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1042,6 +1173,7 @@ export type TenantUncheckedUpdateWithoutOfferLettersInput = {
1042
1173
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1043
1174
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1044
1175
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1176
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1045
1177
  };
1046
1178
  export type TenantCreateWithoutContractTerminationsInput = {
1047
1179
  id?: string;
@@ -1059,6 +1191,7 @@ export type TenantCreateWithoutContractTerminationsInput = {
1059
1191
  documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1060
1192
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1061
1193
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1194
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1062
1195
  };
1063
1196
  export type TenantUncheckedCreateWithoutContractTerminationsInput = {
1064
1197
  id?: string;
@@ -1076,6 +1209,7 @@ export type TenantUncheckedCreateWithoutContractTerminationsInput = {
1076
1209
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1077
1210
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1078
1211
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1212
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1079
1213
  };
1080
1214
  export type TenantCreateOrConnectWithoutContractTerminationsInput = {
1081
1215
  where: Prisma.TenantWhereUniqueInput;
@@ -1106,6 +1240,7 @@ export type TenantUpdateWithoutContractTerminationsInput = {
1106
1240
  documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1107
1241
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1108
1242
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1243
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1109
1244
  };
1110
1245
  export type TenantUncheckedUpdateWithoutContractTerminationsInput = {
1111
1246
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1123,6 +1258,7 @@ export type TenantUncheckedUpdateWithoutContractTerminationsInput = {
1123
1258
  documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1124
1259
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1125
1260
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1261
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1126
1262
  };
1127
1263
  export type TenantCreateWithoutPaymentMethodChangeRequestsInput = {
1128
1264
  id?: string;
@@ -1140,6 +1276,7 @@ export type TenantCreateWithoutPaymentMethodChangeRequestsInput = {
1140
1276
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1141
1277
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1142
1278
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1279
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1143
1280
  };
1144
1281
  export type TenantUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
1145
1282
  id?: string;
@@ -1157,6 +1294,7 @@ export type TenantUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
1157
1294
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1158
1295
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1159
1296
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1297
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1160
1298
  };
1161
1299
  export type TenantCreateOrConnectWithoutPaymentMethodChangeRequestsInput = {
1162
1300
  where: Prisma.TenantWhereUniqueInput;
@@ -1187,6 +1325,7 @@ export type TenantUpdateWithoutPaymentMethodChangeRequestsInput = {
1187
1325
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1188
1326
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1189
1327
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1328
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1190
1329
  };
1191
1330
  export type TenantUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
1192
1331
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1204,6 +1343,7 @@ export type TenantUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
1204
1343
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1205
1344
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1206
1345
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1346
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1207
1347
  };
1208
1348
  export type TenantCreateWithoutDocumentRequirementRulesInput = {
1209
1349
  id?: string;
@@ -1221,6 +1361,7 @@ export type TenantCreateWithoutDocumentRequirementRulesInput = {
1221
1361
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1222
1362
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1223
1363
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1364
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1224
1365
  };
1225
1366
  export type TenantUncheckedCreateWithoutDocumentRequirementRulesInput = {
1226
1367
  id?: string;
@@ -1238,6 +1379,7 @@ export type TenantUncheckedCreateWithoutDocumentRequirementRulesInput = {
1238
1379
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1239
1380
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1240
1381
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1382
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1241
1383
  };
1242
1384
  export type TenantCreateOrConnectWithoutDocumentRequirementRulesInput = {
1243
1385
  where: Prisma.TenantWhereUniqueInput;
@@ -1268,6 +1410,7 @@ export type TenantUpdateWithoutDocumentRequirementRulesInput = {
1268
1410
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1269
1411
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1270
1412
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1413
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1271
1414
  };
1272
1415
  export type TenantUncheckedUpdateWithoutDocumentRequirementRulesInput = {
1273
1416
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1285,6 +1428,7 @@ export type TenantUncheckedUpdateWithoutDocumentRequirementRulesInput = {
1285
1428
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1286
1429
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1287
1430
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1431
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1288
1432
  };
1289
1433
  /**
1290
1434
  * Count Type TenantCountOutputType
@@ -1300,6 +1444,7 @@ export type TenantCountOutputType = {
1300
1444
  contractTerminations: number;
1301
1445
  documentTemplates: number;
1302
1446
  offerLetters: number;
1447
+ apiKeys: number;
1303
1448
  };
1304
1449
  export type TenantCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1305
1450
  users?: boolean | TenantCountOutputTypeCountUsersArgs;
@@ -1312,6 +1457,7 @@ export type TenantCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions
1312
1457
  contractTerminations?: boolean | TenantCountOutputTypeCountContractTerminationsArgs;
1313
1458
  documentTemplates?: boolean | TenantCountOutputTypeCountDocumentTemplatesArgs;
1314
1459
  offerLetters?: boolean | TenantCountOutputTypeCountOfferLettersArgs;
1460
+ apiKeys?: boolean | TenantCountOutputTypeCountApiKeysArgs;
1315
1461
  };
1316
1462
  /**
1317
1463
  * TenantCountOutputType without action
@@ -1382,6 +1528,12 @@ export type TenantCountOutputTypeCountDocumentTemplatesArgs<ExtArgs extends runt
1382
1528
  export type TenantCountOutputTypeCountOfferLettersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1383
1529
  where?: Prisma.OfferLetterWhereInput;
1384
1530
  };
1531
+ /**
1532
+ * TenantCountOutputType without action
1533
+ */
1534
+ export type TenantCountOutputTypeCountApiKeysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1535
+ where?: Prisma.ApiKeyWhereInput;
1536
+ };
1385
1537
  export type TenantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1386
1538
  id?: boolean;
1387
1539
  name?: boolean;
@@ -1399,6 +1551,7 @@ export type TenantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1399
1551
  contractTerminations?: boolean | Prisma.Tenant$contractTerminationsArgs<ExtArgs>;
1400
1552
  documentTemplates?: boolean | Prisma.Tenant$documentTemplatesArgs<ExtArgs>;
1401
1553
  offerLetters?: boolean | Prisma.Tenant$offerLettersArgs<ExtArgs>;
1554
+ apiKeys?: boolean | Prisma.Tenant$apiKeysArgs<ExtArgs>;
1402
1555
  _count?: boolean | Prisma.TenantCountOutputTypeDefaultArgs<ExtArgs>;
1403
1556
  }, ExtArgs["result"]["tenant"]>;
1404
1557
  export type TenantSelectScalar = {
@@ -1421,6 +1574,7 @@ export type TenantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
1421
1574
  contractTerminations?: boolean | Prisma.Tenant$contractTerminationsArgs<ExtArgs>;
1422
1575
  documentTemplates?: boolean | Prisma.Tenant$documentTemplatesArgs<ExtArgs>;
1423
1576
  offerLetters?: boolean | Prisma.Tenant$offerLettersArgs<ExtArgs>;
1577
+ apiKeys?: boolean | Prisma.Tenant$apiKeysArgs<ExtArgs>;
1424
1578
  _count?: boolean | Prisma.TenantCountOutputTypeDefaultArgs<ExtArgs>;
1425
1579
  };
1426
1580
  export type $TenantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1436,6 +1590,7 @@ export type $TenantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
1436
1590
  contractTerminations: Prisma.$ContractTerminationPayload<ExtArgs>[];
1437
1591
  documentTemplates: Prisma.$DocumentTemplatePayload<ExtArgs>[];
1438
1592
  offerLetters: Prisma.$OfferLetterPayload<ExtArgs>[];
1593
+ apiKeys: Prisma.$ApiKeyPayload<ExtArgs>[];
1439
1594
  };
1440
1595
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1441
1596
  id: string;
@@ -1731,6 +1886,7 @@ export interface Prisma__TenantClient<T, Null = never, ExtArgs extends runtime.T
1731
1886
  contractTerminations<T extends Prisma.Tenant$contractTerminationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$contractTerminationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContractTerminationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1732
1887
  documentTemplates<T extends Prisma.Tenant$documentTemplatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$documentTemplatesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1733
1888
  offerLetters<T extends Prisma.Tenant$offerLettersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$offerLettersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1889
+ apiKeys<T extends Prisma.Tenant$apiKeysArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$apiKeysArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1734
1890
  /**
1735
1891
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1736
1892
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2319,6 +2475,29 @@ export type Tenant$offerLettersArgs<ExtArgs extends runtime.Types.Extensions.Int
2319
2475
  skip?: number;
2320
2476
  distinct?: Prisma.OfferLetterScalarFieldEnum | Prisma.OfferLetterScalarFieldEnum[];
2321
2477
  };
2478
+ /**
2479
+ * Tenant.apiKeys
2480
+ */
2481
+ export type Tenant$apiKeysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2482
+ /**
2483
+ * Select specific fields to fetch from the ApiKey
2484
+ */
2485
+ select?: Prisma.ApiKeySelect<ExtArgs> | null;
2486
+ /**
2487
+ * Omit specific fields from the ApiKey
2488
+ */
2489
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null;
2490
+ /**
2491
+ * Choose, which related nodes to fetch as well
2492
+ */
2493
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null;
2494
+ where?: Prisma.ApiKeyWhereInput;
2495
+ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[];
2496
+ cursor?: Prisma.ApiKeyWhereUniqueInput;
2497
+ take?: number;
2498
+ skip?: number;
2499
+ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[];
2500
+ };
2322
2501
  /**
2323
2502
  * Tenant without action
2324
2503
  */
@@ -1,4 +1,5 @@
1
1
  export * from './Amenity';
2
+ export * from './ApiKey';
2
3
  export * from './Contract';
3
4
  export * from './ContractDocument';
4
5
  export * from './ContractEvent';
@@ -1,4 +1,5 @@
1
1
  export * from './Amenity';
2
+ export * from './ApiKey';
2
3
  export * from './Contract';
3
4
  export * from './ContractDocument';
4
5
  export * from './ContractEvent';
@@ -4,6 +4,7 @@ export type * from './models/Permission.js';
4
4
  export type * from './models/RolePermission.js';
5
5
  export type * from './models/UserRole.js';
6
6
  export type * from './models/Tenant.js';
7
+ export type * from './models/ApiKey.js';
7
8
  export type * from './models/RefreshToken.js';
8
9
  export type * from './models/PasswordReset.js';
9
10
  export type * from './models/UserSuspension.js';
@@ -1,3 +1,2 @@
1
- export * from './permission-cache';
2
1
  export * from './policy-evaluator';
3
2
  export * from './types';
@@ -1,3 +1,2 @@
1
- export * from './permission-cache';
2
1
  export * from './policy-evaluator';
3
2
  export * from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valentine-efagene/qshelter-common",
3
- "version": "2.0.63",
3
+ "version": "2.0.65",
4
4
  "description": "Shared database schemas and utilities for QShelter services",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -0,0 +1,26 @@
1
+ -- CreateTable
2
+ CREATE TABLE `api_keys` (
3
+ `id` VARCHAR(191) NOT NULL,
4
+ `tenantId` VARCHAR(191) NOT NULL,
5
+ `name` VARCHAR(191) NOT NULL,
6
+ `description` TEXT NULL,
7
+ `provider` VARCHAR(191) NOT NULL,
8
+ `secretRef` VARCHAR(191) NOT NULL,
9
+ `scopes` JSON NOT NULL,
10
+ `enabled` BOOLEAN NOT NULL DEFAULT true,
11
+ `expiresAt` DATETIME(3) NULL,
12
+ `lastUsedAt` DATETIME(3) NULL,
13
+ `revokedAt` DATETIME(3) NULL,
14
+ `revokedBy` VARCHAR(191) NULL,
15
+ `createdBy` VARCHAR(191) NULL,
16
+ `createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
17
+ `updatedAt` DATETIME(3) NOT NULL,
18
+
19
+ INDEX `api_keys_tenantId_idx`(`tenantId`),
20
+ INDEX `api_keys_provider_idx`(`provider`),
21
+ INDEX `api_keys_enabled_idx`(`enabled`),
22
+ PRIMARY KEY (`id`)
23
+ ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
24
+
25
+ -- AddForeignKey
26
+ ALTER TABLE `api_keys` ADD CONSTRAINT `api_keys_tenantId_fkey` FOREIGN KEY (`tenantId`) REFERENCES `tenants`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;