
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `CourtAvailability` 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 CourtAvailability
 * 
 */
export type CourtAvailabilityModel = runtime.Types.Result.DefaultSelection<Prisma.$CourtAvailabilityPayload>

export type AggregateCourtAvailability = {
  _count: CourtAvailabilityCountAggregateOutputType | null
  _min: CourtAvailabilityMinAggregateOutputType | null
  _max: CourtAvailabilityMaxAggregateOutputType | null
}

export type CourtAvailabilityMinAggregateOutputType = {
  id: string | null
  courtId: string | null
  dayOfWeek: $Enums.DayOfWeek | null
  startTime: string | null
  endTime: string | null
  createdAt: Date | null
}

export type CourtAvailabilityMaxAggregateOutputType = {
  id: string | null
  courtId: string | null
  dayOfWeek: $Enums.DayOfWeek | null
  startTime: string | null
  endTime: string | null
  createdAt: Date | null
}

export type CourtAvailabilityCountAggregateOutputType = {
  id: number
  courtId: number
  dayOfWeek: number
  startTime: number
  endTime: number
  createdAt: number
  _all: number
}


export type CourtAvailabilityMinAggregateInputType = {
  id?: true
  courtId?: true
  dayOfWeek?: true
  startTime?: true
  endTime?: true
  createdAt?: true
}

export type CourtAvailabilityMaxAggregateInputType = {
  id?: true
  courtId?: true
  dayOfWeek?: true
  startTime?: true
  endTime?: true
  createdAt?: true
}

export type CourtAvailabilityCountAggregateInputType = {
  id?: true
  courtId?: true
  dayOfWeek?: true
  startTime?: true
  endTime?: true
  createdAt?: true
  _all?: true
}

