
/* !!! 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<Prisma.$ComplexPayload>

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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * 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<T extends ComplexAggregateArgs> = {
      [P in keyof T & keyof AggregateComplex]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateComplex[P]>
    : Prisma.GetScalarType<T[P], AggregateComplex[P]>
}




export type ComplexGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  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<T extends ComplexGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<ComplexGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof ComplexGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], ComplexGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], ComplexGroupByOutputType[P]>
      }
    >
  >



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<Prisma.PlanNullableScalarRelationFilter, Prisma.PlanWhereInput> | null
  users?: Prisma.ComplexUserListRelationFilter
  invitations?: Prisma.ComplexInvitationListRelationFilter
  courts?: Prisma.CourtListRelationFilter
  recurringGroups?: Prisma.RecurringBookingGroupListRelationFilter
}

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
  recurringGroups?: Prisma.RecurringBookingGroupOrderByRelationAggregateInput
}

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<Prisma.PlanNullableScalarRelationFilter, Prisma.PlanWhereInput> | null
  users?: Prisma.ComplexUserListRelationFilter
  invitations?: Prisma.ComplexInvitationListRelationFilter
  courts?: Prisma.CourtListRelationFilter
  recurringGroups?: Prisma.RecurringBookingGroupListRelationFilter
}, "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
  recurringGroups?: Prisma.RecurringBookingGroupCreateNestedManyWithoutComplexInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedCreateNestedManyWithoutComplexInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUpdateManyWithoutComplexNestedInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedUpdateManyWithoutComplexNestedInput
}

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<Prisma.ComplexCreateWithoutUsersInput, Prisma.ComplexUncheckedCreateWithoutUsersInput>
  connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutUsersInput
  connect?: Prisma.ComplexWhereUniqueInput
}

export type ComplexUpdateOneRequiredWithoutUsersNestedInput = {
  create?: Prisma.XOR<Prisma.ComplexCreateWithoutUsersInput, Prisma.ComplexUncheckedCreateWithoutUsersInput>
  connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutUsersInput
  upsert?: Prisma.ComplexUpsertWithoutUsersInput
  connect?: Prisma.ComplexWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutUsersInput, Prisma.ComplexUpdateWithoutUsersInput>, Prisma.ComplexUncheckedUpdateWithoutUsersInput>
}

export type ComplexCreateNestedOneWithoutInvitationsInput = {
  create?: Prisma.XOR<Prisma.ComplexCreateWithoutInvitationsInput, Prisma.ComplexUncheckedCreateWithoutInvitationsInput>
  connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutInvitationsInput
  connect?: Prisma.ComplexWhereUniqueInput
}

export type ComplexUpdateOneRequiredWithoutInvitationsNestedInput = {
  create?: Prisma.XOR<Prisma.ComplexCreateWithoutInvitationsInput, Prisma.ComplexUncheckedCreateWithoutInvitationsInput>
  connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutInvitationsInput
  upsert?: Prisma.ComplexUpsertWithoutInvitationsInput
  connect?: Prisma.ComplexWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutInvitationsInput, Prisma.ComplexUpdateWithoutInvitationsInput>, Prisma.ComplexUncheckedUpdateWithoutInvitationsInput>
}

export type ComplexCreateNestedOneWithoutCourtsInput = {
  create?: Prisma.XOR<Prisma.ComplexCreateWithoutCourtsInput, Prisma.ComplexUncheckedCreateWithoutCourtsInput>
  connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutCourtsInput
  connect?: Prisma.ComplexWhereUniqueInput
}

export type ComplexUpdateOneRequiredWithoutCourtsNestedInput = {
  create?: Prisma.XOR<Prisma.ComplexCreateWithoutCourtsInput, Prisma.ComplexUncheckedCreateWithoutCourtsInput>
  connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutCourtsInput
  upsert?: Prisma.ComplexUpsertWithoutCourtsInput
  connect?: Prisma.ComplexWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutCourtsInput, Prisma.ComplexUpdateWithoutCourtsInput>, Prisma.ComplexUncheckedUpdateWithoutCourtsInput>
}

export type ComplexCreateNestedOneWithoutRecurringGroupsInput = {
  create?: Prisma.XOR<Prisma.ComplexCreateWithoutRecurringGroupsInput, Prisma.ComplexUncheckedCreateWithoutRecurringGroupsInput>
  connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutRecurringGroupsInput
  connect?: Prisma.ComplexWhereUniqueInput
}

export type ComplexUpdateOneRequiredWithoutRecurringGroupsNestedInput = {
  create?: Prisma.XOR<Prisma.ComplexCreateWithoutRecurringGroupsInput, Prisma.ComplexUncheckedCreateWithoutRecurringGroupsInput>
  connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutRecurringGroupsInput
  upsert?: Prisma.ComplexUpsertWithoutRecurringGroupsInput
  connect?: Prisma.ComplexWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutRecurringGroupsInput, Prisma.ComplexUpdateWithoutRecurringGroupsInput>, Prisma.ComplexUncheckedUpdateWithoutRecurringGroupsInput>
}

export type ComplexCreateNestedManyWithoutPlanInput = {
  create?: Prisma.XOR<Prisma.ComplexCreateWithoutPlanInput, Prisma.ComplexUncheckedCreateWithoutPlanInput> | 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> | 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> | 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> | 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
  recurringGroups?: Prisma.RecurringBookingGroupCreateNestedManyWithoutComplexInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedCreateNestedManyWithoutComplexInput
}

export type ComplexCreateOrConnectWithoutUsersInput = {
  where: Prisma.ComplexWhereUniqueInput
  create: Prisma.XOR<Prisma.ComplexCreateWithoutUsersInput, Prisma.ComplexUncheckedCreateWithoutUsersInput>
}

export type ComplexUpsertWithoutUsersInput = {
  update: Prisma.XOR<Prisma.ComplexUpdateWithoutUsersInput, Prisma.ComplexUncheckedUpdateWithoutUsersInput>
  create: Prisma.XOR<Prisma.ComplexCreateWithoutUsersInput, Prisma.ComplexUncheckedCreateWithoutUsersInput>
  where?: Prisma.ComplexWhereInput
}

export type ComplexUpdateToOneWithWhereWithoutUsersInput = {
  where?: Prisma.ComplexWhereInput
  data: Prisma.XOR<Prisma.ComplexUpdateWithoutUsersInput, Prisma.ComplexUncheckedUpdateWithoutUsersInput>
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUpdateManyWithoutComplexNestedInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedUpdateManyWithoutComplexNestedInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupCreateNestedManyWithoutComplexInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedCreateNestedManyWithoutComplexInput
}

export type ComplexCreateOrConnectWithoutInvitationsInput = {
  where: Prisma.ComplexWhereUniqueInput
  create: Prisma.XOR<Prisma.ComplexCreateWithoutInvitationsInput, Prisma.ComplexUncheckedCreateWithoutInvitationsInput>
}

export type ComplexUpsertWithoutInvitationsInput = {
  update: Prisma.XOR<Prisma.ComplexUpdateWithoutInvitationsInput, Prisma.ComplexUncheckedUpdateWithoutInvitationsInput>
  create: Prisma.XOR<Prisma.ComplexCreateWithoutInvitationsInput, Prisma.ComplexUncheckedCreateWithoutInvitationsInput>
  where?: Prisma.ComplexWhereInput
}

export type ComplexUpdateToOneWithWhereWithoutInvitationsInput = {
  where?: Prisma.ComplexWhereInput
  data: Prisma.XOR<Prisma.ComplexUpdateWithoutInvitationsInput, Prisma.ComplexUncheckedUpdateWithoutInvitationsInput>
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUpdateManyWithoutComplexNestedInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedUpdateManyWithoutComplexNestedInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupCreateNestedManyWithoutComplexInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedCreateNestedManyWithoutComplexInput
}

export type ComplexCreateOrConnectWithoutCourtsInput = {
  where: Prisma.ComplexWhereUniqueInput
  create: Prisma.XOR<Prisma.ComplexCreateWithoutCourtsInput, Prisma.ComplexUncheckedCreateWithoutCourtsInput>
}

export type ComplexUpsertWithoutCourtsInput = {
  update: Prisma.XOR<Prisma.ComplexUpdateWithoutCourtsInput, Prisma.ComplexUncheckedUpdateWithoutCourtsInput>
  create: Prisma.XOR<Prisma.ComplexCreateWithoutCourtsInput, Prisma.ComplexUncheckedCreateWithoutCourtsInput>
  where?: Prisma.ComplexWhereInput
}

export type ComplexUpdateToOneWithWhereWithoutCourtsInput = {
  where?: Prisma.ComplexWhereInput
  data: Prisma.XOR<Prisma.ComplexUpdateWithoutCourtsInput, Prisma.ComplexUncheckedUpdateWithoutCourtsInput>
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUpdateManyWithoutComplexNestedInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedUpdateManyWithoutComplexNestedInput
}

export type ComplexCreateWithoutRecurringGroupsInput = {
  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 ComplexUncheckedCreateWithoutRecurringGroupsInput = {
  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 ComplexCreateOrConnectWithoutRecurringGroupsInput = {
  where: Prisma.ComplexWhereUniqueInput
  create: Prisma.XOR<Prisma.ComplexCreateWithoutRecurringGroupsInput, Prisma.ComplexUncheckedCreateWithoutRecurringGroupsInput>
}

export type ComplexUpsertWithoutRecurringGroupsInput = {
  update: Prisma.XOR<Prisma.ComplexUpdateWithoutRecurringGroupsInput, Prisma.ComplexUncheckedUpdateWithoutRecurringGroupsInput>
  create: Prisma.XOR<Prisma.ComplexCreateWithoutRecurringGroupsInput, Prisma.ComplexUncheckedCreateWithoutRecurringGroupsInput>
  where?: Prisma.ComplexWhereInput
}

export type ComplexUpdateToOneWithWhereWithoutRecurringGroupsInput = {
  where?: Prisma.ComplexWhereInput
  data: Prisma.XOR<Prisma.ComplexUpdateWithoutRecurringGroupsInput, Prisma.ComplexUncheckedUpdateWithoutRecurringGroupsInput>
}

export type ComplexUpdateWithoutRecurringGroupsInput = {
  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 ComplexUncheckedUpdateWithoutRecurringGroupsInput = {
  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 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
  recurringGroups?: Prisma.RecurringBookingGroupCreateNestedManyWithoutComplexInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedCreateNestedManyWithoutComplexInput
}

export type ComplexCreateOrConnectWithoutPlanInput = {
  where: Prisma.ComplexWhereUniqueInput
  create: Prisma.XOR<Prisma.ComplexCreateWithoutPlanInput, Prisma.ComplexUncheckedCreateWithoutPlanInput>
}

export type ComplexCreateManyPlanInputEnvelope = {
  data: Prisma.ComplexCreateManyPlanInput | Prisma.ComplexCreateManyPlanInput[]
  skipDuplicates?: boolean
}

export type ComplexUpsertWithWhereUniqueWithoutPlanInput = {
  where: Prisma.ComplexWhereUniqueInput
  update: Prisma.XOR<Prisma.ComplexUpdateWithoutPlanInput, Prisma.ComplexUncheckedUpdateWithoutPlanInput>
  create: Prisma.XOR<Prisma.ComplexCreateWithoutPlanInput, Prisma.ComplexUncheckedCreateWithoutPlanInput>
}

export type ComplexUpdateWithWhereUniqueWithoutPlanInput = {
  where: Prisma.ComplexWhereUniqueInput
  data: Prisma.XOR<Prisma.ComplexUpdateWithoutPlanInput, Prisma.ComplexUncheckedUpdateWithoutPlanInput>
}

export type ComplexUpdateManyWithWhereWithoutPlanInput = {
  where: Prisma.ComplexScalarWhereInput
  data: Prisma.XOR<Prisma.ComplexUpdateManyMutationInput, Prisma.ComplexUncheckedUpdateManyWithoutPlanInput>
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUpdateManyWithoutComplexNestedInput
}

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
  recurringGroups?: Prisma.RecurringBookingGroupUncheckedUpdateManyWithoutComplexNestedInput
}

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
  recurringGroups: number
}

export type ComplexCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  users?: boolean | ComplexCountOutputTypeCountUsersArgs
  invitations?: boolean | ComplexCountOutputTypeCountInvitationsArgs
  courts?: boolean | ComplexCountOutputTypeCountCourtsArgs
  recurringGroups?: boolean | ComplexCountOutputTypeCountRecurringGroupsArgs
}

/**
 * ComplexCountOutputType without action
 */
