1533 lines
65 KiB
TypeScript
1533 lines
65 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 `MesoCycleExercise` 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 MesoCycleExercise
|
|
*
|
|
*/
|
|
export type MesoCycleExerciseModel = runtime.Types.Result.DefaultSelection<Prisma.$MesoCycleExercisePayload>
|
|
|
|
export type AggregateMesoCycleExercise = {
|
|
_count: MesoCycleExerciseCountAggregateOutputType | null
|
|
_avg: MesoCycleExerciseAvgAggregateOutputType | null
|
|
_sum: MesoCycleExerciseSumAggregateOutputType | null
|
|
_min: MesoCycleExerciseMinAggregateOutputType | null
|
|
_max: MesoCycleExerciseMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MesoCycleExerciseAvgAggregateOutputType = {
|
|
id: number | null
|
|
startingSets: number | null
|
|
orderIndex: number | null
|
|
mesoCycleDayId: number | null
|
|
exerciseId: number | null
|
|
}
|
|
|
|
export type MesoCycleExerciseSumAggregateOutputType = {
|
|
id: number | null
|
|
startingSets: number | null
|
|
orderIndex: number | null
|
|
mesoCycleDayId: number | null
|
|
exerciseId: number | null
|
|
}
|
|
|
|
export type MesoCycleExerciseMinAggregateOutputType = {
|
|
id: number | null
|
|
startingSets: number | null
|
|
orderIndex: number | null
|
|
mesoCycleDayId: number | null
|
|
exerciseId: number | null
|
|
}
|
|
|
|
export type MesoCycleExerciseMaxAggregateOutputType = {
|
|
id: number | null
|
|
startingSets: number | null
|
|
orderIndex: number | null
|
|
mesoCycleDayId: number | null
|
|
exerciseId: number | null
|
|
}
|
|
|
|
export type MesoCycleExerciseCountAggregateOutputType = {
|
|
id: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDayId: number
|
|
exerciseId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MesoCycleExerciseAvgAggregateInputType = {
|
|
id?: true
|
|
startingSets?: true
|
|
orderIndex?: true
|
|
mesoCycleDayId?: true
|
|
exerciseId?: true
|
|
}
|
|
|
|
export type MesoCycleExerciseSumAggregateInputType = {
|
|
id?: true
|
|
startingSets?: true
|
|
orderIndex?: true
|
|
mesoCycleDayId?: true
|
|
exerciseId?: true
|
|
}
|
|
|
|
export type MesoCycleExerciseMinAggregateInputType = {
|
|
id?: true
|
|
startingSets?: true
|
|
orderIndex?: true
|
|
mesoCycleDayId?: true
|
|
exerciseId?: true
|
|
}
|
|
|
|
export type MesoCycleExerciseMaxAggregateInputType = {
|
|
id?: true
|
|
startingSets?: true
|
|
orderIndex?: true
|
|
mesoCycleDayId?: true
|
|
exerciseId?: true
|
|
}
|
|
|
|
export type MesoCycleExerciseCountAggregateInputType = {
|
|
id?: true
|
|
startingSets?: true
|
|
orderIndex?: true
|
|
mesoCycleDayId?: true
|
|
exerciseId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MesoCycleExerciseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MesoCycleExercise to aggregate.
|
|
*/
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MesoCycleExercises to fetch.
|
|
*/
|
|
orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MesoCycleExercises 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` MesoCycleExercises.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MesoCycleExercises
|
|
**/
|
|
_count?: true | MesoCycleExerciseCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MesoCycleExerciseAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MesoCycleExerciseSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MesoCycleExerciseMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MesoCycleExerciseMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMesoCycleExerciseAggregateType<T extends MesoCycleExerciseAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMesoCycleExercise]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMesoCycleExercise[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMesoCycleExercise[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MesoCycleExerciseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
orderBy?: Prisma.MesoCycleExerciseOrderByWithAggregationInput | Prisma.MesoCycleExerciseOrderByWithAggregationInput[]
|
|
by: Prisma.MesoCycleExerciseScalarFieldEnum[] | Prisma.MesoCycleExerciseScalarFieldEnum
|
|
having?: Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MesoCycleExerciseCountAggregateInputType | true
|
|
_avg?: MesoCycleExerciseAvgAggregateInputType
|
|
_sum?: MesoCycleExerciseSumAggregateInputType
|
|
_min?: MesoCycleExerciseMinAggregateInputType
|
|
_max?: MesoCycleExerciseMaxAggregateInputType
|
|
}
|
|
|
|
export type MesoCycleExerciseGroupByOutputType = {
|
|
id: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDayId: number
|
|
exerciseId: number
|
|
_count: MesoCycleExerciseCountAggregateOutputType | null
|
|
_avg: MesoCycleExerciseAvgAggregateOutputType | null
|
|
_sum: MesoCycleExerciseSumAggregateOutputType | null
|
|
_min: MesoCycleExerciseMinAggregateOutputType | null
|
|
_max: MesoCycleExerciseMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetMesoCycleExerciseGroupByPayload<T extends MesoCycleExerciseGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<MesoCycleExerciseGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MesoCycleExerciseGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], MesoCycleExerciseGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], MesoCycleExerciseGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type MesoCycleExerciseWhereInput = {
|
|
AND?: Prisma.MesoCycleExerciseWhereInput | Prisma.MesoCycleExerciseWhereInput[]
|
|
OR?: Prisma.MesoCycleExerciseWhereInput[]
|
|
NOT?: Prisma.MesoCycleExerciseWhereInput | Prisma.MesoCycleExerciseWhereInput[]
|
|
id?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
startingSets?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
orderIndex?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
mesoCycleDayId?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
exerciseId?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
mesoCycleDay?: Prisma.XOR<Prisma.MesoCycleDayScalarRelationFilter, Prisma.MesoCycleDayWhereInput>
|
|
exercise?: Prisma.XOR<Prisma.ExerciseScalarRelationFilter, Prisma.ExerciseWhereInput>
|
|
exerciseLogs?: Prisma.ExerciseLogListRelationFilter
|
|
}
|
|
|
|
export type MesoCycleExerciseOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
startingSets?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleDayId?: Prisma.SortOrder
|
|
exerciseId?: Prisma.SortOrder
|
|
mesoCycleDay?: Prisma.MesoCycleDayOrderByWithRelationInput
|
|
exercise?: Prisma.ExerciseOrderByWithRelationInput
|
|
exerciseLogs?: Prisma.ExerciseLogOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type MesoCycleExerciseWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.MesoCycleExerciseWhereInput | Prisma.MesoCycleExerciseWhereInput[]
|
|
OR?: Prisma.MesoCycleExerciseWhereInput[]
|
|
NOT?: Prisma.MesoCycleExerciseWhereInput | Prisma.MesoCycleExerciseWhereInput[]
|
|
startingSets?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
orderIndex?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
mesoCycleDayId?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
exerciseId?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
mesoCycleDay?: Prisma.XOR<Prisma.MesoCycleDayScalarRelationFilter, Prisma.MesoCycleDayWhereInput>
|
|
exercise?: Prisma.XOR<Prisma.ExerciseScalarRelationFilter, Prisma.ExerciseWhereInput>
|
|
exerciseLogs?: Prisma.ExerciseLogListRelationFilter
|
|
}, "id">
|
|
|
|
export type MesoCycleExerciseOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
startingSets?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleDayId?: Prisma.SortOrder
|
|
exerciseId?: Prisma.SortOrder
|
|
_count?: Prisma.MesoCycleExerciseCountOrderByAggregateInput
|
|
_avg?: Prisma.MesoCycleExerciseAvgOrderByAggregateInput
|
|
_max?: Prisma.MesoCycleExerciseMaxOrderByAggregateInput
|
|
_min?: Prisma.MesoCycleExerciseMinOrderByAggregateInput
|
|
_sum?: Prisma.MesoCycleExerciseSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MesoCycleExerciseScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput | Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput | Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number
|
|
startingSets?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number
|
|
orderIndex?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number
|
|
mesoCycleDayId?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number
|
|
exerciseId?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateInput = {
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutMesoCycleExercisesInput
|
|
exercise: Prisma.ExerciseCreateNestedOneWithoutMesoCycleExercisesInput
|
|
exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutMesoCycleExerciseInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedCreateInput = {
|
|
id?: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDayId: number
|
|
exerciseId: number
|
|
exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutMesoCycleExerciseInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateInput = {
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutMesoCycleExercisesNestedInput
|
|
exercise?: Prisma.ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput
|
|
exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutMesoCycleExerciseNestedInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseNestedInput
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateManyInput = {
|
|
id?: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDayId: number
|
|
exerciseId: number
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateManyMutationInput = {
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type MesoCycleExerciseListRelationFilter = {
|
|
every?: Prisma.MesoCycleExerciseWhereInput
|
|
some?: Prisma.MesoCycleExerciseWhereInput
|
|
none?: Prisma.MesoCycleExerciseWhereInput
|
|
}
|
|
|
|
export type MesoCycleExerciseOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleExerciseCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
startingSets?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleDayId?: Prisma.SortOrder
|
|
exerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleExerciseAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
startingSets?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleDayId?: Prisma.SortOrder
|
|
exerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleExerciseMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
startingSets?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleDayId?: Prisma.SortOrder
|
|
exerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleExerciseMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
startingSets?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleDayId?: Prisma.SortOrder
|
|
exerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleExerciseSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
startingSets?: Prisma.SortOrder
|
|
orderIndex?: Prisma.SortOrder
|
|
mesoCycleDayId?: Prisma.SortOrder
|
|
exerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MesoCycleExerciseScalarRelationFilter = {
|
|
is?: Prisma.MesoCycleExerciseWhereInput
|
|
isNot?: Prisma.MesoCycleExerciseWhereInput
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateNestedManyWithoutExerciseInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput> | Prisma.MesoCycleExerciseCreateWithoutExerciseInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput[]
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput[]
|
|
createMany?: Prisma.MesoCycleExerciseCreateManyExerciseInputEnvelope
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedCreateNestedManyWithoutExerciseInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput> | Prisma.MesoCycleExerciseCreateWithoutExerciseInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput[]
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput[]
|
|
createMany?: Prisma.MesoCycleExerciseCreateManyExerciseInputEnvelope
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateManyWithoutExerciseNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput> | Prisma.MesoCycleExerciseCreateWithoutExerciseInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput[]
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput[]
|
|
upsert?: Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput | Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput[]
|
|
createMany?: Prisma.MesoCycleExerciseCreateManyExerciseInputEnvelope
|
|
set?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
disconnect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
delete?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
update?: Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput | Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput[]
|
|
updateMany?: Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput | Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput[]
|
|
deleteMany?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[]
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateManyWithoutExerciseNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput> | Prisma.MesoCycleExerciseCreateWithoutExerciseInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput[]
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput[]
|
|
upsert?: Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput | Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput[]
|
|
createMany?: Prisma.MesoCycleExerciseCreateManyExerciseInputEnvelope
|
|
set?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
disconnect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
delete?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
update?: Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput | Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput[]
|
|
updateMany?: Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput | Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput[]
|
|
deleteMany?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[]
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateNestedManyWithoutMesoCycleDayInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput> | Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput[]
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput[]
|
|
createMany?: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedCreateNestedManyWithoutMesoCycleDayInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput> | Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput[]
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput[]
|
|
createMany?: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateManyWithoutMesoCycleDayNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput> | Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput[]
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput[]
|
|
upsert?: Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput[]
|
|
createMany?: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope
|
|
set?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
disconnect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
delete?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
update?: Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput[]
|
|
updateMany?: Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput[]
|
|
deleteMany?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[]
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput> | Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput[]
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput[]
|
|
upsert?: Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput[]
|
|
createMany?: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope
|
|
set?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
disconnect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
delete?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[]
|
|
update?: Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput[]
|
|
updateMany?: Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput[]
|
|
deleteMany?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[]
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateNestedOneWithoutExerciseLogsInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseLogsInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseLogsInput>
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseLogsInput
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateOneRequiredWithoutExerciseLogsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseLogsInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseLogsInput>
|
|
connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseLogsInput
|
|
upsert?: Prisma.MesoCycleExerciseUpsertWithoutExerciseLogsInput
|
|
connect?: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.MesoCycleExerciseUpdateToOneWithWhereWithoutExerciseLogsInput, Prisma.MesoCycleExerciseUpdateWithoutExerciseLogsInput>, Prisma.MesoCycleExerciseUncheckedUpdateWithoutExerciseLogsInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateWithoutExerciseInput = {
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutMesoCycleExercisesInput
|
|
exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutMesoCycleExerciseInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedCreateWithoutExerciseInput = {
|
|
id?: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDayId: number
|
|
exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutMesoCycleExerciseInput
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateOrConnectWithoutExerciseInput = {
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateManyExerciseInputEnvelope = {
|
|
data: Prisma.MesoCycleExerciseCreateManyExerciseInput | Prisma.MesoCycleExerciseCreateManyExerciseInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput = {
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MesoCycleExerciseUpdateWithoutExerciseInput, Prisma.MesoCycleExerciseUncheckedUpdateWithoutExerciseInput>
|
|
create: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput = {
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MesoCycleExerciseUpdateWithoutExerciseInput, Prisma.MesoCycleExerciseUncheckedUpdateWithoutExerciseInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput = {
|
|
where: Prisma.MesoCycleExerciseScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MesoCycleExerciseUpdateManyMutationInput, Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutExerciseInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseScalarWhereInput = {
|
|
AND?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[]
|
|
OR?: Prisma.MesoCycleExerciseScalarWhereInput[]
|
|
NOT?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[]
|
|
id?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
startingSets?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
orderIndex?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
mesoCycleDayId?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
exerciseId?: Prisma.IntFilter<"MesoCycleExercise"> | number
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateWithoutMesoCycleDayInput = {
|
|
startingSets: number
|
|
orderIndex: number
|
|
exercise: Prisma.ExerciseCreateNestedOneWithoutMesoCycleExercisesInput
|
|
exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutMesoCycleExerciseInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput = {
|
|
id?: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
exerciseId: number
|
|
exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutMesoCycleExerciseInput
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput = {
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope = {
|
|
data: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInput | Prisma.MesoCycleExerciseCreateManyMesoCycleDayInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput = {
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MesoCycleExerciseUpdateWithoutMesoCycleDayInput, Prisma.MesoCycleExerciseUncheckedUpdateWithoutMesoCycleDayInput>
|
|
create: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput = {
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MesoCycleExerciseUpdateWithoutMesoCycleDayInput, Prisma.MesoCycleExerciseUncheckedUpdateWithoutMesoCycleDayInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput = {
|
|
where: Prisma.MesoCycleExerciseScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MesoCycleExerciseUpdateManyMutationInput, Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateWithoutExerciseLogsInput = {
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutMesoCycleExercisesInput
|
|
exercise: Prisma.ExerciseCreateNestedOneWithoutMesoCycleExercisesInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedCreateWithoutExerciseLogsInput = {
|
|
id?: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDayId: number
|
|
exerciseId: number
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateOrConnectWithoutExerciseLogsInput = {
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseLogsInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseLogsInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseUpsertWithoutExerciseLogsInput = {
|
|
update: Prisma.XOR<Prisma.MesoCycleExerciseUpdateWithoutExerciseLogsInput, Prisma.MesoCycleExerciseUncheckedUpdateWithoutExerciseLogsInput>
|
|
create: Prisma.XOR<Prisma.MesoCycleExerciseCreateWithoutExerciseLogsInput, Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseLogsInput>
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateToOneWithWhereWithoutExerciseLogsInput = {
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
data: Prisma.XOR<Prisma.MesoCycleExerciseUpdateWithoutExerciseLogsInput, Prisma.MesoCycleExerciseUncheckedUpdateWithoutExerciseLogsInput>
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateWithoutExerciseLogsInput = {
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutMesoCycleExercisesNestedInput
|
|
exercise?: Prisma.ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateWithoutExerciseLogsInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateManyExerciseInput = {
|
|
id?: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDayId: number
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateWithoutExerciseInput = {
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutMesoCycleExercisesNestedInput
|
|
exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutMesoCycleExerciseNestedInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateWithoutExerciseInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseNestedInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateManyWithoutExerciseInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type MesoCycleExerciseCreateManyMesoCycleDayInput = {
|
|
id?: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
exerciseId: number
|
|
}
|
|
|
|
export type MesoCycleExerciseUpdateWithoutMesoCycleDayInput = {
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exercise?: Prisma.ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput
|
|
exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutMesoCycleExerciseNestedInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateWithoutMesoCycleDayInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseNestedInput
|
|
}
|
|
|
|
export type MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
startingSets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
orderIndex?: Prisma.IntFieldUpdateOperationsInput | number
|
|
exerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type MesoCycleExerciseCountOutputType
|
|
*/
|
|
|
|
export type MesoCycleExerciseCountOutputType = {
|
|
exerciseLogs: number
|
|
}
|
|
|
|
export type MesoCycleExerciseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
exerciseLogs?: boolean | MesoCycleExerciseCountOutputTypeCountExerciseLogsArgs
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExerciseCountOutputType without action
|
|
*/
|
|
export type MesoCycleExerciseCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleExerciseCountOutputType
|
|
*/
|
|
select?: Prisma.MesoCycleExerciseCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExerciseCountOutputType without action
|
|
*/
|
|
export type MesoCycleExerciseCountOutputTypeCountExerciseLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
}
|
|
|
|
|
|
export type MesoCycleExerciseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
startingSets?: boolean
|
|
orderIndex?: boolean
|
|
mesoCycleDayId?: boolean
|
|
exerciseId?: boolean
|
|
mesoCycleDay?: boolean | Prisma.MesoCycleDayDefaultArgs<ExtArgs>
|
|
exercise?: boolean | Prisma.ExerciseDefaultArgs<ExtArgs>
|
|
exerciseLogs?: boolean | Prisma.MesoCycleExercise$exerciseLogsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.MesoCycleExerciseCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mesoCycleExercise"]>
|
|
|
|
|
|
|
|
export type MesoCycleExerciseSelectScalar = {
|
|
id?: boolean
|
|
startingSets?: boolean
|
|
orderIndex?: boolean
|
|
mesoCycleDayId?: boolean
|
|
exerciseId?: boolean
|
|
}
|
|
|
|
export type MesoCycleExerciseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "startingSets" | "orderIndex" | "mesoCycleDayId" | "exerciseId", ExtArgs["result"]["mesoCycleExercise"]>
|
|
export type MesoCycleExerciseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mesoCycleDay?: boolean | Prisma.MesoCycleDayDefaultArgs<ExtArgs>
|
|
exercise?: boolean | Prisma.ExerciseDefaultArgs<ExtArgs>
|
|
exerciseLogs?: boolean | Prisma.MesoCycleExercise$exerciseLogsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.MesoCycleExerciseCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MesoCycleExercisePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "MesoCycleExercise"
|
|
objects: {
|
|
mesoCycleDay: Prisma.$MesoCycleDayPayload<ExtArgs>
|
|
exercise: Prisma.$ExercisePayload<ExtArgs>
|
|
exerciseLogs: Prisma.$ExerciseLogPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
startingSets: number
|
|
orderIndex: number
|
|
mesoCycleDayId: number
|
|
exerciseId: number
|
|
}, ExtArgs["result"]["mesoCycleExercise"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type MesoCycleExerciseGetPayload<S extends boolean | null | undefined | MesoCycleExerciseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload, S>
|
|
|
|
export type MesoCycleExerciseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<MesoCycleExerciseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: MesoCycleExerciseCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MesoCycleExerciseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MesoCycleExercise'], meta: { name: 'MesoCycleExercise' } }
|
|
/**
|
|
* Find zero or one MesoCycleExercise that matches the filter.
|
|
* @param {MesoCycleExerciseFindUniqueArgs} args - Arguments to find a MesoCycleExercise
|
|
* @example
|
|
* // Get one MesoCycleExercise
|
|
* const mesoCycleExercise = await prisma.mesoCycleExercise.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MesoCycleExerciseFindUniqueArgs>(args: Prisma.SelectSubset<T, MesoCycleExerciseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one MesoCycleExercise that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MesoCycleExerciseFindUniqueOrThrowArgs} args - Arguments to find a MesoCycleExercise
|
|
* @example
|
|
* // Get one MesoCycleExercise
|
|
* const mesoCycleExercise = await prisma.mesoCycleExercise.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MesoCycleExerciseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MesoCycleExerciseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MesoCycleExercise 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 {MesoCycleExerciseFindFirstArgs} args - Arguments to find a MesoCycleExercise
|
|
* @example
|
|
* // Get one MesoCycleExercise
|
|
* const mesoCycleExercise = await prisma.mesoCycleExercise.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MesoCycleExerciseFindFirstArgs>(args?: Prisma.SelectSubset<T, MesoCycleExerciseFindFirstArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MesoCycleExercise 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 {MesoCycleExerciseFindFirstOrThrowArgs} args - Arguments to find a MesoCycleExercise
|
|
* @example
|
|
* // Get one MesoCycleExercise
|
|
* const mesoCycleExercise = await prisma.mesoCycleExercise.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MesoCycleExerciseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MesoCycleExerciseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more MesoCycleExercises 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 {MesoCycleExerciseFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MesoCycleExercises
|
|
* const mesoCycleExercises = await prisma.mesoCycleExercise.findMany()
|
|
*
|
|
* // Get first 10 MesoCycleExercises
|
|
* const mesoCycleExercises = await prisma.mesoCycleExercise.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const mesoCycleExerciseWithIdOnly = await prisma.mesoCycleExercise.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MesoCycleExerciseFindManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleExerciseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a MesoCycleExercise.
|
|
* @param {MesoCycleExerciseCreateArgs} args - Arguments to create a MesoCycleExercise.
|
|
* @example
|
|
* // Create one MesoCycleExercise
|
|
* const MesoCycleExercise = await prisma.mesoCycleExercise.create({
|
|
* data: {
|
|
* // ... data to create a MesoCycleExercise
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MesoCycleExerciseCreateArgs>(args: Prisma.SelectSubset<T, MesoCycleExerciseCreateArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many MesoCycleExercises.
|
|
* @param {MesoCycleExerciseCreateManyArgs} args - Arguments to create many MesoCycleExercises.
|
|
* @example
|
|
* // Create many MesoCycleExercises
|
|
* const mesoCycleExercise = await prisma.mesoCycleExercise.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MesoCycleExerciseCreateManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleExerciseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a MesoCycleExercise.
|
|
* @param {MesoCycleExerciseDeleteArgs} args - Arguments to delete one MesoCycleExercise.
|
|
* @example
|
|
* // Delete one MesoCycleExercise
|
|
* const MesoCycleExercise = await prisma.mesoCycleExercise.delete({
|
|
* where: {
|
|
* // ... filter to delete one MesoCycleExercise
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MesoCycleExerciseDeleteArgs>(args: Prisma.SelectSubset<T, MesoCycleExerciseDeleteArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one MesoCycleExercise.
|
|
* @param {MesoCycleExerciseUpdateArgs} args - Arguments to update one MesoCycleExercise.
|
|
* @example
|
|
* // Update one MesoCycleExercise
|
|
* const mesoCycleExercise = await prisma.mesoCycleExercise.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MesoCycleExerciseUpdateArgs>(args: Prisma.SelectSubset<T, MesoCycleExerciseUpdateArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more MesoCycleExercises.
|
|
* @param {MesoCycleExerciseDeleteManyArgs} args - Arguments to filter MesoCycleExercises to delete.
|
|
* @example
|
|
* // Delete a few MesoCycleExercises
|
|
* const { count } = await prisma.mesoCycleExercise.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MesoCycleExerciseDeleteManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleExerciseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MesoCycleExercises.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MesoCycleExerciseUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MesoCycleExercises
|
|
* const mesoCycleExercise = await prisma.mesoCycleExercise.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MesoCycleExerciseUpdateManyArgs>(args: Prisma.SelectSubset<T, MesoCycleExerciseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one MesoCycleExercise.
|
|
* @param {MesoCycleExerciseUpsertArgs} args - Arguments to update or create a MesoCycleExercise.
|
|
* @example
|
|
* // Update or create a MesoCycleExercise
|
|
* const mesoCycleExercise = await prisma.mesoCycleExercise.upsert({
|
|
* create: {
|
|
* // ... data to create a MesoCycleExercise
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MesoCycleExercise we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MesoCycleExerciseUpsertArgs>(args: Prisma.SelectSubset<T, MesoCycleExerciseUpsertArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of MesoCycleExercises.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MesoCycleExerciseCountArgs} args - Arguments to filter MesoCycleExercises to count.
|
|
* @example
|
|
* // Count the number of MesoCycleExercises
|
|
* const count = await prisma.mesoCycleExercise.count({
|
|
* where: {
|
|
* // ... the filter for the MesoCycleExercises we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MesoCycleExerciseCountArgs>(
|
|
args?: Prisma.Subset<T, MesoCycleExerciseCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], MesoCycleExerciseCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MesoCycleExercise.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MesoCycleExerciseAggregateArgs} 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 MesoCycleExerciseAggregateArgs>(args: Prisma.Subset<T, MesoCycleExerciseAggregateArgs>): Prisma.PrismaPromise<GetMesoCycleExerciseAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MesoCycleExercise.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MesoCycleExerciseGroupByArgs} 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 MesoCycleExerciseGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: MesoCycleExerciseGroupByArgs['orderBy'] }
|
|
: { orderBy?: MesoCycleExerciseGroupByArgs['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, MesoCycleExerciseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMesoCycleExerciseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MesoCycleExercise model
|
|
*/
|
|
readonly fields: MesoCycleExerciseFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MesoCycleExercise.
|
|
* 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__MesoCycleExerciseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
mesoCycleDay<T extends Prisma.MesoCycleDayDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MesoCycleDayDefaultArgs<ExtArgs>>): Prisma.Prisma__MesoCycleDayClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
exercise<T extends Prisma.ExerciseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ExerciseDefaultArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
exerciseLogs<T extends Prisma.MesoCycleExercise$exerciseLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MesoCycleExercise$exerciseLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<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 MesoCycleExercise model
|
|
*/
|
|
export interface MesoCycleExerciseFieldRefs {
|
|
readonly id: Prisma.FieldRef<"MesoCycleExercise", 'Int'>
|
|
readonly startingSets: Prisma.FieldRef<"MesoCycleExercise", 'Int'>
|
|
readonly orderIndex: Prisma.FieldRef<"MesoCycleExercise", 'Int'>
|
|
readonly mesoCycleDayId: Prisma.FieldRef<"MesoCycleExercise", 'Int'>
|
|
readonly exerciseId: Prisma.FieldRef<"MesoCycleExercise", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MesoCycleExercise findUnique
|
|
*/
|
|
export type MesoCycleExerciseFindUniqueArgs<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
|
|
/**
|
|
* Filter, which MesoCycleExercise to fetch.
|
|
*/
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise findUniqueOrThrow
|
|
*/
|
|
export type MesoCycleExerciseFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which MesoCycleExercise to fetch.
|
|
*/
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise findFirst
|
|
*/
|
|
export type MesoCycleExerciseFindFirstArgs<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
|
|
/**
|
|
* Filter, which MesoCycleExercise to fetch.
|
|
*/
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MesoCycleExercises to fetch.
|
|
*/
|
|
orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MesoCycleExercises.
|
|
*/
|
|
cursor?: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MesoCycleExercises 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` MesoCycleExercises.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MesoCycleExercises.
|
|
*/
|
|
distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise findFirstOrThrow
|
|
*/
|
|
export type MesoCycleExerciseFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which MesoCycleExercise to fetch.
|
|
*/
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MesoCycleExercises to fetch.
|
|
*/
|
|
orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MesoCycleExercises.
|
|
*/
|
|
cursor?: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MesoCycleExercises 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` MesoCycleExercises.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MesoCycleExercises.
|
|
*/
|
|
distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise findMany
|
|
*/
|
|
export type MesoCycleExerciseFindManyArgs<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
|
|
/**
|
|
* Filter, which MesoCycleExercises to fetch.
|
|
*/
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MesoCycleExercises to fetch.
|
|
*/
|
|
orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MesoCycleExercises.
|
|
*/
|
|
cursor?: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MesoCycleExercises 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` MesoCycleExercises.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MesoCycleExercises.
|
|
*/
|
|
distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise create
|
|
*/
|
|
export type MesoCycleExerciseCreateArgs<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
|
|
/**
|
|
* The data needed to create a MesoCycleExercise.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleExerciseCreateInput, Prisma.MesoCycleExerciseUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise createMany
|
|
*/
|
|
export type MesoCycleExerciseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MesoCycleExercises.
|
|
*/
|
|
data: Prisma.MesoCycleExerciseCreateManyInput | Prisma.MesoCycleExerciseCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise update
|
|
*/
|
|
export type MesoCycleExerciseUpdateArgs<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
|
|
/**
|
|
* The data needed to update a MesoCycleExercise.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleExerciseUpdateInput, Prisma.MesoCycleExerciseUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MesoCycleExercise to update.
|
|
*/
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise updateMany
|
|
*/
|
|
export type MesoCycleExerciseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MesoCycleExercises.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleExerciseUpdateManyMutationInput, Prisma.MesoCycleExerciseUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MesoCycleExercises to update
|
|
*/
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
/**
|
|
* Limit how many MesoCycleExercises to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise upsert
|
|
*/
|
|
export type MesoCycleExerciseUpsertArgs<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
|
|
/**
|
|
* The filter to search for the MesoCycleExercise to update in case it exists.
|
|
*/
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
/**
|
|
* In case the MesoCycleExercise found by the `where` argument doesn't exist, create a new MesoCycleExercise with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.MesoCycleExerciseCreateInput, Prisma.MesoCycleExerciseUncheckedCreateInput>
|
|
/**
|
|
* In case the MesoCycleExercise was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.MesoCycleExerciseUpdateInput, Prisma.MesoCycleExerciseUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise delete
|
|
*/
|
|
export type MesoCycleExerciseDeleteArgs<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
|
|
/**
|
|
* Filter which MesoCycleExercise to delete.
|
|
*/
|
|
where: Prisma.MesoCycleExerciseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise deleteMany
|
|
*/
|
|
export type MesoCycleExerciseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MesoCycleExercises to delete
|
|
*/
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
/**
|
|
* Limit how many MesoCycleExercises to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise.exerciseLogs
|
|
*/
|
|
export type MesoCycleExercise$exerciseLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ExerciseLog
|
|
*/
|
|
select?: Prisma.ExerciseLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ExerciseLog
|
|
*/
|
|
omit?: Prisma.ExerciseLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseLogInclude<ExtArgs> | null
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[]
|
|
cursor?: Prisma.ExerciseLogWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.ExerciseLogScalarFieldEnum | Prisma.ExerciseLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MesoCycleExercise without action
|
|
*/
|
|
export type MesoCycleExerciseDefaultArgs<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
|
|
}
|