export type CourtAvailabilityAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CourtAvailability to aggregate.
   */
  where?: Prisma.CourtAvailabilityWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CourtAvailabilities to fetch.
   */
  orderBy?: Prisma.CourtAvailabilityOrderByWithRelationInput | Prisma.CourtAvailabilityOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.CourtAvailabilityWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CourtAvailabilities 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` CourtAvailabilities.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned CourtAvailabilities
  **/
  _count?: true | CourtAvailabilityCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: CourtAvailabilityMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: CourtAvailabilityMaxAggregateInputType
}

export type GetCourtAvailabilityAggregateType<T extends CourtAvailabilityAggregateArgs> = {
      [P in keyof T & keyof AggregateCourtAvailability]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateCourtAvailability[P]>
    : Prisma.GetScalarType<T[P], AggregateCourtAvailability[P]>
}




export type CourtAvailabilityGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CourtAvailabilityWhereInput
  orderBy?: Prisma.CourtAvailabilityOrderByWithAggregationInput | Prisma.CourtAvailabilityOrderByWithAggregationInput[]
  by: Prisma.CourtAvailabilityScalarFieldEnum[] | Prisma.CourtAvailabilityScalarFieldEnum
  having?: Prisma.CourtAvailabilityScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: CourtAvailabilityCountAggregateInputType | true
  _min?: CourtAvailabilityMinAggregateInputType
  _max?: CourtAvailabilityMaxAggregateInputType
}

export type CourtAvailabilityGroupByOutputType = {
  id: string
  courtId: string
  dayOfWeek: $Enums.DayOfWeek
  startTime: string
  endTime: string
  createdAt: Date
  _count: CourtAvailabilityCountAggregateOutputType | null
  _min: CourtAvailabilityMinAggregateOutputType | null
  _max: CourtAvailabilityMaxAggregateOutputType | null
}

export type GetCourtAvailabilityGroupByPayload<T extends CourtAvailabilityGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<CourtAvailabilityGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof CourtAvailabilityGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], CourtAvailabilityGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], CourtAvailabilityGroupByOutputType[P]>
      }
    >
  >



export type CourtAvailabilityWhereInput = {
  AND?: Prisma.CourtAvailabilityWhereInput | Prisma.CourtAvailabilityWhereInput[]
  OR?: Prisma.CourtAvailabilityWhereInput[]
  NOT?: Prisma.CourtAvailabilityWhereInput | Prisma.CourtAvailabilityWhereInput[]
  id?: Prisma.UuidFilter<"CourtAvailability"> | string
  courtId?: Prisma.UuidFilter<"CourtAvailability"> | string
  dayOfWeek?: Prisma.EnumDayOfWeekFilter<"CourtAvailability"> | $Enums.DayOfWeek
  startTime?: Prisma.StringFilter<"CourtAvailability"> | string
  endTime?: Prisma.StringFilter<"CourtAvailability"> | string
  createdAt?: Prisma.DateTimeFilter<"CourtAvailability"> | Date | string
  court?: Prisma.XOR<Prisma.CourtScalarRelationFilter, Prisma.CourtWhereInput>
}

export type CourtAvailabilityOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  courtId?: Prisma.SortOrder
  dayOfWeek?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  endTime?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  court?: Prisma.CourtOrderByWithRelationInput
}

export type CourtAvailabilityWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.CourtAvailabilityWhereInput | Prisma.CourtAvailabilityWhereInput[]
  OR?: Prisma.CourtAvailabilityWhereInput[]
  NOT?: Prisma.CourtAvailabilityWhereInput | Prisma.CourtAvailabilityWhereInput[]
  courtId?: Prisma.UuidFilter<"CourtAvailability"> | string
  dayOfWeek?: Prisma.EnumDayOfWeekFilter<"CourtAvailability"> | $Enums.DayOfWeek
  startTime?: Prisma.StringFilter<"CourtAvailability"> | string
  endTime?: Prisma.StringFilter<"CourtAvailability"> | string
  createdAt?: Prisma.DateTimeFilter<"CourtAvailability"> | Date | string
  court?: Prisma.XOR<Prisma.CourtScalarRelationFilter, Prisma.CourtWhereInput>
}, "id">

export type CourtAvailabilityOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  courtId?: Prisma.SortOrder
  dayOfWeek?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  endTime?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.CourtAvailabilityCountOrderByAggregateInput
  _max?: Prisma.CourtAvailabilityMaxOrderByAggregateInput
  _min?: Prisma.CourtAvailabilityMinOrderByAggregateInput
}

export type CourtAvailabilityScalarWhereWithAggregatesInput = {
  AND?: Prisma.CourtAvailabilityScalarWhereWithAggregatesInput | Prisma.CourtAvailabilityScalarWhereWithAggregatesInput[]
  OR?: Prisma.CourtAvailabilityScalarWhereWithAggregatesInput[]
  NOT?: Prisma.CourtAvailabilityScalarWhereWithAggregatesInput | Prisma.CourtAvailabilityScalarWhereWithAggregatesInput[]
  id?: Prisma.UuidWithAggregatesFilter<"CourtAvailability"> | string
  courtId?: Prisma.UuidWithAggregatesFilter<"CourtAvailability"> | string
  dayOfWeek?: Prisma.EnumDayOfWeekWithAggregatesFilter<"CourtAvailability"> | $Enums.DayOfWeek
  startTime?: Prisma.StringWithAggregatesFilter<"CourtAvailability"> | string
  endTime?: Prisma.StringWithAggregatesFilter<"CourtAvailability"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"CourtAvailability"> | Date | string
}

export type CourtAvailabilityCreateInput = {
  id: string
  dayOfWeek: $Enums.DayOfWeek
  startTime: string
  endTime: string
  createdAt?: Date | string
  court: Prisma.CourtCreateNestedOneWithoutAvailabilitiesInput
}

export type CourtAvailabilityUncheckedCreateInput = {
  id: string
  courtId: string
  dayOfWeek: $Enums.DayOfWeek
  startTime: string
  endTime: string
  createdAt?: Date | string
}

export type CourtAvailabilityUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  dayOfWeek?: Prisma.EnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  endTime?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  court?: Prisma.CourtUpdateOneRequiredWithoutAvailabilitiesNestedInput
}

export type CourtAvailabilityUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  courtId?: Prisma.StringFieldUpdateOperationsInput | string
  dayOfWeek?: Prisma.EnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  endTime?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CourtAvailabilityCreateManyInput = {
  id: string
  courtId: string
  dayOfWeek: $Enums.DayOfWeek
  startTime: string
  endTime: string
  createdAt?: Date | string
}

export type CourtAvailabilityUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  dayOfWeek?: Prisma.EnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  endTime?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CourtAvailabilityUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  courtId?: Prisma.StringFieldUpdateOperationsInput | string
  dayOfWeek?: Prisma.EnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  endTime?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CourtAvailabilityListRelationFilter = {
  every?: Prisma.CourtAvailabilityWhereInput
  some?: Prisma.CourtAvailabilityWhereInput
  none?: Prisma.CourtAvailabilityWhereInput
}

export type CourtAvailabilityOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type CourtAvailabilityCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  courtId?: Prisma.SortOrder
  dayOfWeek?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  endTime?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type CourtAvailabilityMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  courtId?: Prisma.SortOrder
  dayOfWeek?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  endTime?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type CourtAvailabilityMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  courtId?: Prisma.SortOrder
  dayOfWeek?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  endTime?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type CourtAvailabilityCreateNestedManyWithoutCourtInput = {
  create?: Prisma.XOR<Prisma.CourtAvailabilityCreateWithoutCourtInput, Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput> | Prisma.CourtAvailabilityCreateWithoutCourtInput[] | Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput[]
  connectOrCreate?: Prisma.CourtAvailabilityCreateOrConnectWithoutCourtInput | Prisma.CourtAvailabilityCreateOrConnectWithoutCourtInput[]
  createMany?: Prisma.CourtAvailabilityCreateManyCourtInputEnvelope
  connect?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
}

export type CourtAvailabilityUncheckedCreateNestedManyWithoutCourtInput = {
  create?: Prisma.XOR<Prisma.CourtAvailabilityCreateWithoutCourtInput, Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput> | Prisma.CourtAvailabilityCreateWithoutCourtInput[] | Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput[]
  connectOrCreate?: Prisma.CourtAvailabilityCreateOrConnectWithoutCourtInput | Prisma.CourtAvailabilityCreateOrConnectWithoutCourtInput[]
  createMany?: Prisma.CourtAvailabilityCreateManyCourtInputEnvelope
  connect?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
}

export type CourtAvailabilityUpdateManyWithoutCourtNestedInput = {
  create?: Prisma.XOR<Prisma.CourtAvailabilityCreateWithoutCourtInput, Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput> | Prisma.CourtAvailabilityCreateWithoutCourtInput[] | Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput[]
  connectOrCreate?: Prisma.CourtAvailabilityCreateOrConnectWithoutCourtInput | Prisma.CourtAvailabilityCreateOrConnectWithoutCourtInput[]
  upsert?: Prisma.CourtAvailabilityUpsertWithWhereUniqueWithoutCourtInput | Prisma.CourtAvailabilityUpsertWithWhereUniqueWithoutCourtInput[]
  createMany?: Prisma.CourtAvailabilityCreateManyCourtInputEnvelope
  set?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
  disconnect?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
  delete?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
  connect?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
  update?: Prisma.CourtAvailabilityUpdateWithWhereUniqueWithoutCourtInput | Prisma.CourtAvailabilityUpdateWithWhereUniqueWithoutCourtInput[]
  updateMany?: Prisma.CourtAvailabilityUpdateManyWithWhereWithoutCourtInput | Prisma.CourtAvailabilityUpdateManyWithWhereWithoutCourtInput[]
  deleteMany?: Prisma.CourtAvailabilityScalarWhereInput | Prisma.CourtAvailabilityScalarWhereInput[]
}

export type CourtAvailabilityUncheckedUpdateManyWithoutCourtNestedInput = {
  create?: Prisma.XOR<Prisma.CourtAvailabilityCreateWithoutCourtInput, Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput> | Prisma.CourtAvailabilityCreateWithoutCourtInput[] | Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput[]
  connectOrCreate?: Prisma.CourtAvailabilityCreateOrConnectWithoutCourtInput | Prisma.CourtAvailabilityCreateOrConnectWithoutCourtInput[]
  upsert?: Prisma.CourtAvailabilityUpsertWithWhereUniqueWithoutCourtInput | Prisma.CourtAvailabilityUpsertWithWhereUniqueWithoutCourtInput[]
  createMany?: Prisma.CourtAvailabilityCreateManyCourtInputEnvelope
  set?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
  disconnect?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
  delete?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
  connect?: Prisma.CourtAvailabilityWhereUniqueInput | Prisma.CourtAvailabilityWhereUniqueInput[]
  update?: Prisma.CourtAvailabilityUpdateWithWhereUniqueWithoutCourtInput | Prisma.CourtAvailabilityUpdateWithWhereUniqueWithoutCourtInput[]
  updateMany?: Prisma.CourtAvailabilityUpdateManyWithWhereWithoutCourtInput | Prisma.CourtAvailabilityUpdateManyWithWhereWithoutCourtInput[]
  deleteMany?: Prisma.CourtAvailabilityScalarWhereInput | Prisma.CourtAvailabilityScalarWhereInput[]
}

export type EnumDayOfWeekFieldUpdateOperationsInput = {
  set?: $Enums.DayOfWeek
}

export type CourtAvailabilityCreateWithoutCourtInput = {
  id: string
  dayOfWeek: $Enums.DayOfWeek
  startTime: string
  endTime: string
  createdAt?: Date | string
}

export type CourtAvailabilityUncheckedCreateWithoutCourtInput = {
  id: string
  dayOfWeek: $Enums.DayOfWeek
  startTime: string
  endTime: string
  createdAt?: Date | string
}

export type CourtAvailabilityCreateOrConnectWithoutCourtInput = {
  where: Prisma.CourtAvailabilityWhereUniqueInput
  create: Prisma.XOR<Prisma.CourtAvailabilityCreateWithoutCourtInput, Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput>
}

export type CourtAvailabilityCreateManyCourtInputEnvelope = {
  data: Prisma.CourtAvailabilityCreateManyCourtInput | Prisma.CourtAvailabilityCreateManyCourtInput[]
  skipDuplicates?: boolean
}

export type CourtAvailabilityUpsertWithWhereUniqueWithoutCourtInput = {
  where: Prisma.CourtAvailabilityWhereUniqueInput
  update: Prisma.XOR<Prisma.CourtAvailabilityUpdateWithoutCourtInput, Prisma.CourtAvailabilityUncheckedUpdateWithoutCourtInput>
  create: Prisma.XOR<Prisma.CourtAvailabilityCreateWithoutCourtInput, Prisma.CourtAvailabilityUncheckedCreateWithoutCourtInput>
}

export type CourtAvailabilityUpdateWithWhereUniqueWithoutCourtInput = {
  where: Prisma.CourtAvailabilityWhereUniqueInput
  data: Prisma.XOR<Prisma.CourtAvailabilityUpdateWithoutCourtInput, Prisma.CourtAvailabilityUncheckedUpdateWithoutCourtInput>
}

export type CourtAvailabilityUpdateManyWithWhereWithoutCourtInput = {
  where: Prisma.CourtAvailabilityScalarWhereInput
  data: Prisma.XOR<Prisma.CourtAvailabilityUpdateManyMutationInput, Prisma.CourtAvailabilityUncheckedUpdateManyWithoutCourtInput>
}

export type CourtAvailabilityScalarWhereInput = {
  AND?: Prisma.CourtAvailabilityScalarWhereInput | Prisma.CourtAvailabilityScalarWhereInput[]
  OR?: Prisma.CourtAvailabilityScalarWhereInput[]
  NOT?: Prisma.CourtAvailabilityScalarWhereInput | Prisma.CourtAvailabilityScalarWhereInput[]
  id?: Prisma.UuidFilter<"CourtAvailability"> | string
  courtId?: Prisma.UuidFilter<"CourtAvailability"> | string
  dayOfWeek?: Prisma.EnumDayOfWeekFilter<"CourtAvailability"> | $Enums.DayOfWeek
  startTime?: Prisma.StringFilter<"CourtAvailability"> | string
  endTime?: Prisma.StringFilter<"CourtAvailability"> | string
  createdAt?: Prisma.DateTimeFilter<"CourtAvailability"> | Date | string
}

export type CourtAvailabilityCreateManyCourtInput = {
  id: string
  dayOfWeek: $Enums.DayOfWeek
  startTime: string
  endTime: string
  createdAt?: Date | string
}

export type CourtAvailabilityUpdateWithoutCourtInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  dayOfWeek?: Prisma.EnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  endTime?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CourtAvailabilityUncheckedUpdateWithoutCourtInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  dayOfWeek?: Prisma.EnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  endTime?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CourtAvailabilityUncheckedUpdateManyWithoutCourtInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  dayOfWeek?: Prisma.EnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  endTime?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type CourtAvailabilitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  courtId?: boolean
  dayOfWeek?: boolean
  startTime?: boolean
  endTime?: boolean
  createdAt?: boolean
  court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}, ExtArgs["result"]["courtAvailability"]>

export type CourtAvailabilitySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  courtId?: boolean
  dayOfWeek?: boolean
  startTime?: boolean
  endTime?: boolean
  createdAt?: boolean
  court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}, ExtArgs["result"]["courtAvailability"]>

export type CourtAvailabilitySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  courtId?: boolean
  dayOfWeek?: boolean
  startTime?: boolean
  endTime?: boolean
  createdAt?: boolean
  court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}, ExtArgs["result"]["courtAvailability"]>

export type CourtAvailabilitySelectScalar = {
  id?: boolean
  courtId?: boolean
  dayOfWeek?: boolean
  startTime?: boolean
  endTime?: boolean
  createdAt?: boolean
}

export type CourtAvailabilityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "courtId" | "dayOfWeek" | "startTime" | "endTime" | "createdAt", ExtArgs["result"]["courtAvailability"]>
export type CourtAvailabilityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}
export type CourtAvailabilityIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}
export type CourtAvailabilityIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}

export type $CourtAvailabilityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "CourtAvailability"
  objects: {
    court: Prisma.$CourtPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    courtId: string
    dayOfWeek: $Enums.DayOfWeek
    startTime: string
    endTime: string
    createdAt: Date
  }, ExtArgs["result"]["courtAvailability"]>
  composites: {}
}

export type CourtAvailabilityGetPayload<S extends boolean | null | undefined | CourtAvailabilityDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload, S>

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

export interface CourtAvailabilityDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CourtAvailability'], meta: { name: 'CourtAvailability' } }
  /**
   * Find zero or one CourtAvailability that matches the filter.
   * @param {CourtAvailabilityFindUniqueArgs} args - Arguments to find a CourtAvailability
   * @example
   * // Get one CourtAvailability
   * const courtAvailability = await prisma.courtAvailability.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends CourtAvailabilityFindUniqueArgs>(args: Prisma.SelectSubset<T, CourtAvailabilityFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CourtAvailabilityClient<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one CourtAvailability that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {CourtAvailabilityFindUniqueOrThrowArgs} args - Arguments to find a CourtAvailability
   * @example
   * // Get one CourtAvailability
   * const courtAvailability = await prisma.courtAvailability.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends CourtAvailabilityFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CourtAvailabilityFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CourtAvailabilityClient<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first CourtAvailability 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 {CourtAvailabilityFindFirstArgs} args - Arguments to find a CourtAvailability
   * @example
   * // Get one CourtAvailability
   * const courtAvailability = await prisma.courtAvailability.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends CourtAvailabilityFindFirstArgs>(args?: Prisma.SelectSubset<T, CourtAvailabilityFindFirstArgs<ExtArgs>>): Prisma.Prisma__CourtAvailabilityClient<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first CourtAvailability 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 {CourtAvailabilityFindFirstOrThrowArgs} args - Arguments to find a CourtAvailability
   * @example
   * // Get one CourtAvailability
   * const courtAvailability = await prisma.courtAvailability.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends CourtAvailabilityFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CourtAvailabilityFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CourtAvailabilityClient<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more CourtAvailabilities 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 {CourtAvailabilityFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all CourtAvailabilities
   * const courtAvailabilities = await prisma.courtAvailability.findMany()
   * 
   * // Get first 10 CourtAvailabilities
   * const courtAvailabilities = await prisma.courtAvailability.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const courtAvailabilityWithIdOnly = await prisma.courtAvailability.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends CourtAvailabilityFindManyArgs>(args?: Prisma.SelectSubset<T, CourtAvailabilityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a CourtAvailability.
   * @param {CourtAvailabilityCreateArgs} args - Arguments to create a CourtAvailability.
   * @example
   * // Create one CourtAvailability
   * const CourtAvailability = await prisma.courtAvailability.create({
   *   data: {
   *     // ... data to create a CourtAvailability
   *   }
   * })
   * 
   */
  create<T extends CourtAvailabilityCreateArgs>(args: Prisma.SelectSubset<T, CourtAvailabilityCreateArgs<ExtArgs>>): Prisma.Prisma__CourtAvailabilityClient<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many CourtAvailabilities.
   * @param {CourtAvailabilityCreateManyArgs} args - Arguments to create many CourtAvailabilities.
   * @example
   * // Create many CourtAvailabilities
   * const courtAvailability = await prisma.courtAvailability.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends CourtAvailabilityCreateManyArgs>(args?: Prisma.SelectSubset<T, CourtAvailabilityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many CourtAvailabilities and returns the data saved in the database.
   * @param {CourtAvailabilityCreateManyAndReturnArgs} args - Arguments to create many CourtAvailabilities.
   * @example
   * // Create many CourtAvailabilities
   * const courtAvailability = await prisma.courtAvailability.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many CourtAvailabilities and only return the `id`
   * const courtAvailabilityWithIdOnly = await prisma.courtAvailability.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 CourtAvailabilityCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CourtAvailabilityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a CourtAvailability.
   * @param {CourtAvailabilityDeleteArgs} args - Arguments to delete one CourtAvailability.
   * @example
   * // Delete one CourtAvailability
   * const CourtAvailability = await prisma.courtAvailability.delete({
   *   where: {
   *     // ... filter to delete one CourtAvailability
   *   }
   * })
   * 
   */
  delete<T extends CourtAvailabilityDeleteArgs>(args: Prisma.SelectSubset<T, CourtAvailabilityDeleteArgs<ExtArgs>>): Prisma.Prisma__CourtAvailabilityClient<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one CourtAvailability.
   * @param {CourtAvailabilityUpdateArgs} args - Arguments to update one CourtAvailability.
   * @example
   * // Update one CourtAvailability
   * const courtAvailability = await prisma.courtAvailability.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends CourtAvailabilityUpdateArgs>(args: Prisma.SelectSubset<T, CourtAvailabilityUpdateArgs<ExtArgs>>): Prisma.Prisma__CourtAvailabilityClient<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more CourtAvailabilities.
   * @param {CourtAvailabilityDeleteManyArgs} args - Arguments to filter CourtAvailabilities to delete.
   * @example
   * // Delete a few CourtAvailabilities
   * const { count } = await prisma.courtAvailability.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends CourtAvailabilityDeleteManyArgs>(args?: Prisma.SelectSubset<T, CourtAvailabilityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more CourtAvailabilities.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CourtAvailabilityUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many CourtAvailabilities
   * const courtAvailability = await prisma.courtAvailability.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends CourtAvailabilityUpdateManyArgs>(args: Prisma.SelectSubset<T, CourtAvailabilityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more CourtAvailabilities and returns the data updated in the database.
   * @param {CourtAvailabilityUpdateManyAndReturnArgs} args - Arguments to update many CourtAvailabilities.
   * @example
   * // Update many CourtAvailabilities
   * const courtAvailability = await prisma.courtAvailability.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more CourtAvailabilities and only return the `id`
   * const courtAvailabilityWithIdOnly = await prisma.courtAvailability.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 CourtAvailabilityUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CourtAvailabilityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one CourtAvailability.
   * @param {CourtAvailabilityUpsertArgs} args - Arguments to update or create a CourtAvailability.
   * @example
   * // Update or create a CourtAvailability
   * const courtAvailability = await prisma.courtAvailability.upsert({
   *   create: {
   *     // ... data to create a CourtAvailability
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the CourtAvailability we want to update
   *   }
   * })
   */
  upsert<T extends CourtAvailabilityUpsertArgs>(args: Prisma.SelectSubset<T, CourtAvailabilityUpsertArgs<ExtArgs>>): Prisma.Prisma__CourtAvailabilityClient<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of CourtAvailabilities.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CourtAvailabilityCountArgs} args - Arguments to filter CourtAvailabilities to count.
   * @example
   * // Count the number of CourtAvailabilities
   * const count = await prisma.courtAvailability.count({
   *   where: {
   *     // ... the filter for the CourtAvailabilities we want to count
   *   }
   * })
  **/
  count<T extends CourtAvailabilityCountArgs>(
    args?: Prisma.Subset<T, CourtAvailabilityCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], CourtAvailabilityCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a CourtAvailability.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CourtAvailabilityAggregateArgs} 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 CourtAvailabilityAggregateArgs>(args: Prisma.Subset<T, CourtAvailabilityAggregateArgs>): Prisma.PrismaPromise<GetCourtAvailabilityAggregateType<T>>

  /**
   * Group by CourtAvailability.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CourtAvailabilityGroupByArgs} 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 CourtAvailabilityGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: CourtAvailabilityGroupByArgs['orderBy'] }
      : { orderBy?: CourtAvailabilityGroupByArgs['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, CourtAvailabilityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCourtAvailabilityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the CourtAvailability model
 */
readonly fields: CourtAvailabilityFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for CourtAvailability.
 * 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__CourtAvailabilityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  court<T extends Prisma.CourtDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CourtDefaultArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  /**
   * 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 CourtAvailability model
 */
export interface CourtAvailabilityFieldRefs {
  readonly id: Prisma.FieldRef<"CourtAvailability", 'String'>
  readonly courtId: Prisma.FieldRef<"CourtAvailability", 'String'>
  readonly dayOfWeek: Prisma.FieldRef<"CourtAvailability", 'DayOfWeek'>
  readonly startTime: Prisma.FieldRef<"CourtAvailability", 'String'>
  readonly endTime: Prisma.FieldRef<"CourtAvailability", 'String'>
  readonly createdAt: Prisma.FieldRef<"CourtAvailability", 'DateTime'>
}
    

// Custom InputTypes
/**
 * CourtAvailability findUnique
 */
export type CourtAvailabilityFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * Filter, which CourtAvailability to fetch.
   */
  where: Prisma.CourtAvailabilityWhereUniqueInput
}

/**
 * CourtAvailability findUniqueOrThrow
 */
export type CourtAvailabilityFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * Filter, which CourtAvailability to fetch.
   */
  where: Prisma.CourtAvailabilityWhereUniqueInput
}

/**
 * CourtAvailability findFirst
 */
export type CourtAvailabilityFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * Filter, which CourtAvailability to fetch.
   */
  where?: Prisma.CourtAvailabilityWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CourtAvailabilities to fetch.
   */
  orderBy?: Prisma.CourtAvailabilityOrderByWithRelationInput | Prisma.CourtAvailabilityOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for CourtAvailabilities.
   */
  cursor?: Prisma.CourtAvailabilityWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CourtAvailabilities 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` CourtAvailabilities.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CourtAvailabilities.
   */
  distinct?: Prisma.CourtAvailabilityScalarFieldEnum | Prisma.CourtAvailabilityScalarFieldEnum[]
}

