2084 lines
81 KiB
TypeScript
2084 lines
81 KiB
TypeScript
|
|
/* !!! 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<Prisma.$CourtPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends CourtAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCourt]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateCourt[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateCourt[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CourtGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends CourtGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<CourtGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CourtGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], CourtGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], CourtGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
|
sport?: Prisma.XOR<Prisma.SportScalarRelationFilter, Prisma.SportWhereInput>
|
|
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<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
|
sport?: Prisma.XOR<Prisma.SportScalarRelationFilter, Prisma.SportWhereInput>
|
|
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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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<Prisma.CourtCreateWithoutAvailabilitiesInput, Prisma.CourtUncheckedCreateWithoutAvailabilitiesInput>
|
|
connectOrCreate?: Prisma.CourtCreateOrConnectWithoutAvailabilitiesInput
|
|
connect?: Prisma.CourtWhereUniqueInput
|
|
}
|
|
|
|
export type CourtUpdateOneRequiredWithoutAvailabilitiesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CourtCreateWithoutAvailabilitiesInput, Prisma.CourtUncheckedCreateWithoutAvailabilitiesInput>
|
|
connectOrCreate?: Prisma.CourtCreateOrConnectWithoutAvailabilitiesInput
|
|
upsert?: Prisma.CourtUpsertWithoutAvailabilitiesInput
|
|
connect?: Prisma.CourtWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CourtUpdateToOneWithWhereWithoutAvailabilitiesInput, Prisma.CourtUpdateWithoutAvailabilitiesInput>, Prisma.CourtUncheckedUpdateWithoutAvailabilitiesInput>
|
|
}
|
|
|
|
export type CourtCreateNestedOneWithoutPriceRulesInput = {
|
|
create?: Prisma.XOR<Prisma.CourtCreateWithoutPriceRulesInput, Prisma.CourtUncheckedCreateWithoutPriceRulesInput>
|
|
connectOrCreate?: Prisma.CourtCreateOrConnectWithoutPriceRulesInput
|
|
connect?: Prisma.CourtWhereUniqueInput
|
|
}
|
|
|
|
export type CourtUpdateOneRequiredWithoutPriceRulesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CourtCreateWithoutPriceRulesInput, Prisma.CourtUncheckedCreateWithoutPriceRulesInput>
|
|
connectOrCreate?: Prisma.CourtCreateOrConnectWithoutPriceRulesInput
|
|
upsert?: Prisma.CourtUpsertWithoutPriceRulesInput
|
|
connect?: Prisma.CourtWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CourtUpdateToOneWithWhereWithoutPriceRulesInput, Prisma.CourtUpdateWithoutPriceRulesInput>, Prisma.CourtUncheckedUpdateWithoutPriceRulesInput>
|
|
}
|
|
|
|
export type CourtCreateNestedOneWithoutBookingsInput = {
|
|
create?: Prisma.XOR<Prisma.CourtCreateWithoutBookingsInput, Prisma.CourtUncheckedCreateWithoutBookingsInput>
|
|
connectOrCreate?: Prisma.CourtCreateOrConnectWithoutBookingsInput
|
|
connect?: Prisma.CourtWhereUniqueInput
|
|
}
|
|
|
|
export type CourtUpdateOneRequiredWithoutBookingsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CourtCreateWithoutBookingsInput, Prisma.CourtUncheckedCreateWithoutBookingsInput>
|
|
connectOrCreate?: Prisma.CourtCreateOrConnectWithoutBookingsInput
|
|
upsert?: Prisma.CourtUpsertWithoutBookingsInput
|
|
connect?: Prisma.CourtWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CourtUpdateToOneWithWhereWithoutBookingsInput, Prisma.CourtUpdateWithoutBookingsInput>, 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<Prisma.CourtCreateWithoutComplexInput, Prisma.CourtUncheckedCreateWithoutComplexInput>
|
|
}
|
|
|
|
export type CourtCreateManyComplexInputEnvelope = {
|
|
data: Prisma.CourtCreateManyComplexInput | Prisma.CourtCreateManyComplexInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CourtUpsertWithWhereUniqueWithoutComplexInput = {
|
|
where: Prisma.CourtWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.CourtUpdateWithoutComplexInput, Prisma.CourtUncheckedUpdateWithoutComplexInput>
|
|
create: Prisma.XOR<Prisma.CourtCreateWithoutComplexInput, Prisma.CourtUncheckedCreateWithoutComplexInput>
|
|
}
|
|
|
|
export type CourtUpdateWithWhereUniqueWithoutComplexInput = {
|
|
where: Prisma.CourtWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.CourtUpdateWithoutComplexInput, Prisma.CourtUncheckedUpdateWithoutComplexInput>
|
|
}
|
|
|
|
export type CourtUpdateManyWithWhereWithoutComplexInput = {
|
|
where: Prisma.CourtScalarWhereInput
|
|
data: Prisma.XOR<Prisma.CourtUpdateManyMutationInput, Prisma.CourtUncheckedUpdateManyWithoutComplexInput>
|
|
}
|
|
|
|
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<Prisma.CourtCreateWithoutSportInput, Prisma.CourtUncheckedCreateWithoutSportInput>
|
|
}
|
|
|
|
export type CourtCreateManySportInputEnvelope = {
|
|
data: Prisma.CourtCreateManySportInput | Prisma.CourtCreateManySportInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type CourtUpsertWithWhereUniqueWithoutSportInput = {
|
|
where: Prisma.CourtWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.CourtUpdateWithoutSportInput, Prisma.CourtUncheckedUpdateWithoutSportInput>
|
|
create: Prisma.XOR<Prisma.CourtCreateWithoutSportInput, Prisma.CourtUncheckedCreateWithoutSportInput>
|
|
}
|
|
|
|
export type CourtUpdateWithWhereUniqueWithoutSportInput = {
|
|
where: Prisma.CourtWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.CourtUpdateWithoutSportInput, Prisma.CourtUncheckedUpdateWithoutSportInput>
|
|
}
|
|
|
|
export type CourtUpdateManyWithWhereWithoutSportInput = {
|
|
where: Prisma.CourtScalarWhereInput
|
|
data: Prisma.XOR<Prisma.CourtUpdateManyMutationInput, Prisma.CourtUncheckedUpdateManyWithoutSportInput>
|
|
}
|
|
|
|
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<Prisma.CourtCreateWithoutAvailabilitiesInput, Prisma.CourtUncheckedCreateWithoutAvailabilitiesInput>
|
|
}
|
|
|
|
export type CourtUpsertWithoutAvailabilitiesInput = {
|
|
update: Prisma.XOR<Prisma.CourtUpdateWithoutAvailabilitiesInput, Prisma.CourtUncheckedUpdateWithoutAvailabilitiesInput>
|
|
create: Prisma.XOR<Prisma.CourtCreateWithoutAvailabilitiesInput, Prisma.CourtUncheckedCreateWithoutAvailabilitiesInput>
|
|
where?: Prisma.CourtWhereInput
|
|
}
|
|
|
|
export type CourtUpdateToOneWithWhereWithoutAvailabilitiesInput = {
|
|
where?: Prisma.CourtWhereInput
|
|
data: Prisma.XOR<Prisma.CourtUpdateWithoutAvailabilitiesInput, Prisma.CourtUncheckedUpdateWithoutAvailabilitiesInput>
|
|
}
|
|
|
|
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<Prisma.CourtCreateWithoutPriceRulesInput, Prisma.CourtUncheckedCreateWithoutPriceRulesInput>
|
|
}
|
|
|
|
export type CourtUpsertWithoutPriceRulesInput = {
|
|
update: Prisma.XOR<Prisma.CourtUpdateWithoutPriceRulesInput, Prisma.CourtUncheckedUpdateWithoutPriceRulesInput>
|
|
create: Prisma.XOR<Prisma.CourtCreateWithoutPriceRulesInput, Prisma.CourtUncheckedCreateWithoutPriceRulesInput>
|
|
where?: Prisma.CourtWhereInput
|
|
}
|
|
|
|
export type CourtUpdateToOneWithWhereWithoutPriceRulesInput = {
|
|
where?: Prisma.CourtWhereInput
|
|
data: Prisma.XOR<Prisma.CourtUpdateWithoutPriceRulesInput, Prisma.CourtUncheckedUpdateWithoutPriceRulesInput>
|
|
}
|
|
|
|
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<Prisma.CourtCreateWithoutBookingsInput, Prisma.CourtUncheckedCreateWithoutBookingsInput>
|
|
}
|
|
|
|
export type CourtUpsertWithoutBookingsInput = {
|
|
update: Prisma.XOR<Prisma.CourtUpdateWithoutBookingsInput, Prisma.CourtUncheckedUpdateWithoutBookingsInput>
|
|
create: Prisma.XOR<Prisma.CourtCreateWithoutBookingsInput, Prisma.CourtUncheckedCreateWithoutBookingsInput>
|
|
where?: Prisma.CourtWhereInput
|
|
}
|
|
|
|
export type CourtUpdateToOneWithWhereWithoutBookingsInput = {
|
|
where?: Prisma.CourtWhereInput
|
|
data: Prisma.XOR<Prisma.CourtUpdateWithoutBookingsInput, Prisma.CourtUncheckedUpdateWithoutBookingsInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
availabilities?: boolean | CourtCountOutputTypeCountAvailabilitiesArgs
|
|
priceRules?: boolean | CourtCountOutputTypeCountPriceRulesArgs
|
|
bookings?: boolean | CourtCountOutputTypeCountBookingsArgs
|
|
}
|
|
|
|
/**
|
|
* CourtCountOutputType without action
|
|
*/
|
|
export type CourtCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CourtCountOutputType
|
|
*/
|
|
select?: Prisma.CourtCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* CourtCountOutputType without action
|
|
*/
|
|
export type CourtCountOutputTypeCountAvailabilitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CourtAvailabilityWhereInput
|
|
}
|
|
|
|
/**
|
|
* CourtCountOutputType without action
|
|
*/
|
|
export type CourtCountOutputTypeCountPriceRulesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CourtPriceRuleWhereInput
|
|
}
|
|
|
|
/**
|
|
* CourtCountOutputType without action
|
|
*/
|
|
export type CourtCountOutputTypeCountBookingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CourtBookingWhereInput
|
|
}
|
|
|
|
|
|
export type CourtSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
complexId?: boolean
|
|
sportId?: boolean
|
|
name?: boolean
|
|
slotDurationMinutes?: boolean
|
|
basePrice?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
|
sport?: boolean | Prisma.SportDefaultArgs<ExtArgs>
|
|
availabilities?: boolean | Prisma.Court$availabilitiesArgs<ExtArgs>
|
|
priceRules?: boolean | Prisma.Court$priceRulesArgs<ExtArgs>
|
|
bookings?: boolean | Prisma.Court$bookingsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.CourtCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["court"]>
|
|
|
|
export type CourtSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
complexId?: boolean
|
|
sportId?: boolean
|
|
name?: boolean
|
|
slotDurationMinutes?: boolean
|
|
basePrice?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
|
sport?: boolean | Prisma.SportDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["court"]>
|
|
|
|
export type CourtSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
complexId?: boolean
|
|
sportId?: boolean
|
|
name?: boolean
|
|
slotDurationMinutes?: boolean
|
|
basePrice?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
|
sport?: boolean | Prisma.SportDefaultArgs<ExtArgs>
|
|
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "complexId" | "sportId" | "name" | "slotDurationMinutes" | "basePrice" | "createdAt" | "updatedAt", ExtArgs["result"]["court"]>
|
|
export type CourtInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
|
sport?: boolean | Prisma.SportDefaultArgs<ExtArgs>
|
|
availabilities?: boolean | Prisma.Court$availabilitiesArgs<ExtArgs>
|
|
priceRules?: boolean | Prisma.Court$priceRulesArgs<ExtArgs>
|
|
bookings?: boolean | Prisma.Court$bookingsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.CourtCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type CourtIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
|
sport?: boolean | Prisma.SportDefaultArgs<ExtArgs>
|
|
}
|
|
export type CourtIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
|
sport?: boolean | Prisma.SportDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $CourtPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Court"
|
|
objects: {
|
|
complex: Prisma.$ComplexPayload<ExtArgs>
|
|
sport: Prisma.$SportPayload<ExtArgs>
|
|
availabilities: Prisma.$CourtAvailabilityPayload<ExtArgs>[]
|
|
priceRules: Prisma.$CourtPriceRulePayload<ExtArgs>[]
|
|
bookings: Prisma.$CourtBookingPayload<ExtArgs>[]
|
|
}
|
|
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<S extends boolean | null | undefined | CourtDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CourtPayload, S>
|
|
|
|
export type CourtCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<CourtFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: CourtCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CourtDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends CourtFindUniqueArgs>(args: Prisma.SelectSubset<T, CourtFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CourtFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtFindFirstArgs>(args?: Prisma.SelectSubset<T, CourtFindFirstArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CourtFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtFindManyArgs>(args?: Prisma.SelectSubset<T, CourtFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtCreateArgs>(args: Prisma.SelectSubset<T, CourtCreateArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtCreateManyArgs>(args?: Prisma.SelectSubset<T, CourtCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CourtCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CourtCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtDeleteArgs>(args: Prisma.SelectSubset<T, CourtDeleteArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtUpdateArgs>(args: Prisma.SelectSubset<T, CourtUpdateArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtDeleteManyArgs>(args?: Prisma.SelectSubset<T, CourtDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CourtUpdateManyArgs>(args: Prisma.SelectSubset<T, CourtUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CourtUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CourtUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtUpsertArgs>(args: Prisma.SelectSubset<T, CourtUpsertArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, 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<T extends CourtCountArgs>(
|
|
args?: Prisma.Subset<T, CourtCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], CourtCountAggregateOutputType>
|
|
: 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<T extends CourtAggregateArgs>(args: Prisma.Subset<T, CourtAggregateArgs>): Prisma.PrismaPromise<GetCourtAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: CourtGroupByArgs['orderBy'] }
|
|
: { orderBy?: CourtGroupByArgs['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, CourtGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCourtGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
complex<T extends Prisma.ComplexDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ComplexDefaultArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
sport<T extends Prisma.SportDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SportDefaultArgs<ExtArgs>>): Prisma.Prisma__SportClient<runtime.Types.Result.GetResult<Prisma.$SportPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
availabilities<T extends Prisma.Court$availabilitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Court$availabilitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtAvailabilityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
priceRules<T extends Prisma.Court$priceRulesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Court$priceRulesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
bookings<T extends Prisma.Court$bookingsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Court$bookingsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtBookingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Court to fetch.
|
|
*/
|
|
where: Prisma.CourtWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Court findUniqueOrThrow
|
|
*/
|
|
export type CourtFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Court to fetch.
|
|
*/
|
|
where: Prisma.CourtWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Court findFirst
|
|
*/
|
|
export type CourtFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Court.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CourtCreateInput, Prisma.CourtUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Court createMany
|
|
*/
|
|
export type CourtCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Courts.
|
|
*/
|
|
data: Prisma.CourtCreateManyInput | Prisma.CourtCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Court createManyAndReturn
|
|
*/
|
|
export type CourtCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Court update
|
|
*/
|
|
export type CourtUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Court.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CourtUpdateInput, Prisma.CourtUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Court to update.
|
|
*/
|
|
where: Prisma.CourtWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Court updateMany
|
|
*/
|
|
export type CourtUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Courts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CourtUpdateManyMutationInput, Prisma.CourtUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Courts to update
|
|
*/
|
|
where?: Prisma.CourtWhereInput
|
|
/**
|
|
* Limit how many Courts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Court updateManyAndReturn
|
|
*/
|
|
export type CourtUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Courts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CourtUpdateManyMutationInput, Prisma.CourtUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Court upsert
|
|
*/
|
|
export type CourtUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* 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<Prisma.CourtCreateInput, Prisma.CourtUncheckedCreateInput>
|
|
/**
|
|
* In case the Court was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.CourtUpdateInput, Prisma.CourtUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Court delete
|
|
*/
|
|
export type CourtDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Court to delete.
|
|
*/
|
|
where: Prisma.CourtWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Court deleteMany
|
|
*/
|
|
export type CourtDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Courts to delete
|
|
*/
|
|
where?: Prisma.CourtWhereInput
|
|
/**
|
|
* Limit how many Courts to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Court.availabilities
|
|
*/
|
|
export type Court$availabilitiesArgs<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
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CourtPriceRule
|
|
*/
|
|
select?: Prisma.CourtPriceRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CourtPriceRule
|
|
*/
|
|
omit?: Prisma.CourtPriceRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtPriceRuleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CourtBooking
|
|
*/
|
|
select?: Prisma.CourtBookingSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the CourtBooking
|
|
*/
|
|
omit?: Prisma.CourtBookingOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtBookingInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Court
|
|
*/
|
|
select?: Prisma.CourtSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Court
|
|
*/
|
|
omit?: Prisma.CourtOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CourtInclude<ExtArgs> | null
|
|
}
|