/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Court` 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 Court * */ export type CourtModel = runtime.Types.Result.DefaultSelection export type AggregateCourt = { _count: CourtCountAggregateOutputType | null _avg: CourtAvgAggregateOutputType | null _sum: CourtSumAggregateOutputType | null _min: CourtMinAggregateOutputType | null _max: CourtMaxAggregateOutputType | null } export type CourtAvgAggregateOutputType = { slotDurationMinutes: number | null basePrice: runtime.Decimal | null } export type CourtSumAggregateOutputType = { slotDurationMinutes: number | null basePrice: runtime.Decimal | null } export type CourtMinAggregateOutputType = { id: string | null complexId: string | null sportId: string | null name: string | null slotDurationMinutes: number | null basePrice: runtime.Decimal | null createdAt: Date | null updatedAt: Date | null } export type CourtMaxAggregateOutputType = { id: string | null complexId: string | null sportId: string | null name: string | null slotDurationMinutes: number | null basePrice: runtime.Decimal | null createdAt: Date | null updatedAt: Date | null } export type CourtCountAggregateOutputType = { id: number complexId: number sportId: number name: number slotDurationMinutes: number basePrice: number createdAt: number updatedAt: number _all: number } export type CourtAvgAggregateInputType = { slotDurationMinutes?: true basePrice?: true } export type CourtSumAggregateInputType = { slotDurationMinutes?: true basePrice?: true } export type CourtMinAggregateInputType = { id?: true complexId?: true sportId?: true name?: true slotDurationMinutes?: true basePrice?: true createdAt?: true updatedAt?: true } export type CourtMaxAggregateInputType = { id?: true complexId?: true sportId?: true name?: true slotDurationMinutes?: true basePrice?: true createdAt?: true updatedAt?: true } export type CourtCountAggregateInputType = { id?: true complexId?: true sportId?: true name?: true slotDurationMinutes?: true basePrice?: true createdAt?: true updatedAt?: true _all?: true } export type CourtAggregateArgs = { /** * Filter which Court to aggregate. */ where?: Prisma.CourtWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Courts to fetch. */ orderBy?: Prisma.CourtOrderByWithRelationInput | Prisma.CourtOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.CourtWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Courts 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` Courts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Courts **/ _count?: true | CourtCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CourtAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CourtSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CourtMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CourtMaxAggregateInputType } export type GetCourtAggregateType = { [P in keyof T & keyof AggregateCourt]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CourtGroupByArgs = { where?: Prisma.CourtWhereInput orderBy?: Prisma.CourtOrderByWithAggregationInput | Prisma.CourtOrderByWithAggregationInput[] by: Prisma.CourtScalarFieldEnum[] | Prisma.CourtScalarFieldEnum having?: Prisma.CourtScalarWhereWithAggregatesInput take?: number skip?: number _count?: CourtCountAggregateInputType | true _avg?: CourtAvgAggregateInputType _sum?: CourtSumAggregateInputType _min?: CourtMinAggregateInputType _max?: CourtMaxAggregateInputType } export type CourtGroupByOutputType = { id: string complexId: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal createdAt: Date updatedAt: Date _count: CourtCountAggregateOutputType | null _avg: CourtAvgAggregateOutputType | null _sum: CourtSumAggregateOutputType | null _min: CourtMinAggregateOutputType | null _max: CourtMaxAggregateOutputType | null } export type GetCourtGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CourtGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type CourtWhereInput = { AND?: Prisma.CourtWhereInput | Prisma.CourtWhereInput[] OR?: Prisma.CourtWhereInput[] NOT?: Prisma.CourtWhereInput | Prisma.CourtWhereInput[] id?: Prisma.UuidFilter<"Court"> | string complexId?: Prisma.UuidFilter<"Court"> | string sportId?: Prisma.UuidFilter<"Court"> | string name?: Prisma.StringFilter<"Court"> | string slotDurationMinutes?: Prisma.IntFilter<"Court"> | number basePrice?: Prisma.DecimalFilter<"Court"> | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFilter<"Court"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Court"> | Date | string complex?: Prisma.XOR sport?: Prisma.XOR availabilities?: Prisma.CourtAvailabilityListRelationFilter priceRules?: Prisma.CourtPriceRuleListRelationFilter bookings?: Prisma.CourtBookingListRelationFilter } export type CourtOrderByWithRelationInput = { id?: Prisma.SortOrder complexId?: Prisma.SortOrder sportId?: Prisma.SortOrder name?: Prisma.SortOrder slotDurationMinutes?: Prisma.SortOrder basePrice?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder complex?: Prisma.ComplexOrderByWithRelationInput sport?: Prisma.SportOrderByWithRelationInput availabilities?: Prisma.CourtAvailabilityOrderByRelationAggregateInput priceRules?: Prisma.CourtPriceRuleOrderByRelationAggregateInput bookings?: Prisma.CourtBookingOrderByRelationAggregateInput } export type CourtWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.CourtWhereInput | Prisma.CourtWhereInput[] OR?: Prisma.CourtWhereInput[] NOT?: Prisma.CourtWhereInput | Prisma.CourtWhereInput[] complexId?: Prisma.UuidFilter<"Court"> | string sportId?: Prisma.UuidFilter<"Court"> | string name?: Prisma.StringFilter<"Court"> | string slotDurationMinutes?: Prisma.IntFilter<"Court"> | number basePrice?: Prisma.DecimalFilter<"Court"> | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFilter<"Court"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Court"> | Date | string complex?: Prisma.XOR sport?: Prisma.XOR availabilities?: Prisma.CourtAvailabilityListRelationFilter priceRules?: Prisma.CourtPriceRuleListRelationFilter bookings?: Prisma.CourtBookingListRelationFilter }, "id"> export type CourtOrderByWithAggregationInput = { id?: Prisma.SortOrder complexId?: Prisma.SortOrder sportId?: Prisma.SortOrder name?: Prisma.SortOrder slotDurationMinutes?: Prisma.SortOrder basePrice?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.CourtCountOrderByAggregateInput _avg?: Prisma.CourtAvgOrderByAggregateInput _max?: Prisma.CourtMaxOrderByAggregateInput _min?: Prisma.CourtMinOrderByAggregateInput _sum?: Prisma.CourtSumOrderByAggregateInput } export type CourtScalarWhereWithAggregatesInput = { AND?: Prisma.CourtScalarWhereWithAggregatesInput | Prisma.CourtScalarWhereWithAggregatesInput[] OR?: Prisma.CourtScalarWhereWithAggregatesInput[] NOT?: Prisma.CourtScalarWhereWithAggregatesInput | Prisma.CourtScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"Court"> | string complexId?: Prisma.UuidWithAggregatesFilter<"Court"> | string sportId?: Prisma.UuidWithAggregatesFilter<"Court"> | string name?: Prisma.StringWithAggregatesFilter<"Court"> | string slotDurationMinutes?: Prisma.IntWithAggregatesFilter<"Court"> | number basePrice?: Prisma.DecimalWithAggregatesFilter<"Court"> | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Court"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Court"> | Date | string } export type CourtCreateInput = { id: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string complex: Prisma.ComplexCreateNestedOneWithoutCourtsInput sport: Prisma.SportCreateNestedOneWithoutCourtsInput availabilities?: Prisma.CourtAvailabilityCreateNestedManyWithoutCourtInput priceRules?: Prisma.CourtPriceRuleCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingCreateNestedManyWithoutCourtInput } export type CourtUncheckedCreateInput = { id: string complexId: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string availabilities?: Prisma.CourtAvailabilityUncheckedCreateNestedManyWithoutCourtInput priceRules?: Prisma.CourtPriceRuleUncheckedCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingUncheckedCreateNestedManyWithoutCourtInput } export type CourtUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string complex?: Prisma.ComplexUpdateOneRequiredWithoutCourtsNestedInput sport?: Prisma.SportUpdateOneRequiredWithoutCourtsNestedInput availabilities?: Prisma.CourtAvailabilityUpdateManyWithoutCourtNestedInput priceRules?: Prisma.CourtPriceRuleUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUpdateManyWithoutCourtNestedInput } export type CourtUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexId?: Prisma.StringFieldUpdateOperationsInput | string sportId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string availabilities?: Prisma.CourtAvailabilityUncheckedUpdateManyWithoutCourtNestedInput priceRules?: Prisma.CourtPriceRuleUncheckedUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUncheckedUpdateManyWithoutCourtNestedInput } export type CourtCreateManyInput = { id: string complexId: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type CourtUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CourtUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexId?: Prisma.StringFieldUpdateOperationsInput | string sportId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CourtListRelationFilter = { every?: Prisma.CourtWhereInput some?: Prisma.CourtWhereInput none?: Prisma.CourtWhereInput } export type CourtOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type CourtCountOrderByAggregateInput = { id?: Prisma.SortOrder complexId?: Prisma.SortOrder sportId?: Prisma.SortOrder name?: Prisma.SortOrder slotDurationMinutes?: Prisma.SortOrder basePrice?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CourtAvgOrderByAggregateInput = { slotDurationMinutes?: Prisma.SortOrder basePrice?: Prisma.SortOrder } export type CourtMaxOrderByAggregateInput = { id?: Prisma.SortOrder complexId?: Prisma.SortOrder sportId?: Prisma.SortOrder name?: Prisma.SortOrder slotDurationMinutes?: Prisma.SortOrder basePrice?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CourtMinOrderByAggregateInput = { id?: Prisma.SortOrder complexId?: Prisma.SortOrder sportId?: Prisma.SortOrder name?: Prisma.SortOrder slotDurationMinutes?: Prisma.SortOrder basePrice?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CourtSumOrderByAggregateInput = { slotDurationMinutes?: Prisma.SortOrder basePrice?: Prisma.SortOrder } export type CourtScalarRelationFilter = { is?: Prisma.CourtWhereInput isNot?: Prisma.CourtWhereInput } export type CourtCreateNestedManyWithoutComplexInput = { create?: Prisma.XOR | Prisma.CourtCreateWithoutComplexInput[] | Prisma.CourtUncheckedCreateWithoutComplexInput[] connectOrCreate?: Prisma.CourtCreateOrConnectWithoutComplexInput | Prisma.CourtCreateOrConnectWithoutComplexInput[] createMany?: Prisma.CourtCreateManyComplexInputEnvelope connect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] } export type CourtUncheckedCreateNestedManyWithoutComplexInput = { create?: Prisma.XOR | Prisma.CourtCreateWithoutComplexInput[] | Prisma.CourtUncheckedCreateWithoutComplexInput[] connectOrCreate?: Prisma.CourtCreateOrConnectWithoutComplexInput | Prisma.CourtCreateOrConnectWithoutComplexInput[] createMany?: Prisma.CourtCreateManyComplexInputEnvelope connect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] } export type CourtUpdateManyWithoutComplexNestedInput = { create?: Prisma.XOR | Prisma.CourtCreateWithoutComplexInput[] | Prisma.CourtUncheckedCreateWithoutComplexInput[] connectOrCreate?: Prisma.CourtCreateOrConnectWithoutComplexInput | Prisma.CourtCreateOrConnectWithoutComplexInput[] upsert?: Prisma.CourtUpsertWithWhereUniqueWithoutComplexInput | Prisma.CourtUpsertWithWhereUniqueWithoutComplexInput[] createMany?: Prisma.CourtCreateManyComplexInputEnvelope set?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] disconnect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] delete?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] connect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] update?: Prisma.CourtUpdateWithWhereUniqueWithoutComplexInput | Prisma.CourtUpdateWithWhereUniqueWithoutComplexInput[] updateMany?: Prisma.CourtUpdateManyWithWhereWithoutComplexInput | Prisma.CourtUpdateManyWithWhereWithoutComplexInput[] deleteMany?: Prisma.CourtScalarWhereInput | Prisma.CourtScalarWhereInput[] } export type CourtUncheckedUpdateManyWithoutComplexNestedInput = { create?: Prisma.XOR | Prisma.CourtCreateWithoutComplexInput[] | Prisma.CourtUncheckedCreateWithoutComplexInput[] connectOrCreate?: Prisma.CourtCreateOrConnectWithoutComplexInput | Prisma.CourtCreateOrConnectWithoutComplexInput[] upsert?: Prisma.CourtUpsertWithWhereUniqueWithoutComplexInput | Prisma.CourtUpsertWithWhereUniqueWithoutComplexInput[] createMany?: Prisma.CourtCreateManyComplexInputEnvelope set?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] disconnect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] delete?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] connect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] update?: Prisma.CourtUpdateWithWhereUniqueWithoutComplexInput | Prisma.CourtUpdateWithWhereUniqueWithoutComplexInput[] updateMany?: Prisma.CourtUpdateManyWithWhereWithoutComplexInput | Prisma.CourtUpdateManyWithWhereWithoutComplexInput[] deleteMany?: Prisma.CourtScalarWhereInput | Prisma.CourtScalarWhereInput[] } export type CourtCreateNestedManyWithoutSportInput = { create?: Prisma.XOR | Prisma.CourtCreateWithoutSportInput[] | Prisma.CourtUncheckedCreateWithoutSportInput[] connectOrCreate?: Prisma.CourtCreateOrConnectWithoutSportInput | Prisma.CourtCreateOrConnectWithoutSportInput[] createMany?: Prisma.CourtCreateManySportInputEnvelope connect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] } export type CourtUncheckedCreateNestedManyWithoutSportInput = { create?: Prisma.XOR | Prisma.CourtCreateWithoutSportInput[] | Prisma.CourtUncheckedCreateWithoutSportInput[] connectOrCreate?: Prisma.CourtCreateOrConnectWithoutSportInput | Prisma.CourtCreateOrConnectWithoutSportInput[] createMany?: Prisma.CourtCreateManySportInputEnvelope connect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] } export type CourtUpdateManyWithoutSportNestedInput = { create?: Prisma.XOR | Prisma.CourtCreateWithoutSportInput[] | Prisma.CourtUncheckedCreateWithoutSportInput[] connectOrCreate?: Prisma.CourtCreateOrConnectWithoutSportInput | Prisma.CourtCreateOrConnectWithoutSportInput[] upsert?: Prisma.CourtUpsertWithWhereUniqueWithoutSportInput | Prisma.CourtUpsertWithWhereUniqueWithoutSportInput[] createMany?: Prisma.CourtCreateManySportInputEnvelope set?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] disconnect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] delete?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] connect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] update?: Prisma.CourtUpdateWithWhereUniqueWithoutSportInput | Prisma.CourtUpdateWithWhereUniqueWithoutSportInput[] updateMany?: Prisma.CourtUpdateManyWithWhereWithoutSportInput | Prisma.CourtUpdateManyWithWhereWithoutSportInput[] deleteMany?: Prisma.CourtScalarWhereInput | Prisma.CourtScalarWhereInput[] } export type CourtUncheckedUpdateManyWithoutSportNestedInput = { create?: Prisma.XOR | Prisma.CourtCreateWithoutSportInput[] | Prisma.CourtUncheckedCreateWithoutSportInput[] connectOrCreate?: Prisma.CourtCreateOrConnectWithoutSportInput | Prisma.CourtCreateOrConnectWithoutSportInput[] upsert?: Prisma.CourtUpsertWithWhereUniqueWithoutSportInput | Prisma.CourtUpsertWithWhereUniqueWithoutSportInput[] createMany?: Prisma.CourtCreateManySportInputEnvelope set?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] disconnect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] delete?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] connect?: Prisma.CourtWhereUniqueInput | Prisma.CourtWhereUniqueInput[] update?: Prisma.CourtUpdateWithWhereUniqueWithoutSportInput | Prisma.CourtUpdateWithWhereUniqueWithoutSportInput[] updateMany?: Prisma.CourtUpdateManyWithWhereWithoutSportInput | Prisma.CourtUpdateManyWithWhereWithoutSportInput[] deleteMany?: Prisma.CourtScalarWhereInput | Prisma.CourtScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type DecimalFieldUpdateOperationsInput = { set?: runtime.Decimal | runtime.DecimalJsLike | number | string increment?: runtime.Decimal | runtime.DecimalJsLike | number | string decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string divide?: runtime.Decimal | runtime.DecimalJsLike | number | string } export type CourtCreateNestedOneWithoutAvailabilitiesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CourtCreateOrConnectWithoutAvailabilitiesInput connect?: Prisma.CourtWhereUniqueInput } export type CourtUpdateOneRequiredWithoutAvailabilitiesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CourtCreateOrConnectWithoutAvailabilitiesInput upsert?: Prisma.CourtUpsertWithoutAvailabilitiesInput connect?: Prisma.CourtWhereUniqueInput update?: Prisma.XOR, Prisma.CourtUncheckedUpdateWithoutAvailabilitiesInput> } export type CourtCreateNestedOneWithoutPriceRulesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CourtCreateOrConnectWithoutPriceRulesInput connect?: Prisma.CourtWhereUniqueInput } export type CourtUpdateOneRequiredWithoutPriceRulesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CourtCreateOrConnectWithoutPriceRulesInput upsert?: Prisma.CourtUpsertWithoutPriceRulesInput connect?: Prisma.CourtWhereUniqueInput update?: Prisma.XOR, Prisma.CourtUncheckedUpdateWithoutPriceRulesInput> } export type CourtCreateNestedOneWithoutBookingsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CourtCreateOrConnectWithoutBookingsInput connect?: Prisma.CourtWhereUniqueInput } export type CourtUpdateOneRequiredWithoutBookingsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CourtCreateOrConnectWithoutBookingsInput upsert?: Prisma.CourtUpsertWithoutBookingsInput connect?: Prisma.CourtWhereUniqueInput update?: Prisma.XOR, Prisma.CourtUncheckedUpdateWithoutBookingsInput> } export type CourtCreateWithoutComplexInput = { id: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string sport: Prisma.SportCreateNestedOneWithoutCourtsInput availabilities?: Prisma.CourtAvailabilityCreateNestedManyWithoutCourtInput priceRules?: Prisma.CourtPriceRuleCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingCreateNestedManyWithoutCourtInput } export type CourtUncheckedCreateWithoutComplexInput = { id: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string availabilities?: Prisma.CourtAvailabilityUncheckedCreateNestedManyWithoutCourtInput priceRules?: Prisma.CourtPriceRuleUncheckedCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingUncheckedCreateNestedManyWithoutCourtInput } export type CourtCreateOrConnectWithoutComplexInput = { where: Prisma.CourtWhereUniqueInput create: Prisma.XOR } export type CourtCreateManyComplexInputEnvelope = { data: Prisma.CourtCreateManyComplexInput | Prisma.CourtCreateManyComplexInput[] skipDuplicates?: boolean } export type CourtUpsertWithWhereUniqueWithoutComplexInput = { where: Prisma.CourtWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type CourtUpdateWithWhereUniqueWithoutComplexInput = { where: Prisma.CourtWhereUniqueInput data: Prisma.XOR } export type CourtUpdateManyWithWhereWithoutComplexInput = { where: Prisma.CourtScalarWhereInput data: Prisma.XOR } export type CourtScalarWhereInput = { AND?: Prisma.CourtScalarWhereInput | Prisma.CourtScalarWhereInput[] OR?: Prisma.CourtScalarWhereInput[] NOT?: Prisma.CourtScalarWhereInput | Prisma.CourtScalarWhereInput[] id?: Prisma.UuidFilter<"Court"> | string complexId?: Prisma.UuidFilter<"Court"> | string sportId?: Prisma.UuidFilter<"Court"> | string name?: Prisma.StringFilter<"Court"> | string slotDurationMinutes?: Prisma.IntFilter<"Court"> | number basePrice?: Prisma.DecimalFilter<"Court"> | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFilter<"Court"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Court"> | Date | string } export type CourtCreateWithoutSportInput = { id: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string complex: Prisma.ComplexCreateNestedOneWithoutCourtsInput availabilities?: Prisma.CourtAvailabilityCreateNestedManyWithoutCourtInput priceRules?: Prisma.CourtPriceRuleCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingCreateNestedManyWithoutCourtInput } export type CourtUncheckedCreateWithoutSportInput = { id: string complexId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string availabilities?: Prisma.CourtAvailabilityUncheckedCreateNestedManyWithoutCourtInput priceRules?: Prisma.CourtPriceRuleUncheckedCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingUncheckedCreateNestedManyWithoutCourtInput } export type CourtCreateOrConnectWithoutSportInput = { where: Prisma.CourtWhereUniqueInput create: Prisma.XOR } export type CourtCreateManySportInputEnvelope = { data: Prisma.CourtCreateManySportInput | Prisma.CourtCreateManySportInput[] skipDuplicates?: boolean } export type CourtUpsertWithWhereUniqueWithoutSportInput = { where: Prisma.CourtWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type CourtUpdateWithWhereUniqueWithoutSportInput = { where: Prisma.CourtWhereUniqueInput data: Prisma.XOR } export type CourtUpdateManyWithWhereWithoutSportInput = { where: Prisma.CourtScalarWhereInput data: Prisma.XOR } export type CourtCreateWithoutAvailabilitiesInput = { id: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string complex: Prisma.ComplexCreateNestedOneWithoutCourtsInput sport: Prisma.SportCreateNestedOneWithoutCourtsInput priceRules?: Prisma.CourtPriceRuleCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingCreateNestedManyWithoutCourtInput } export type CourtUncheckedCreateWithoutAvailabilitiesInput = { id: string complexId: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string priceRules?: Prisma.CourtPriceRuleUncheckedCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingUncheckedCreateNestedManyWithoutCourtInput } export type CourtCreateOrConnectWithoutAvailabilitiesInput = { where: Prisma.CourtWhereUniqueInput create: Prisma.XOR } export type CourtUpsertWithoutAvailabilitiesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CourtWhereInput } export type CourtUpdateToOneWithWhereWithoutAvailabilitiesInput = { where?: Prisma.CourtWhereInput data: Prisma.XOR } export type CourtUpdateWithoutAvailabilitiesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string complex?: Prisma.ComplexUpdateOneRequiredWithoutCourtsNestedInput sport?: Prisma.SportUpdateOneRequiredWithoutCourtsNestedInput priceRules?: Prisma.CourtPriceRuleUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUpdateManyWithoutCourtNestedInput } export type CourtUncheckedUpdateWithoutAvailabilitiesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexId?: Prisma.StringFieldUpdateOperationsInput | string sportId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string priceRules?: Prisma.CourtPriceRuleUncheckedUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUncheckedUpdateManyWithoutCourtNestedInput } export type CourtCreateWithoutPriceRulesInput = { id: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string complex: Prisma.ComplexCreateNestedOneWithoutCourtsInput sport: Prisma.SportCreateNestedOneWithoutCourtsInput availabilities?: Prisma.CourtAvailabilityCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingCreateNestedManyWithoutCourtInput } export type CourtUncheckedCreateWithoutPriceRulesInput = { id: string complexId: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string availabilities?: Prisma.CourtAvailabilityUncheckedCreateNestedManyWithoutCourtInput bookings?: Prisma.CourtBookingUncheckedCreateNestedManyWithoutCourtInput } export type CourtCreateOrConnectWithoutPriceRulesInput = { where: Prisma.CourtWhereUniqueInput create: Prisma.XOR } export type CourtUpsertWithoutPriceRulesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CourtWhereInput } export type CourtUpdateToOneWithWhereWithoutPriceRulesInput = { where?: Prisma.CourtWhereInput data: Prisma.XOR } export type CourtUpdateWithoutPriceRulesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string complex?: Prisma.ComplexUpdateOneRequiredWithoutCourtsNestedInput sport?: Prisma.SportUpdateOneRequiredWithoutCourtsNestedInput availabilities?: Prisma.CourtAvailabilityUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUpdateManyWithoutCourtNestedInput } export type CourtUncheckedUpdateWithoutPriceRulesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexId?: Prisma.StringFieldUpdateOperationsInput | string sportId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string availabilities?: Prisma.CourtAvailabilityUncheckedUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUncheckedUpdateManyWithoutCourtNestedInput } export type CourtCreateWithoutBookingsInput = { id: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string complex: Prisma.ComplexCreateNestedOneWithoutCourtsInput sport: Prisma.SportCreateNestedOneWithoutCourtsInput availabilities?: Prisma.CourtAvailabilityCreateNestedManyWithoutCourtInput priceRules?: Prisma.CourtPriceRuleCreateNestedManyWithoutCourtInput } export type CourtUncheckedCreateWithoutBookingsInput = { id: string complexId: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string availabilities?: Prisma.CourtAvailabilityUncheckedCreateNestedManyWithoutCourtInput priceRules?: Prisma.CourtPriceRuleUncheckedCreateNestedManyWithoutCourtInput } export type CourtCreateOrConnectWithoutBookingsInput = { where: Prisma.CourtWhereUniqueInput create: Prisma.XOR } export type CourtUpsertWithoutBookingsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CourtWhereInput } export type CourtUpdateToOneWithWhereWithoutBookingsInput = { where?: Prisma.CourtWhereInput data: Prisma.XOR } export type CourtUpdateWithoutBookingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string complex?: Prisma.ComplexUpdateOneRequiredWithoutCourtsNestedInput sport?: Prisma.SportUpdateOneRequiredWithoutCourtsNestedInput availabilities?: Prisma.CourtAvailabilityUpdateManyWithoutCourtNestedInput priceRules?: Prisma.CourtPriceRuleUpdateManyWithoutCourtNestedInput } export type CourtUncheckedUpdateWithoutBookingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexId?: Prisma.StringFieldUpdateOperationsInput | string sportId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string availabilities?: Prisma.CourtAvailabilityUncheckedUpdateManyWithoutCourtNestedInput priceRules?: Prisma.CourtPriceRuleUncheckedUpdateManyWithoutCourtNestedInput } export type CourtCreateManyComplexInput = { id: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type CourtUpdateWithoutComplexInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string sport?: Prisma.SportUpdateOneRequiredWithoutCourtsNestedInput availabilities?: Prisma.CourtAvailabilityUpdateManyWithoutCourtNestedInput priceRules?: Prisma.CourtPriceRuleUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUpdateManyWithoutCourtNestedInput } export type CourtUncheckedUpdateWithoutComplexInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sportId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string availabilities?: Prisma.CourtAvailabilityUncheckedUpdateManyWithoutCourtNestedInput priceRules?: Prisma.CourtPriceRuleUncheckedUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUncheckedUpdateManyWithoutCourtNestedInput } export type CourtUncheckedUpdateManyWithoutComplexInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sportId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CourtCreateManySportInput = { id: string complexId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type CourtUpdateWithoutSportInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string complex?: Prisma.ComplexUpdateOneRequiredWithoutCourtsNestedInput availabilities?: Prisma.CourtAvailabilityUpdateManyWithoutCourtNestedInput priceRules?: Prisma.CourtPriceRuleUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUpdateManyWithoutCourtNestedInput } export type CourtUncheckedUpdateWithoutSportInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string availabilities?: Prisma.CourtAvailabilityUncheckedUpdateManyWithoutCourtNestedInput priceRules?: Prisma.CourtPriceRuleUncheckedUpdateManyWithoutCourtNestedInput bookings?: Prisma.CourtBookingUncheckedUpdateManyWithoutCourtNestedInput } export type CourtUncheckedUpdateManyWithoutSportInput = { id?: Prisma.StringFieldUpdateOperationsInput | string complexId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slotDurationMinutes?: Prisma.IntFieldUpdateOperationsInput | number basePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type CourtCountOutputType */ export type CourtCountOutputType = { availabilities: number priceRules: number bookings: number } export type CourtCountOutputTypeSelect = { availabilities?: boolean | CourtCountOutputTypeCountAvailabilitiesArgs priceRules?: boolean | CourtCountOutputTypeCountPriceRulesArgs bookings?: boolean | CourtCountOutputTypeCountBookingsArgs } /** * CourtCountOutputType without action */ export type CourtCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CourtCountOutputType */ select?: Prisma.CourtCountOutputTypeSelect | null } /** * CourtCountOutputType without action */ export type CourtCountOutputTypeCountAvailabilitiesArgs = { where?: Prisma.CourtAvailabilityWhereInput } /** * CourtCountOutputType without action */ export type CourtCountOutputTypeCountPriceRulesArgs = { where?: Prisma.CourtPriceRuleWhereInput } /** * CourtCountOutputType without action */ export type CourtCountOutputTypeCountBookingsArgs = { where?: Prisma.CourtBookingWhereInput } export type CourtSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean complexId?: boolean sportId?: boolean name?: boolean slotDurationMinutes?: boolean basePrice?: boolean createdAt?: boolean updatedAt?: boolean complex?: boolean | Prisma.ComplexDefaultArgs sport?: boolean | Prisma.SportDefaultArgs availabilities?: boolean | Prisma.Court$availabilitiesArgs priceRules?: boolean | Prisma.Court$priceRulesArgs bookings?: boolean | Prisma.Court$bookingsArgs _count?: boolean | Prisma.CourtCountOutputTypeDefaultArgs }, ExtArgs["result"]["court"]> export type CourtSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean complexId?: boolean sportId?: boolean name?: boolean slotDurationMinutes?: boolean basePrice?: boolean createdAt?: boolean updatedAt?: boolean complex?: boolean | Prisma.ComplexDefaultArgs sport?: boolean | Prisma.SportDefaultArgs }, ExtArgs["result"]["court"]> export type CourtSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean complexId?: boolean sportId?: boolean name?: boolean slotDurationMinutes?: boolean basePrice?: boolean createdAt?: boolean updatedAt?: boolean complex?: boolean | Prisma.ComplexDefaultArgs sport?: boolean | Prisma.SportDefaultArgs }, ExtArgs["result"]["court"]> export type CourtSelectScalar = { id?: boolean complexId?: boolean sportId?: boolean name?: boolean slotDurationMinutes?: boolean basePrice?: boolean createdAt?: boolean updatedAt?: boolean } export type CourtOmit = runtime.Types.Extensions.GetOmit<"id" | "complexId" | "sportId" | "name" | "slotDurationMinutes" | "basePrice" | "createdAt" | "updatedAt", ExtArgs["result"]["court"]> export type CourtInclude = { complex?: boolean | Prisma.ComplexDefaultArgs sport?: boolean | Prisma.SportDefaultArgs availabilities?: boolean | Prisma.Court$availabilitiesArgs priceRules?: boolean | Prisma.Court$priceRulesArgs bookings?: boolean | Prisma.Court$bookingsArgs _count?: boolean | Prisma.CourtCountOutputTypeDefaultArgs } export type CourtIncludeCreateManyAndReturn = { complex?: boolean | Prisma.ComplexDefaultArgs sport?: boolean | Prisma.SportDefaultArgs } export type CourtIncludeUpdateManyAndReturn = { complex?: boolean | Prisma.ComplexDefaultArgs sport?: boolean | Prisma.SportDefaultArgs } export type $CourtPayload = { name: "Court" objects: { complex: Prisma.$ComplexPayload sport: Prisma.$SportPayload availabilities: Prisma.$CourtAvailabilityPayload[] priceRules: Prisma.$CourtPriceRulePayload[] bookings: Prisma.$CourtBookingPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string complexId: string sportId: string name: string slotDurationMinutes: number basePrice: runtime.Decimal createdAt: Date updatedAt: Date }, ExtArgs["result"]["court"]> composites: {} } export type CourtGetPayload = runtime.Types.Result.GetResult export type CourtCountArgs = Omit & { select?: CourtCountAggregateInputType | true } export interface CourtDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Court'], meta: { name: 'Court' } } /** * Find zero or one Court that matches the filter. * @param {CourtFindUniqueArgs} args - Arguments to find a Court * @example * // Get one Court * const court = await prisma.court.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CourtClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Court that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CourtFindUniqueOrThrowArgs} args - Arguments to find a Court * @example * // Get one Court * const court = await prisma.court.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CourtClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Court 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 {CourtFindFirstArgs} args - Arguments to find a Court * @example * // Get one Court * const court = await prisma.court.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CourtClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Court 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 {CourtFindFirstOrThrowArgs} args - Arguments to find a Court * @example * // Get one Court * const court = await prisma.court.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CourtClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Courts 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 {CourtFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Courts * const courts = await prisma.court.findMany() * * // Get first 10 Courts * const courts = await prisma.court.findMany({ take: 10 }) * * // Only select the `id` * const courtWithIdOnly = await prisma.court.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Court. * @param {CourtCreateArgs} args - Arguments to create a Court. * @example * // Create one Court * const Court = await prisma.court.create({ * data: { * // ... data to create a Court * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__CourtClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Courts. * @param {CourtCreateManyArgs} args - Arguments to create many Courts. * @example * // Create many Courts * const court = await prisma.court.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Courts and returns the data saved in the database. * @param {CourtCreateManyAndReturnArgs} args - Arguments to create many Courts. * @example * // Create many Courts * const court = await prisma.court.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Courts and only return the `id` * const courtWithIdOnly = await prisma.court.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Court. * @param {CourtDeleteArgs} args - Arguments to delete one Court. * @example * // Delete one Court * const Court = await prisma.court.delete({ * where: { * // ... filter to delete one Court * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__CourtClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Court. * @param {CourtUpdateArgs} args - Arguments to update one Court. * @example * // Update one Court * const court = await prisma.court.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__CourtClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Courts. * @param {CourtDeleteManyArgs} args - Arguments to filter Courts to delete. * @example * // Delete a few Courts * const { count } = await prisma.court.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Courts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CourtUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Courts * const court = await prisma.court.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Courts and returns the data updated in the database. * @param {CourtUpdateManyAndReturnArgs} args - Arguments to update many Courts. * @example * // Update many Courts * const court = await prisma.court.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Courts and only return the `id` * const courtWithIdOnly = await prisma.court.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Court. * @param {CourtUpsertArgs} args - Arguments to update or create a Court. * @example * // Update or create a Court * const court = await prisma.court.upsert({ * create: { * // ... data to create a Court * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Court we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CourtClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Courts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CourtCountArgs} args - Arguments to filter Courts to count. * @example * // Count the number of Courts * const count = await prisma.court.count({ * where: { * // ... the filter for the Courts we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Court. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CourtAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Court. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CourtGroupByArgs} 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 CourtGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CourtGroupByArgs['orderBy'] } : { orderBy?: CourtGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetCourtGroupByPayload : Prisma.PrismaPromise /** * Fields of the Court model */ readonly fields: CourtFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Court. * 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__CourtClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" complex = {}>(args?: Prisma.Subset>): Prisma.Prisma__ComplexClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> sport = {}>(args?: Prisma.Subset>): Prisma.Prisma__SportClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> availabilities = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> priceRules = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> bookings = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Court model */ export interface CourtFieldRefs { readonly id: Prisma.FieldRef<"Court", 'String'> readonly complexId: Prisma.FieldRef<"Court", 'String'> readonly sportId: Prisma.FieldRef<"Court", 'String'> readonly name: Prisma.FieldRef<"Court", 'String'> readonly slotDurationMinutes: Prisma.FieldRef<"Court", 'Int'> readonly basePrice: Prisma.FieldRef<"Court", 'Decimal'> readonly createdAt: Prisma.FieldRef<"Court", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Court", 'DateTime'> } // Custom InputTypes /** * Court findUnique */ export type CourtFindUniqueArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * Filter, which Court to fetch. */ where: Prisma.CourtWhereUniqueInput } /** * Court findUniqueOrThrow */ export type CourtFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * Filter, which Court to fetch. */ where: Prisma.CourtWhereUniqueInput } /** * Court findFirst */ export type CourtFindFirstArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * Filter, which Court to fetch. */ where?: Prisma.CourtWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Courts to fetch. */ orderBy?: Prisma.CourtOrderByWithRelationInput | Prisma.CourtOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Courts. */ cursor?: Prisma.CourtWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Courts 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` Courts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Courts. */ distinct?: Prisma.CourtScalarFieldEnum | Prisma.CourtScalarFieldEnum[] } /** * Court findFirstOrThrow */ export type CourtFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * Filter, which Court to fetch. */ where?: Prisma.CourtWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Courts to fetch. */ orderBy?: Prisma.CourtOrderByWithRelationInput | Prisma.CourtOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Courts. */ cursor?: Prisma.CourtWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Courts 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` Courts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Courts. */ distinct?: Prisma.CourtScalarFieldEnum | Prisma.CourtScalarFieldEnum[] } /** * Court findMany */ export type CourtFindManyArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * Filter, which Courts to fetch. */ where?: Prisma.CourtWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Courts to fetch. */ orderBy?: Prisma.CourtOrderByWithRelationInput | Prisma.CourtOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Courts. */ cursor?: Prisma.CourtWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Courts 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` Courts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Courts. */ distinct?: Prisma.CourtScalarFieldEnum | Prisma.CourtScalarFieldEnum[] } /** * Court create */ export type CourtCreateArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * The data needed to create a Court. */ data: Prisma.XOR } /** * Court createMany */ export type CourtCreateManyArgs = { /** * The data used to create many Courts. */ data: Prisma.CourtCreateManyInput | Prisma.CourtCreateManyInput[] skipDuplicates?: boolean } /** * Court createManyAndReturn */ export type CourtCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelectCreateManyAndReturn | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * The data used to create many Courts. */ data: Prisma.CourtCreateManyInput | Prisma.CourtCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtIncludeCreateManyAndReturn | null } /** * Court update */ export type CourtUpdateArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * The data needed to update a Court. */ data: Prisma.XOR /** * Choose, which Court to update. */ where: Prisma.CourtWhereUniqueInput } /** * Court updateMany */ export type CourtUpdateManyArgs = { /** * The data used to update Courts. */ data: Prisma.XOR /** * Filter which Courts to update */ where?: Prisma.CourtWhereInput /** * Limit how many Courts to update. */ limit?: number } /** * Court updateManyAndReturn */ export type CourtUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelectUpdateManyAndReturn | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * The data used to update Courts. */ data: Prisma.XOR /** * Filter which Courts to update */ where?: Prisma.CourtWhereInput /** * Limit how many Courts to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtIncludeUpdateManyAndReturn | null } /** * Court upsert */ export type CourtUpsertArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * The filter to search for the Court to update in case it exists. */ where: Prisma.CourtWhereUniqueInput /** * In case the Court found by the `where` argument doesn't exist, create a new Court with this data. */ create: Prisma.XOR /** * In case the Court was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Court delete */ export type CourtDeleteArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null /** * Filter which Court to delete. */ where: Prisma.CourtWhereUniqueInput } /** * Court deleteMany */ export type CourtDeleteManyArgs = { /** * Filter which Courts to delete */ where?: Prisma.CourtWhereInput /** * Limit how many Courts to delete. */ limit?: number } /** * Court.availabilities */ export type Court$availabilitiesArgs = { /** * Select specific fields to fetch from the CourtAvailability */ select?: Prisma.CourtAvailabilitySelect | null /** * Omit specific fields from the CourtAvailability */ omit?: Prisma.CourtAvailabilityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtAvailabilityInclude | null where?: Prisma.CourtAvailabilityWhereInput orderBy?: Prisma.CourtAvailabilityOrderByWithRelationInput | Prisma.CourtAvailabilityOrderByWithRelationInput[] cursor?: Prisma.CourtAvailabilityWhereUniqueInput take?: number skip?: number distinct?: Prisma.CourtAvailabilityScalarFieldEnum | Prisma.CourtAvailabilityScalarFieldEnum[] } /** * Court.priceRules */ export type Court$priceRulesArgs = { /** * Select specific fields to fetch from the CourtPriceRule */ select?: Prisma.CourtPriceRuleSelect | null /** * Omit specific fields from the CourtPriceRule */ omit?: Prisma.CourtPriceRuleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtPriceRuleInclude | null where?: Prisma.CourtPriceRuleWhereInput orderBy?: Prisma.CourtPriceRuleOrderByWithRelationInput | Prisma.CourtPriceRuleOrderByWithRelationInput[] cursor?: Prisma.CourtPriceRuleWhereUniqueInput take?: number skip?: number distinct?: Prisma.CourtPriceRuleScalarFieldEnum | Prisma.CourtPriceRuleScalarFieldEnum[] } /** * Court.bookings */ export type Court$bookingsArgs = { /** * Select specific fields to fetch from the CourtBooking */ select?: Prisma.CourtBookingSelect | null /** * Omit specific fields from the CourtBooking */ omit?: Prisma.CourtBookingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtBookingInclude | null where?: Prisma.CourtBookingWhereInput orderBy?: Prisma.CourtBookingOrderByWithRelationInput | Prisma.CourtBookingOrderByWithRelationInput[] cursor?: Prisma.CourtBookingWhereUniqueInput take?: number skip?: number distinct?: Prisma.CourtBookingScalarFieldEnum | Prisma.CourtBookingScalarFieldEnum[] } /** * Court without action */ export type CourtDefaultArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null }