1251 lines
43 KiB
TypeScript
1251 lines
43 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 `Exercise` 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 Exercise
|
|
*
|
|
*/
|
|
export type ExerciseModel = runtime.Types.Result.DefaultSelection<Prisma.$ExercisePayload>
|
|
|
|
export type AggregateExercise = {
|
|
_count: ExerciseCountAggregateOutputType | null
|
|
_avg: ExerciseAvgAggregateOutputType | null
|
|
_sum: ExerciseSumAggregateOutputType | null
|
|
_min: ExerciseMinAggregateOutputType | null
|
|
_max: ExerciseMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ExerciseAvgAggregateOutputType = {
|
|
id: number | null
|
|
SFR: runtime.Decimal | null
|
|
}
|
|
|
|
export type ExerciseSumAggregateOutputType = {
|
|
id: number | null
|
|
SFR: runtime.Decimal | null
|
|
}
|
|
|
|
export type ExerciseMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
muscleGroup: string | null
|
|
SFR: runtime.Decimal | null
|
|
}
|
|
|
|
export type ExerciseMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
muscleGroup: string | null
|
|
SFR: runtime.Decimal | null
|
|
}
|
|
|
|
export type ExerciseCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
muscleGroup: number
|
|
SFR: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ExerciseAvgAggregateInputType = {
|
|
id?: true
|
|
SFR?: true
|
|
}
|
|
|
|
export type ExerciseSumAggregateInputType = {
|
|
id?: true
|
|
SFR?: true
|
|
}
|
|
|
|
export type ExerciseMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
muscleGroup?: true
|
|
SFR?: true
|
|
}
|
|
|
|
export type ExerciseMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
muscleGroup?: true
|
|
SFR?: true
|
|
}
|
|
|
|
export type ExerciseCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
muscleGroup?: true
|
|
SFR?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ExerciseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Exercise to aggregate.
|
|
*/
|
|
where?: Prisma.ExerciseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Exercises to fetch.
|
|
*/
|
|
orderBy?: Prisma.ExerciseOrderByWithRelationInput | Prisma.ExerciseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.ExerciseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Exercises 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` Exercises.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Exercises
|
|
**/
|
|
_count?: true | ExerciseCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ExerciseAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ExerciseSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ExerciseMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ExerciseMaxAggregateInputType
|
|
}
|
|
|
|
export type GetExerciseAggregateType<T extends ExerciseAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateExercise]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateExercise[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateExercise[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ExerciseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ExerciseWhereInput
|
|
orderBy?: Prisma.ExerciseOrderByWithAggregationInput | Prisma.ExerciseOrderByWithAggregationInput[]
|
|
by: Prisma.ExerciseScalarFieldEnum[] | Prisma.ExerciseScalarFieldEnum
|
|
having?: Prisma.ExerciseScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ExerciseCountAggregateInputType | true
|
|
_avg?: ExerciseAvgAggregateInputType
|
|
_sum?: ExerciseSumAggregateInputType
|
|
_min?: ExerciseMinAggregateInputType
|
|
_max?: ExerciseMaxAggregateInputType
|
|
}
|
|
|
|
export type ExerciseGroupByOutputType = {
|
|
id: number
|
|
name: string
|
|
muscleGroup: string
|
|
SFR: runtime.Decimal
|
|
_count: ExerciseCountAggregateOutputType | null
|
|
_avg: ExerciseAvgAggregateOutputType | null
|
|
_sum: ExerciseSumAggregateOutputType | null
|
|
_min: ExerciseMinAggregateOutputType | null
|
|
_max: ExerciseMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetExerciseGroupByPayload<T extends ExerciseGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ExerciseGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ExerciseGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ExerciseGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ExerciseGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type ExerciseWhereInput = {
|
|
AND?: Prisma.ExerciseWhereInput | Prisma.ExerciseWhereInput[]
|
|
OR?: Prisma.ExerciseWhereInput[]
|
|
NOT?: Prisma.ExerciseWhereInput | Prisma.ExerciseWhereInput[]
|
|
id?: Prisma.IntFilter<"Exercise"> | number
|
|
name?: Prisma.StringFilter<"Exercise"> | string
|
|
muscleGroup?: Prisma.StringFilter<"Exercise"> | string
|
|
SFR?: Prisma.DecimalFilter<"Exercise"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseListRelationFilter
|
|
}
|
|
|
|
export type ExerciseOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
muscleGroup?: Prisma.SortOrder
|
|
SFR?: Prisma.SortOrder
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseOrderByRelationAggregateInput
|
|
_relevance?: Prisma.ExerciseOrderByRelevanceInput
|
|
}
|
|
|
|
export type ExerciseWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.ExerciseWhereInput | Prisma.ExerciseWhereInput[]
|
|
OR?: Prisma.ExerciseWhereInput[]
|
|
NOT?: Prisma.ExerciseWhereInput | Prisma.ExerciseWhereInput[]
|
|
name?: Prisma.StringFilter<"Exercise"> | string
|
|
muscleGroup?: Prisma.StringFilter<"Exercise"> | string
|
|
SFR?: Prisma.DecimalFilter<"Exercise"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseListRelationFilter
|
|
}, "id">
|
|
|
|
export type ExerciseOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
muscleGroup?: Prisma.SortOrder
|
|
SFR?: Prisma.SortOrder
|
|
_count?: Prisma.ExerciseCountOrderByAggregateInput
|
|
_avg?: Prisma.ExerciseAvgOrderByAggregateInput
|
|
_max?: Prisma.ExerciseMaxOrderByAggregateInput
|
|
_min?: Prisma.ExerciseMinOrderByAggregateInput
|
|
_sum?: Prisma.ExerciseSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ExerciseScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.ExerciseScalarWhereWithAggregatesInput | Prisma.ExerciseScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.ExerciseScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.ExerciseScalarWhereWithAggregatesInput | Prisma.ExerciseScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"Exercise"> | number
|
|
name?: Prisma.StringWithAggregatesFilter<"Exercise"> | string
|
|
muscleGroup?: Prisma.StringWithAggregatesFilter<"Exercise"> | string
|
|
SFR?: Prisma.DecimalWithAggregatesFilter<"Exercise"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type ExerciseCreateInput = {
|
|
name: string
|
|
muscleGroup: string
|
|
SFR: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseCreateNestedManyWithoutExerciseInput
|
|
}
|
|
|
|
export type ExerciseUncheckedCreateInput = {
|
|
id?: number
|
|
name: string
|
|
muscleGroup: string
|
|
SFR: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedCreateNestedManyWithoutExerciseInput
|
|
}
|
|
|
|
export type ExerciseUpdateInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string
|
|
SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUpdateManyWithoutExerciseNestedInput
|
|
}
|
|
|
|
export type ExerciseUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string
|
|
SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutExerciseNestedInput
|
|
}
|
|
|
|
export type ExerciseCreateManyInput = {
|
|
id?: number
|
|
name: string
|
|
muscleGroup: string
|
|
SFR: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type ExerciseUpdateManyMutationInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string
|
|
SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type ExerciseUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string
|
|
SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type ExerciseOrderByRelevanceInput = {
|
|
fields: Prisma.ExerciseOrderByRelevanceFieldEnum | Prisma.ExerciseOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type ExerciseCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
muscleGroup?: Prisma.SortOrder
|
|
SFR?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
SFR?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
muscleGroup?: Prisma.SortOrder
|
|
SFR?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
muscleGroup?: Prisma.SortOrder
|
|
SFR?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
SFR?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseScalarRelationFilter = {
|
|
is?: Prisma.ExerciseWhereInput
|
|
isNot?: Prisma.ExerciseWhereInput
|
|
}
|
|
|
|
export type DecimalFieldUpdateOperationsInput = {
|
|
set?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
increment?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
divide?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type IntFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type ExerciseCreateNestedOneWithoutMesoCycleExercisesInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseCreateWithoutMesoCycleExercisesInput, Prisma.ExerciseUncheckedCreateWithoutMesoCycleExercisesInput>
|
|
connectOrCreate?: Prisma.ExerciseCreateOrConnectWithoutMesoCycleExercisesInput
|
|
connect?: Prisma.ExerciseWhereUniqueInput
|
|
}
|
|
|
|
export type ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseCreateWithoutMesoCycleExercisesInput, Prisma.ExerciseUncheckedCreateWithoutMesoCycleExercisesInput>
|
|
connectOrCreate?: Prisma.ExerciseCreateOrConnectWithoutMesoCycleExercisesInput
|
|
upsert?: Prisma.ExerciseUpsertWithoutMesoCycleExercisesInput
|
|
connect?: Prisma.ExerciseWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ExerciseUpdateToOneWithWhereWithoutMesoCycleExercisesInput, Prisma.ExerciseUpdateWithoutMesoCycleExercisesInput>, Prisma.ExerciseUncheckedUpdateWithoutMesoCycleExercisesInput>
|
|
}
|
|
|
|
export type ExerciseCreateWithoutMesoCycleExercisesInput = {
|
|
name: string
|
|
muscleGroup: string
|
|
SFR: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type ExerciseUncheckedCreateWithoutMesoCycleExercisesInput = {
|
|
id?: number
|
|
name: string
|
|
muscleGroup: string
|
|
SFR: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type ExerciseCreateOrConnectWithoutMesoCycleExercisesInput = {
|
|
where: Prisma.ExerciseWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ExerciseCreateWithoutMesoCycleExercisesInput, Prisma.ExerciseUncheckedCreateWithoutMesoCycleExercisesInput>
|
|
}
|
|
|
|
export type ExerciseUpsertWithoutMesoCycleExercisesInput = {
|
|
update: Prisma.XOR<Prisma.ExerciseUpdateWithoutMesoCycleExercisesInput, Prisma.ExerciseUncheckedUpdateWithoutMesoCycleExercisesInput>
|
|
create: Prisma.XOR<Prisma.ExerciseCreateWithoutMesoCycleExercisesInput, Prisma.ExerciseUncheckedCreateWithoutMesoCycleExercisesInput>
|
|
where?: Prisma.ExerciseWhereInput
|
|
}
|
|
|
|
export type ExerciseUpdateToOneWithWhereWithoutMesoCycleExercisesInput = {
|
|
where?: Prisma.ExerciseWhereInput
|
|
data: Prisma.XOR<Prisma.ExerciseUpdateWithoutMesoCycleExercisesInput, Prisma.ExerciseUncheckedUpdateWithoutMesoCycleExercisesInput>
|
|
}
|
|
|
|
export type ExerciseUpdateWithoutMesoCycleExercisesInput = {
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string
|
|
SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type ExerciseUncheckedUpdateWithoutMesoCycleExercisesInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string
|
|
SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ExerciseCountOutputType
|
|
*/
|
|
|
|
export type ExerciseCountOutputType = {
|
|
mesoCycleExercises: number
|
|
}
|
|
|
|
export type ExerciseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mesoCycleExercises?: boolean | ExerciseCountOutputTypeCountMesoCycleExercisesArgs
|
|
}
|
|
|
|
/**
|
|
* ExerciseCountOutputType without action
|
|
*/
|
|
export type ExerciseCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ExerciseCountOutputType
|
|
*/
|
|
select?: Prisma.ExerciseCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ExerciseCountOutputType without action
|
|
*/
|
|
export type ExerciseCountOutputTypeCountMesoCycleExercisesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MesoCycleExerciseWhereInput
|
|
}
|
|
|
|
|
|
export type ExerciseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
muscleGroup?: boolean
|
|
SFR?: boolean
|
|
mesoCycleExercises?: boolean | Prisma.Exercise$mesoCycleExercisesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.ExerciseCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["exercise"]>
|
|
|
|
|
|
|
|
export type ExerciseSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
muscleGroup?: boolean
|
|
SFR?: boolean
|
|
}
|
|
|
|
export type ExerciseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "muscleGroup" | "SFR", ExtArgs["result"]["exercise"]>
|
|
export type ExerciseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mesoCycleExercises?: boolean | Prisma.Exercise$mesoCycleExercisesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.ExerciseCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ExercisePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Exercise"
|
|
objects: {
|
|
mesoCycleExercises: Prisma.$MesoCycleExercisePayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
muscleGroup: string
|
|
SFR: runtime.Decimal
|
|
}, ExtArgs["result"]["exercise"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type ExerciseGetPayload<S extends boolean | null | undefined | ExerciseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ExercisePayload, S>
|
|
|
|
export type ExerciseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<ExerciseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ExerciseCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ExerciseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Exercise'], meta: { name: 'Exercise' } }
|
|
/**
|
|
* Find zero or one Exercise that matches the filter.
|
|
* @param {ExerciseFindUniqueArgs} args - Arguments to find a Exercise
|
|
* @example
|
|
* // Get one Exercise
|
|
* const exercise = await prisma.exercise.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ExerciseFindUniqueArgs>(args: Prisma.SelectSubset<T, ExerciseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Exercise that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ExerciseFindUniqueOrThrowArgs} args - Arguments to find a Exercise
|
|
* @example
|
|
* // Get one Exercise
|
|
* const exercise = await prisma.exercise.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ExerciseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ExerciseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Exercise 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 {ExerciseFindFirstArgs} args - Arguments to find a Exercise
|
|
* @example
|
|
* // Get one Exercise
|
|
* const exercise = await prisma.exercise.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ExerciseFindFirstArgs>(args?: Prisma.SelectSubset<T, ExerciseFindFirstArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Exercise 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 {ExerciseFindFirstOrThrowArgs} args - Arguments to find a Exercise
|
|
* @example
|
|
* // Get one Exercise
|
|
* const exercise = await prisma.exercise.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ExerciseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ExerciseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Exercises 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 {ExerciseFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Exercises
|
|
* const exercises = await prisma.exercise.findMany()
|
|
*
|
|
* // Get first 10 Exercises
|
|
* const exercises = await prisma.exercise.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const exerciseWithIdOnly = await prisma.exercise.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ExerciseFindManyArgs>(args?: Prisma.SelectSubset<T, ExerciseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Exercise.
|
|
* @param {ExerciseCreateArgs} args - Arguments to create a Exercise.
|
|
* @example
|
|
* // Create one Exercise
|
|
* const Exercise = await prisma.exercise.create({
|
|
* data: {
|
|
* // ... data to create a Exercise
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ExerciseCreateArgs>(args: Prisma.SelectSubset<T, ExerciseCreateArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Exercises.
|
|
* @param {ExerciseCreateManyArgs} args - Arguments to create many Exercises.
|
|
* @example
|
|
* // Create many Exercises
|
|
* const exercise = await prisma.exercise.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ExerciseCreateManyArgs>(args?: Prisma.SelectSubset<T, ExerciseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Exercise.
|
|
* @param {ExerciseDeleteArgs} args - Arguments to delete one Exercise.
|
|
* @example
|
|
* // Delete one Exercise
|
|
* const Exercise = await prisma.exercise.delete({
|
|
* where: {
|
|
* // ... filter to delete one Exercise
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ExerciseDeleteArgs>(args: Prisma.SelectSubset<T, ExerciseDeleteArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Exercise.
|
|
* @param {ExerciseUpdateArgs} args - Arguments to update one Exercise.
|
|
* @example
|
|
* // Update one Exercise
|
|
* const exercise = await prisma.exercise.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ExerciseUpdateArgs>(args: Prisma.SelectSubset<T, ExerciseUpdateArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Exercises.
|
|
* @param {ExerciseDeleteManyArgs} args - Arguments to filter Exercises to delete.
|
|
* @example
|
|
* // Delete a few Exercises
|
|
* const { count } = await prisma.exercise.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ExerciseDeleteManyArgs>(args?: Prisma.SelectSubset<T, ExerciseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Exercises.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ExerciseUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Exercises
|
|
* const exercise = await prisma.exercise.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ExerciseUpdateManyArgs>(args: Prisma.SelectSubset<T, ExerciseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Exercise.
|
|
* @param {ExerciseUpsertArgs} args - Arguments to update or create a Exercise.
|
|
* @example
|
|
* // Update or create a Exercise
|
|
* const exercise = await prisma.exercise.upsert({
|
|
* create: {
|
|
* // ... data to create a Exercise
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Exercise we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ExerciseUpsertArgs>(args: Prisma.SelectSubset<T, ExerciseUpsertArgs<ExtArgs>>): Prisma.Prisma__ExerciseClient<runtime.Types.Result.GetResult<Prisma.$ExercisePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Exercises.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ExerciseCountArgs} args - Arguments to filter Exercises to count.
|
|
* @example
|
|
* // Count the number of Exercises
|
|
* const count = await prisma.exercise.count({
|
|
* where: {
|
|
* // ... the filter for the Exercises we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ExerciseCountArgs>(
|
|
args?: Prisma.Subset<T, ExerciseCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ExerciseCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Exercise.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ExerciseAggregateArgs} 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 ExerciseAggregateArgs>(args: Prisma.Subset<T, ExerciseAggregateArgs>): Prisma.PrismaPromise<GetExerciseAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Exercise.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ExerciseGroupByArgs} 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 ExerciseGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: ExerciseGroupByArgs['orderBy'] }
|
|
: { orderBy?: ExerciseGroupByArgs['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, ExerciseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetExerciseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Exercise model
|
|
*/
|
|
readonly fields: ExerciseFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Exercise.
|
|
* 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__ExerciseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
mesoCycleExercises<T extends Prisma.Exercise$mesoCycleExercisesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Exercise$mesoCycleExercisesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<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 Exercise model
|
|
*/
|
|
export interface ExerciseFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Exercise", 'Int'>
|
|
readonly name: Prisma.FieldRef<"Exercise", 'String'>
|
|
readonly muscleGroup: Prisma.FieldRef<"Exercise", 'String'>
|
|
readonly SFR: Prisma.FieldRef<"Exercise", 'Decimal'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Exercise findUnique
|
|
*/
|
|
export type ExerciseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Exercise to fetch.
|
|
*/
|
|
where: Prisma.ExerciseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Exercise findUniqueOrThrow
|
|
*/
|
|
export type ExerciseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Exercise to fetch.
|
|
*/
|
|
where: Prisma.ExerciseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Exercise findFirst
|
|
*/
|
|
export type ExerciseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Exercise to fetch.
|
|
*/
|
|
where?: Prisma.ExerciseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Exercises to fetch.
|
|
*/
|
|
orderBy?: Prisma.ExerciseOrderByWithRelationInput | Prisma.ExerciseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Exercises.
|
|
*/
|
|
cursor?: Prisma.ExerciseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Exercises 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` Exercises.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Exercises.
|
|
*/
|
|
distinct?: Prisma.ExerciseScalarFieldEnum | Prisma.ExerciseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Exercise findFirstOrThrow
|
|
*/
|
|
export type ExerciseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Exercise to fetch.
|
|
*/
|
|
where?: Prisma.ExerciseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Exercises to fetch.
|
|
*/
|
|
orderBy?: Prisma.ExerciseOrderByWithRelationInput | Prisma.ExerciseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Exercises.
|
|
*/
|
|
cursor?: Prisma.ExerciseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Exercises 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` Exercises.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Exercises.
|
|
*/
|
|
distinct?: Prisma.ExerciseScalarFieldEnum | Prisma.ExerciseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Exercise findMany
|
|
*/
|
|
export type ExerciseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Exercises to fetch.
|
|
*/
|
|
where?: Prisma.ExerciseWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Exercises to fetch.
|
|
*/
|
|
orderBy?: Prisma.ExerciseOrderByWithRelationInput | Prisma.ExerciseOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Exercises.
|
|
*/
|
|
cursor?: Prisma.ExerciseWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Exercises 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` Exercises.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Exercises.
|
|
*/
|
|
distinct?: Prisma.ExerciseScalarFieldEnum | Prisma.ExerciseScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Exercise create
|
|
*/
|
|
export type ExerciseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Exercise.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ExerciseCreateInput, Prisma.ExerciseUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Exercise createMany
|
|
*/
|
|
export type ExerciseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Exercises.
|
|
*/
|
|
data: Prisma.ExerciseCreateManyInput | Prisma.ExerciseCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Exercise update
|
|
*/
|
|
export type ExerciseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Exercise.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ExerciseUpdateInput, Prisma.ExerciseUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Exercise to update.
|
|
*/
|
|
where: Prisma.ExerciseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Exercise updateMany
|
|
*/
|
|
export type ExerciseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Exercises.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ExerciseUpdateManyMutationInput, Prisma.ExerciseUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Exercises to update
|
|
*/
|
|
where?: Prisma.ExerciseWhereInput
|
|
/**
|
|
* Limit how many Exercises to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Exercise upsert
|
|
*/
|
|
export type ExerciseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Exercise to update in case it exists.
|
|
*/
|
|
where: Prisma.ExerciseWhereUniqueInput
|
|
/**
|
|
* In case the Exercise found by the `where` argument doesn't exist, create a new Exercise with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.ExerciseCreateInput, Prisma.ExerciseUncheckedCreateInput>
|
|
/**
|
|
* In case the Exercise was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.ExerciseUpdateInput, Prisma.ExerciseUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Exercise delete
|
|
*/
|
|
export type ExerciseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Exercise to delete.
|
|
*/
|
|
where: Prisma.ExerciseWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Exercise deleteMany
|
|
*/
|
|
export type ExerciseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Exercises to delete
|
|
*/
|
|
where?: Prisma.ExerciseWhereInput
|
|
/**
|
|
* Limit how many Exercises to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Exercise.mesoCycleExercises
|
|
*/
|
|
export type Exercise$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[]
|
|
}
|
|
|
|
/**
|
|
* Exercise without action
|
|
*/
|
|
export type ExerciseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Exercise
|
|
*/
|
|
select?: Prisma.ExerciseSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Exercise
|
|
*/
|
|
omit?: Prisma.ExerciseOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ExerciseInclude<ExtArgs> | null
|
|
}
|