/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Complex` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums" import type * as Prisma from "../internal/prismaNamespace" /** * Model Complex * */ export type ComplexModel = runtime.Types.Result.DefaultSelection export type AggregateComplex = { _count: ComplexCountAggregateOutputType | null _min: ComplexMinAggregateOutputType | null _max: ComplexMaxAggregateOutputType | null } export type ComplexMinAggregateOutputType = { id: string | null complexName: string | null physicalAddress: string | null city: string | null state: string | null country: string | null complexSlug: string | null adminEmail: string | null planCode: string | null createdAt: Date | null updatedAt: Date | null } export type ComplexMaxAggregateOutputType = { id: string | null complexName: string | null physicalAddress: string | null city: string | null state: string | null country: string | null complexSlug: string | null adminEmail: string | null planCode: string | null createdAt: Date | null updatedAt: Date | null } export type ComplexCountAggregateOutputType = { id: number complexName: number physicalAddress: number city: number state: number country: number complexSlug: number adminEmail: number planCode: number createdAt: number updatedAt: number _all: number } export type ComplexMinAggregateInputType = { id?: true complexName?: true physicalAddress?: true city?: true state?: true country?: true complexSlug?: true adminEmail?: true planCode?: true createdAt?: true updatedAt?: true } export type ComplexMaxAggregateInputType = { id?: true complexName?: true physicalAddress?: true city?: true state?: true country?: true complexSlug?: true adminEmail?: true planCode?: true createdAt?: true updatedAt?: true } export type ComplexCountAggregateInputType = { id?: true complexName?: true physicalAddress?: true city?: true state?: true country?: true complexSlug?: true adminEmail?: true planCode?: true createdAt?: true updatedAt?: true _all?: true } export type ComplexAggregateArgs = { /** * Filter which Complex to aggregate. */ where?: Prisma.ComplexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Complexes to fetch. */ orderBy?: Prisma.ComplexOrderByWithRelationInput | Prisma.ComplexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ComplexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Complexes from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Complexes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Complexes **/ _count?: true | ComplexCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ComplexMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ComplexMaxAggregateInputType } export type GetComplexAggregateType = { [P in keyof T & keyof AggregateComplex]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ComplexGroupByArgs = { where?: Prisma.ComplexWhereInput orderBy?: Prisma.ComplexOrderByWithAggregationInput | Prisma.ComplexOrderByWithAggregationInput[] by: Prisma.ComplexScalarFieldEnum[] | Prisma.ComplexScalarFieldEnum having?: Prisma.ComplexScalarWhereWithAggregatesInput take?: number skip?: number _count?: ComplexCountAggregateInputType | true _min?: ComplexMinAggregateInputType _max?: ComplexMaxAggregateInputType } export type ComplexGroupByOutputType = { id: string complexName: string physicalAddress: string | null city: string | null state: string | null country: string | null complexSlug: string adminEmail: string planCode: string | null createdAt: Date updatedAt: Date _count: ComplexCountAggregateOutputType | null _min: ComplexMinAggregateOutputType | null _max: ComplexMaxAggregateOutputType | null } export type GetComplexGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ComplexGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ComplexWhereInput = { AND?: Prisma.ComplexWhereInput | Prisma.ComplexWhereInput[] OR?: Prisma.ComplexWhereInput[] NOT?: Prisma.ComplexWhereInput | Prisma.ComplexWhereInput[] id?: Prisma.UuidFilter<"Complex"> | string complexName?: Prisma.StringFilter<"Complex"> | string physicalAddress?: Prisma.StringNullableFilter<"Complex"> | string | null city?: Prisma.StringNullableFilter<"Complex"> | string | null state?: Prisma.StringNullableFilter<"Complex"> | string | null country?: Prisma.StringNullableFilter<"Complex"> | string | null complexSlug?: Prisma.StringFilter<"Complex"> | string adminEmail?: Prisma.StringFilter<"Complex"> | string planCode?: Prisma.StringNullableFilter<"Complex"> | string | null createdAt?: Prisma.DateTimeFilter<"Complex"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Complex"> | Date | string plan?: Prisma.XOR | null users?: Prisma.ComplexUserListRelationFilter invitations?: Prisma.ComplexInvitationListRelationFilter courts?: Prisma.CourtListRelationFilter } export type ComplexOrderByWithRelationInput = { id?: Prisma.SortOrder complexName?: Prisma.SortOrder physicalAddress?: Prisma.SortOrderInput | Prisma.SortOrder city?: Prisma.SortOrderInput | Prisma.SortOrder state?: Prisma.SortOrderInput | Prisma.SortOrder country?: Prisma.SortOrderInput | Prisma.SortOrder complexSlug?: Prisma.SortOrder adminEmail?: Prisma.SortOrder planCode?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder plan?: Prisma.PlanOrderByWithRelationInput users?: Prisma.ComplexUserOrderByRelationAggregateInput invitations?: Prisma.ComplexInvitationOrderByRelationAggregateInput courts?: Prisma.CourtOrderByRelationAggregateInput } export type ComplexWhereUniqueInput = Prisma.AtLeast<{ id?: string complexSlug?: string AND?: Prisma.ComplexWhereInput | Prisma.ComplexWhereInput[] OR?: Prisma.ComplexWhereInput[] NOT?: Prisma.ComplexWhereInput | Prisma.ComplexWhereInput[] complexName?: Prisma.StringFilter<"Complex"> | string physicalAddress?: Prisma.StringNullableFilter<"Complex"> | string | null city?: Prisma.StringNullableFilter<"Complex"> | string | null state?: Prisma.StringNullableFilter<"Complex"> | string | null country?: Prisma.StringNullableFilter<"Complex"> | string | null adminEmail?: Prisma.StringFilter<"Complex"> | string planCode?: Prisma.StringNullableFilter<"Complex"> | string | null createdAt?: Prisma.DateTimeFilter<"Complex"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Complex"> | Date | string plan?: Prisma.XOR | null users?: Prisma.ComplexUserListRelationFilter invitations?: Prisma.ComplexInvitationListRelationFilter courts?: Prisma.CourtListRelationFilter }, "id" | "complexSlug"> export type ComplexOrderByWithAggregationInput = { id?: Prisma.SortOrder complexName?: Prisma.SortOrder physicalAddress?: Prisma.SortOrderInput | Prisma.SortOrder city?: Prisma.SortOrderInput | Prisma.SortOrder state?: Prisma.SortOrderInput | Prisma.SortOrder country?: Prisma.SortOrderInput | Prisma.SortOrder complexSlug?: Prisma.SortOrder adminEmail?: Prisma.SortOrder planCode?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.ComplexCountOrderByAggregateInput _max?: Prisma.ComplexMaxOrderByAggregateInput _min?: Prisma.ComplexMinOrderByAggregateInput } export type ComplexScalarWhereWithAggregatesInput = { AND?: Prisma.ComplexScalarWhereWithAggregatesInput | Prisma.ComplexScalarWhereWithAggregatesInput[] OR?: Prisma.ComplexScalarWhereWithAggregatesInput[] NOT?: Prisma.ComplexScalarWhereWithAggregatesInput | Prisma.ComplexScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"Complex"> | string complexName?: Prisma.StringWithAggregatesFilter<"Complex"> | string physicalAddress?: Prisma.StringNullableWithAggregatesFilter<"Complex"> | string | null city?: Prisma.StringNullableWithAggregatesFilter<"Complex"> | string | null state?: Prisma.StringNullableWithAggregatesFilter<"Complex"> | string | null country?: Prisma.StringNullableWithAggregatesFilter<"Complex"> | string | null complexSlug?: Prisma.StringWithAggregatesFilter<"Complex"> | string adminEmail?: Prisma.StringWithAggregatesFilter<"Complex"> | string planCode?: Prisma.StringNullableWithAggregatesFilter<"Complex"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"Complex"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Complex"> | Date | string } export type ComplexCreateInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string createdAt?: Date | string updatedAt?: Date | string plan?: Prisma.PlanCreateNestedOneWithoutComplexesInput users?: Prisma.ComplexUserCreateNestedManyWithoutComplexInput invitations?: Prisma.ComplexInvitationCreateNestedManyWithoutComplexInput courts?: Prisma.CourtCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string planCode?: string | null createdAt?: Date | string updatedAt?: Date | string users?: Prisma.ComplexUserUncheckedCreateNestedManyWithoutComplexInput invitations?: Prisma.ComplexInvitationUncheckedCreateNestedManyWithoutComplexInput courts?: Prisma.CourtUncheckedCreateNestedManyWithoutComplexInput } export type ComplexUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string plan?: Prisma.PlanUpdateOneWithoutComplexesNestedInput users?: Prisma.ComplexUserUpdateManyWithoutComplexNestedInput invitations?: Prisma.ComplexInvitationUpdateManyWithoutComplexNestedInput courts?: Prisma.CourtUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.ComplexUserUncheckedUpdateManyWithoutComplexNestedInput invitations?: Prisma.ComplexInvitationUncheckedUpdateManyWithoutComplexNestedInput courts?: Prisma.CourtUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateManyInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string planCode?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ComplexUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ComplexUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ComplexCountOrderByAggregateInput = { id?: Prisma.SortOrder complexName?: Prisma.SortOrder physicalAddress?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder country?: Prisma.SortOrder complexSlug?: Prisma.SortOrder adminEmail?: Prisma.SortOrder planCode?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ComplexMaxOrderByAggregateInput = { id?: Prisma.SortOrder complexName?: Prisma.SortOrder physicalAddress?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder country?: Prisma.SortOrder complexSlug?: Prisma.SortOrder adminEmail?: Prisma.SortOrder planCode?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ComplexMinOrderByAggregateInput = { id?: Prisma.SortOrder complexName?: Prisma.SortOrder physicalAddress?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder country?: Prisma.SortOrder complexSlug?: Prisma.SortOrder adminEmail?: Prisma.SortOrder planCode?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ComplexScalarRelationFilter = { is?: Prisma.ComplexWhereInput isNot?: Prisma.ComplexWhereInput } export type ComplexListRelationFilter = { every?: Prisma.ComplexWhereInput some?: Prisma.ComplexWhereInput none?: Prisma.ComplexWhereInput } export type ComplexOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ComplexCreateNestedOneWithoutUsersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutUsersInput connect?: Prisma.ComplexWhereUniqueInput } export type ComplexUpdateOneRequiredWithoutUsersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutUsersInput upsert?: Prisma.ComplexUpsertWithoutUsersInput connect?: Prisma.ComplexWhereUniqueInput update?: Prisma.XOR, Prisma.ComplexUncheckedUpdateWithoutUsersInput> } export type ComplexCreateNestedOneWithoutInvitationsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutInvitationsInput connect?: Prisma.ComplexWhereUniqueInput } export type ComplexUpdateOneRequiredWithoutInvitationsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutInvitationsInput upsert?: Prisma.ComplexUpsertWithoutInvitationsInput connect?: Prisma.ComplexWhereUniqueInput update?: Prisma.XOR, Prisma.ComplexUncheckedUpdateWithoutInvitationsInput> } export type ComplexCreateNestedOneWithoutCourtsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutCourtsInput connect?: Prisma.ComplexWhereUniqueInput } export type ComplexUpdateOneRequiredWithoutCourtsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutCourtsInput upsert?: Prisma.ComplexUpsertWithoutCourtsInput connect?: Prisma.ComplexWhereUniqueInput update?: Prisma.XOR, Prisma.ComplexUncheckedUpdateWithoutCourtsInput> } export type ComplexCreateNestedManyWithoutPlanInput = { create?: Prisma.XOR | Prisma.ComplexCreateWithoutPlanInput[] | Prisma.ComplexUncheckedCreateWithoutPlanInput[] connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPlanInput | Prisma.ComplexCreateOrConnectWithoutPlanInput[] createMany?: Prisma.ComplexCreateManyPlanInputEnvelope connect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] } export type ComplexUncheckedCreateNestedManyWithoutPlanInput = { create?: Prisma.XOR | Prisma.ComplexCreateWithoutPlanInput[] | Prisma.ComplexUncheckedCreateWithoutPlanInput[] connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPlanInput | Prisma.ComplexCreateOrConnectWithoutPlanInput[] createMany?: Prisma.ComplexCreateManyPlanInputEnvelope connect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] } export type ComplexUpdateManyWithoutPlanNestedInput = { create?: Prisma.XOR | Prisma.ComplexCreateWithoutPlanInput[] | Prisma.ComplexUncheckedCreateWithoutPlanInput[] connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPlanInput | Prisma.ComplexCreateOrConnectWithoutPlanInput[] upsert?: Prisma.ComplexUpsertWithWhereUniqueWithoutPlanInput | Prisma.ComplexUpsertWithWhereUniqueWithoutPlanInput[] createMany?: Prisma.ComplexCreateManyPlanInputEnvelope set?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] disconnect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] delete?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] connect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] update?: Prisma.ComplexUpdateWithWhereUniqueWithoutPlanInput | Prisma.ComplexUpdateWithWhereUniqueWithoutPlanInput[] updateMany?: Prisma.ComplexUpdateManyWithWhereWithoutPlanInput | Prisma.ComplexUpdateManyWithWhereWithoutPlanInput[] deleteMany?: Prisma.ComplexScalarWhereInput | Prisma.ComplexScalarWhereInput[] } export type ComplexUncheckedUpdateManyWithoutPlanNestedInput = { create?: Prisma.XOR | Prisma.ComplexCreateWithoutPlanInput[] | Prisma.ComplexUncheckedCreateWithoutPlanInput[] connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPlanInput | Prisma.ComplexCreateOrConnectWithoutPlanInput[] upsert?: Prisma.ComplexUpsertWithWhereUniqueWithoutPlanInput | Prisma.ComplexUpsertWithWhereUniqueWithoutPlanInput[] createMany?: Prisma.ComplexCreateManyPlanInputEnvelope set?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] disconnect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] delete?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] connect?: Prisma.ComplexWhereUniqueInput | Prisma.ComplexWhereUniqueInput[] update?: Prisma.ComplexUpdateWithWhereUniqueWithoutPlanInput | Prisma.ComplexUpdateWithWhereUniqueWithoutPlanInput[] updateMany?: Prisma.ComplexUpdateManyWithWhereWithoutPlanInput | Prisma.ComplexUpdateManyWithWhereWithoutPlanInput[] deleteMany?: Prisma.ComplexScalarWhereInput | Prisma.ComplexScalarWhereInput[] } export type ComplexCreateWithoutUsersInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string createdAt?: Date | string updatedAt?: Date | string plan?: Prisma.PlanCreateNestedOneWithoutComplexesInput invitations?: Prisma.ComplexInvitationCreateNestedManyWithoutComplexInput courts?: Prisma.CourtCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutUsersInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string planCode?: string | null createdAt?: Date | string updatedAt?: Date | string invitations?: Prisma.ComplexInvitationUncheckedCreateNestedManyWithoutComplexInput courts?: Prisma.CourtUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutUsersInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexUpsertWithoutUsersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ComplexWhereInput } export type ComplexUpdateToOneWithWhereWithoutUsersInput = { where?: Prisma.ComplexWhereInput data: Prisma.XOR } export type ComplexUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string plan?: Prisma.PlanUpdateOneWithoutComplexesNestedInput invitations?: Prisma.ComplexInvitationUpdateManyWithoutComplexNestedInput courts?: Prisma.CourtUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutUsersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string invitations?: Prisma.ComplexInvitationUncheckedUpdateManyWithoutComplexNestedInput courts?: Prisma.CourtUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateWithoutInvitationsInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string createdAt?: Date | string updatedAt?: Date | string plan?: Prisma.PlanCreateNestedOneWithoutComplexesInput users?: Prisma.ComplexUserCreateNestedManyWithoutComplexInput courts?: Prisma.CourtCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutInvitationsInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string planCode?: string | null createdAt?: Date | string updatedAt?: Date | string users?: Prisma.ComplexUserUncheckedCreateNestedManyWithoutComplexInput courts?: Prisma.CourtUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutInvitationsInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexUpsertWithoutInvitationsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ComplexWhereInput } export type ComplexUpdateToOneWithWhereWithoutInvitationsInput = { where?: Prisma.ComplexWhereInput data: Prisma.XOR } export type ComplexUpdateWithoutInvitationsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string plan?: Prisma.PlanUpdateOneWithoutComplexesNestedInput users?: Prisma.ComplexUserUpdateManyWithoutComplexNestedInput courts?: Prisma.CourtUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutInvitationsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.ComplexUserUncheckedUpdateManyWithoutComplexNestedInput courts?: Prisma.CourtUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateWithoutCourtsInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string createdAt?: Date | string updatedAt?: Date | string plan?: Prisma.PlanCreateNestedOneWithoutComplexesInput users?: Prisma.ComplexUserCreateNestedManyWithoutComplexInput invitations?: Prisma.ComplexInvitationCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutCourtsInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string planCode?: string | null createdAt?: Date | string updatedAt?: Date | string users?: Prisma.ComplexUserUncheckedCreateNestedManyWithoutComplexInput invitations?: Prisma.ComplexInvitationUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutCourtsInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexUpsertWithoutCourtsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ComplexWhereInput } export type ComplexUpdateToOneWithWhereWithoutCourtsInput = { where?: Prisma.ComplexWhereInput data: Prisma.XOR } export type ComplexUpdateWithoutCourtsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string plan?: Prisma.PlanUpdateOneWithoutComplexesNestedInput users?: Prisma.ComplexUserUpdateManyWithoutComplexNestedInput invitations?: Prisma.ComplexInvitationUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutCourtsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string planCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.ComplexUserUncheckedUpdateManyWithoutComplexNestedInput invitations?: Prisma.ComplexInvitationUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexCreateWithoutPlanInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string createdAt?: Date | string updatedAt?: Date | string users?: Prisma.ComplexUserCreateNestedManyWithoutComplexInput invitations?: Prisma.ComplexInvitationCreateNestedManyWithoutComplexInput courts?: Prisma.CourtCreateNestedManyWithoutComplexInput } export type ComplexUncheckedCreateWithoutPlanInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string createdAt?: Date | string updatedAt?: Date | string users?: Prisma.ComplexUserUncheckedCreateNestedManyWithoutComplexInput invitations?: Prisma.ComplexInvitationUncheckedCreateNestedManyWithoutComplexInput courts?: Prisma.CourtUncheckedCreateNestedManyWithoutComplexInput } export type ComplexCreateOrConnectWithoutPlanInput = { where: Prisma.ComplexWhereUniqueInput create: Prisma.XOR } export type ComplexCreateManyPlanInputEnvelope = { data: Prisma.ComplexCreateManyPlanInput | Prisma.ComplexCreateManyPlanInput[] skipDuplicates?: boolean } export type ComplexUpsertWithWhereUniqueWithoutPlanInput = { where: Prisma.ComplexWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ComplexUpdateWithWhereUniqueWithoutPlanInput = { where: Prisma.ComplexWhereUniqueInput data: Prisma.XOR } export type ComplexUpdateManyWithWhereWithoutPlanInput = { where: Prisma.ComplexScalarWhereInput data: Prisma.XOR } export type ComplexScalarWhereInput = { AND?: Prisma.ComplexScalarWhereInput | Prisma.ComplexScalarWhereInput[] OR?: Prisma.ComplexScalarWhereInput[] NOT?: Prisma.ComplexScalarWhereInput | Prisma.ComplexScalarWhereInput[] id?: Prisma.UuidFilter<"Complex"> | string complexName?: Prisma.StringFilter<"Complex"> | string physicalAddress?: Prisma.StringNullableFilter<"Complex"> | string | null city?: Prisma.StringNullableFilter<"Complex"> | string | null state?: Prisma.StringNullableFilter<"Complex"> | string | null country?: Prisma.StringNullableFilter<"Complex"> | string | null complexSlug?: Prisma.StringFilter<"Complex"> | string adminEmail?: Prisma.StringFilter<"Complex"> | string planCode?: Prisma.StringNullableFilter<"Complex"> | string | null createdAt?: Prisma.DateTimeFilter<"Complex"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Complex"> | Date | string } export type ComplexCreateManyPlanInput = { id: string complexName: string physicalAddress?: string | null city?: string | null state?: string | null country?: string | null complexSlug: string adminEmail: string createdAt?: Date | string updatedAt?: Date | string } export type ComplexUpdateWithoutPlanInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.ComplexUserUpdateManyWithoutComplexNestedInput invitations?: Prisma.ComplexInvitationUpdateManyWithoutComplexNestedInput courts?: Prisma.CourtUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateWithoutPlanInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string users?: Prisma.ComplexUserUncheckedUpdateManyWithoutComplexNestedInput invitations?: Prisma.ComplexInvitationUncheckedUpdateManyWithoutComplexNestedInput courts?: Prisma.CourtUncheckedUpdateManyWithoutComplexNestedInput } export type ComplexUncheckedUpdateManyWithoutPlanInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexName?: Prisma.StringFieldUpdateOperationsInput | string physicalAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null complexSlug?: Prisma.StringFieldUpdateOperationsInput | string adminEmail?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type ComplexCountOutputType */ export type ComplexCountOutputType = { users: number invitations: number courts: number } export type ComplexCountOutputTypeSelect = { users?: boolean | ComplexCountOutputTypeCountUsersArgs invitations?: boolean | ComplexCountOutputTypeCountInvitationsArgs courts?: boolean | ComplexCountOutputTypeCountCourtsArgs } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ComplexCountOutputType */ select?: Prisma.ComplexCountOutputTypeSelect | null } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeCountUsersArgs = { where?: Prisma.ComplexUserWhereInput } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeCountInvitationsArgs = { where?: Prisma.ComplexInvitationWhereInput } /** * ComplexCountOutputType without action */ export type ComplexCountOutputTypeCountCourtsArgs = { where?: Prisma.CourtWhereInput } export type ComplexSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean complexName?: boolean physicalAddress?: boolean city?: boolean state?: boolean country?: boolean complexSlug?: boolean adminEmail?: boolean planCode?: boolean createdAt?: boolean updatedAt?: boolean plan?: boolean | Prisma.Complex$planArgs users?: boolean | Prisma.Complex$usersArgs invitations?: boolean | Prisma.Complex$invitationsArgs courts?: boolean | Prisma.Complex$courtsArgs _count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs }, ExtArgs["result"]["complex"]> export type ComplexSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean complexName?: boolean physicalAddress?: boolean city?: boolean state?: boolean country?: boolean complexSlug?: boolean adminEmail?: boolean planCode?: boolean createdAt?: boolean updatedAt?: boolean plan?: boolean | Prisma.Complex$planArgs }, ExtArgs["result"]["complex"]> export type ComplexSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean complexName?: boolean physicalAddress?: boolean city?: boolean state?: boolean country?: boolean complexSlug?: boolean adminEmail?: boolean planCode?: boolean createdAt?: boolean updatedAt?: boolean plan?: boolean | Prisma.Complex$planArgs }, ExtArgs["result"]["complex"]> export type ComplexSelectScalar = { id?: boolean complexName?: boolean physicalAddress?: boolean city?: boolean state?: boolean country?: boolean complexSlug?: boolean adminEmail?: boolean planCode?: boolean createdAt?: boolean updatedAt?: boolean } export type ComplexOmit = runtime.Types.Extensions.GetOmit<"id" | "complexName" | "physicalAddress" | "city" | "state" | "country" | "complexSlug" | "adminEmail" | "planCode" | "createdAt" | "updatedAt", ExtArgs["result"]["complex"]> export type ComplexInclude = { plan?: boolean | Prisma.Complex$planArgs users?: boolean | Prisma.Complex$usersArgs invitations?: boolean | Prisma.Complex$invitationsArgs courts?: boolean | Prisma.Complex$courtsArgs _count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs } export type ComplexIncludeCreateManyAndReturn = { plan?: boolean | Prisma.Complex$planArgs } export type ComplexIncludeUpdateManyAndReturn = { plan?: boolean | Prisma.Complex$planArgs } export type $ComplexPayload = { name: "Complex" objects: { plan: Prisma.$PlanPayload | null users: Prisma.$ComplexUserPayload[] invitations: Prisma.$ComplexInvitationPayload[] courts: Prisma.$CourtPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string complexName: string physicalAddress: string | null city: string | null state: string | null country: string | null complexSlug: string adminEmail: string planCode: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["complex"]> composites: {} } export type ComplexGetPayload = runtime.Types.Result.GetResult export type ComplexCountArgs = Omit & { select?: ComplexCountAggregateInputType | true } export interface ComplexDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Complex'], meta: { name: 'Complex' } } /** * Find zero or one Complex that matches the filter. * @param {ComplexFindUniqueArgs} args - Arguments to find a Complex * @example * // Get one Complex * const complex = await prisma.complex.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Complex that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ComplexFindUniqueOrThrowArgs} args - Arguments to find a Complex * @example * // Get one Complex * const complex = await prisma.complex.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Complex that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexFindFirstArgs} args - Arguments to find a Complex * @example * // Get one Complex * const complex = await prisma.complex.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Complex that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexFindFirstOrThrowArgs} args - Arguments to find a Complex * @example * // Get one Complex * const complex = await prisma.complex.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Complexes that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Complexes * const complexes = await prisma.complex.findMany() * * // Get first 10 Complexes * const complexes = await prisma.complex.findMany({ take: 10 }) * * // Only select the `id` * const complexWithIdOnly = await prisma.complex.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Complex. * @param {ComplexCreateArgs} args - Arguments to create a Complex. * @example * // Create one Complex * const Complex = await prisma.complex.create({ * data: { * // ... data to create a Complex * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Complexes. * @param {ComplexCreateManyArgs} args - Arguments to create many Complexes. * @example * // Create many Complexes * const complex = await prisma.complex.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Complexes and returns the data saved in the database. * @param {ComplexCreateManyAndReturnArgs} args - Arguments to create many Complexes. * @example * // Create many Complexes * const complex = await prisma.complex.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Complexes and only return the `id` * const complexWithIdOnly = await prisma.complex.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Complex. * @param {ComplexDeleteArgs} args - Arguments to delete one Complex. * @example * // Delete one Complex * const Complex = await prisma.complex.delete({ * where: { * // ... filter to delete one Complex * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Complex. * @param {ComplexUpdateArgs} args - Arguments to update one Complex. * @example * // Update one Complex * const complex = await prisma.complex.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Complexes. * @param {ComplexDeleteManyArgs} args - Arguments to filter Complexes to delete. * @example * // Delete a few Complexes * const { count } = await prisma.complex.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Complexes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Complexes * const complex = await prisma.complex.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Complexes and returns the data updated in the database. * @param {ComplexUpdateManyAndReturnArgs} args - Arguments to update many Complexes. * @example * // Update many Complexes * const complex = await prisma.complex.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Complexes and only return the `id` * const complexWithIdOnly = await prisma.complex.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Complex. * @param {ComplexUpsertArgs} args - Arguments to update or create a Complex. * @example * // Update or create a Complex * const complex = await prisma.complex.upsert({ * create: { * // ... data to create a Complex * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Complex we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ComplexClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Complexes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexCountArgs} args - Arguments to filter Complexes to count. * @example * // Count the number of Complexes * const count = await prisma.complex.count({ * where: { * // ... the filter for the Complexes we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Complex. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Complex. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ComplexGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends ComplexGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ComplexGroupByArgs['orderBy'] } : { orderBy?: ComplexGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetComplexGroupByPayload : Prisma.PrismaPromise /** * Fields of the Complex model */ readonly fields: ComplexFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Complex. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__ComplexClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" plan = {}>(args?: Prisma.Subset>): Prisma.Prisma__PlanClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> invitations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> courts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Complex model */ export interface ComplexFieldRefs { readonly id: Prisma.FieldRef<"Complex", 'String'> readonly complexName: Prisma.FieldRef<"Complex", 'String'> readonly physicalAddress: Prisma.FieldRef<"Complex", 'String'> readonly city: Prisma.FieldRef<"Complex", 'String'> readonly state: Prisma.FieldRef<"Complex", 'String'> readonly country: Prisma.FieldRef<"Complex", 'String'> readonly complexSlug: Prisma.FieldRef<"Complex", 'String'> readonly adminEmail: Prisma.FieldRef<"Complex", 'String'> readonly planCode: Prisma.FieldRef<"Complex", 'String'> readonly createdAt: Prisma.FieldRef<"Complex", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Complex", 'DateTime'> } // Custom InputTypes /** * Complex findUnique */ export type ComplexFindUniqueArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complex to fetch. */ where: Prisma.ComplexWhereUniqueInput } /** * Complex findUniqueOrThrow */ export type ComplexFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complex to fetch. */ where: Prisma.ComplexWhereUniqueInput } /** * Complex findFirst */ export type ComplexFindFirstArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complex to fetch. */ where?: Prisma.ComplexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Complexes to fetch. */ orderBy?: Prisma.ComplexOrderByWithRelationInput | Prisma.ComplexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Complexes. */ cursor?: Prisma.ComplexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Complexes from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Complexes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Complexes. */ distinct?: Prisma.ComplexScalarFieldEnum | Prisma.ComplexScalarFieldEnum[] } /** * Complex findFirstOrThrow */ export type ComplexFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complex to fetch. */ where?: Prisma.ComplexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Complexes to fetch. */ orderBy?: Prisma.ComplexOrderByWithRelationInput | Prisma.ComplexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Complexes. */ cursor?: Prisma.ComplexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Complexes from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Complexes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Complexes. */ distinct?: Prisma.ComplexScalarFieldEnum | Prisma.ComplexScalarFieldEnum[] } /** * Complex findMany */ export type ComplexFindManyArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter, which Complexes to fetch. */ where?: Prisma.ComplexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Complexes to fetch. */ orderBy?: Prisma.ComplexOrderByWithRelationInput | Prisma.ComplexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Complexes. */ cursor?: Prisma.ComplexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Complexes from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Complexes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Complexes. */ distinct?: Prisma.ComplexScalarFieldEnum | Prisma.ComplexScalarFieldEnum[] } /** * Complex create */ export type ComplexCreateArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * The data needed to create a Complex. */ data: Prisma.XOR } /** * Complex createMany */ export type ComplexCreateManyArgs = { /** * The data used to create many Complexes. */ data: Prisma.ComplexCreateManyInput | Prisma.ComplexCreateManyInput[] skipDuplicates?: boolean } /** * Complex createManyAndReturn */ export type ComplexCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelectCreateManyAndReturn | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * The data used to create many Complexes. */ data: Prisma.ComplexCreateManyInput | Prisma.ComplexCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexIncludeCreateManyAndReturn | null } /** * Complex update */ export type ComplexUpdateArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * The data needed to update a Complex. */ data: Prisma.XOR /** * Choose, which Complex to update. */ where: Prisma.ComplexWhereUniqueInput } /** * Complex updateMany */ export type ComplexUpdateManyArgs = { /** * The data used to update Complexes. */ data: Prisma.XOR /** * Filter which Complexes to update */ where?: Prisma.ComplexWhereInput /** * Limit how many Complexes to update. */ limit?: number } /** * Complex updateManyAndReturn */ export type ComplexUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelectUpdateManyAndReturn | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * The data used to update Complexes. */ data: Prisma.XOR /** * Filter which Complexes to update */ where?: Prisma.ComplexWhereInput /** * Limit how many Complexes to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexIncludeUpdateManyAndReturn | null } /** * Complex upsert */ export type ComplexUpsertArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * The filter to search for the Complex to update in case it exists. */ where: Prisma.ComplexWhereUniqueInput /** * In case the Complex found by the `where` argument doesn't exist, create a new Complex with this data. */ create: Prisma.XOR /** * In case the Complex was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Complex delete */ export type ComplexDeleteArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null /** * Filter which Complex to delete. */ where: Prisma.ComplexWhereUniqueInput } /** * Complex deleteMany */ export type ComplexDeleteManyArgs = { /** * Filter which Complexes to delete */ where?: Prisma.ComplexWhereInput /** * Limit how many Complexes to delete. */ limit?: number } /** * Complex.plan */ export type Complex$planArgs = { /** * Select specific fields to fetch from the Plan */ select?: Prisma.PlanSelect | null /** * Omit specific fields from the Plan */ omit?: Prisma.PlanOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PlanInclude | null where?: Prisma.PlanWhereInput } /** * Complex.users */ export type Complex$usersArgs = { /** * Select specific fields to fetch from the ComplexUser */ select?: Prisma.ComplexUserSelect | null /** * Omit specific fields from the ComplexUser */ omit?: Prisma.ComplexUserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexUserInclude | null where?: Prisma.ComplexUserWhereInput orderBy?: Prisma.ComplexUserOrderByWithRelationInput | Prisma.ComplexUserOrderByWithRelationInput[] cursor?: Prisma.ComplexUserWhereUniqueInput take?: number skip?: number distinct?: Prisma.ComplexUserScalarFieldEnum | Prisma.ComplexUserScalarFieldEnum[] } /** * Complex.invitations */ export type Complex$invitationsArgs = { /** * Select specific fields to fetch from the ComplexInvitation */ select?: Prisma.ComplexInvitationSelect | null /** * Omit specific fields from the ComplexInvitation */ omit?: Prisma.ComplexInvitationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInvitationInclude | null where?: Prisma.ComplexInvitationWhereInput orderBy?: Prisma.ComplexInvitationOrderByWithRelationInput | Prisma.ComplexInvitationOrderByWithRelationInput[] cursor?: Prisma.ComplexInvitationWhereUniqueInput take?: number skip?: number distinct?: Prisma.ComplexInvitationScalarFieldEnum | Prisma.ComplexInvitationScalarFieldEnum[] } /** * Complex.courts */ export type Complex$courtsArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null where?: Prisma.CourtWhereInput orderBy?: Prisma.CourtOrderByWithRelationInput | Prisma.CourtOrderByWithRelationInput[] cursor?: Prisma.CourtWhereUniqueInput take?: number skip?: number distinct?: Prisma.CourtScalarFieldEnum | Prisma.CourtScalarFieldEnum[] } /** * Complex without action */ export type ComplexDefaultArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null }