/**
 * CourtAvailability findFirstOrThrow
 */
export type CourtAvailabilityFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * Filter, which CourtAvailability to fetch.
   */
  where?: Prisma.CourtAvailabilityWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CourtAvailabilities to fetch.
   */
  orderBy?: Prisma.CourtAvailabilityOrderByWithRelationInput | Prisma.CourtAvailabilityOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for CourtAvailabilities.
   */
  cursor?: Prisma.CourtAvailabilityWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CourtAvailabilities 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` CourtAvailabilities.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CourtAvailabilities.
   */
  distinct?: Prisma.CourtAvailabilityScalarFieldEnum | Prisma.CourtAvailabilityScalarFieldEnum[]
}

/**
 * CourtAvailability findMany
 */
export type CourtAvailabilityFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * Filter, which CourtAvailabilities to fetch.
   */
  where?: Prisma.CourtAvailabilityWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CourtAvailabilities to fetch.
   */
  orderBy?: Prisma.CourtAvailabilityOrderByWithRelationInput | Prisma.CourtAvailabilityOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing CourtAvailabilities.
   */
  cursor?: Prisma.CourtAvailabilityWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CourtAvailabilities 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` CourtAvailabilities.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CourtAvailabilities.
   */
  distinct?: Prisma.CourtAvailabilityScalarFieldEnum | Prisma.CourtAvailabilityScalarFieldEnum[]
}

