@virtality/schema 0.0.1-alpha0.2.9 → 0.0.1-alpha0.3.1

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.
@@ -218,6 +218,7 @@ export type UserWhereInput = {
218
218
  banReason?: Prisma.StringNullableFilter<"User"> | string | null;
219
219
  banned?: Prisma.BoolNullableFilter<"User"> | boolean | null;
220
220
  role?: Prisma.StringNullableFilter<"User"> | string | null;
221
+ testerCode?: Prisma.XOR<Prisma.ReferralCodeNullableScalarRelationFilter, Prisma.ReferralCodeWhereInput> | null;
221
222
  accounts?: Prisma.AccountListRelationFilter;
222
223
  devices?: Prisma.DeviceListRelationFilter;
223
224
  invitations?: Prisma.InvitationListRelationFilter;
@@ -242,6 +243,7 @@ export type UserOrderByWithRelationInput = {
242
243
  banReason?: Prisma.SortOrderInput | Prisma.SortOrder;
243
244
  banned?: Prisma.SortOrderInput | Prisma.SortOrder;
244
245
  role?: Prisma.SortOrderInput | Prisma.SortOrder;
246
+ testerCode?: Prisma.ReferralCodeOrderByWithRelationInput;
245
247
  accounts?: Prisma.AccountOrderByRelationAggregateInput;
246
248
  devices?: Prisma.DeviceOrderByRelationAggregateInput;
247
249
  invitations?: Prisma.InvitationOrderByRelationAggregateInput;
@@ -269,6 +271,7 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
269
271
  banReason?: Prisma.StringNullableFilter<"User"> | string | null;
270
272
  banned?: Prisma.BoolNullableFilter<"User"> | boolean | null;
271
273
  role?: Prisma.StringNullableFilter<"User"> | string | null;
274
+ testerCode?: Prisma.XOR<Prisma.ReferralCodeNullableScalarRelationFilter, Prisma.ReferralCodeWhereInput> | null;
272
275
  accounts?: Prisma.AccountListRelationFilter;
273
276
  devices?: Prisma.DeviceListRelationFilter;
274
277
  invitations?: Prisma.InvitationListRelationFilter;
@@ -333,6 +336,7 @@ export type UserCreateInput = {
333
336
  banReason?: string | null;
334
337
  banned?: boolean | null;
335
338
  role?: string | null;
339
+ testerCode?: Prisma.ReferralCodeCreateNestedOneWithoutUsedByUserInput;
336
340
  accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
337
341
  devices?: Prisma.DeviceCreateNestedManyWithoutUserInput;
338
342
  invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
@@ -357,6 +361,7 @@ export type UserUncheckedCreateInput = {
357
361
  banReason?: string | null;
358
362
  banned?: boolean | null;
359
363
  role?: string | null;
364
+ testerCode?: Prisma.ReferralCodeUncheckedCreateNestedOneWithoutUsedByUserInput;
360
365
  accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput;
361
366
  devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutUserInput;
362
367
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
@@ -381,6 +386,7 @@ export type UserUpdateInput = {
381
386
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
382
387
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
383
388
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
389
+ testerCode?: Prisma.ReferralCodeUpdateOneWithoutUsedByUserNestedInput;
384
390
  accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput;
385
391
  devices?: Prisma.DeviceUpdateManyWithoutUserNestedInput;
386
392
  invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
@@ -405,6 +411,7 @@ export type UserUncheckedUpdateInput = {
405
411
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
406
412
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
407
413
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
414
+ testerCode?: Prisma.ReferralCodeUncheckedUpdateOneWithoutUsedByUserNestedInput;
408
415
  accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput;
409
416
  devices?: Prisma.DeviceUncheckedUpdateManyWithoutUserNestedInput;
410
417
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
@@ -523,6 +530,24 @@ export type UserNullableScalarRelationFilter = {
523
530
  is?: Prisma.UserWhereInput | null;
524
531
  isNot?: Prisma.UserWhereInput | null;
525
532
  };
533
+ export type UserCreateNestedOneWithoutDevicesInput = {
534
+ create?: Prisma.XOR<Prisma.UserCreateWithoutDevicesInput, Prisma.UserUncheckedCreateWithoutDevicesInput>;
535
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutDevicesInput;
536
+ connect?: Prisma.UserWhereUniqueInput;
537
+ };
538
+ export type UserUpdateOneRequiredWithoutDevicesNestedInput = {
539
+ create?: Prisma.XOR<Prisma.UserCreateWithoutDevicesInput, Prisma.UserUncheckedCreateWithoutDevicesInput>;
540
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutDevicesInput;
541
+ upsert?: Prisma.UserUpsertWithoutDevicesInput;
542
+ connect?: Prisma.UserWhereUniqueInput;
543
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutDevicesInput, Prisma.UserUpdateWithoutDevicesInput>, Prisma.UserUncheckedUpdateWithoutDevicesInput>;
544
+ };
545
+ export type BoolFieldUpdateOperationsInput = {
546
+ set?: boolean;
547
+ };
548
+ export type NullableBoolFieldUpdateOperationsInput = {
549
+ set?: boolean | null;
550
+ };
526
551
  export type UserCreateNestedOneWithoutAccountsInput = {
527
552
  create?: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>;
528
553
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput;
@@ -535,12 +560,6 @@ export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
535
560
  connect?: Prisma.UserWhereUniqueInput;
536
561
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutAccountsInput, Prisma.UserUpdateWithoutAccountsInput>, Prisma.UserUncheckedUpdateWithoutAccountsInput>;
537
562
  };
538
- export type BoolFieldUpdateOperationsInput = {
539
- set?: boolean;
540
- };
541
- export type NullableBoolFieldUpdateOperationsInput = {
542
- set?: boolean | null;
543
- };
544
563
  export type UserCreateNestedOneWithoutSessionsInput = {
545
564
  create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>;
546
565
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput;
@@ -553,6 +572,34 @@ export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
553
572
  connect?: Prisma.UserWhereUniqueInput;
554
573
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSessionsInput, Prisma.UserUpdateWithoutSessionsInput>, Prisma.UserUncheckedUpdateWithoutSessionsInput>;
555
574
  };
575
+ export type UserCreateNestedOneWithoutTesterCodeInput = {
576
+ create?: Prisma.XOR<Prisma.UserCreateWithoutTesterCodeInput, Prisma.UserUncheckedCreateWithoutTesterCodeInput>;
577
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutTesterCodeInput;
578
+ connect?: Prisma.UserWhereUniqueInput;
579
+ };
580
+ export type UserUpdateOneWithoutTesterCodeNestedInput = {
581
+ create?: Prisma.XOR<Prisma.UserCreateWithoutTesterCodeInput, Prisma.UserUncheckedCreateWithoutTesterCodeInput>;
582
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutTesterCodeInput;
583
+ upsert?: Prisma.UserUpsertWithoutTesterCodeInput;
584
+ disconnect?: Prisma.UserWhereInput | boolean;
585
+ delete?: Prisma.UserWhereInput | boolean;
586
+ connect?: Prisma.UserWhereUniqueInput;
587
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutTesterCodeInput, Prisma.UserUpdateWithoutTesterCodeInput>, Prisma.UserUncheckedUpdateWithoutTesterCodeInput>;
588
+ };
589
+ export type UserCreateNestedOneWithoutUserPresetInput = {
590
+ create?: Prisma.XOR<Prisma.UserCreateWithoutUserPresetInput, Prisma.UserUncheckedCreateWithoutUserPresetInput>;
591
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserPresetInput;
592
+ connect?: Prisma.UserWhereUniqueInput;
593
+ };
594
+ export type UserUpdateOneWithoutUserPresetNestedInput = {
595
+ create?: Prisma.XOR<Prisma.UserCreateWithoutUserPresetInput, Prisma.UserUncheckedCreateWithoutUserPresetInput>;
596
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserPresetInput;
597
+ upsert?: Prisma.UserUpsertWithoutUserPresetInput;
598
+ disconnect?: Prisma.UserWhereInput | boolean;
599
+ delete?: Prisma.UserWhereInput | boolean;
600
+ connect?: Prisma.UserWhereUniqueInput;
601
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutUserPresetInput, Prisma.UserUpdateWithoutUserPresetInput>, Prisma.UserUncheckedUpdateWithoutUserPresetInput>;
602
+ };
556
603
  export type UserCreateNestedOneWithoutMembersInput = {
557
604
  create?: Prisma.XOR<Prisma.UserCreateWithoutMembersInput, Prisma.UserUncheckedCreateWithoutMembersInput>;
558
605
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutMembersInput;
@@ -577,32 +624,6 @@ export type UserUpdateOneRequiredWithoutInvitationsNestedInput = {
577
624
  connect?: Prisma.UserWhereUniqueInput;
578
625
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutInvitationsInput, Prisma.UserUpdateWithoutInvitationsInput>, Prisma.UserUncheckedUpdateWithoutInvitationsInput>;
579
626
  };
580
- export type UserCreateNestedOneWithoutDevicesInput = {
581
- create?: Prisma.XOR<Prisma.UserCreateWithoutDevicesInput, Prisma.UserUncheckedCreateWithoutDevicesInput>;
582
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutDevicesInput;
583
- connect?: Prisma.UserWhereUniqueInput;
584
- };
585
- export type UserUpdateOneRequiredWithoutDevicesNestedInput = {
586
- create?: Prisma.XOR<Prisma.UserCreateWithoutDevicesInput, Prisma.UserUncheckedCreateWithoutDevicesInput>;
587
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutDevicesInput;
588
- upsert?: Prisma.UserUpsertWithoutDevicesInput;
589
- connect?: Prisma.UserWhereUniqueInput;
590
- update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutDevicesInput, Prisma.UserUpdateWithoutDevicesInput>, Prisma.UserUncheckedUpdateWithoutDevicesInput>;
591
- };
592
- export type UserCreateNestedOneWithoutUserPresetInput = {
593
- create?: Prisma.XOR<Prisma.UserCreateWithoutUserPresetInput, Prisma.UserUncheckedCreateWithoutUserPresetInput>;
594
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserPresetInput;
595
- connect?: Prisma.UserWhereUniqueInput;
596
- };
597
- export type UserUpdateOneWithoutUserPresetNestedInput = {
598
- create?: Prisma.XOR<Prisma.UserCreateWithoutUserPresetInput, Prisma.UserUncheckedCreateWithoutUserPresetInput>;
599
- connectOrCreate?: Prisma.UserCreateOrConnectWithoutUserPresetInput;
600
- upsert?: Prisma.UserUpsertWithoutUserPresetInput;
601
- disconnect?: Prisma.UserWhereInput | boolean;
602
- delete?: Prisma.UserWhereInput | boolean;
603
- connect?: Prisma.UserWhereUniqueInput;
604
- update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutUserPresetInput, Prisma.UserUpdateWithoutUserPresetInput>, Prisma.UserUncheckedUpdateWithoutUserPresetInput>;
605
- };
606
627
  export type UserCreateNestedOneWithoutPatientProgramInput = {
607
628
  create?: Prisma.XOR<Prisma.UserCreateWithoutPatientProgramInput, Prisma.UserUncheckedCreateWithoutPatientProgramInput>;
608
629
  connectOrCreate?: Prisma.UserCreateOrConnectWithoutPatientProgramInput;
@@ -615,6 +636,115 @@ export type UserUpdateOneRequiredWithoutPatientProgramNestedInput = {
615
636
  connect?: Prisma.UserWhereUniqueInput;
616
637
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutPatientProgramInput, Prisma.UserUpdateWithoutPatientProgramInput>, Prisma.UserUncheckedUpdateWithoutPatientProgramInput>;
617
638
  };
639
+ export type UserCreateWithoutDevicesInput = {
640
+ id: string;
641
+ name: string;
642
+ email: string;
643
+ emailVerified: boolean;
644
+ image?: string | null;
645
+ createdAt: Date | string;
646
+ updatedAt: Date | string;
647
+ deletedAt?: Date | string | null;
648
+ phoneNumber?: string | null;
649
+ phoneNumberVerified?: boolean | null;
650
+ stripeCustomerId?: string | null;
651
+ banExpires?: Date | string | null;
652
+ banReason?: string | null;
653
+ banned?: boolean | null;
654
+ role?: string | null;
655
+ testerCode?: Prisma.ReferralCodeCreateNestedOneWithoutUsedByUserInput;
656
+ accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
657
+ invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
658
+ members?: Prisma.MemberCreateNestedManyWithoutUserInput;
659
+ patientProgram?: Prisma.PatientProgramCreateNestedManyWithoutUserInput;
660
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
661
+ userPreset?: Prisma.PresetCreateNestedManyWithoutUserInput;
662
+ };
663
+ export type UserUncheckedCreateWithoutDevicesInput = {
664
+ id: string;
665
+ name: string;
666
+ email: string;
667
+ emailVerified: boolean;
668
+ image?: string | null;
669
+ createdAt: Date | string;
670
+ updatedAt: Date | string;
671
+ deletedAt?: Date | string | null;
672
+ phoneNumber?: string | null;
673
+ phoneNumberVerified?: boolean | null;
674
+ stripeCustomerId?: string | null;
675
+ banExpires?: Date | string | null;
676
+ banReason?: string | null;
677
+ banned?: boolean | null;
678
+ role?: string | null;
679
+ testerCode?: Prisma.ReferralCodeUncheckedCreateNestedOneWithoutUsedByUserInput;
680
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput;
681
+ invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
682
+ members?: Prisma.MemberUncheckedCreateNestedManyWithoutUserInput;
683
+ patientProgram?: Prisma.PatientProgramUncheckedCreateNestedManyWithoutUserInput;
684
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
685
+ userPreset?: Prisma.PresetUncheckedCreateNestedManyWithoutUserInput;
686
+ };
687
+ export type UserCreateOrConnectWithoutDevicesInput = {
688
+ where: Prisma.UserWhereUniqueInput;
689
+ create: Prisma.XOR<Prisma.UserCreateWithoutDevicesInput, Prisma.UserUncheckedCreateWithoutDevicesInput>;
690
+ };
691
+ export type UserUpsertWithoutDevicesInput = {
692
+ update: Prisma.XOR<Prisma.UserUpdateWithoutDevicesInput, Prisma.UserUncheckedUpdateWithoutDevicesInput>;
693
+ create: Prisma.XOR<Prisma.UserCreateWithoutDevicesInput, Prisma.UserUncheckedCreateWithoutDevicesInput>;
694
+ where?: Prisma.UserWhereInput;
695
+ };
696
+ export type UserUpdateToOneWithWhereWithoutDevicesInput = {
697
+ where?: Prisma.UserWhereInput;
698
+ data: Prisma.XOR<Prisma.UserUpdateWithoutDevicesInput, Prisma.UserUncheckedUpdateWithoutDevicesInput>;
699
+ };
700
+ export type UserUpdateWithoutDevicesInput = {
701
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
702
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
703
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
704
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
705
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
706
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
707
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
708
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
709
+ phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
710
+ phoneNumberVerified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
711
+ stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
712
+ banExpires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
713
+ banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
714
+ banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
715
+ role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
716
+ testerCode?: Prisma.ReferralCodeUpdateOneWithoutUsedByUserNestedInput;
717
+ accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput;
718
+ invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
719
+ members?: Prisma.MemberUpdateManyWithoutUserNestedInput;
720
+ patientProgram?: Prisma.PatientProgramUpdateManyWithoutUserNestedInput;
721
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
722
+ userPreset?: Prisma.PresetUpdateManyWithoutUserNestedInput;
723
+ };
724
+ export type UserUncheckedUpdateWithoutDevicesInput = {
725
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
726
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
727
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
728
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
729
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
730
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
731
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
732
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
733
+ phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
734
+ phoneNumberVerified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
735
+ stripeCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
736
+ banExpires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
737
+ banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
738
+ banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
739
+ role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
740
+ testerCode?: Prisma.ReferralCodeUncheckedUpdateOneWithoutUsedByUserNestedInput;
741
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput;
742
+ invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
743
+ members?: Prisma.MemberUncheckedUpdateManyWithoutUserNestedInput;
744
+ patientProgram?: Prisma.PatientProgramUncheckedUpdateManyWithoutUserNestedInput;
745
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
746
+ userPreset?: Prisma.PresetUncheckedUpdateManyWithoutUserNestedInput;
747
+ };
618
748
  export type UserCreateWithoutAccountsInput = {
619
749
  id: string;
620
750
  name: string;
@@ -631,6 +761,7 @@ export type UserCreateWithoutAccountsInput = {
631
761
  banReason?: string | null;
632
762
  banned?: boolean | null;
633
763
  role?: string | null;
764
+ testerCode?: Prisma.ReferralCodeCreateNestedOneWithoutUsedByUserInput;
634
765
  devices?: Prisma.DeviceCreateNestedManyWithoutUserInput;
635
766
  invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
636
767
  members?: Prisma.MemberCreateNestedManyWithoutUserInput;
@@ -654,6 +785,7 @@ export type UserUncheckedCreateWithoutAccountsInput = {
654
785
  banReason?: string | null;
655
786
  banned?: boolean | null;
656
787
  role?: string | null;
788
+ testerCode?: Prisma.ReferralCodeUncheckedCreateNestedOneWithoutUsedByUserInput;
657
789
  devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutUserInput;
658
790
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
659
791
  members?: Prisma.MemberUncheckedCreateNestedManyWithoutUserInput;
@@ -690,6 +822,7 @@ export type UserUpdateWithoutAccountsInput = {
690
822
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
691
823
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
692
824
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
825
+ testerCode?: Prisma.ReferralCodeUpdateOneWithoutUsedByUserNestedInput;
693
826
  devices?: Prisma.DeviceUpdateManyWithoutUserNestedInput;
694
827
  invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
695
828
  members?: Prisma.MemberUpdateManyWithoutUserNestedInput;
@@ -713,6 +846,7 @@ export type UserUncheckedUpdateWithoutAccountsInput = {
713
846
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
714
847
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
715
848
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
849
+ testerCode?: Prisma.ReferralCodeUncheckedUpdateOneWithoutUsedByUserNestedInput;
716
850
  devices?: Prisma.DeviceUncheckedUpdateManyWithoutUserNestedInput;
717
851
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
718
852
  members?: Prisma.MemberUncheckedUpdateManyWithoutUserNestedInput;
@@ -736,6 +870,7 @@ export type UserCreateWithoutSessionsInput = {
736
870
  banReason?: string | null;
737
871
  banned?: boolean | null;
738
872
  role?: string | null;
873
+ testerCode?: Prisma.ReferralCodeCreateNestedOneWithoutUsedByUserInput;
739
874
  accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
740
875
  devices?: Prisma.DeviceCreateNestedManyWithoutUserInput;
741
876
  invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
@@ -759,6 +894,7 @@ export type UserUncheckedCreateWithoutSessionsInput = {
759
894
  banReason?: string | null;
760
895
  banned?: boolean | null;
761
896
  role?: string | null;
897
+ testerCode?: Prisma.ReferralCodeUncheckedCreateNestedOneWithoutUsedByUserInput;
762
898
  accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput;
763
899
  devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutUserInput;
764
900
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
@@ -795,6 +931,7 @@ export type UserUpdateWithoutSessionsInput = {
795
931
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
796
932
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
797
933
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
934
+ testerCode?: Prisma.ReferralCodeUpdateOneWithoutUsedByUserNestedInput;
798
935
  accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput;
799
936
  devices?: Prisma.DeviceUpdateManyWithoutUserNestedInput;
800
937
  invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
@@ -818,6 +955,7 @@ export type UserUncheckedUpdateWithoutSessionsInput = {
818
955
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
819
956
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
820
957
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
958
+ testerCode?: Prisma.ReferralCodeUncheckedUpdateOneWithoutUsedByUserNestedInput;
821
959
  accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput;
822
960
  devices?: Prisma.DeviceUncheckedUpdateManyWithoutUserNestedInput;
823
961
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
@@ -825,7 +963,7 @@ export type UserUncheckedUpdateWithoutSessionsInput = {
825
963
  patientProgram?: Prisma.PatientProgramUncheckedUpdateManyWithoutUserNestedInput;
826
964
  userPreset?: Prisma.PresetUncheckedUpdateManyWithoutUserNestedInput;
827
965
  };
828
- export type UserCreateWithoutMembersInput = {
966
+ export type UserCreateWithoutTesterCodeInput = {
829
967
  id: string;
830
968
  name: string;
831
969
  email: string;
@@ -844,11 +982,12 @@ export type UserCreateWithoutMembersInput = {
844
982
  accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
845
983
  devices?: Prisma.DeviceCreateNestedManyWithoutUserInput;
846
984
  invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
985
+ members?: Prisma.MemberCreateNestedManyWithoutUserInput;
847
986
  patientProgram?: Prisma.PatientProgramCreateNestedManyWithoutUserInput;
848
987
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
849
988
  userPreset?: Prisma.PresetCreateNestedManyWithoutUserInput;
850
989
  };
851
- export type UserUncheckedCreateWithoutMembersInput = {
990
+ export type UserUncheckedCreateWithoutTesterCodeInput = {
852
991
  id: string;
853
992
  name: string;
854
993
  email: string;
@@ -867,24 +1006,25 @@ export type UserUncheckedCreateWithoutMembersInput = {
867
1006
  accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput;
868
1007
  devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutUserInput;
869
1008
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
1009
+ members?: Prisma.MemberUncheckedCreateNestedManyWithoutUserInput;
870
1010
  patientProgram?: Prisma.PatientProgramUncheckedCreateNestedManyWithoutUserInput;
871
1011
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
872
1012
  userPreset?: Prisma.PresetUncheckedCreateNestedManyWithoutUserInput;
873
1013
  };
874
- export type UserCreateOrConnectWithoutMembersInput = {
1014
+ export type UserCreateOrConnectWithoutTesterCodeInput = {
875
1015
  where: Prisma.UserWhereUniqueInput;
876
- create: Prisma.XOR<Prisma.UserCreateWithoutMembersInput, Prisma.UserUncheckedCreateWithoutMembersInput>;
1016
+ create: Prisma.XOR<Prisma.UserCreateWithoutTesterCodeInput, Prisma.UserUncheckedCreateWithoutTesterCodeInput>;
877
1017
  };
878
- export type UserUpsertWithoutMembersInput = {
879
- update: Prisma.XOR<Prisma.UserUpdateWithoutMembersInput, Prisma.UserUncheckedUpdateWithoutMembersInput>;
880
- create: Prisma.XOR<Prisma.UserCreateWithoutMembersInput, Prisma.UserUncheckedCreateWithoutMembersInput>;
1018
+ export type UserUpsertWithoutTesterCodeInput = {
1019
+ update: Prisma.XOR<Prisma.UserUpdateWithoutTesterCodeInput, Prisma.UserUncheckedUpdateWithoutTesterCodeInput>;
1020
+ create: Prisma.XOR<Prisma.UserCreateWithoutTesterCodeInput, Prisma.UserUncheckedCreateWithoutTesterCodeInput>;
881
1021
  where?: Prisma.UserWhereInput;
882
1022
  };
883
- export type UserUpdateToOneWithWhereWithoutMembersInput = {
1023
+ export type UserUpdateToOneWithWhereWithoutTesterCodeInput = {
884
1024
  where?: Prisma.UserWhereInput;
885
- data: Prisma.XOR<Prisma.UserUpdateWithoutMembersInput, Prisma.UserUncheckedUpdateWithoutMembersInput>;
1025
+ data: Prisma.XOR<Prisma.UserUpdateWithoutTesterCodeInput, Prisma.UserUncheckedUpdateWithoutTesterCodeInput>;
886
1026
  };
887
- export type UserUpdateWithoutMembersInput = {
1027
+ export type UserUpdateWithoutTesterCodeInput = {
888
1028
  id?: Prisma.StringFieldUpdateOperationsInput | string;
889
1029
  name?: Prisma.StringFieldUpdateOperationsInput | string;
890
1030
  email?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -903,11 +1043,12 @@ export type UserUpdateWithoutMembersInput = {
903
1043
  accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput;
904
1044
  devices?: Prisma.DeviceUpdateManyWithoutUserNestedInput;
905
1045
  invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
1046
+ members?: Prisma.MemberUpdateManyWithoutUserNestedInput;
906
1047
  patientProgram?: Prisma.PatientProgramUpdateManyWithoutUserNestedInput;
907
1048
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
908
1049
  userPreset?: Prisma.PresetUpdateManyWithoutUserNestedInput;
909
1050
  };
910
- export type UserUncheckedUpdateWithoutMembersInput = {
1051
+ export type UserUncheckedUpdateWithoutTesterCodeInput = {
911
1052
  id?: Prisma.StringFieldUpdateOperationsInput | string;
912
1053
  name?: Prisma.StringFieldUpdateOperationsInput | string;
913
1054
  email?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -926,11 +1067,12 @@ export type UserUncheckedUpdateWithoutMembersInput = {
926
1067
  accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput;
927
1068
  devices?: Prisma.DeviceUncheckedUpdateManyWithoutUserNestedInput;
928
1069
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
1070
+ members?: Prisma.MemberUncheckedUpdateManyWithoutUserNestedInput;
929
1071
  patientProgram?: Prisma.PatientProgramUncheckedUpdateManyWithoutUserNestedInput;
930
1072
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
931
1073
  userPreset?: Prisma.PresetUncheckedUpdateManyWithoutUserNestedInput;
932
1074
  };
933
- export type UserCreateWithoutInvitationsInput = {
1075
+ export type UserCreateWithoutUserPresetInput = {
934
1076
  id: string;
935
1077
  name: string;
936
1078
  email: string;
@@ -946,14 +1088,15 @@ export type UserCreateWithoutInvitationsInput = {
946
1088
  banReason?: string | null;
947
1089
  banned?: boolean | null;
948
1090
  role?: string | null;
1091
+ testerCode?: Prisma.ReferralCodeCreateNestedOneWithoutUsedByUserInput;
949
1092
  accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
950
1093
  devices?: Prisma.DeviceCreateNestedManyWithoutUserInput;
1094
+ invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
951
1095
  members?: Prisma.MemberCreateNestedManyWithoutUserInput;
952
1096
  patientProgram?: Prisma.PatientProgramCreateNestedManyWithoutUserInput;
953
1097
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
954
- userPreset?: Prisma.PresetCreateNestedManyWithoutUserInput;
955
1098
  };
956
- export type UserUncheckedCreateWithoutInvitationsInput = {
1099
+ export type UserUncheckedCreateWithoutUserPresetInput = {
957
1100
  id: string;
958
1101
  name: string;
959
1102
  email: string;
@@ -969,27 +1112,28 @@ export type UserUncheckedCreateWithoutInvitationsInput = {
969
1112
  banReason?: string | null;
970
1113
  banned?: boolean | null;
971
1114
  role?: string | null;
1115
+ testerCode?: Prisma.ReferralCodeUncheckedCreateNestedOneWithoutUsedByUserInput;
972
1116
  accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput;
973
1117
  devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutUserInput;
1118
+ invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
974
1119
  members?: Prisma.MemberUncheckedCreateNestedManyWithoutUserInput;
975
1120
  patientProgram?: Prisma.PatientProgramUncheckedCreateNestedManyWithoutUserInput;
976
1121
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
977
- userPreset?: Prisma.PresetUncheckedCreateNestedManyWithoutUserInput;
978
1122
  };
979
- export type UserCreateOrConnectWithoutInvitationsInput = {
1123
+ export type UserCreateOrConnectWithoutUserPresetInput = {
980
1124
  where: Prisma.UserWhereUniqueInput;
981
- create: Prisma.XOR<Prisma.UserCreateWithoutInvitationsInput, Prisma.UserUncheckedCreateWithoutInvitationsInput>;
1125
+ create: Prisma.XOR<Prisma.UserCreateWithoutUserPresetInput, Prisma.UserUncheckedCreateWithoutUserPresetInput>;
982
1126
  };
983
- export type UserUpsertWithoutInvitationsInput = {
984
- update: Prisma.XOR<Prisma.UserUpdateWithoutInvitationsInput, Prisma.UserUncheckedUpdateWithoutInvitationsInput>;
985
- create: Prisma.XOR<Prisma.UserCreateWithoutInvitationsInput, Prisma.UserUncheckedCreateWithoutInvitationsInput>;
1127
+ export type UserUpsertWithoutUserPresetInput = {
1128
+ update: Prisma.XOR<Prisma.UserUpdateWithoutUserPresetInput, Prisma.UserUncheckedUpdateWithoutUserPresetInput>;
1129
+ create: Prisma.XOR<Prisma.UserCreateWithoutUserPresetInput, Prisma.UserUncheckedCreateWithoutUserPresetInput>;
986
1130
  where?: Prisma.UserWhereInput;
987
1131
  };
988
- export type UserUpdateToOneWithWhereWithoutInvitationsInput = {
1132
+ export type UserUpdateToOneWithWhereWithoutUserPresetInput = {
989
1133
  where?: Prisma.UserWhereInput;
990
- data: Prisma.XOR<Prisma.UserUpdateWithoutInvitationsInput, Prisma.UserUncheckedUpdateWithoutInvitationsInput>;
1134
+ data: Prisma.XOR<Prisma.UserUpdateWithoutUserPresetInput, Prisma.UserUncheckedUpdateWithoutUserPresetInput>;
991
1135
  };
992
- export type UserUpdateWithoutInvitationsInput = {
1136
+ export type UserUpdateWithoutUserPresetInput = {
993
1137
  id?: Prisma.StringFieldUpdateOperationsInput | string;
994
1138
  name?: Prisma.StringFieldUpdateOperationsInput | string;
995
1139
  email?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1005,14 +1149,15 @@ export type UserUpdateWithoutInvitationsInput = {
1005
1149
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1006
1150
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1007
1151
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1152
+ testerCode?: Prisma.ReferralCodeUpdateOneWithoutUsedByUserNestedInput;
1008
1153
  accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput;
1009
1154
  devices?: Prisma.DeviceUpdateManyWithoutUserNestedInput;
1155
+ invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
1010
1156
  members?: Prisma.MemberUpdateManyWithoutUserNestedInput;
1011
1157
  patientProgram?: Prisma.PatientProgramUpdateManyWithoutUserNestedInput;
1012
1158
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
1013
- userPreset?: Prisma.PresetUpdateManyWithoutUserNestedInput;
1014
1159
  };
1015
- export type UserUncheckedUpdateWithoutInvitationsInput = {
1160
+ export type UserUncheckedUpdateWithoutUserPresetInput = {
1016
1161
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1017
1162
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1018
1163
  email?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1028,14 +1173,15 @@ export type UserUncheckedUpdateWithoutInvitationsInput = {
1028
1173
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1029
1174
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1030
1175
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1176
+ testerCode?: Prisma.ReferralCodeUncheckedUpdateOneWithoutUsedByUserNestedInput;
1031
1177
  accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput;
1032
1178
  devices?: Prisma.DeviceUncheckedUpdateManyWithoutUserNestedInput;
1179
+ invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
1033
1180
  members?: Prisma.MemberUncheckedUpdateManyWithoutUserNestedInput;
1034
1181
  patientProgram?: Prisma.PatientProgramUncheckedUpdateManyWithoutUserNestedInput;
1035
1182
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
1036
- userPreset?: Prisma.PresetUncheckedUpdateManyWithoutUserNestedInput;
1037
1183
  };
1038
- export type UserCreateWithoutDevicesInput = {
1184
+ export type UserCreateWithoutMembersInput = {
1039
1185
  id: string;
1040
1186
  name: string;
1041
1187
  email: string;
@@ -1051,14 +1197,15 @@ export type UserCreateWithoutDevicesInput = {
1051
1197
  banReason?: string | null;
1052
1198
  banned?: boolean | null;
1053
1199
  role?: string | null;
1200
+ testerCode?: Prisma.ReferralCodeCreateNestedOneWithoutUsedByUserInput;
1054
1201
  accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
1202
+ devices?: Prisma.DeviceCreateNestedManyWithoutUserInput;
1055
1203
  invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
1056
- members?: Prisma.MemberCreateNestedManyWithoutUserInput;
1057
1204
  patientProgram?: Prisma.PatientProgramCreateNestedManyWithoutUserInput;
1058
1205
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
1059
1206
  userPreset?: Prisma.PresetCreateNestedManyWithoutUserInput;
1060
1207
  };
1061
- export type UserUncheckedCreateWithoutDevicesInput = {
1208
+ export type UserUncheckedCreateWithoutMembersInput = {
1062
1209
  id: string;
1063
1210
  name: string;
1064
1211
  email: string;
@@ -1074,27 +1221,28 @@ export type UserUncheckedCreateWithoutDevicesInput = {
1074
1221
  banReason?: string | null;
1075
1222
  banned?: boolean | null;
1076
1223
  role?: string | null;
1224
+ testerCode?: Prisma.ReferralCodeUncheckedCreateNestedOneWithoutUsedByUserInput;
1077
1225
  accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput;
1226
+ devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutUserInput;
1078
1227
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
1079
- members?: Prisma.MemberUncheckedCreateNestedManyWithoutUserInput;
1080
1228
  patientProgram?: Prisma.PatientProgramUncheckedCreateNestedManyWithoutUserInput;
1081
1229
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
1082
1230
  userPreset?: Prisma.PresetUncheckedCreateNestedManyWithoutUserInput;
1083
1231
  };
1084
- export type UserCreateOrConnectWithoutDevicesInput = {
1232
+ export type UserCreateOrConnectWithoutMembersInput = {
1085
1233
  where: Prisma.UserWhereUniqueInput;
1086
- create: Prisma.XOR<Prisma.UserCreateWithoutDevicesInput, Prisma.UserUncheckedCreateWithoutDevicesInput>;
1234
+ create: Prisma.XOR<Prisma.UserCreateWithoutMembersInput, Prisma.UserUncheckedCreateWithoutMembersInput>;
1087
1235
  };
1088
- export type UserUpsertWithoutDevicesInput = {
1089
- update: Prisma.XOR<Prisma.UserUpdateWithoutDevicesInput, Prisma.UserUncheckedUpdateWithoutDevicesInput>;
1090
- create: Prisma.XOR<Prisma.UserCreateWithoutDevicesInput, Prisma.UserUncheckedCreateWithoutDevicesInput>;
1236
+ export type UserUpsertWithoutMembersInput = {
1237
+ update: Prisma.XOR<Prisma.UserUpdateWithoutMembersInput, Prisma.UserUncheckedUpdateWithoutMembersInput>;
1238
+ create: Prisma.XOR<Prisma.UserCreateWithoutMembersInput, Prisma.UserUncheckedCreateWithoutMembersInput>;
1091
1239
  where?: Prisma.UserWhereInput;
1092
1240
  };
1093
- export type UserUpdateToOneWithWhereWithoutDevicesInput = {
1241
+ export type UserUpdateToOneWithWhereWithoutMembersInput = {
1094
1242
  where?: Prisma.UserWhereInput;
1095
- data: Prisma.XOR<Prisma.UserUpdateWithoutDevicesInput, Prisma.UserUncheckedUpdateWithoutDevicesInput>;
1243
+ data: Prisma.XOR<Prisma.UserUpdateWithoutMembersInput, Prisma.UserUncheckedUpdateWithoutMembersInput>;
1096
1244
  };
1097
- export type UserUpdateWithoutDevicesInput = {
1245
+ export type UserUpdateWithoutMembersInput = {
1098
1246
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1099
1247
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1100
1248
  email?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1110,14 +1258,15 @@ export type UserUpdateWithoutDevicesInput = {
1110
1258
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1111
1259
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1112
1260
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1261
+ testerCode?: Prisma.ReferralCodeUpdateOneWithoutUsedByUserNestedInput;
1113
1262
  accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput;
1263
+ devices?: Prisma.DeviceUpdateManyWithoutUserNestedInput;
1114
1264
  invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
1115
- members?: Prisma.MemberUpdateManyWithoutUserNestedInput;
1116
1265
  patientProgram?: Prisma.PatientProgramUpdateManyWithoutUserNestedInput;
1117
1266
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
1118
1267
  userPreset?: Prisma.PresetUpdateManyWithoutUserNestedInput;
1119
1268
  };
1120
- export type UserUncheckedUpdateWithoutDevicesInput = {
1269
+ export type UserUncheckedUpdateWithoutMembersInput = {
1121
1270
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1122
1271
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1123
1272
  email?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1133,14 +1282,15 @@ export type UserUncheckedUpdateWithoutDevicesInput = {
1133
1282
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1134
1283
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1135
1284
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1285
+ testerCode?: Prisma.ReferralCodeUncheckedUpdateOneWithoutUsedByUserNestedInput;
1136
1286
  accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput;
1287
+ devices?: Prisma.DeviceUncheckedUpdateManyWithoutUserNestedInput;
1137
1288
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
1138
- members?: Prisma.MemberUncheckedUpdateManyWithoutUserNestedInput;
1139
1289
  patientProgram?: Prisma.PatientProgramUncheckedUpdateManyWithoutUserNestedInput;
1140
1290
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
1141
1291
  userPreset?: Prisma.PresetUncheckedUpdateManyWithoutUserNestedInput;
1142
1292
  };
1143
- export type UserCreateWithoutUserPresetInput = {
1293
+ export type UserCreateWithoutInvitationsInput = {
1144
1294
  id: string;
1145
1295
  name: string;
1146
1296
  email: string;
@@ -1156,14 +1306,15 @@ export type UserCreateWithoutUserPresetInput = {
1156
1306
  banReason?: string | null;
1157
1307
  banned?: boolean | null;
1158
1308
  role?: string | null;
1309
+ testerCode?: Prisma.ReferralCodeCreateNestedOneWithoutUsedByUserInput;
1159
1310
  accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
1160
1311
  devices?: Prisma.DeviceCreateNestedManyWithoutUserInput;
1161
- invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
1162
1312
  members?: Prisma.MemberCreateNestedManyWithoutUserInput;
1163
1313
  patientProgram?: Prisma.PatientProgramCreateNestedManyWithoutUserInput;
1164
1314
  sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
1315
+ userPreset?: Prisma.PresetCreateNestedManyWithoutUserInput;
1165
1316
  };
1166
- export type UserUncheckedCreateWithoutUserPresetInput = {
1317
+ export type UserUncheckedCreateWithoutInvitationsInput = {
1167
1318
  id: string;
1168
1319
  name: string;
1169
1320
  email: string;
@@ -1179,27 +1330,28 @@ export type UserUncheckedCreateWithoutUserPresetInput = {
1179
1330
  banReason?: string | null;
1180
1331
  banned?: boolean | null;
1181
1332
  role?: string | null;
1333
+ testerCode?: Prisma.ReferralCodeUncheckedCreateNestedOneWithoutUsedByUserInput;
1182
1334
  accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput;
1183
1335
  devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutUserInput;
1184
- invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
1185
1336
  members?: Prisma.MemberUncheckedCreateNestedManyWithoutUserInput;
1186
1337
  patientProgram?: Prisma.PatientProgramUncheckedCreateNestedManyWithoutUserInput;
1187
1338
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
1339
+ userPreset?: Prisma.PresetUncheckedCreateNestedManyWithoutUserInput;
1188
1340
  };
1189
- export type UserCreateOrConnectWithoutUserPresetInput = {
1341
+ export type UserCreateOrConnectWithoutInvitationsInput = {
1190
1342
  where: Prisma.UserWhereUniqueInput;
1191
- create: Prisma.XOR<Prisma.UserCreateWithoutUserPresetInput, Prisma.UserUncheckedCreateWithoutUserPresetInput>;
1343
+ create: Prisma.XOR<Prisma.UserCreateWithoutInvitationsInput, Prisma.UserUncheckedCreateWithoutInvitationsInput>;
1192
1344
  };
1193
- export type UserUpsertWithoutUserPresetInput = {
1194
- update: Prisma.XOR<Prisma.UserUpdateWithoutUserPresetInput, Prisma.UserUncheckedUpdateWithoutUserPresetInput>;
1195
- create: Prisma.XOR<Prisma.UserCreateWithoutUserPresetInput, Prisma.UserUncheckedCreateWithoutUserPresetInput>;
1345
+ export type UserUpsertWithoutInvitationsInput = {
1346
+ update: Prisma.XOR<Prisma.UserUpdateWithoutInvitationsInput, Prisma.UserUncheckedUpdateWithoutInvitationsInput>;
1347
+ create: Prisma.XOR<Prisma.UserCreateWithoutInvitationsInput, Prisma.UserUncheckedCreateWithoutInvitationsInput>;
1196
1348
  where?: Prisma.UserWhereInput;
1197
1349
  };
1198
- export type UserUpdateToOneWithWhereWithoutUserPresetInput = {
1350
+ export type UserUpdateToOneWithWhereWithoutInvitationsInput = {
1199
1351
  where?: Prisma.UserWhereInput;
1200
- data: Prisma.XOR<Prisma.UserUpdateWithoutUserPresetInput, Prisma.UserUncheckedUpdateWithoutUserPresetInput>;
1352
+ data: Prisma.XOR<Prisma.UserUpdateWithoutInvitationsInput, Prisma.UserUncheckedUpdateWithoutInvitationsInput>;
1201
1353
  };
1202
- export type UserUpdateWithoutUserPresetInput = {
1354
+ export type UserUpdateWithoutInvitationsInput = {
1203
1355
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1204
1356
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1205
1357
  email?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1215,14 +1367,15 @@ export type UserUpdateWithoutUserPresetInput = {
1215
1367
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1216
1368
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1217
1369
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1370
+ testerCode?: Prisma.ReferralCodeUpdateOneWithoutUsedByUserNestedInput;
1218
1371
  accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput;
1219
1372
  devices?: Prisma.DeviceUpdateManyWithoutUserNestedInput;
1220
- invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
1221
1373
  members?: Prisma.MemberUpdateManyWithoutUserNestedInput;
1222
1374
  patientProgram?: Prisma.PatientProgramUpdateManyWithoutUserNestedInput;
1223
1375
  sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
1376
+ userPreset?: Prisma.PresetUpdateManyWithoutUserNestedInput;
1224
1377
  };
1225
- export type UserUncheckedUpdateWithoutUserPresetInput = {
1378
+ export type UserUncheckedUpdateWithoutInvitationsInput = {
1226
1379
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1227
1380
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1228
1381
  email?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1238,12 +1391,13 @@ export type UserUncheckedUpdateWithoutUserPresetInput = {
1238
1391
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1239
1392
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1240
1393
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1394
+ testerCode?: Prisma.ReferralCodeUncheckedUpdateOneWithoutUsedByUserNestedInput;
1241
1395
  accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput;
1242
1396
  devices?: Prisma.DeviceUncheckedUpdateManyWithoutUserNestedInput;
1243
- invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
1244
1397
  members?: Prisma.MemberUncheckedUpdateManyWithoutUserNestedInput;
1245
1398
  patientProgram?: Prisma.PatientProgramUncheckedUpdateManyWithoutUserNestedInput;
1246
1399
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
1400
+ userPreset?: Prisma.PresetUncheckedUpdateManyWithoutUserNestedInput;
1247
1401
  };
1248
1402
  export type UserCreateWithoutPatientProgramInput = {
1249
1403
  id: string;
@@ -1261,6 +1415,7 @@ export type UserCreateWithoutPatientProgramInput = {
1261
1415
  banReason?: string | null;
1262
1416
  banned?: boolean | null;
1263
1417
  role?: string | null;
1418
+ testerCode?: Prisma.ReferralCodeCreateNestedOneWithoutUsedByUserInput;
1264
1419
  accounts?: Prisma.AccountCreateNestedManyWithoutUserInput;
1265
1420
  devices?: Prisma.DeviceCreateNestedManyWithoutUserInput;
1266
1421
  invitations?: Prisma.InvitationCreateNestedManyWithoutUserInput;
@@ -1284,6 +1439,7 @@ export type UserUncheckedCreateWithoutPatientProgramInput = {
1284
1439
  banReason?: string | null;
1285
1440
  banned?: boolean | null;
1286
1441
  role?: string | null;
1442
+ testerCode?: Prisma.ReferralCodeUncheckedCreateNestedOneWithoutUsedByUserInput;
1287
1443
  accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput;
1288
1444
  devices?: Prisma.DeviceUncheckedCreateNestedManyWithoutUserInput;
1289
1445
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutUserInput;
@@ -1320,6 +1476,7 @@ export type UserUpdateWithoutPatientProgramInput = {
1320
1476
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1321
1477
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1322
1478
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1479
+ testerCode?: Prisma.ReferralCodeUpdateOneWithoutUsedByUserNestedInput;
1323
1480
  accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput;
1324
1481
  devices?: Prisma.DeviceUpdateManyWithoutUserNestedInput;
1325
1482
  invitations?: Prisma.InvitationUpdateManyWithoutUserNestedInput;
@@ -1343,6 +1500,7 @@ export type UserUncheckedUpdateWithoutPatientProgramInput = {
1343
1500
  banReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1344
1501
  banned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
1345
1502
  role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1503
+ testerCode?: Prisma.ReferralCodeUncheckedUpdateOneWithoutUsedByUserNestedInput;
1346
1504
  accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput;
1347
1505
  devices?: Prisma.DeviceUncheckedUpdateManyWithoutUserNestedInput;
1348
1506
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutUserNestedInput;
@@ -1438,6 +1596,7 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
1438
1596
  banReason?: boolean;
1439
1597
  banned?: boolean;
1440
1598
  role?: boolean;
1599
+ testerCode?: boolean | Prisma.User$testerCodeArgs<ExtArgs>;
1441
1600
  accounts?: boolean | Prisma.User$accountsArgs<ExtArgs>;
1442
1601
  devices?: boolean | Prisma.User$devicesArgs<ExtArgs>;
1443
1602
  invitations?: boolean | Prisma.User$invitationsArgs<ExtArgs>;
@@ -1500,6 +1659,7 @@ export type UserSelectScalar = {
1500
1659
  };
1501
1660
  export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "deletedAt" | "phoneNumber" | "phoneNumberVerified" | "stripeCustomerId" | "banExpires" | "banReason" | "banned" | "role", ExtArgs["result"]["user"]>;
1502
1661
  export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1662
+ testerCode?: boolean | Prisma.User$testerCodeArgs<ExtArgs>;
1503
1663
  accounts?: boolean | Prisma.User$accountsArgs<ExtArgs>;
1504
1664
  devices?: boolean | Prisma.User$devicesArgs<ExtArgs>;
1505
1665
  invitations?: boolean | Prisma.User$invitationsArgs<ExtArgs>;
@@ -1514,6 +1674,7 @@ export type UserIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
1514
1674
  export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1515
1675
  name: "User";
1516
1676
  objects: {
1677
+ testerCode: Prisma.$ReferralCodePayload<ExtArgs> | null;
1517
1678
  accounts: Prisma.$AccountPayload<ExtArgs>[];
1518
1679
  devices: Prisma.$DevicePayload<ExtArgs>[];
1519
1680
  invitations: Prisma.$InvitationPayload<ExtArgs>[];
@@ -1867,6 +2028,7 @@ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
1867
2028
  */
1868
2029
  export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1869
2030
  readonly [Symbol.toStringTag]: "PrismaPromise";
2031
+ testerCode<T extends Prisma.User$testerCodeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$testerCodeArgs<ExtArgs>>): Prisma.Prisma__ReferralCodeClient<runtime.Types.Result.GetResult<Prisma.$ReferralCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1870
2032
  accounts<T extends Prisma.User$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1871
2033
  devices<T extends Prisma.User$devicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$devicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1872
2034
  invitations<T extends Prisma.User$invitationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$invitationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -2284,6 +2446,24 @@ export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
2284
2446
  */
2285
2447
  limit?: number;
2286
2448
  };
2449
+ /**
2450
+ * User.testerCode
2451
+ */
2452
+ export type User$testerCodeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2453
+ /**
2454
+ * Select specific fields to fetch from the ReferralCode
2455
+ */
2456
+ select?: Prisma.ReferralCodeSelect<ExtArgs> | null;
2457
+ /**
2458
+ * Omit specific fields from the ReferralCode
2459
+ */
2460
+ omit?: Prisma.ReferralCodeOmit<ExtArgs> | null;
2461
+ /**
2462
+ * Choose, which related nodes to fetch as well
2463
+ */
2464
+ include?: Prisma.ReferralCodeInclude<ExtArgs> | null;
2465
+ where?: Prisma.ReferralCodeWhereInput;
2466
+ };
2287
2467
  /**
2288
2468
  * User.accounts
2289
2469
  */