export type ComplexCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ComplexCountOutputType
   */
  select?: Prisma.ComplexCountOutputTypeSelect<ExtArgs> | null
}

/**
 * ComplexCountOutputType without action
 */
export type ComplexCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ComplexUserWhereInput
}

/**
 * ComplexCountOutputType without action
 */
export type ComplexCountOutputTypeCountInvitationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ComplexInvitationWhereInput
}

/**
 * ComplexCountOutputType without action
 */
export type ComplexCountOutputTypeCountCourtsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CourtWhereInput
}

/**
 * ComplexCountOutputType without action
 */
export type ComplexCountOutputTypeCountRecurringGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.RecurringBookingGroupWhereInput
}


export type ComplexSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
  users?: boolean | Prisma.Complex$usersArgs<ExtArgs>
  invitations?: boolean | Prisma.Complex$invitationsArgs<ExtArgs>
  courts?: boolean | Prisma.Complex$courtsArgs<ExtArgs>
  recurringGroups?: boolean | Prisma.Complex$recurringGroupsArgs<ExtArgs>
  _count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["complex"]>

export type ComplexSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
}, ExtArgs["result"]["complex"]>

export type ComplexSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "complexName" | "physicalAddress" | "city" | "state" | "country" | "complexSlug" | "adminEmail" | "planCode" | "createdAt" | "updatedAt", ExtArgs["result"]["complex"]>
export type ComplexInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  plan?: boolean | Prisma.Complex$planArgs<ExtArgs>
  users?: boolean | Prisma.Complex$usersArgs<ExtArgs>
  invitations?: boolean | Prisma.Complex$invitationsArgs<ExtArgs>
  courts?: boolean | Prisma.Complex$courtsArgs<ExtArgs>
  recurringGroups?: boolean | Prisma.Complex$recurringGroupsArgs<ExtArgs>
  _count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs<ExtArgs>
}
export type ComplexIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  plan?: boolean | Prisma.Complex$planArgs<ExtArgs>
}
export type ComplexIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  plan?: boolean | Prisma.Complex$planArgs<ExtArgs>
}