/**
 * CourtAvailability create
 */
export type CourtAvailabilityCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * The data needed to create a CourtAvailability.
   */
  data: Prisma.XOR<Prisma.CourtAvailabilityCreateInput, Prisma.CourtAvailabilityUncheckedCreateInput>
}

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

/**
 * CourtAvailability createManyAndReturn
 */
export type CourtAvailabilityCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * The data used to create many CourtAvailabilities.
   */
  data: Prisma.CourtAvailabilityCreateManyInput | Prisma.CourtAvailabilityCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * CourtAvailability update
 */
export type CourtAvailabilityUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * The data needed to update a CourtAvailability.
   */
  data: Prisma.XOR<Prisma.CourtAvailabilityUpdateInput, Prisma.CourtAvailabilityUncheckedUpdateInput>
  /**
   * Choose, which CourtAvailability to update.
   */
  where: Prisma.CourtAvailabilityWhereUniqueInput
}

/**
 * CourtAvailability updateMany
 */
export type CourtAvailabilityUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update CourtAvailabilities.
   */
  data: Prisma.XOR<Prisma.CourtAvailabilityUpdateManyMutationInput, Prisma.CourtAvailabilityUncheckedUpdateManyInput>
  /**
   * Filter which CourtAvailabilities to update
   */
  where?: Prisma.CourtAvailabilityWhereInput
  /**
   * Limit how many CourtAvailabilities to update.
   */
  limit?: number
}

