/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateExercise]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ExerciseGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ExerciseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 connectOrCreate?: Prisma.ExerciseCreateOrConnectWithoutMesoCycleExercisesInput connect?: Prisma.ExerciseWhereUniqueInput } export type ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ExerciseCreateOrConnectWithoutMesoCycleExercisesInput upsert?: Prisma.ExerciseUpsertWithoutMesoCycleExercisesInput connect?: Prisma.ExerciseWhereUniqueInput update?: Prisma.XOR, 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 } export type ExerciseUpsertWithoutMesoCycleExercisesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ExerciseWhereInput } export type ExerciseUpdateToOneWithWhereWithoutMesoCycleExercisesInput = { where?: Prisma.ExerciseWhereInput data: Prisma.XOR } 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 = { mesoCycleExercises?: boolean | ExerciseCountOutputTypeCountMesoCycleExercisesArgs } /** * ExerciseCountOutputType without action */ export type ExerciseCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ExerciseCountOutputType */ select?: Prisma.ExerciseCountOutputTypeSelect | null } /** * ExerciseCountOutputType without action */ export type ExerciseCountOutputTypeCountMesoCycleExercisesArgs = { where?: Prisma.MesoCycleExerciseWhereInput } export type ExerciseSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean muscleGroup?: boolean SFR?: boolean mesoCycleExercises?: boolean | Prisma.Exercise$mesoCycleExercisesArgs _count?: boolean | Prisma.ExerciseCountOutputTypeDefaultArgs }, ExtArgs["result"]["exercise"]> export type ExerciseSelectScalar = { id?: boolean name?: boolean muscleGroup?: boolean SFR?: boolean } export type ExerciseOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "muscleGroup" | "SFR", ExtArgs["result"]["exercise"]> export type ExerciseInclude = { mesoCycleExercises?: boolean | Prisma.Exercise$mesoCycleExercisesArgs _count?: boolean | Prisma.ExerciseCountOutputTypeDefaultArgs } export type $ExercisePayload = { name: "Exercise" objects: { mesoCycleExercises: Prisma.$MesoCycleExercisePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number name: string muscleGroup: string SFR: runtime.Decimal }, ExtArgs["result"]["exercise"]> composites: {} } export type ExerciseGetPayload = runtime.Types.Result.GetResult export type ExerciseCountArgs = Omit & { select?: ExerciseCountAggregateInputType | true } export interface ExerciseDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ExerciseGroupByArgs['orderBy'] } : { orderBy?: ExerciseGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetExerciseGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" mesoCycleExercises = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | null /** * Filter, which Exercise to fetch. */ where: Prisma.ExerciseWhereUniqueInput } /** * Exercise findUniqueOrThrow */ export type ExerciseFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | null /** * Filter, which Exercise to fetch. */ where: Prisma.ExerciseWhereUniqueInput } /** * Exercise findFirst */ export type ExerciseFindFirstArgs = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | 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 = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | 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 = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | 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 = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | null /** * The data needed to create a Exercise. */ data: Prisma.XOR } /** * Exercise createMany */ export type ExerciseCreateManyArgs = { /** * The data used to create many Exercises. */ data: Prisma.ExerciseCreateManyInput | Prisma.ExerciseCreateManyInput[] skipDuplicates?: boolean } /** * Exercise update */ export type ExerciseUpdateArgs = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | null /** * The data needed to update a Exercise. */ data: Prisma.XOR /** * Choose, which Exercise to update. */ where: Prisma.ExerciseWhereUniqueInput } /** * Exercise updateMany */ export type ExerciseUpdateManyArgs = { /** * The data used to update Exercises. */ data: Prisma.XOR /** * Filter which Exercises to update */ where?: Prisma.ExerciseWhereInput /** * Limit how many Exercises to update. */ limit?: number } /** * Exercise upsert */ export type ExerciseUpsertArgs = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | 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 /** * In case the Exercise was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Exercise delete */ export type ExerciseDeleteArgs = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | null /** * Filter which Exercise to delete. */ where: Prisma.ExerciseWhereUniqueInput } /** * Exercise deleteMany */ export type ExerciseDeleteManyArgs = { /** * Filter which Exercises to delete */ where?: Prisma.ExerciseWhereInput /** * Limit how many Exercises to delete. */ limit?: number } /** * Exercise.mesoCycleExercises */ export type Exercise$mesoCycleExercisesArgs = { /** * Select specific fields to fetch from the MesoCycleExercise */ select?: Prisma.MesoCycleExerciseSelect | null /** * Omit specific fields from the MesoCycleExercise */ omit?: Prisma.MesoCycleExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleExerciseInclude | 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 = { /** * Select specific fields to fetch from the Exercise */ select?: Prisma.ExerciseSelect | null /** * Omit specific fields from the Exercise */ omit?: Prisma.ExerciseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseInclude | null }