1485 lines
58 KiB
TypeScript
1485 lines
58 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 `MesoCycleDay` 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.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model MesoCycleDay
|
|
*
|
|
*/
|
|
export type MesoCycleDayModel = runtime.Types.Result.DefaultSelection<Prisma.$MesoCycleDayPayload>
|
|
|
|
export type AggregateMesoCycleDay = {
|
|
_count: MesoCycleDayCountAggregateOutputType | null
|
|
_avg: MesoCycleDayAvgAggregateOutputType | null
|
|
_sum: MesoCycleDaySumAggregateOutputType | null
|
|
_min: MesoCycleDayMinAggregateOutputType | null
|
|
_max: MesoCycleDayMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MesoCycleDayAvgAggregateOutputType = {
|
|
id: number | null
|
|
orderIndex: number | null
|
|
mesoCycleId: number | null
|
|
}
|
|
|
|
export type MesoCycleDaySumAggregateOutputType = {
|
|
id: number | null
|
|
orderIndex: number | null
|
|
mesoCycleId: number | null
|
|
}
|
|
|
|
export type MesoCycleDayMinAggregateOutputType = {
|
|
id: number | null
|
|
weekday: string | null
|
|
orderIndex: number | null
|
|
mesoCycleId: number | null
|
|
}
|
|
|
|
export type MesoCycleDayMaxAggregateOutputType = {
|
|
id: number | null
|
|
weekday: string | null
|
|
orderIndex: number | null
|
|
mesoCycleId: number | null
|
|
}
|
|
|
|
export type MesoCycleDayCountAggregateOutputType = {
|
|
id: number
|
|
weekday: number
|
|
orderIndex: number
|
|
mesoCycleId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MesoCycleDayAvgAggregateInputType = {
|
|
id?: true
|
|
orderIndex?: true
|
|
mesoCycleId?: true
|
|
}
|
|
|
|
export type MesoCycleDaySumAggregateInputType = {
|
|
id?: true
|
|
orderIndex?: true
|
|
mesoCycleId?: true
|
|
}
|
|
|
|
export type MesoCycleDayMinAggregateInputType = {
|
|
id?: true
|
|
weekday?: true
|
|
orderIndex?: true
|
|
mesoCycleId?: true
|
|
}
|
|
|
|
export type MesoCycleDayMaxAggregateInputType = {
|
|
id?: true
|
|
weekday?: true
|
|
orderIndex?: true
|
|
mesoCycleId?: true
|
|
}
|
|
|
|
export type MesoCycleDayCountAggregateInputType = {
|
|
id?: true
|
|
weekday?: true
|
|
orderIndex?: true
|
|
mesoCycleId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MesoCycleDayAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MesoCycleDay to aggregate.
|
|
*/
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MesoCycleDays to fetch.
|
|
*/
|
|
orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.MesoCycleDayWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MesoCycleDays 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` MesoCycleDays.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MesoCycleDays
|
|
**/
|
|
_count?: true | MesoCycleDayCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MesoCycleDayAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MesoCycleDaySumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MesoCycleDayMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MesoCycleDayMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMesoCycleDayAggregateType<T extends MesoCycleDayAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMesoCycleDay]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMesoCycleDay[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMesoCycleDay[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MesoCycleDayGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
orderBy?: Prisma.MesoCycleDayOrderByWithAggregationInput | Prisma.MesoCycleDayOrderByWithAggregationInput[]
|
|
by: Prisma.MesoCycleDayScalarFieldEnum[] | Prisma.MesoCycleDayScalarFieldEnum
|
|
having?: Prisma.MesoCycleDayScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MesoCycleDayCountAggregateInputType | true
|
|
_avg?: MesoCycleDayAvgAggregateInputType
|
|
_sum?: MesoCycleDaySumAggregateInputType
|
|
_min?: MesoCycleDayMinAggregateInputType
|
|
_max?: MesoCycleDayMaxAggregateInputType
|
|
}
|
|
|
|
export type MesoCycleDayGroupByOutputType = {
|
|
id: number
|
|
weekday: string | null
|
|
orderIndex: number
|
|
mesoCycleId: number
|
|
_count: MesoCycleDayCountAggregateOutputType | null
|
|
_avg: MesoCycleDayAvgAggregateOutputType | null
|
|
_sum: MesoCycleDaySumAggregateOutputType | null
|
|
_min: MesoCycleDayMinAggregateOutputType | null
|
|
_max: MesoCycleDayMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetMesoCycleDayGroupByPayload<T extends MesoCycleDayGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<MesoCycleDayGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MesoCycleDayGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], MesoCycleDayGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], MesoCycleDayGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type MesoCycleDayWhereInput = {
|
|
AND?: Prisma.MesoCycleDayWhereInput | Prisma.MesoCycleDayWhereInput[]
|
|
OR?: Prisma.MesoCycleDayWhereInput[]
|
|
NOT?: Prisma.MesoCycleDayWhereInput | Prisma.MesoCycleDayWhereInput[]
|
|
id?: Prisma.IntFilter<"MesoCycleDay"> | number
|
|
weekday?: Prisma.StringNullableFilter<"MesoCycleDay"> | string | null
|
|
orderIndex?: Prisma.IntFilter<"MesoCycleDay"> | number
|
|
mesoCycleId?: Prisma.IntFilter<"MesoCycleDay"> | number
|
|
mesoCycle?: Prisma.XOR<Prisma.MesoCycleScalarRelationFilter, Prisma.MesoCycleWhereInput>
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseListRelationFilter
|
|
workOutSessions?: Prisma.WorkoutSessionListRelationFilter
|
|
}
|
|
|
|
export type MesoCycleDayOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
weekday?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleId?: Prisma.SortOrder
|
|
mesoCycle?: Prisma.MesoCycleOrderByWithRelationInput
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseOrderByRelationAggregateInput
|
|
workOutSessions?: Prisma.WorkoutSessionOrderByRelationAggregateInput
|
|
_relevance?: Prisma.MesoCycleDayOrderByRelevanceInput
|
|
}
|
|
|
|
export type MesoCycleDayWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.MesoCycleDayWhereInput | Prisma.MesoCycleDayWhereInput[]
|
|
OR?: Prisma.MesoCycleDayWhereInput[]
|
|
NOT?: Prisma.MesoCycleDayWhereInput | Prisma.MesoCycleDayWhereInput[]
|
|
weekday?: Prisma.StringNullableFilter<"MesoCycleDay"> | string | null
|
|
orderIndex?: Prisma.IntFilter<"MesoCycleDay"> | number
|
|
mesoCycleId?: Prisma.IntFilter<"MesoCycleDay"> | number
|
|
mesoCycle?: Prisma.XOR<Prisma.MesoCycleScalarRelationFilter, Prisma.MesoCycleWhereInput>
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseListRelationFilter
|
|
workOutSessions?: Prisma.WorkoutSessionListRelationFilter
|
|
}, "id">
|
|
|
|
export type MesoCycleDayOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
weekday?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleId?: Prisma.SortOrder
|
|
_count?: Prisma.MesoCycleDayCountOrderByAggregateInput
|
|
_avg?: Prisma.MesoCycleDayAvgOrderByAggregateInput
|
|
_max?: Prisma.MesoCycleDayMaxOrderByAggregateInput
|
|
_min?: Prisma.MesoCycleDayMinOrderByAggregateInput
|
|
_sum?: Prisma.MesoCycleDaySumOrderByAggregateInput
|
|
}
|
|
|
|
export type MesoCycleDayScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.MesoCycleDayScalarWhereWithAggregatesInput | Prisma.MesoCycleDayScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.MesoCycleDayScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.MesoCycleDayScalarWhereWithAggregatesInput | Prisma.MesoCycleDayScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"MesoCycleDay"> | number
|
|
weekday?: Prisma.StringNullableWithAggregatesFilter<"MesoCycleDay"> | string | null
|
|
orderIndex?: Prisma.IntWithAggregatesFilter<"MesoCycleDay"> | number
|
|
mesoCycleId?: Prisma.IntWithAggregatesFilter<"MesoCycleDay"> | number
|
|
}
|
|
|
|
export type MesoCycleDayCreateInput = {
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycle: Prisma.MesoCycleCreateNestedOneWithoutMesoCycleDaysInput
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseCreateNestedManyWithoutMesoCycleDayInput
|
|
workOutSessions?: Prisma.WorkoutSessionCreateNestedManyWithoutMesoCycleDayInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedCreateInput = {
|
|
id?: number
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycleId: number
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedCreateNestedManyWithoutMesoCycleDayInput
|
|
workOutSessions?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutMesoCycleDayInput
|
|
}
|
|
|
|
export type MesoCycleDayUpdateInput = {
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycle?: Prisma.MesoCycleUpdateOneRequiredWithoutMesoCycleDaysNestedInput
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUpdateManyWithoutMesoCycleDayNestedInput
|
|
workOutSessions?: Prisma.WorkoutSessionUpdateManyWithoutMesoCycleDayNestedInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayNestedInput
|
|
workOutSessions?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutMesoCycleDayNestedInput
|
|
}
|
|
|
|
export type MesoCycleDayCreateManyInput = {
|
|
id?: number
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycleId: number
|
|
}
|
|
|
|
export type MesoCycleDayUpdateManyMutationInput = {
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type MesoCycleDayListRelationFilter = {
|
|
every?: Prisma.MesoCycleDayWhereInput
|
|
some?: Prisma.MesoCycleDayWhereInput
|
|
none?: Prisma.MesoCycleDayWhereInput
|
|
}
|
|
|
|
export type MesoCycleDayOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleDayOrderByRelevanceInput = {
|
|
fields: Prisma.MesoCycleDayOrderByRelevanceFieldEnum | Prisma.MesoCycleDayOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type MesoCycleDayCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
weekday?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleDayAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleDayMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
weekday?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleDayMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
weekday?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleDaySumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleDayScalarRelationFilter = {
|
|
is?: Prisma.MesoCycleDayWhereInput
|
|
isNot?: Prisma.MesoCycleDayWhereInput
|
|
}
|
|
|
|
export type MesoCycleDayCreateNestedManyWithoutMesoCycleInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput> | Prisma.MesoCycleDayCreateWithoutMesoCycleInput[] | Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput[]
|
|
connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput | Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput[]
|
|
createMany?: Prisma.MesoCycleDayCreateManyMesoCycleInputEnvelope
|
|
connect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedCreateNestedManyWithoutMesoCycleInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput> | Prisma.MesoCycleDayCreateWithoutMesoCycleInput[] | Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput[]
|
|
connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput | Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput[]
|
|
createMany?: Prisma.MesoCycleDayCreateManyMesoCycleInputEnvelope
|
|
connect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
}
|
|
|
|
export type MesoCycleDayUpdateManyWithoutMesoCycleNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput> | Prisma.MesoCycleDayCreateWithoutMesoCycleInput[] | Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput[]
|
|
connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput | Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput[]
|
|
upsert?: Prisma.MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput | Prisma.MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput[]
|
|
createMany?: Prisma.MesoCycleDayCreateManyMesoCycleInputEnvelope
|
|
set?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
disconnect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
delete?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
connect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
update?: Prisma.MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput | Prisma.MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput[]
|
|
updateMany?: Prisma.MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput | Prisma.MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput[]
|
|
deleteMany?: Prisma.MesoCycleDayScalarWhereInput | Prisma.MesoCycleDayScalarWhereInput[]
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedUpdateManyWithoutMesoCycleNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput> | Prisma.MesoCycleDayCreateWithoutMesoCycleInput[] | Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput[]
|
|
connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput | Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput[]
|
|
upsert?: Prisma.MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput | Prisma.MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput[]
|
|
createMany?: Prisma.MesoCycleDayCreateManyMesoCycleInputEnvelope
|
|
set?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
disconnect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
delete?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
connect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[]
|
|
update?: Prisma.MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput | Prisma.MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput[]
|
|
updateMany?: Prisma.MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput | Prisma.MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput[]
|
|
deleteMany?: Prisma.MesoCycleDayScalarWhereInput | Prisma.MesoCycleDayScalarWhereInput[]
|
|
}
|
|
|
|
export type MesoCycleDayCreateNestedOneWithoutMesoCycleExercisesInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleExercisesInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleExercisesInput>
|
|
connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleExercisesInput
|
|
connect?: Prisma.MesoCycleDayWhereUniqueInput
|
|
}
|
|
|
|
export type MesoCycleDayUpdateOneRequiredWithoutMesoCycleExercisesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleExercisesInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleExercisesInput>
|
|
connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleExercisesInput
|
|
upsert?: Prisma.MesoCycleDayUpsertWithoutMesoCycleExercisesInput
|
|
connect?: Prisma.MesoCycleDayWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.MesoCycleDayUpdateToOneWithWhereWithoutMesoCycleExercisesInput, Prisma.MesoCycleDayUpdateWithoutMesoCycleExercisesInput>, Prisma.MesoCycleDayUncheckedUpdateWithoutMesoCycleExercisesInput>
|
|
}
|
|
|
|
export type MesoCycleDayCreateNestedOneWithoutWorkOutSessionsInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutWorkOutSessionsInput, Prisma.MesoCycleDayUncheckedCreateWithoutWorkOutSessionsInput>
|
|
connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutWorkOutSessionsInput
|
|
connect?: Prisma.MesoCycleDayWhereUniqueInput
|
|
}
|
|
|
|
export type MesoCycleDayUpdateOneRequiredWithoutWorkOutSessionsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutWorkOutSessionsInput, Prisma.MesoCycleDayUncheckedCreateWithoutWorkOutSessionsInput>
|
|
connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutWorkOutSessionsInput
|
|
upsert?: Prisma.MesoCycleDayUpsertWithoutWorkOutSessionsInput
|
|
connect?: Prisma.MesoCycleDayWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.MesoCycleDayUpdateToOneWithWhereWithoutWorkOutSessionsInput, Prisma.MesoCycleDayUpdateWithoutWorkOutSessionsInput>, Prisma.MesoCycleDayUncheckedUpdateWithoutWorkOutSessionsInput>
|
|
}
|
|
|
|
export type MesoCycleDayCreateWithoutMesoCycleInput = {
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseCreateNestedManyWithoutMesoCycleDayInput
|
|
workOutSessions?: Prisma.WorkoutSessionCreateNestedManyWithoutMesoCycleDayInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedCreateWithoutMesoCycleInput = {
|
|
id?: number
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedCreateNestedManyWithoutMesoCycleDayInput
|
|
workOutSessions?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutMesoCycleDayInput
|
|
}
|
|
|
|
export type MesoCycleDayCreateOrConnectWithoutMesoCycleInput = {
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput>
|
|
}
|
|
|
|
export type MesoCycleDayCreateManyMesoCycleInputEnvelope = {
|
|
data: Prisma.MesoCycleDayCreateManyMesoCycleInput | Prisma.MesoCycleDayCreateManyMesoCycleInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput = {
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MesoCycleDayUpdateWithoutMesoCycleInput, Prisma.MesoCycleDayUncheckedUpdateWithoutMesoCycleInput>
|
|
create: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput>
|
|
}
|
|
|
|
export type MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput = {
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MesoCycleDayUpdateWithoutMesoCycleInput, Prisma.MesoCycleDayUncheckedUpdateWithoutMesoCycleInput>
|
|
}
|
|
|
|
export type MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput = {
|
|
where: Prisma.MesoCycleDayScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MesoCycleDayUpdateManyMutationInput, Prisma.MesoCycleDayUncheckedUpdateManyWithoutMesoCycleInput>
|
|
}
|
|
|
|
export type MesoCycleDayScalarWhereInput = {
|
|
AND?: Prisma.MesoCycleDayScalarWhereInput | Prisma.MesoCycleDayScalarWhereInput[]
|
|
OR?: Prisma.MesoCycleDayScalarWhereInput[]
|
|
NOT?: Prisma.MesoCycleDayScalarWhereInput | Prisma.MesoCycleDayScalarWhereInput[]
|
|
id?: Prisma.IntFilter<"MesoCycleDay"> | number
|
|
weekday?: Prisma.StringNullableFilter<"MesoCycleDay"> | string | null
|
|
orderIndex?: Prisma.IntFilter<"MesoCycleDay"> | number
|
|
mesoCycleId?: Prisma.IntFilter<"MesoCycleDay"> | number
|
|
}
|
|
|
|
export type MesoCycleDayCreateWithoutMesoCycleExercisesInput = {
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycle: Prisma.MesoCycleCreateNestedOneWithoutMesoCycleDaysInput
|
|
workOutSessions?: Prisma.WorkoutSessionCreateNestedManyWithoutMesoCycleDayInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedCreateWithoutMesoCycleExercisesInput = {
|
|
id?: number
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycleId: number
|
|
workOutSessions?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutMesoCycleDayInput
|
|
}
|
|
|
|
export type MesoCycleDayCreateOrConnectWithoutMesoCycleExercisesInput = {
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleExercisesInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleExercisesInput>
|
|
}
|
|
|
|
export type MesoCycleDayUpsertWithoutMesoCycleExercisesInput = {
|
|
update: Prisma.XOR<Prisma.MesoCycleDayUpdateWithoutMesoCycleExercisesInput, Prisma.MesoCycleDayUncheckedUpdateWithoutMesoCycleExercisesInput>
|
|
create: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutMesoCycleExercisesInput, Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleExercisesInput>
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
}
|
|
|
|
export type MesoCycleDayUpdateToOneWithWhereWithoutMesoCycleExercisesInput = {
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
data: Prisma.XOR<Prisma.MesoCycleDayUpdateWithoutMesoCycleExercisesInput, Prisma.MesoCycleDayUncheckedUpdateWithoutMesoCycleExercisesInput>
|
|
}
|
|
|
|
export type MesoCycleDayUpdateWithoutMesoCycleExercisesInput = {
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycle?: Prisma.MesoCycleUpdateOneRequiredWithoutMesoCycleDaysNestedInput
|
|
workOutSessions?: Prisma.WorkoutSessionUpdateManyWithoutMesoCycleDayNestedInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedUpdateWithoutMesoCycleExercisesInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
workOutSessions?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutMesoCycleDayNestedInput
|
|
}
|
|
|
|
export type MesoCycleDayCreateWithoutWorkOutSessionsInput = {
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycle: Prisma.MesoCycleCreateNestedOneWithoutMesoCycleDaysInput
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseCreateNestedManyWithoutMesoCycleDayInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedCreateWithoutWorkOutSessionsInput = {
|
|
id?: number
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
mesoCycleId: number
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedCreateNestedManyWithoutMesoCycleDayInput
|
|
}
|
|
|
|
export type MesoCycleDayCreateOrConnectWithoutWorkOutSessionsInput = {
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutWorkOutSessionsInput, Prisma.MesoCycleDayUncheckedCreateWithoutWorkOutSessionsInput>
|
|
}
|
|
|
|
export type MesoCycleDayUpsertWithoutWorkOutSessionsInput = {
|
|
update: Prisma.XOR<Prisma.MesoCycleDayUpdateWithoutWorkOutSessionsInput, Prisma.MesoCycleDayUncheckedUpdateWithoutWorkOutSessionsInput>
|
|
create: Prisma.XOR<Prisma.MesoCycleDayCreateWithoutWorkOutSessionsInput, Prisma.MesoCycleDayUncheckedCreateWithoutWorkOutSessionsInput>
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
}
|
|
|
|
export type MesoCycleDayUpdateToOneWithWhereWithoutWorkOutSessionsInput = {
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
data: Prisma.XOR<Prisma.MesoCycleDayUpdateWithoutWorkOutSessionsInput, Prisma.MesoCycleDayUncheckedUpdateWithoutWorkOutSessionsInput>
|
|
}
|
|
|
|
export type MesoCycleDayUpdateWithoutWorkOutSessionsInput = {
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycle?: Prisma.MesoCycleUpdateOneRequiredWithoutMesoCycleDaysNestedInput
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUpdateManyWithoutMesoCycleDayNestedInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedUpdateWithoutWorkOutSessionsInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayNestedInput
|
|
}
|
|
|
|
export type MesoCycleDayCreateManyMesoCycleInput = {
|
|
id?: number
|
|
weekday?: string | null
|
|
orderIndex: number
|
|
}
|
|
|
|
export type MesoCycleDayUpdateWithoutMesoCycleInput = {
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUpdateManyWithoutMesoCycleDayNestedInput
|
|
workOutSessions?: Prisma.WorkoutSessionUpdateManyWithoutMesoCycleDayNestedInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedUpdateWithoutMesoCycleInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayNestedInput
|
|
workOutSessions?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutMesoCycleDayNestedInput
|
|
}
|
|
|
|
export type MesoCycleDayUncheckedUpdateManyWithoutMesoCycleInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type MesoCycleDayCountOutputType
|
|
*/
|
|
|
|
export type MesoCycleDayCountOutputType = {
|
|
mesoCycleExercises: number
|
|
workOutSessions: number
|
|
}
|
|
|
|
export type MesoCycleDayCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mesoCycleExercises?: boolean | MesoCycleDayCountOutputTypeCountMesoCycleExercisesArgs
|
|
workOutSessions?: boolean | MesoCycleDayCountOutputTypeCountWorkOutSessionsArgs
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDayCountOutputType without action
|
|
*/
|
|
export type MesoCycleDayCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDayCountOutputType
|
|
*/
|
|
select?: Prisma.MesoCycleDayCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDayCountOutputType without action
|
|
*/
|
|
export type MesoCycleDayCountOutputTypeCountMesoCycleExercisesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDayCountOutputType without action
|
|
*/
|
|
export type MesoCycleDayCountOutputTypeCountWorkOutSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.WorkoutSessionWhereInput
|
|
}
|
|
|
|
|
|
export type MesoCycleDaySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
weekday?: boolean
|
|
orderIndex?: boolean
|
|
mesoCycleId?: boolean
|
|
mesoCycle?: boolean | Prisma.MesoCycleDefaultArgs<ExtArgs>
|
|
mesoCycleExercises?: boolean | Prisma.MesoCycleDay$mesoCycleExercisesArgs<ExtArgs>
|
|
workOutSessions?: boolean | Prisma.MesoCycleDay$workOutSessionsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.MesoCycleDayCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mesoCycleDay"]>
|
|
|
|
|
|
|
|
export type MesoCycleDaySelectScalar = {
|
|
id?: boolean
|
|
weekday?: boolean
|
|
orderIndex?: boolean
|
|
mesoCycleId?: boolean
|
|
}
|
|
|
|
export type MesoCycleDayOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "weekday" | "orderIndex" | "mesoCycleId", ExtArgs["result"]["mesoCycleDay"]>
|
|
export type MesoCycleDayInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mesoCycle?: boolean | Prisma.MesoCycleDefaultArgs<ExtArgs>
|
|
mesoCycleExercises?: boolean | Prisma.MesoCycleDay$mesoCycleExercisesArgs<ExtArgs>
|
|
workOutSessions?: boolean | Prisma.MesoCycleDay$workOutSessionsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.MesoCycleDayCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MesoCycleDayPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "MesoCycleDay"
|
|
objects: {
|
|
mesoCycle: Prisma.$MesoCyclePayload<ExtArgs>
|
|
mesoCycleExercises: Prisma.$MesoCycleExercisePayload<ExtArgs>[]
|
|
workOutSessions: Prisma.$WorkoutSessionPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
weekday: string | null
|
|
orderIndex: number
|
|
mesoCycleId: number
|
|
}, ExtArgs["result"]["mesoCycleDay"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type MesoCycleDayGetPayload<S extends boolean | null | undefined | MesoCycleDayDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload, S>
|
|
|
|
export type MesoCycleDayCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<MesoCycleDayFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: MesoCycleDayCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MesoCycleDayDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MesoCycleDay'], meta: { name: 'MesoCycleDay' } }
|
|
/**
|
|
* Find zero or one MesoCycleDay that matches the filter.
|
|
* @param {MesoCycleDayFindUniqueArgs} args - Arguments to find a MesoCycleDay
|
|
* @example
|
|
* // Get one MesoCycleDay
|
|
* const mesoCycleDay = await prisma.mesoCycleDay.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MesoCycleDayFindUniqueArgs>(args: Prisma.SelectSubset<T, MesoCycleDayFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one MesoCycleDay that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MesoCycleDayFindUniqueOrThrowArgs} args - Arguments to find a MesoCycleDay
|
|
* @example
|
|
* // Get one MesoCycleDay
|
|
* const mesoCycleDay = await prisma.mesoCycleDay.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MesoCycleDayFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MesoCycleDayFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MesoCycleDay 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 {MesoCycleDayFindFirstArgs} args - Arguments to find a MesoCycleDay
|
|
* @example
|
|
* // Get one MesoCycleDay
|
|
* const mesoCycleDay = await prisma.mesoCycleDay.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MesoCycleDayFindFirstArgs>(args?: Prisma.SelectSubset<T, MesoCycleDayFindFirstArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MesoCycleDay 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 {MesoCycleDayFindFirstOrThrowArgs} args - Arguments to find a MesoCycleDay
|
|
* @example
|
|
* // Get one MesoCycleDay
|
|
* const mesoCycleDay = await prisma.mesoCycleDay.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MesoCycleDayFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MesoCycleDayFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more MesoCycleDays 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 {MesoCycleDayFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MesoCycleDays
|
|
* const mesoCycleDays = await prisma.mesoCycleDay.findMany()
|
|
*
|
|
* // Get first 10 MesoCycleDays
|
|
* const mesoCycleDays = await prisma.mesoCycleDay.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const mesoCycleDayWithIdOnly = await prisma.mesoCycleDay.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MesoCycleDayFindManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleDayFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a MesoCycleDay.
|
|
* @param {MesoCycleDayCreateArgs} args - Arguments to create a MesoCycleDay.
|
|
* @example
|
|
* // Create one MesoCycleDay
|
|
* const MesoCycleDay = await prisma.mesoCycleDay.create({
|
|
* data: {
|
|
* // ... data to create a MesoCycleDay
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MesoCycleDayCreateArgs>(args: Prisma.SelectSubset<T, MesoCycleDayCreateArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many MesoCycleDays.
|
|
* @param {MesoCycleDayCreateManyArgs} args - Arguments to create many MesoCycleDays.
|
|
* @example
|
|
* // Create many MesoCycleDays
|
|
* const mesoCycleDay = await prisma.mesoCycleDay.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MesoCycleDayCreateManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleDayCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a MesoCycleDay.
|
|
* @param {MesoCycleDayDeleteArgs} args - Arguments to delete one MesoCycleDay.
|
|
* @example
|
|
* // Delete one MesoCycleDay
|
|
* const MesoCycleDay = await prisma.mesoCycleDay.delete({
|
|
* where: {
|
|
* // ... filter to delete one MesoCycleDay
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MesoCycleDayDeleteArgs>(args: Prisma.SelectSubset<T, MesoCycleDayDeleteArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one MesoCycleDay.
|
|
* @param {MesoCycleDayUpdateArgs} args - Arguments to update one MesoCycleDay.
|
|
* @example
|
|
* // Update one MesoCycleDay
|
|
* const mesoCycleDay = await prisma.mesoCycleDay.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MesoCycleDayUpdateArgs>(args: Prisma.SelectSubset<T, MesoCycleDayUpdateArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more MesoCycleDays.
|
|
* @param {MesoCycleDayDeleteManyArgs} args - Arguments to filter MesoCycleDays to delete.
|
|
* @example
|
|
* // Delete a few MesoCycleDays
|
|
* const { count } = await prisma.mesoCycleDay.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MesoCycleDayDeleteManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleDayDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MesoCycleDays.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MesoCycleDayUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MesoCycleDays
|
|
* const mesoCycleDay = await prisma.mesoCycleDay.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MesoCycleDayUpdateManyArgs>(args: Prisma.SelectSubset<T, MesoCycleDayUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one MesoCycleDay.
|
|
* @param {MesoCycleDayUpsertArgs} args - Arguments to update or create a MesoCycleDay.
|
|
* @example
|
|
* // Update or create a MesoCycleDay
|
|
* const mesoCycleDay = await prisma.mesoCycleDay.upsert({
|
|
* create: {
|
|
* // ... data to create a MesoCycleDay
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MesoCycleDay we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MesoCycleDayUpsertArgs>(args: Prisma.SelectSubset<T, MesoCycleDayUpsertArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of MesoCycleDays.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MesoCycleDayCountArgs} args - Arguments to filter MesoCycleDays to count.
|
|
* @example
|
|
* // Count the number of MesoCycleDays
|
|
* const count = await prisma.mesoCycleDay.count({
|
|
* where: {
|
|
* // ... the filter for the MesoCycleDays we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MesoCycleDayCountArgs>(
|
|
args?: Prisma.Subset<T, MesoCycleDayCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], MesoCycleDayCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MesoCycleDay.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MesoCycleDayAggregateArgs} 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 MesoCycleDayAggregateArgs>(args: Prisma.Subset<T, MesoCycleDayAggregateArgs>): Prisma.PrismaPromise<GetMesoCycleDayAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MesoCycleDay.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MesoCycleDayGroupByArgs} 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 MesoCycleDayGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: MesoCycleDayGroupByArgs['orderBy'] }
|
|
: { orderBy?: MesoCycleDayGroupByArgs['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, MesoCycleDayGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMesoCycleDayGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MesoCycleDay model
|
|
*/
|
|
readonly fields: MesoCycleDayFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MesoCycleDay.
|
|
* 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__MesoCycleDayClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
mesoCycle<T extends Prisma.MesoCycleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MesoCycleDefaultArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
mesoCycleExercises<T extends Prisma.MesoCycleDay$mesoCycleExercisesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MesoCycleDay$mesoCycleExercisesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
workOutSessions<T extends Prisma.MesoCycleDay$workOutSessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MesoCycleDay$workOutSessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkoutSessionPayload<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 MesoCycleDay model
|
|
*/
|
|
export interface MesoCycleDayFieldRefs {
|
|
readonly id: Prisma.FieldRef<"MesoCycleDay", 'Int'>
|
|
readonly weekday: Prisma.FieldRef<"MesoCycleDay", 'String'>
|
|
readonly orderIndex: Prisma.FieldRef<"MesoCycleDay", 'Int'>
|
|
readonly mesoCycleId: Prisma.FieldRef<"MesoCycleDay", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MesoCycleDay findUnique
|
|
*/
|
|
export type MesoCycleDayFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MesoCycleDay to fetch.
|
|
*/
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay findUniqueOrThrow
|
|
*/
|
|
export type MesoCycleDayFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MesoCycleDay to fetch.
|
|
*/
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay findFirst
|
|
*/
|
|
export type MesoCycleDayFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MesoCycleDay to fetch.
|
|
*/
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MesoCycleDays to fetch.
|
|
*/
|
|
orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MesoCycleDays.
|
|
*/
|
|
cursor?: Prisma.MesoCycleDayWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MesoCycleDays 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` MesoCycleDays.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MesoCycleDays.
|
|
*/
|
|
distinct?: Prisma.MesoCycleDayScalarFieldEnum | Prisma.MesoCycleDayScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay findFirstOrThrow
|
|
*/
|
|
export type MesoCycleDayFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MesoCycleDay to fetch.
|
|
*/
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MesoCycleDays to fetch.
|
|
*/
|
|
orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MesoCycleDays.
|
|
*/
|
|
cursor?: Prisma.MesoCycleDayWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MesoCycleDays 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` MesoCycleDays.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MesoCycleDays.
|
|
*/
|
|
distinct?: Prisma.MesoCycleDayScalarFieldEnum | Prisma.MesoCycleDayScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay findMany
|
|
*/
|
|
export type MesoCycleDayFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MesoCycleDays to fetch.
|
|
*/
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MesoCycleDays to fetch.
|
|
*/
|
|
orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MesoCycleDays.
|
|
*/
|
|
cursor?: Prisma.MesoCycleDayWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MesoCycleDays 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` MesoCycleDays.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MesoCycleDays.
|
|
*/
|
|
distinct?: Prisma.MesoCycleDayScalarFieldEnum | Prisma.MesoCycleDayScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay create
|
|
*/
|
|
export type MesoCycleDayCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MesoCycleDay.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleDayCreateInput, Prisma.MesoCycleDayUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay createMany
|
|
*/
|
|
export type MesoCycleDayCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MesoCycleDays.
|
|
*/
|
|
data: Prisma.MesoCycleDayCreateManyInput | Prisma.MesoCycleDayCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay update
|
|
*/
|
|
export type MesoCycleDayUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MesoCycleDay.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleDayUpdateInput, Prisma.MesoCycleDayUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MesoCycleDay to update.
|
|
*/
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay updateMany
|
|
*/
|
|
export type MesoCycleDayUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MesoCycleDays.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleDayUpdateManyMutationInput, Prisma.MesoCycleDayUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MesoCycleDays to update
|
|
*/
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
/**
|
|
* Limit how many MesoCycleDays to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay upsert
|
|
*/
|
|
export type MesoCycleDayUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the MesoCycleDay to update in case it exists.
|
|
*/
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
/**
|
|
* In case the MesoCycleDay found by the `where` argument doesn't exist, create a new MesoCycleDay with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.MesoCycleDayCreateInput, Prisma.MesoCycleDayUncheckedCreateInput>
|
|
/**
|
|
* In case the MesoCycleDay was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.MesoCycleDayUpdateInput, Prisma.MesoCycleDayUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay delete
|
|
*/
|
|
export type MesoCycleDayDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MesoCycleDay to delete.
|
|
*/
|
|
where: Prisma.MesoCycleDayWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay deleteMany
|
|
*/
|
|
export type MesoCycleDayDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MesoCycleDays to delete
|
|
*/
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
/**
|
|
* Limit how many MesoCycleDays to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay.mesoCycleExercises
|
|
*/
|
|
export type MesoCycleDay$mesoCycleExercisesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleExercise
|
|
*/
|
|
select?: Prisma.MesoCycleExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleExercise
|
|
*/
|
|
omit?: Prisma.MesoCycleExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleExerciseInclude<ExtArgs> | null
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[]
|
|
cursor?: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay.workOutSessions
|
|
*/
|
|
export type MesoCycleDay$workOutSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the WorkoutSession
|
|
*/
|
|
select?: Prisma.WorkoutSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the WorkoutSession
|
|
*/
|
|
omit?: Prisma.WorkoutSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.WorkoutSessionInclude<ExtArgs> | null
|
|
where?: Prisma.WorkoutSessionWhereInput
|
|
orderBy?: Prisma.WorkoutSessionOrderByWithRelationInput | Prisma.WorkoutSessionOrderByWithRelationInput[]
|
|
cursor?: Prisma.WorkoutSessionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.WorkoutSessionScalarFieldEnum | Prisma.WorkoutSessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleDay without action
|
|
*/
|
|
export type MesoCycleDayDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | null
|
|
}
|