export type $ComplexPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Complex"
  objects: {
    plan: Prisma.$PlanPayload<ExtArgs> | null
    users: Prisma.$ComplexUserPayload<ExtArgs>[]
    invitations: Prisma.$ComplexInvitationPayload<ExtArgs>[]
    courts: Prisma.$CourtPayload<ExtArgs>[]
    recurringGroups: Prisma.$RecurringBookingGroupPayload<ExtArgs>[]
  }
  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<S extends boolean | null | undefined | ComplexDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ComplexPayload, S>

export type ComplexCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<ComplexFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: ComplexCountAggregateInputType | true
  }

export interface ComplexDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends ComplexFindUniqueArgs>(args: Prisma.SelectSubset<T, ComplexFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ComplexFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexFindFirstArgs>(args?: Prisma.SelectSubset<T, ComplexFindFirstArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ComplexFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexFindManyArgs>(args?: Prisma.SelectSubset<T, ComplexFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexCreateArgs>(args: Prisma.SelectSubset<T, ComplexCreateArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexCreateManyArgs>(args?: Prisma.SelectSubset<T, ComplexCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * 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<T extends ComplexCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ComplexCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexDeleteArgs>(args: Prisma.SelectSubset<T, ComplexDeleteArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexUpdateArgs>(args: Prisma.SelectSubset<T, ComplexUpdateArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexDeleteManyArgs>(args?: Prisma.SelectSubset<T, ComplexDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * 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<T extends ComplexUpdateManyArgs>(args: Prisma.SelectSubset<T, ComplexUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * 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<T extends ComplexUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ComplexUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexUpsertArgs>(args: Prisma.SelectSubset<T, ComplexUpsertArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, 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<T extends ComplexCountArgs>(
    args?: Prisma.Subset<T, ComplexCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], ComplexCountAggregateOutputType>
      : 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<T extends ComplexAggregateArgs>(args: Prisma.Subset<T, ComplexAggregateArgs>): Prisma.PrismaPromise<GetComplexAggregateType<T>>

  /**
   * 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<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: ComplexGroupByArgs['orderBy'] }
      : { orderBy?: ComplexGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    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<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? 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<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? 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<T, ComplexGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetComplexGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  plan<T extends Prisma.Complex$planArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$planArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  users<T extends Prisma.Complex$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ComplexUserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  invitations<T extends Prisma.Complex$invitationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$invitationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ComplexInvitationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  courts<T extends Prisma.Complex$courtsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$courtsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  recurringGroups<T extends Prisma.Complex$recurringGroupsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$recurringGroupsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecurringBookingGroupPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * 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<T>
}




/**
 * 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | null
  /**
   * Filter, which Complex to fetch.
   */
  where: Prisma.ComplexWhereUniqueInput
}

/**
 * Complex findUniqueOrThrow
 */
export type ComplexFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | null
  /**
   * Filter, which Complex to fetch.
   */
  where: Prisma.ComplexWhereUniqueInput
}

/**
 * Complex findFirst
 */
export type ComplexFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | null
  /**
   * The data needed to create a Complex.
   */
  data: Prisma.XOR<Prisma.ComplexCreateInput, Prisma.ComplexUncheckedCreateInput>
}

/**
 * Complex createMany
 */
export type ComplexCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many Complexes.
   */
  data: Prisma.ComplexCreateManyInput | Prisma.ComplexCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * Complex createManyAndReturn
 */
export type ComplexCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | 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<ExtArgs> | null
}

/**
 * Complex update
 */
export type ComplexUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | null
  /**
   * The data needed to update a Complex.
   */
  data: Prisma.XOR<Prisma.ComplexUpdateInput, Prisma.ComplexUncheckedUpdateInput>
  /**
   * Choose, which Complex to update.
   */
  where: Prisma.ComplexWhereUniqueInput
}

/**
 * Complex updateMany
 */
export type ComplexUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Complexes.
   */
  data: Prisma.XOR<Prisma.ComplexUpdateManyMutationInput, Prisma.ComplexUncheckedUpdateManyInput>
  /**
   * Filter which Complexes to update
   */
  where?: Prisma.ComplexWhereInput
  /**
   * Limit how many Complexes to update.
   */
  limit?: number
}

/**
 * Complex updateManyAndReturn
 */
export type ComplexUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * The data used to update Complexes.
   */
  data: Prisma.XOR<Prisma.ComplexUpdateManyMutationInput, Prisma.ComplexUncheckedUpdateManyInput>
  /**
   * 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<ExtArgs> | null
}

/**
 * Complex upsert
 */
export type ComplexUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | 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<Prisma.ComplexCreateInput, Prisma.ComplexUncheckedCreateInput>
  /**
   * In case the Complex was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ComplexUpdateInput, Prisma.ComplexUncheckedUpdateInput>
}

/**
 * Complex delete
 */
export type ComplexDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | null
  /**
   * Filter which Complex to delete.
   */
  where: Prisma.ComplexWhereUniqueInput
}

/**
 * Complex deleteMany
 */
export type ComplexDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Complexes to delete
   */
  where?: Prisma.ComplexWhereInput
  /**
   * Limit how many Complexes to delete.
   */
  limit?: number
}

/**
 * Complex.plan
 */
export type Complex$planArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Plan
   */
  select?: Prisma.PlanSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Plan
   */
  omit?: Prisma.PlanOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlanInclude<ExtArgs> | null
  where?: Prisma.PlanWhereInput
}

/**
 * Complex.users
 */
export type Complex$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ComplexUser
   */
  select?: Prisma.ComplexUserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ComplexUser
   */
  omit?: Prisma.ComplexUserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexUserInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ComplexInvitation
   */
  select?: Prisma.ComplexInvitationSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ComplexInvitation
   */
  omit?: Prisma.ComplexInvitationOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInvitationInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Court
   */
  select?: Prisma.CourtSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Court
   */
  omit?: Prisma.CourtOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtInclude<ExtArgs> | null
  where?: Prisma.CourtWhereInput
  orderBy?: Prisma.CourtOrderByWithRelationInput | Prisma.CourtOrderByWithRelationInput[]
  cursor?: Prisma.CourtWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.CourtScalarFieldEnum | Prisma.CourtScalarFieldEnum[]
}

/**
 * Complex.recurringGroups
 */
export type Complex$recurringGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RecurringBookingGroup
   */
  select?: Prisma.RecurringBookingGroupSelect<ExtArgs> | null
  /**
   * Omit specific fields from the RecurringBookingGroup
   */
  omit?: Prisma.RecurringBookingGroupOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RecurringBookingGroupInclude<ExtArgs> | null
  where?: Prisma.RecurringBookingGroupWhereInput
  orderBy?: Prisma.RecurringBookingGroupOrderByWithRelationInput | Prisma.RecurringBookingGroupOrderByWithRelationInput[]
  cursor?: Prisma.RecurringBookingGroupWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.RecurringBookingGroupScalarFieldEnum | Prisma.RecurringBookingGroupScalarFieldEnum[]
}

/**
 * Complex without action
 */
export type ComplexDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Complex
   */
  select?: Prisma.ComplexSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Complex
   */
  omit?: Prisma.ComplexOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ComplexInclude<ExtArgs> | null
}