/**
 * CourtAvailability updateManyAndReturn
 */
export type CourtAvailabilityUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * The data used to update CourtAvailabilities.
   */
  data: Prisma.XOR<Prisma.CourtAvailabilityUpdateManyMutationInput, Prisma.CourtAvailabilityUncheckedUpdateManyInput>
  /**
   * Filter which CourtAvailabilities to update
   */
  where?: Prisma.CourtAvailabilityWhereInput
  /**
   * Limit how many CourtAvailabilities to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * CourtAvailability upsert
 */
export type CourtAvailabilityUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * The filter to search for the CourtAvailability to update in case it exists.
   */
  where: Prisma.CourtAvailabilityWhereUniqueInput
  /**
   * In case the CourtAvailability found by the `where` argument doesn't exist, create a new CourtAvailability with this data.
   */
  create: Prisma.XOR<Prisma.CourtAvailabilityCreateInput, Prisma.CourtAvailabilityUncheckedCreateInput>
  /**
   * In case the CourtAvailability was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.CourtAvailabilityUpdateInput, Prisma.CourtAvailabilityUncheckedUpdateInput>
}

/**
 * CourtAvailability delete
 */
export type CourtAvailabilityDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CourtAvailability
   */
  select?: Prisma.CourtAvailabilitySelect<ExtArgs> | null
  /**
   * Omit specific fields from the CourtAvailability
   */
  omit?: Prisma.CourtAvailabilityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CourtAvailabilityInclude<ExtArgs> | null
  /**
   * Filter which CourtAvailability to delete.
   */
  where: Prisma.CourtAvailabilityWhereUniqueInput
}

/**
 * CourtAvailability deleteMany
 */
export type CourtAvailabilityDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CourtAvailabilities to delete
   */
  where?: Prisma.CourtAvailabilityWhereInput
  /**
   * Limit how many CourtAvailabilities to delete.
   */
  limit?: number
}

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