Files
playzer/apps/backend/src/generated/prisma/models/CourtPriceRule.ts
Jose Selesan 9ae270609d Initial commit
2026-04-08 22:53:11 -03:00

1534 lines
60 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 `CourtPriceRule` 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 CourtPriceRule
*
*/
export type CourtPriceRuleModel = runtime.Types.Result.DefaultSelection<Prisma.$CourtPriceRulePayload>
export type AggregateCourtPriceRule = {
_count: CourtPriceRuleCountAggregateOutputType | null
_avg: CourtPriceRuleAvgAggregateOutputType | null
_sum: CourtPriceRuleSumAggregateOutputType | null
_min: CourtPriceRuleMinAggregateOutputType | null
_max: CourtPriceRuleMaxAggregateOutputType | null
}
export type CourtPriceRuleAvgAggregateOutputType = {
price: runtime.Decimal | null
}
export type CourtPriceRuleSumAggregateOutputType = {
price: runtime.Decimal | null
}
export type CourtPriceRuleMinAggregateOutputType = {
id: string | null
courtId: string | null
dayOfWeek: $Enums.DayOfWeek | null
startTime: string | null
endTime: string | null
price: runtime.Decimal | null
isActive: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type CourtPriceRuleMaxAggregateOutputType = {
id: string | null
courtId: string | null
dayOfWeek: $Enums.DayOfWeek | null
startTime: string | null
endTime: string | null
price: runtime.Decimal | null
isActive: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type CourtPriceRuleCountAggregateOutputType = {
id: number
courtId: number
dayOfWeek: number
startTime: number
endTime: number
price: number
isActive: number
createdAt: number
updatedAt: number
_all: number
}
export type CourtPriceRuleAvgAggregateInputType = {
price?: true
}
export type CourtPriceRuleSumAggregateInputType = {
price?: true
}
export type CourtPriceRuleMinAggregateInputType = {
id?: true
courtId?: true
dayOfWeek?: true
startTime?: true
endTime?: true
price?: true
isActive?: true
createdAt?: true
updatedAt?: true
}
export type CourtPriceRuleMaxAggregateInputType = {
id?: true
courtId?: true
dayOfWeek?: true
startTime?: true
endTime?: true
price?: true
isActive?: true
createdAt?: true
updatedAt?: true
}
export type CourtPriceRuleCountAggregateInputType = {
id?: true
courtId?: true
dayOfWeek?: true
startTime?: true
endTime?: true
price?: true
isActive?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type CourtPriceRuleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CourtPriceRule to aggregate.
*/
where?: Prisma.CourtPriceRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CourtPriceRules to fetch.
*/
orderBy?: Prisma.CourtPriceRuleOrderByWithRelationInput | Prisma.CourtPriceRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.CourtPriceRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CourtPriceRules 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` CourtPriceRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned CourtPriceRules
**/
_count?: true | CourtPriceRuleCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: CourtPriceRuleAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: CourtPriceRuleSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: CourtPriceRuleMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: CourtPriceRuleMaxAggregateInputType
}
export type GetCourtPriceRuleAggregateType<T extends CourtPriceRuleAggregateArgs> = {
[P in keyof T & keyof AggregateCourtPriceRule]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCourtPriceRule[P]>
: Prisma.GetScalarType<T[P], AggregateCourtPriceRule[P]>
}
export type CourtPriceRuleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CourtPriceRuleWhereInput
orderBy?: Prisma.CourtPriceRuleOrderByWithAggregationInput | Prisma.CourtPriceRuleOrderByWithAggregationInput[]
by: Prisma.CourtPriceRuleScalarFieldEnum[] | Prisma.CourtPriceRuleScalarFieldEnum
having?: Prisma.CourtPriceRuleScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: CourtPriceRuleCountAggregateInputType | true
_avg?: CourtPriceRuleAvgAggregateInputType
_sum?: CourtPriceRuleSumAggregateInputType
_min?: CourtPriceRuleMinAggregateInputType
_max?: CourtPriceRuleMaxAggregateInputType
}
export type CourtPriceRuleGroupByOutputType = {
id: string
courtId: string
dayOfWeek: $Enums.DayOfWeek | null
startTime: string | null
endTime: string | null
price: runtime.Decimal
isActive: boolean
createdAt: Date
updatedAt: Date
_count: CourtPriceRuleCountAggregateOutputType | null
_avg: CourtPriceRuleAvgAggregateOutputType | null
_sum: CourtPriceRuleSumAggregateOutputType | null
_min: CourtPriceRuleMinAggregateOutputType | null
_max: CourtPriceRuleMaxAggregateOutputType | null
}
export type GetCourtPriceRuleGroupByPayload<T extends CourtPriceRuleGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<CourtPriceRuleGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof CourtPriceRuleGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], CourtPriceRuleGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], CourtPriceRuleGroupByOutputType[P]>
}
>
>
export type CourtPriceRuleWhereInput = {
AND?: Prisma.CourtPriceRuleWhereInput | Prisma.CourtPriceRuleWhereInput[]
OR?: Prisma.CourtPriceRuleWhereInput[]
NOT?: Prisma.CourtPriceRuleWhereInput | Prisma.CourtPriceRuleWhereInput[]
id?: Prisma.UuidFilter<"CourtPriceRule"> | string
courtId?: Prisma.UuidFilter<"CourtPriceRule"> | string
dayOfWeek?: Prisma.EnumDayOfWeekNullableFilter<"CourtPriceRule"> | $Enums.DayOfWeek | null
startTime?: Prisma.StringNullableFilter<"CourtPriceRule"> | string | null
endTime?: Prisma.StringNullableFilter<"CourtPriceRule"> | string | null
price?: Prisma.DecimalFilter<"CourtPriceRule"> | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFilter<"CourtPriceRule"> | boolean
createdAt?: Prisma.DateTimeFilter<"CourtPriceRule"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CourtPriceRule"> | Date | string
court?: Prisma.XOR<Prisma.CourtScalarRelationFilter, Prisma.CourtWhereInput>
}
export type CourtPriceRuleOrderByWithRelationInput = {
id?: Prisma.SortOrder
courtId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrderInput | Prisma.SortOrder
startTime?: Prisma.SortOrderInput | Prisma.SortOrder
endTime?: Prisma.SortOrderInput | Prisma.SortOrder
price?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
court?: Prisma.CourtOrderByWithRelationInput
}
export type CourtPriceRuleWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.CourtPriceRuleWhereInput | Prisma.CourtPriceRuleWhereInput[]
OR?: Prisma.CourtPriceRuleWhereInput[]
NOT?: Prisma.CourtPriceRuleWhereInput | Prisma.CourtPriceRuleWhereInput[]
courtId?: Prisma.UuidFilter<"CourtPriceRule"> | string
dayOfWeek?: Prisma.EnumDayOfWeekNullableFilter<"CourtPriceRule"> | $Enums.DayOfWeek | null
startTime?: Prisma.StringNullableFilter<"CourtPriceRule"> | string | null
endTime?: Prisma.StringNullableFilter<"CourtPriceRule"> | string | null
price?: Prisma.DecimalFilter<"CourtPriceRule"> | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFilter<"CourtPriceRule"> | boolean
createdAt?: Prisma.DateTimeFilter<"CourtPriceRule"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CourtPriceRule"> | Date | string
court?: Prisma.XOR<Prisma.CourtScalarRelationFilter, Prisma.CourtWhereInput>
}, "id">
export type CourtPriceRuleOrderByWithAggregationInput = {
id?: Prisma.SortOrder
courtId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrderInput | Prisma.SortOrder
startTime?: Prisma.SortOrderInput | Prisma.SortOrder
endTime?: Prisma.SortOrderInput | Prisma.SortOrder
price?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.CourtPriceRuleCountOrderByAggregateInput
_avg?: Prisma.CourtPriceRuleAvgOrderByAggregateInput
_max?: Prisma.CourtPriceRuleMaxOrderByAggregateInput
_min?: Prisma.CourtPriceRuleMinOrderByAggregateInput
_sum?: Prisma.CourtPriceRuleSumOrderByAggregateInput
}
export type CourtPriceRuleScalarWhereWithAggregatesInput = {
AND?: Prisma.CourtPriceRuleScalarWhereWithAggregatesInput | Prisma.CourtPriceRuleScalarWhereWithAggregatesInput[]
OR?: Prisma.CourtPriceRuleScalarWhereWithAggregatesInput[]
NOT?: Prisma.CourtPriceRuleScalarWhereWithAggregatesInput | Prisma.CourtPriceRuleScalarWhereWithAggregatesInput[]
id?: Prisma.UuidWithAggregatesFilter<"CourtPriceRule"> | string
courtId?: Prisma.UuidWithAggregatesFilter<"CourtPriceRule"> | string
dayOfWeek?: Prisma.EnumDayOfWeekNullableWithAggregatesFilter<"CourtPriceRule"> | $Enums.DayOfWeek | null
startTime?: Prisma.StringNullableWithAggregatesFilter<"CourtPriceRule"> | string | null
endTime?: Prisma.StringNullableWithAggregatesFilter<"CourtPriceRule"> | string | null
price?: Prisma.DecimalWithAggregatesFilter<"CourtPriceRule"> | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolWithAggregatesFilter<"CourtPriceRule"> | boolean
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CourtPriceRule"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CourtPriceRule"> | Date | string
}
export type CourtPriceRuleCreateInput = {
id: string
dayOfWeek?: $Enums.DayOfWeek | null
startTime?: string | null
endTime?: string | null
price: runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
court: Prisma.CourtCreateNestedOneWithoutPriceRulesInput
}
export type CourtPriceRuleUncheckedCreateInput = {
id: string
courtId: string
dayOfWeek?: $Enums.DayOfWeek | null
startTime?: string | null
endTime?: string | null
price: runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CourtPriceRuleUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.NullableEnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek | null
startTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
endTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
court?: Prisma.CourtUpdateOneRequiredWithoutPriceRulesNestedInput
}
export type CourtPriceRuleUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
courtId?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.NullableEnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek | null
startTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
endTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CourtPriceRuleCreateManyInput = {
id: string
courtId: string
dayOfWeek?: $Enums.DayOfWeek | null
startTime?: string | null
endTime?: string | null
price: runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CourtPriceRuleUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.NullableEnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek | null
startTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
endTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CourtPriceRuleUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
courtId?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.NullableEnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek | null
startTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
endTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CourtPriceRuleListRelationFilter = {
every?: Prisma.CourtPriceRuleWhereInput
some?: Prisma.CourtPriceRuleWhereInput
none?: Prisma.CourtPriceRuleWhereInput
}
export type CourtPriceRuleOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type CourtPriceRuleCountOrderByAggregateInput = {
id?: Prisma.SortOrder
courtId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrder
startTime?: Prisma.SortOrder
endTime?: Prisma.SortOrder
price?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CourtPriceRuleAvgOrderByAggregateInput = {
price?: Prisma.SortOrder
}
export type CourtPriceRuleMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
courtId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrder
startTime?: Prisma.SortOrder
endTime?: Prisma.SortOrder
price?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CourtPriceRuleMinOrderByAggregateInput = {
id?: Prisma.SortOrder
courtId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrder
startTime?: Prisma.SortOrder
endTime?: Prisma.SortOrder
price?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CourtPriceRuleSumOrderByAggregateInput = {
price?: Prisma.SortOrder
}
export type CourtPriceRuleCreateNestedManyWithoutCourtInput = {
create?: Prisma.XOR<Prisma.CourtPriceRuleCreateWithoutCourtInput, Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput> | Prisma.CourtPriceRuleCreateWithoutCourtInput[] | Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput[]
connectOrCreate?: Prisma.CourtPriceRuleCreateOrConnectWithoutCourtInput | Prisma.CourtPriceRuleCreateOrConnectWithoutCourtInput[]
createMany?: Prisma.CourtPriceRuleCreateManyCourtInputEnvelope
connect?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
}
export type CourtPriceRuleUncheckedCreateNestedManyWithoutCourtInput = {
create?: Prisma.XOR<Prisma.CourtPriceRuleCreateWithoutCourtInput, Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput> | Prisma.CourtPriceRuleCreateWithoutCourtInput[] | Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput[]
connectOrCreate?: Prisma.CourtPriceRuleCreateOrConnectWithoutCourtInput | Prisma.CourtPriceRuleCreateOrConnectWithoutCourtInput[]
createMany?: Prisma.CourtPriceRuleCreateManyCourtInputEnvelope
connect?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
}
export type CourtPriceRuleUpdateManyWithoutCourtNestedInput = {
create?: Prisma.XOR<Prisma.CourtPriceRuleCreateWithoutCourtInput, Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput> | Prisma.CourtPriceRuleCreateWithoutCourtInput[] | Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput[]
connectOrCreate?: Prisma.CourtPriceRuleCreateOrConnectWithoutCourtInput | Prisma.CourtPriceRuleCreateOrConnectWithoutCourtInput[]
upsert?: Prisma.CourtPriceRuleUpsertWithWhereUniqueWithoutCourtInput | Prisma.CourtPriceRuleUpsertWithWhereUniqueWithoutCourtInput[]
createMany?: Prisma.CourtPriceRuleCreateManyCourtInputEnvelope
set?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
disconnect?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
delete?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
connect?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
update?: Prisma.CourtPriceRuleUpdateWithWhereUniqueWithoutCourtInput | Prisma.CourtPriceRuleUpdateWithWhereUniqueWithoutCourtInput[]
updateMany?: Prisma.CourtPriceRuleUpdateManyWithWhereWithoutCourtInput | Prisma.CourtPriceRuleUpdateManyWithWhereWithoutCourtInput[]
deleteMany?: Prisma.CourtPriceRuleScalarWhereInput | Prisma.CourtPriceRuleScalarWhereInput[]
}
export type CourtPriceRuleUncheckedUpdateManyWithoutCourtNestedInput = {
create?: Prisma.XOR<Prisma.CourtPriceRuleCreateWithoutCourtInput, Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput> | Prisma.CourtPriceRuleCreateWithoutCourtInput[] | Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput[]
connectOrCreate?: Prisma.CourtPriceRuleCreateOrConnectWithoutCourtInput | Prisma.CourtPriceRuleCreateOrConnectWithoutCourtInput[]
upsert?: Prisma.CourtPriceRuleUpsertWithWhereUniqueWithoutCourtInput | Prisma.CourtPriceRuleUpsertWithWhereUniqueWithoutCourtInput[]
createMany?: Prisma.CourtPriceRuleCreateManyCourtInputEnvelope
set?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
disconnect?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
delete?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
connect?: Prisma.CourtPriceRuleWhereUniqueInput | Prisma.CourtPriceRuleWhereUniqueInput[]
update?: Prisma.CourtPriceRuleUpdateWithWhereUniqueWithoutCourtInput | Prisma.CourtPriceRuleUpdateWithWhereUniqueWithoutCourtInput[]
updateMany?: Prisma.CourtPriceRuleUpdateManyWithWhereWithoutCourtInput | Prisma.CourtPriceRuleUpdateManyWithWhereWithoutCourtInput[]
deleteMany?: Prisma.CourtPriceRuleScalarWhereInput | Prisma.CourtPriceRuleScalarWhereInput[]
}
export type NullableEnumDayOfWeekFieldUpdateOperationsInput = {
set?: $Enums.DayOfWeek | null
}
export type CourtPriceRuleCreateWithoutCourtInput = {
id: string
dayOfWeek?: $Enums.DayOfWeek | null
startTime?: string | null
endTime?: string | null
price: runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CourtPriceRuleUncheckedCreateWithoutCourtInput = {
id: string
dayOfWeek?: $Enums.DayOfWeek | null
startTime?: string | null
endTime?: string | null
price: runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CourtPriceRuleCreateOrConnectWithoutCourtInput = {
where: Prisma.CourtPriceRuleWhereUniqueInput
create: Prisma.XOR<Prisma.CourtPriceRuleCreateWithoutCourtInput, Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput>
}
export type CourtPriceRuleCreateManyCourtInputEnvelope = {
data: Prisma.CourtPriceRuleCreateManyCourtInput | Prisma.CourtPriceRuleCreateManyCourtInput[]
skipDuplicates?: boolean
}
export type CourtPriceRuleUpsertWithWhereUniqueWithoutCourtInput = {
where: Prisma.CourtPriceRuleWhereUniqueInput
update: Prisma.XOR<Prisma.CourtPriceRuleUpdateWithoutCourtInput, Prisma.CourtPriceRuleUncheckedUpdateWithoutCourtInput>
create: Prisma.XOR<Prisma.CourtPriceRuleCreateWithoutCourtInput, Prisma.CourtPriceRuleUncheckedCreateWithoutCourtInput>
}
export type CourtPriceRuleUpdateWithWhereUniqueWithoutCourtInput = {
where: Prisma.CourtPriceRuleWhereUniqueInput
data: Prisma.XOR<Prisma.CourtPriceRuleUpdateWithoutCourtInput, Prisma.CourtPriceRuleUncheckedUpdateWithoutCourtInput>
}
export type CourtPriceRuleUpdateManyWithWhereWithoutCourtInput = {
where: Prisma.CourtPriceRuleScalarWhereInput
data: Prisma.XOR<Prisma.CourtPriceRuleUpdateManyMutationInput, Prisma.CourtPriceRuleUncheckedUpdateManyWithoutCourtInput>
}
export type CourtPriceRuleScalarWhereInput = {
AND?: Prisma.CourtPriceRuleScalarWhereInput | Prisma.CourtPriceRuleScalarWhereInput[]
OR?: Prisma.CourtPriceRuleScalarWhereInput[]
NOT?: Prisma.CourtPriceRuleScalarWhereInput | Prisma.CourtPriceRuleScalarWhereInput[]
id?: Prisma.UuidFilter<"CourtPriceRule"> | string
courtId?: Prisma.UuidFilter<"CourtPriceRule"> | string
dayOfWeek?: Prisma.EnumDayOfWeekNullableFilter<"CourtPriceRule"> | $Enums.DayOfWeek | null
startTime?: Prisma.StringNullableFilter<"CourtPriceRule"> | string | null
endTime?: Prisma.StringNullableFilter<"CourtPriceRule"> | string | null
price?: Prisma.DecimalFilter<"CourtPriceRule"> | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFilter<"CourtPriceRule"> | boolean
createdAt?: Prisma.DateTimeFilter<"CourtPriceRule"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CourtPriceRule"> | Date | string
}
export type CourtPriceRuleCreateManyCourtInput = {
id: string
dayOfWeek?: $Enums.DayOfWeek | null
startTime?: string | null
endTime?: string | null
price: runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CourtPriceRuleUpdateWithoutCourtInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.NullableEnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek | null
startTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
endTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CourtPriceRuleUncheckedUpdateWithoutCourtInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.NullableEnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek | null
startTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
endTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CourtPriceRuleUncheckedUpdateManyWithoutCourtInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.NullableEnumDayOfWeekFieldUpdateOperationsInput | $Enums.DayOfWeek | null
startTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
endTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CourtPriceRuleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
courtId?: boolean
dayOfWeek?: boolean
startTime?: boolean
endTime?: boolean
price?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}, ExtArgs["result"]["courtPriceRule"]>
export type CourtPriceRuleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
courtId?: boolean
dayOfWeek?: boolean
startTime?: boolean
endTime?: boolean
price?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}, ExtArgs["result"]["courtPriceRule"]>
export type CourtPriceRuleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
courtId?: boolean
dayOfWeek?: boolean
startTime?: boolean
endTime?: boolean
price?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}, ExtArgs["result"]["courtPriceRule"]>
export type CourtPriceRuleSelectScalar = {
id?: boolean
courtId?: boolean
dayOfWeek?: boolean
startTime?: boolean
endTime?: boolean
price?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type CourtPriceRuleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "courtId" | "dayOfWeek" | "startTime" | "endTime" | "price" | "isActive" | "createdAt" | "updatedAt", ExtArgs["result"]["courtPriceRule"]>
export type CourtPriceRuleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}
export type CourtPriceRuleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}
export type CourtPriceRuleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
court?: boolean | Prisma.CourtDefaultArgs<ExtArgs>
}
export type $CourtPriceRulePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CourtPriceRule"
objects: {
court: Prisma.$CourtPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
courtId: string
dayOfWeek: $Enums.DayOfWeek | null
startTime: string | null
endTime: string | null
price: runtime.Decimal
isActive: boolean
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["courtPriceRule"]>
composites: {}
}
export type CourtPriceRuleGetPayload<S extends boolean | null | undefined | CourtPriceRuleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload, S>
export type CourtPriceRuleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<CourtPriceRuleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: CourtPriceRuleCountAggregateInputType | true
}
export interface CourtPriceRuleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CourtPriceRule'], meta: { name: 'CourtPriceRule' } }
/**
* Find zero or one CourtPriceRule that matches the filter.
* @param {CourtPriceRuleFindUniqueArgs} args - Arguments to find a CourtPriceRule
* @example
* // Get one CourtPriceRule
* const courtPriceRule = await prisma.courtPriceRule.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends CourtPriceRuleFindUniqueArgs>(args: Prisma.SelectSubset<T, CourtPriceRuleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CourtPriceRuleClient<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one CourtPriceRule that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {CourtPriceRuleFindUniqueOrThrowArgs} args - Arguments to find a CourtPriceRule
* @example
* // Get one CourtPriceRule
* const courtPriceRule = await prisma.courtPriceRule.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends CourtPriceRuleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CourtPriceRuleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CourtPriceRuleClient<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first CourtPriceRule 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 {CourtPriceRuleFindFirstArgs} args - Arguments to find a CourtPriceRule
* @example
* // Get one CourtPriceRule
* const courtPriceRule = await prisma.courtPriceRule.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends CourtPriceRuleFindFirstArgs>(args?: Prisma.SelectSubset<T, CourtPriceRuleFindFirstArgs<ExtArgs>>): Prisma.Prisma__CourtPriceRuleClient<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first CourtPriceRule 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 {CourtPriceRuleFindFirstOrThrowArgs} args - Arguments to find a CourtPriceRule
* @example
* // Get one CourtPriceRule
* const courtPriceRule = await prisma.courtPriceRule.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends CourtPriceRuleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CourtPriceRuleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CourtPriceRuleClient<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more CourtPriceRules 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 {CourtPriceRuleFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all CourtPriceRules
* const courtPriceRules = await prisma.courtPriceRule.findMany()
*
* // Get first 10 CourtPriceRules
* const courtPriceRules = await prisma.courtPriceRule.findMany({ take: 10 })
*
* // Only select the `id`
* const courtPriceRuleWithIdOnly = await prisma.courtPriceRule.findMany({ select: { id: true } })
*
*/
findMany<T extends CourtPriceRuleFindManyArgs>(args?: Prisma.SelectSubset<T, CourtPriceRuleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a CourtPriceRule.
* @param {CourtPriceRuleCreateArgs} args - Arguments to create a CourtPriceRule.
* @example
* // Create one CourtPriceRule
* const CourtPriceRule = await prisma.courtPriceRule.create({
* data: {
* // ... data to create a CourtPriceRule
* }
* })
*
*/
create<T extends CourtPriceRuleCreateArgs>(args: Prisma.SelectSubset<T, CourtPriceRuleCreateArgs<ExtArgs>>): Prisma.Prisma__CourtPriceRuleClient<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many CourtPriceRules.
* @param {CourtPriceRuleCreateManyArgs} args - Arguments to create many CourtPriceRules.
* @example
* // Create many CourtPriceRules
* const courtPriceRule = await prisma.courtPriceRule.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends CourtPriceRuleCreateManyArgs>(args?: Prisma.SelectSubset<T, CourtPriceRuleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many CourtPriceRules and returns the data saved in the database.
* @param {CourtPriceRuleCreateManyAndReturnArgs} args - Arguments to create many CourtPriceRules.
* @example
* // Create many CourtPriceRules
* const courtPriceRule = await prisma.courtPriceRule.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many CourtPriceRules and only return the `id`
* const courtPriceRuleWithIdOnly = await prisma.courtPriceRule.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 CourtPriceRuleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CourtPriceRuleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a CourtPriceRule.
* @param {CourtPriceRuleDeleteArgs} args - Arguments to delete one CourtPriceRule.
* @example
* // Delete one CourtPriceRule
* const CourtPriceRule = await prisma.courtPriceRule.delete({
* where: {
* // ... filter to delete one CourtPriceRule
* }
* })
*
*/
delete<T extends CourtPriceRuleDeleteArgs>(args: Prisma.SelectSubset<T, CourtPriceRuleDeleteArgs<ExtArgs>>): Prisma.Prisma__CourtPriceRuleClient<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one CourtPriceRule.
* @param {CourtPriceRuleUpdateArgs} args - Arguments to update one CourtPriceRule.
* @example
* // Update one CourtPriceRule
* const courtPriceRule = await prisma.courtPriceRule.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends CourtPriceRuleUpdateArgs>(args: Prisma.SelectSubset<T, CourtPriceRuleUpdateArgs<ExtArgs>>): Prisma.Prisma__CourtPriceRuleClient<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more CourtPriceRules.
* @param {CourtPriceRuleDeleteManyArgs} args - Arguments to filter CourtPriceRules to delete.
* @example
* // Delete a few CourtPriceRules
* const { count } = await prisma.courtPriceRule.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends CourtPriceRuleDeleteManyArgs>(args?: Prisma.SelectSubset<T, CourtPriceRuleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CourtPriceRules.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CourtPriceRuleUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many CourtPriceRules
* const courtPriceRule = await prisma.courtPriceRule.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends CourtPriceRuleUpdateManyArgs>(args: Prisma.SelectSubset<T, CourtPriceRuleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CourtPriceRules and returns the data updated in the database.
* @param {CourtPriceRuleUpdateManyAndReturnArgs} args - Arguments to update many CourtPriceRules.
* @example
* // Update many CourtPriceRules
* const courtPriceRule = await prisma.courtPriceRule.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more CourtPriceRules and only return the `id`
* const courtPriceRuleWithIdOnly = await prisma.courtPriceRule.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 CourtPriceRuleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CourtPriceRuleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one CourtPriceRule.
* @param {CourtPriceRuleUpsertArgs} args - Arguments to update or create a CourtPriceRule.
* @example
* // Update or create a CourtPriceRule
* const courtPriceRule = await prisma.courtPriceRule.upsert({
* create: {
* // ... data to create a CourtPriceRule
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the CourtPriceRule we want to update
* }
* })
*/
upsert<T extends CourtPriceRuleUpsertArgs>(args: Prisma.SelectSubset<T, CourtPriceRuleUpsertArgs<ExtArgs>>): Prisma.Prisma__CourtPriceRuleClient<runtime.Types.Result.GetResult<Prisma.$CourtPriceRulePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of CourtPriceRules.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CourtPriceRuleCountArgs} args - Arguments to filter CourtPriceRules to count.
* @example
* // Count the number of CourtPriceRules
* const count = await prisma.courtPriceRule.count({
* where: {
* // ... the filter for the CourtPriceRules we want to count
* }
* })
**/
count<T extends CourtPriceRuleCountArgs>(
args?: Prisma.Subset<T, CourtPriceRuleCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], CourtPriceRuleCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a CourtPriceRule.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CourtPriceRuleAggregateArgs} 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 CourtPriceRuleAggregateArgs>(args: Prisma.Subset<T, CourtPriceRuleAggregateArgs>): Prisma.PrismaPromise<GetCourtPriceRuleAggregateType<T>>
/**
* Group by CourtPriceRule.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CourtPriceRuleGroupByArgs} 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 CourtPriceRuleGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: CourtPriceRuleGroupByArgs['orderBy'] }
: { orderBy?: CourtPriceRuleGroupByArgs['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, CourtPriceRuleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCourtPriceRuleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the CourtPriceRule model
*/
readonly fields: CourtPriceRuleFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for CourtPriceRule.
* 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__CourtPriceRuleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
court<T extends Prisma.CourtDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CourtDefaultArgs<ExtArgs>>): Prisma.Prisma__CourtClient<runtime.Types.Result.GetResult<Prisma.$CourtPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the CourtPriceRule model
*/
export interface CourtPriceRuleFieldRefs {
readonly id: Prisma.FieldRef<"CourtPriceRule", 'String'>
readonly courtId: Prisma.FieldRef<"CourtPriceRule", 'String'>
readonly dayOfWeek: Prisma.FieldRef<"CourtPriceRule", 'DayOfWeek'>
readonly startTime: Prisma.FieldRef<"CourtPriceRule", 'String'>
readonly endTime: Prisma.FieldRef<"CourtPriceRule", 'String'>
readonly price: Prisma.FieldRef<"CourtPriceRule", 'Decimal'>
readonly isActive: Prisma.FieldRef<"CourtPriceRule", 'Boolean'>
readonly createdAt: Prisma.FieldRef<"CourtPriceRule", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"CourtPriceRule", 'DateTime'>
}
// Custom InputTypes
/**
* CourtPriceRule findUnique
*/
export type CourtPriceRuleFindUniqueArgs<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
/**
* Filter, which CourtPriceRule to fetch.
*/
where: Prisma.CourtPriceRuleWhereUniqueInput
}
/**
* CourtPriceRule findUniqueOrThrow
*/
export type CourtPriceRuleFindUniqueOrThrowArgs<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
/**
* Filter, which CourtPriceRule to fetch.
*/
where: Prisma.CourtPriceRuleWhereUniqueInput
}
/**
* CourtPriceRule findFirst
*/
export type CourtPriceRuleFindFirstArgs<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
/**
* Filter, which CourtPriceRule to fetch.
*/
where?: Prisma.CourtPriceRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CourtPriceRules to fetch.
*/
orderBy?: Prisma.CourtPriceRuleOrderByWithRelationInput | Prisma.CourtPriceRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CourtPriceRules.
*/
cursor?: Prisma.CourtPriceRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CourtPriceRules 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` CourtPriceRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CourtPriceRules.
*/
distinct?: Prisma.CourtPriceRuleScalarFieldEnum | Prisma.CourtPriceRuleScalarFieldEnum[]
}
/**
* CourtPriceRule findFirstOrThrow
*/
export type CourtPriceRuleFindFirstOrThrowArgs<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
/**
* Filter, which CourtPriceRule to fetch.
*/
where?: Prisma.CourtPriceRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CourtPriceRules to fetch.
*/
orderBy?: Prisma.CourtPriceRuleOrderByWithRelationInput | Prisma.CourtPriceRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CourtPriceRules.
*/
cursor?: Prisma.CourtPriceRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CourtPriceRules 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` CourtPriceRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CourtPriceRules.
*/
distinct?: Prisma.CourtPriceRuleScalarFieldEnum | Prisma.CourtPriceRuleScalarFieldEnum[]
}
/**
* CourtPriceRule findMany
*/
export type CourtPriceRuleFindManyArgs<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
/**
* Filter, which CourtPriceRules to fetch.
*/
where?: Prisma.CourtPriceRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CourtPriceRules to fetch.
*/
orderBy?: Prisma.CourtPriceRuleOrderByWithRelationInput | Prisma.CourtPriceRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing CourtPriceRules.
*/
cursor?: Prisma.CourtPriceRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CourtPriceRules 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` CourtPriceRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CourtPriceRules.
*/
distinct?: Prisma.CourtPriceRuleScalarFieldEnum | Prisma.CourtPriceRuleScalarFieldEnum[]
}
/**
* CourtPriceRule create
*/
export type CourtPriceRuleCreateArgs<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
/**
* The data needed to create a CourtPriceRule.
*/
data: Prisma.XOR<Prisma.CourtPriceRuleCreateInput, Prisma.CourtPriceRuleUncheckedCreateInput>
}
/**
* CourtPriceRule createMany
*/
export type CourtPriceRuleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many CourtPriceRules.
*/
data: Prisma.CourtPriceRuleCreateManyInput | Prisma.CourtPriceRuleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* CourtPriceRule createManyAndReturn
*/
export type CourtPriceRuleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CourtPriceRule
*/
select?: Prisma.CourtPriceRuleSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CourtPriceRule
*/
omit?: Prisma.CourtPriceRuleOmit<ExtArgs> | null
/**
* The data used to create many CourtPriceRules.
*/
data: Prisma.CourtPriceRuleCreateManyInput | Prisma.CourtPriceRuleCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CourtPriceRuleIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* CourtPriceRule update
*/
export type CourtPriceRuleUpdateArgs<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
/**
* The data needed to update a CourtPriceRule.
*/
data: Prisma.XOR<Prisma.CourtPriceRuleUpdateInput, Prisma.CourtPriceRuleUncheckedUpdateInput>
/**
* Choose, which CourtPriceRule to update.
*/
where: Prisma.CourtPriceRuleWhereUniqueInput
}
/**
* CourtPriceRule updateMany
*/
export type CourtPriceRuleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update CourtPriceRules.
*/
data: Prisma.XOR<Prisma.CourtPriceRuleUpdateManyMutationInput, Prisma.CourtPriceRuleUncheckedUpdateManyInput>
/**
* Filter which CourtPriceRules to update
*/
where?: Prisma.CourtPriceRuleWhereInput
/**
* Limit how many CourtPriceRules to update.
*/
limit?: number
}
/**
* CourtPriceRule updateManyAndReturn
*/
export type CourtPriceRuleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CourtPriceRule
*/
select?: Prisma.CourtPriceRuleSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CourtPriceRule
*/
omit?: Prisma.CourtPriceRuleOmit<ExtArgs> | null
/**
* The data used to update CourtPriceRules.
*/
data: Prisma.XOR<Prisma.CourtPriceRuleUpdateManyMutationInput, Prisma.CourtPriceRuleUncheckedUpdateManyInput>
/**
* Filter which CourtPriceRules to update
*/
where?: Prisma.CourtPriceRuleWhereInput
/**
* Limit how many CourtPriceRules to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CourtPriceRuleIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* CourtPriceRule upsert
*/
export type CourtPriceRuleUpsertArgs<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
/**
* The filter to search for the CourtPriceRule to update in case it exists.
*/
where: Prisma.CourtPriceRuleWhereUniqueInput
/**
* In case the CourtPriceRule found by the `where` argument doesn't exist, create a new CourtPriceRule with this data.
*/
create: Prisma.XOR<Prisma.CourtPriceRuleCreateInput, Prisma.CourtPriceRuleUncheckedCreateInput>
/**
* In case the CourtPriceRule was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.CourtPriceRuleUpdateInput, Prisma.CourtPriceRuleUncheckedUpdateInput>
}
/**
* CourtPriceRule delete
*/
export type CourtPriceRuleDeleteArgs<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
/**
* Filter which CourtPriceRule to delete.
*/
where: Prisma.CourtPriceRuleWhereUniqueInput
}
/**
* CourtPriceRule deleteMany
*/
export type CourtPriceRuleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CourtPriceRules to delete
*/
where?: Prisma.CourtPriceRuleWhereInput
/**
* Limit how many CourtPriceRules to delete.
*/
limit?: number
}
/**
* CourtPriceRule without action
*/
export type CourtPriceRuleDefaultArgs<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
}