1582 lines
65 KiB
TypeScript
1582 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 `ExerciseLog` 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 ExerciseLog
|
|
*
|
|
*/
|
|
export type ExerciseLogModel = runtime.Types.Result.DefaultSelection<Prisma.$ExerciseLogPayload>
|
|
|
|
export type AggregateExerciseLog = {
|
|
_count: ExerciseLogCountAggregateOutputType | null
|
|
_avg: ExerciseLogAvgAggregateOutputType | null
|
|
_sum: ExerciseLogSumAggregateOutputType | null
|
|
_min: ExerciseLogMinAggregateOutputType | null
|
|
_max: ExerciseLogMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ExerciseLogAvgAggregateOutputType = {
|
|
id: number | null
|
|
sets: number | null
|
|
reps: number | null
|
|
weight: runtime.Decimal | null
|
|
workoutSessionId: number | null
|
|
mesoCycleExerciseId: number | null
|
|
}
|
|
|
|
export type ExerciseLogSumAggregateOutputType = {
|
|
id: number | null
|
|
sets: number | null
|
|
reps: number | null
|
|
weight: runtime.Decimal | null
|
|
workoutSessionId: number | null
|
|
mesoCycleExerciseId: number | null
|
|
}
|
|
|
|
export type ExerciseLogMinAggregateOutputType = {
|
|
id: number | null
|
|
sets: number | null
|
|
reps: number | null
|
|
weight: runtime.Decimal | null
|
|
workoutSessionId: number | null
|
|
mesoCycleExerciseId: number | null
|
|
}
|
|
|
|
export type ExerciseLogMaxAggregateOutputType = {
|
|
id: number | null
|
|
sets: number | null
|
|
reps: number | null
|
|
weight: runtime.Decimal | null
|
|
workoutSessionId: number | null
|
|
mesoCycleExerciseId: number | null
|
|
}
|
|
|
|
export type ExerciseLogCountAggregateOutputType = {
|
|
id: number
|
|
sets: number
|
|
reps: number
|
|
weight: number
|
|
workoutSessionId: number
|
|
mesoCycleExerciseId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ExerciseLogAvgAggregateInputType = {
|
|
id?: true
|
|
sets?: true
|
|
reps?: true
|
|
weight?: true
|
|
workoutSessionId?: true
|
|
mesoCycleExerciseId?: true
|
|
}
|
|
|
|
export type ExerciseLogSumAggregateInputType = {
|
|
id?: true
|
|
sets?: true
|
|
reps?: true
|
|
weight?: true
|
|
workoutSessionId?: true
|
|
mesoCycleExerciseId?: true
|
|
}
|
|
|
|
export type ExerciseLogMinAggregateInputType = {
|
|
id?: true
|
|
sets?: true
|
|
reps?: true
|
|
weight?: true
|
|
workoutSessionId?: true
|
|
mesoCycleExerciseId?: true
|
|
}
|
|
|
|
export type ExerciseLogMaxAggregateInputType = {
|
|
id?: true
|
|
sets?: true
|
|
reps?: true
|
|
weight?: true
|
|
workoutSessionId?: true
|
|
mesoCycleExerciseId?: true
|
|
}
|
|
|
|
export type ExerciseLogCountAggregateInputType = {
|
|
id?: true
|
|
sets?: true
|
|
reps?: true
|
|
weight?: true
|
|
workoutSessionId?: true
|
|
mesoCycleExerciseId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ExerciseLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ExerciseLog to aggregate.
|
|
*/
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ExerciseLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.ExerciseLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ExerciseLogs 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` ExerciseLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ExerciseLogs
|
|
**/
|
|
_count?: true | ExerciseLogCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ExerciseLogAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ExerciseLogSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ExerciseLogMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ExerciseLogMaxAggregateInputType
|
|
}
|
|
|
|
export type GetExerciseLogAggregateType<T extends ExerciseLogAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateExerciseLog]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateExerciseLog[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateExerciseLog[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ExerciseLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
orderBy?: Prisma.ExerciseLogOrderByWithAggregationInput | Prisma.ExerciseLogOrderByWithAggregationInput[]
|
|
by: Prisma.ExerciseLogScalarFieldEnum[] | Prisma.ExerciseLogScalarFieldEnum
|
|
having?: Prisma.ExerciseLogScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ExerciseLogCountAggregateInputType | true
|
|
_avg?: ExerciseLogAvgAggregateInputType
|
|
_sum?: ExerciseLogSumAggregateInputType
|
|
_min?: ExerciseLogMinAggregateInputType
|
|
_max?: ExerciseLogMaxAggregateInputType
|
|
}
|
|
|
|
export type ExerciseLogGroupByOutputType = {
|
|
id: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal
|
|
workoutSessionId: number
|
|
mesoCycleExerciseId: number
|
|
_count: ExerciseLogCountAggregateOutputType | null
|
|
_avg: ExerciseLogAvgAggregateOutputType | null
|
|
_sum: ExerciseLogSumAggregateOutputType | null
|
|
_min: ExerciseLogMinAggregateOutputType | null
|
|
_max: ExerciseLogMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetExerciseLogGroupByPayload<T extends ExerciseLogGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ExerciseLogGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ExerciseLogGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ExerciseLogGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ExerciseLogGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type ExerciseLogWhereInput = {
|
|
AND?: Prisma.ExerciseLogWhereInput | Prisma.ExerciseLogWhereInput[]
|
|
OR?: Prisma.ExerciseLogWhereInput[]
|
|
NOT?: Prisma.ExerciseLogWhereInput | Prisma.ExerciseLogWhereInput[]
|
|
id?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
sets?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
reps?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
weight?: Prisma.DecimalFilter<"ExerciseLog"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
mesoCycleExerciseId?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
workoutSession?: Prisma.XOR<Prisma.WorkoutSessionScalarRelationFilter, Prisma.WorkoutSessionWhereInput>
|
|
mesoCycleExercise?: Prisma.XOR<Prisma.MesoCycleExerciseScalarRelationFilter, Prisma.MesoCycleExerciseWhereInput>
|
|
sessionFeedbacks?: Prisma.SessionFeedbackListRelationFilter
|
|
}
|
|
|
|
export type ExerciseLogOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
sets?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
weight?: Prisma.SortOrder
|
|
workoutSessionId?: Prisma.SortOrder
|
|
mesoCycleExerciseId?: Prisma.SortOrder
|
|
workoutSession?: Prisma.WorkoutSessionOrderByWithRelationInput
|
|
mesoCycleExercise?: Prisma.MesoCycleExerciseOrderByWithRelationInput
|
|
sessionFeedbacks?: Prisma.SessionFeedbackOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type ExerciseLogWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.ExerciseLogWhereInput | Prisma.ExerciseLogWhereInput[]
|
|
OR?: Prisma.ExerciseLogWhereInput[]
|
|
NOT?: Prisma.ExerciseLogWhereInput | Prisma.ExerciseLogWhereInput[]
|
|
sets?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
reps?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
weight?: Prisma.DecimalFilter<"ExerciseLog"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
mesoCycleExerciseId?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
workoutSession?: Prisma.XOR<Prisma.WorkoutSessionScalarRelationFilter, Prisma.WorkoutSessionWhereInput>
|
|
mesoCycleExercise?: Prisma.XOR<Prisma.MesoCycleExerciseScalarRelationFilter, Prisma.MesoCycleExerciseWhereInput>
|
|
sessionFeedbacks?: Prisma.SessionFeedbackListRelationFilter
|
|
}, "id">
|
|
|
|
export type ExerciseLogOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
sets?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
weight?: Prisma.SortOrder
|
|
workoutSessionId?: Prisma.SortOrder
|
|
mesoCycleExerciseId?: Prisma.SortOrder
|
|
_count?: Prisma.ExerciseLogCountOrderByAggregateInput
|
|
_avg?: Prisma.ExerciseLogAvgOrderByAggregateInput
|
|
_max?: Prisma.ExerciseLogMaxOrderByAggregateInput
|
|
_min?: Prisma.ExerciseLogMinOrderByAggregateInput
|
|
_sum?: Prisma.ExerciseLogSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ExerciseLogScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.ExerciseLogScalarWhereWithAggregatesInput | Prisma.ExerciseLogScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.ExerciseLogScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.ExerciseLogScalarWhereWithAggregatesInput | Prisma.ExerciseLogScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number
|
|
sets?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number
|
|
reps?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number
|
|
weight?: Prisma.DecimalWithAggregatesFilter<"ExerciseLog"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number
|
|
mesoCycleExerciseId?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number
|
|
}
|
|
|
|
export type ExerciseLogCreateInput = {
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSession: Prisma.WorkoutSessionCreateNestedOneWithoutExerciseLogsInput
|
|
mesoCycleExercise: Prisma.MesoCycleExerciseCreateNestedOneWithoutExerciseLogsInput
|
|
sessionFeedbacks?: Prisma.SessionFeedbackCreateNestedManyWithoutExerciseLogInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedCreateInput = {
|
|
id?: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId: number
|
|
mesoCycleExerciseId: number
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput
|
|
}
|
|
|
|
export type ExerciseLogUpdateInput = {
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSession?: Prisma.WorkoutSessionUpdateOneRequiredWithoutExerciseLogsNestedInput
|
|
mesoCycleExercise?: Prisma.MesoCycleExerciseUpdateOneRequiredWithoutExerciseLogsNestedInput
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUpdateManyWithoutExerciseLogNestedInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUncheckedUpdateManyWithoutExerciseLogNestedInput
|
|
}
|
|
|
|
export type ExerciseLogCreateManyInput = {
|
|
id?: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId: number
|
|
mesoCycleExerciseId: number
|
|
}
|
|
|
|
export type ExerciseLogUpdateManyMutationInput = {
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type ExerciseLogListRelationFilter = {
|
|
every?: Prisma.ExerciseLogWhereInput
|
|
some?: Prisma.ExerciseLogWhereInput
|
|
none?: Prisma.ExerciseLogWhereInput
|
|
}
|
|
|
|
export type ExerciseLogOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseLogCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sets?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
weight?: Prisma.SortOrder
|
|
workoutSessionId?: Prisma.SortOrder
|
|
mesoCycleExerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseLogAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sets?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
weight?: Prisma.SortOrder
|
|
workoutSessionId?: Prisma.SortOrder
|
|
mesoCycleExerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseLogMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sets?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
weight?: Prisma.SortOrder
|
|
workoutSessionId?: Prisma.SortOrder
|
|
mesoCycleExerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseLogMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sets?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
weight?: Prisma.SortOrder
|
|
workoutSessionId?: Prisma.SortOrder
|
|
mesoCycleExerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseLogSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sets?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
weight?: Prisma.SortOrder
|
|
workoutSessionId?: Prisma.SortOrder
|
|
mesoCycleExerciseId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ExerciseLogScalarRelationFilter = {
|
|
is?: Prisma.ExerciseLogWhereInput
|
|
isNot?: Prisma.ExerciseLogWhereInput
|
|
}
|
|
|
|
export type ExerciseLogCreateNestedManyWithoutMesoCycleExerciseInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput, Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput> | Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput[] | Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput[]
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput | Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput[]
|
|
createMany?: Prisma.ExerciseLogCreateManyMesoCycleExerciseInputEnvelope
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type ExerciseLogUncheckedCreateNestedManyWithoutMesoCycleExerciseInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput, Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput> | Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput[] | Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput[]
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput | Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput[]
|
|
createMany?: Prisma.ExerciseLogCreateManyMesoCycleExerciseInputEnvelope
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type ExerciseLogUpdateManyWithoutMesoCycleExerciseNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput, Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput> | Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput[] | Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput[]
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput | Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput[]
|
|
upsert?: Prisma.ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput[]
|
|
createMany?: Prisma.ExerciseLogCreateManyMesoCycleExerciseInputEnvelope
|
|
set?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
disconnect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
delete?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
update?: Prisma.ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput[]
|
|
updateMany?: Prisma.ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput[]
|
|
deleteMany?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[]
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput, Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput> | Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput[] | Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput[]
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput | Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput[]
|
|
upsert?: Prisma.ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput[]
|
|
createMany?: Prisma.ExerciseLogCreateManyMesoCycleExerciseInputEnvelope
|
|
set?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
disconnect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
delete?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
update?: Prisma.ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput[]
|
|
updateMany?: Prisma.ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput[]
|
|
deleteMany?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[]
|
|
}
|
|
|
|
export type ExerciseLogCreateNestedManyWithoutWorkoutSessionInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutWorkoutSessionInput, Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput> | Prisma.ExerciseLogCreateWithoutWorkoutSessionInput[] | Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput[]
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput | Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput[]
|
|
createMany?: Prisma.ExerciseLogCreateManyWorkoutSessionInputEnvelope
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type ExerciseLogUncheckedCreateNestedManyWithoutWorkoutSessionInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutWorkoutSessionInput, Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput> | Prisma.ExerciseLogCreateWithoutWorkoutSessionInput[] | Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput[]
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput | Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput[]
|
|
createMany?: Prisma.ExerciseLogCreateManyWorkoutSessionInputEnvelope
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
}
|
|
|
|
export type ExerciseLogUpdateManyWithoutWorkoutSessionNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutWorkoutSessionInput, Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput> | Prisma.ExerciseLogCreateWithoutWorkoutSessionInput[] | Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput[]
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput | Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput[]
|
|
upsert?: Prisma.ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput | Prisma.ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput[]
|
|
createMany?: Prisma.ExerciseLogCreateManyWorkoutSessionInputEnvelope
|
|
set?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
disconnect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
delete?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
update?: Prisma.ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput | Prisma.ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput[]
|
|
updateMany?: Prisma.ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput | Prisma.ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput[]
|
|
deleteMany?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[]
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateManyWithoutWorkoutSessionNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutWorkoutSessionInput, Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput> | Prisma.ExerciseLogCreateWithoutWorkoutSessionInput[] | Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput[]
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput | Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput[]
|
|
upsert?: Prisma.ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput | Prisma.ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput[]
|
|
createMany?: Prisma.ExerciseLogCreateManyWorkoutSessionInputEnvelope
|
|
set?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
disconnect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
delete?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[]
|
|
update?: Prisma.ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput | Prisma.ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput[]
|
|
updateMany?: Prisma.ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput | Prisma.ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput[]
|
|
deleteMany?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[]
|
|
}
|
|
|
|
export type ExerciseLogCreateNestedOneWithoutSessionFeedbacksInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutSessionFeedbacksInput, Prisma.ExerciseLogUncheckedCreateWithoutSessionFeedbacksInput>
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutSessionFeedbacksInput
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput
|
|
}
|
|
|
|
export type ExerciseLogUpdateOneRequiredWithoutSessionFeedbacksNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ExerciseLogCreateWithoutSessionFeedbacksInput, Prisma.ExerciseLogUncheckedCreateWithoutSessionFeedbacksInput>
|
|
connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutSessionFeedbacksInput
|
|
upsert?: Prisma.ExerciseLogUpsertWithoutSessionFeedbacksInput
|
|
connect?: Prisma.ExerciseLogWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ExerciseLogUpdateToOneWithWhereWithoutSessionFeedbacksInput, Prisma.ExerciseLogUpdateWithoutSessionFeedbacksInput>, Prisma.ExerciseLogUncheckedUpdateWithoutSessionFeedbacksInput>
|
|
}
|
|
|
|
export type ExerciseLogCreateWithoutMesoCycleExerciseInput = {
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSession: Prisma.WorkoutSessionCreateNestedOneWithoutExerciseLogsInput
|
|
sessionFeedbacks?: Prisma.SessionFeedbackCreateNestedManyWithoutExerciseLogInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput = {
|
|
id?: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId: number
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput
|
|
}
|
|
|
|
export type ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput = {
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput, Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput>
|
|
}
|
|
|
|
export type ExerciseLogCreateManyMesoCycleExerciseInputEnvelope = {
|
|
data: Prisma.ExerciseLogCreateManyMesoCycleExerciseInput | Prisma.ExerciseLogCreateManyMesoCycleExerciseInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput = {
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.ExerciseLogUpdateWithoutMesoCycleExerciseInput, Prisma.ExerciseLogUncheckedUpdateWithoutMesoCycleExerciseInput>
|
|
create: Prisma.XOR<Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput, Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput>
|
|
}
|
|
|
|
export type ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput = {
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.ExerciseLogUpdateWithoutMesoCycleExerciseInput, Prisma.ExerciseLogUncheckedUpdateWithoutMesoCycleExerciseInput>
|
|
}
|
|
|
|
export type ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput = {
|
|
where: Prisma.ExerciseLogScalarWhereInput
|
|
data: Prisma.XOR<Prisma.ExerciseLogUpdateManyMutationInput, Prisma.ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseInput>
|
|
}
|
|
|
|
export type ExerciseLogScalarWhereInput = {
|
|
AND?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[]
|
|
OR?: Prisma.ExerciseLogScalarWhereInput[]
|
|
NOT?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[]
|
|
id?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
sets?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
reps?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
weight?: Prisma.DecimalFilter<"ExerciseLog"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
mesoCycleExerciseId?: Prisma.IntFilter<"ExerciseLog"> | number
|
|
}
|
|
|
|
export type ExerciseLogCreateWithoutWorkoutSessionInput = {
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExercise: Prisma.MesoCycleExerciseCreateNestedOneWithoutExerciseLogsInput
|
|
sessionFeedbacks?: Prisma.SessionFeedbackCreateNestedManyWithoutExerciseLogInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedCreateWithoutWorkoutSessionInput = {
|
|
id?: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExerciseId: number
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput
|
|
}
|
|
|
|
export type ExerciseLogCreateOrConnectWithoutWorkoutSessionInput = {
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ExerciseLogCreateWithoutWorkoutSessionInput, Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput>
|
|
}
|
|
|
|
export type ExerciseLogCreateManyWorkoutSessionInputEnvelope = {
|
|
data: Prisma.ExerciseLogCreateManyWorkoutSessionInput | Prisma.ExerciseLogCreateManyWorkoutSessionInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput = {
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.ExerciseLogUpdateWithoutWorkoutSessionInput, Prisma.ExerciseLogUncheckedUpdateWithoutWorkoutSessionInput>
|
|
create: Prisma.XOR<Prisma.ExerciseLogCreateWithoutWorkoutSessionInput, Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput>
|
|
}
|
|
|
|
export type ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput = {
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.ExerciseLogUpdateWithoutWorkoutSessionInput, Prisma.ExerciseLogUncheckedUpdateWithoutWorkoutSessionInput>
|
|
}
|
|
|
|
export type ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput = {
|
|
where: Prisma.ExerciseLogScalarWhereInput
|
|
data: Prisma.XOR<Prisma.ExerciseLogUpdateManyMutationInput, Prisma.ExerciseLogUncheckedUpdateManyWithoutWorkoutSessionInput>
|
|
}
|
|
|
|
export type ExerciseLogCreateWithoutSessionFeedbacksInput = {
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSession: Prisma.WorkoutSessionCreateNestedOneWithoutExerciseLogsInput
|
|
mesoCycleExercise: Prisma.MesoCycleExerciseCreateNestedOneWithoutExerciseLogsInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedCreateWithoutSessionFeedbacksInput = {
|
|
id?: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId: number
|
|
mesoCycleExerciseId: number
|
|
}
|
|
|
|
export type ExerciseLogCreateOrConnectWithoutSessionFeedbacksInput = {
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ExerciseLogCreateWithoutSessionFeedbacksInput, Prisma.ExerciseLogUncheckedCreateWithoutSessionFeedbacksInput>
|
|
}
|
|
|
|
export type ExerciseLogUpsertWithoutSessionFeedbacksInput = {
|
|
update: Prisma.XOR<Prisma.ExerciseLogUpdateWithoutSessionFeedbacksInput, Prisma.ExerciseLogUncheckedUpdateWithoutSessionFeedbacksInput>
|
|
create: Prisma.XOR<Prisma.ExerciseLogCreateWithoutSessionFeedbacksInput, Prisma.ExerciseLogUncheckedCreateWithoutSessionFeedbacksInput>
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
}
|
|
|
|
export type ExerciseLogUpdateToOneWithWhereWithoutSessionFeedbacksInput = {
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
data: Prisma.XOR<Prisma.ExerciseLogUpdateWithoutSessionFeedbacksInput, Prisma.ExerciseLogUncheckedUpdateWithoutSessionFeedbacksInput>
|
|
}
|
|
|
|
export type ExerciseLogUpdateWithoutSessionFeedbacksInput = {
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSession?: Prisma.WorkoutSessionUpdateOneRequiredWithoutExerciseLogsNestedInput
|
|
mesoCycleExercise?: Prisma.MesoCycleExerciseUpdateOneRequiredWithoutExerciseLogsNestedInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateWithoutSessionFeedbacksInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type ExerciseLogCreateManyMesoCycleExerciseInput = {
|
|
id?: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId: number
|
|
}
|
|
|
|
export type ExerciseLogUpdateWithoutMesoCycleExerciseInput = {
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSession?: Prisma.WorkoutSessionUpdateOneRequiredWithoutExerciseLogsNestedInput
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUpdateManyWithoutExerciseLogNestedInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateWithoutMesoCycleExerciseInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUncheckedUpdateManyWithoutExerciseLogNestedInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type ExerciseLogCreateManyWorkoutSessionInput = {
|
|
id?: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExerciseId: number
|
|
}
|
|
|
|
export type ExerciseLogUpdateWithoutWorkoutSessionInput = {
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExercise?: Prisma.MesoCycleExerciseUpdateOneRequiredWithoutExerciseLogsNestedInput
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUpdateManyWithoutExerciseLogNestedInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateWithoutWorkoutSessionInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sessionFeedbacks?: Prisma.SessionFeedbackUncheckedUpdateManyWithoutExerciseLogNestedInput
|
|
}
|
|
|
|
export type ExerciseLogUncheckedUpdateManyWithoutWorkoutSessionInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
sets?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ExerciseLogCountOutputType
|
|
*/
|
|
|
|
export type ExerciseLogCountOutputType = {
|
|
sessionFeedbacks: number
|
|
}
|
|
|
|
export type ExerciseLogCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
sessionFeedbacks?: boolean | ExerciseLogCountOutputTypeCountSessionFeedbacksArgs
|
|
}
|
|
|
|
/**
|
|
* ExerciseLogCountOutputType without action
|
|
*/
|
|
export type ExerciseLogCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ExerciseLogCountOutputType
|
|
*/
|
|
select?: Prisma.ExerciseLogCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ExerciseLogCountOutputType without action
|
|
*/
|
|
export type ExerciseLogCountOutputTypeCountSessionFeedbacksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
}
|
|
|
|
|
|
export type ExerciseLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
sets?: boolean
|
|
reps?: boolean
|
|
weight?: boolean
|
|
workoutSessionId?: boolean
|
|
mesoCycleExerciseId?: boolean
|
|
workoutSession?: boolean | Prisma.WorkoutSessionDefaultArgs<ExtArgs>
|
|
mesoCycleExercise?: boolean | Prisma.MesoCycleExerciseDefaultArgs<ExtArgs>
|
|
sessionFeedbacks?: boolean | Prisma.ExerciseLog$sessionFeedbacksArgs<ExtArgs>
|
|
_count?: boolean | Prisma.ExerciseLogCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["exerciseLog"]>
|
|
|
|
|
|
|
|
export type ExerciseLogSelectScalar = {
|
|
id?: boolean
|
|
sets?: boolean
|
|
reps?: boolean
|
|
weight?: boolean
|
|
workoutSessionId?: boolean
|
|
mesoCycleExerciseId?: boolean
|
|
}
|
|
|
|
export type ExerciseLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sets" | "reps" | "weight" | "workoutSessionId" | "mesoCycleExerciseId", ExtArgs["result"]["exerciseLog"]>
|
|
export type ExerciseLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
workoutSession?: boolean | Prisma.WorkoutSessionDefaultArgs<ExtArgs>
|
|
mesoCycleExercise?: boolean | Prisma.MesoCycleExerciseDefaultArgs<ExtArgs>
|
|
sessionFeedbacks?: boolean | Prisma.ExerciseLog$sessionFeedbacksArgs<ExtArgs>
|
|
_count?: boolean | Prisma.ExerciseLogCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ExerciseLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "ExerciseLog"
|
|
objects: {
|
|
workoutSession: Prisma.$WorkoutSessionPayload<ExtArgs>
|
|
mesoCycleExercise: Prisma.$MesoCycleExercisePayload<ExtArgs>
|
|
sessionFeedbacks: Prisma.$SessionFeedbackPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
sets: number
|
|
reps: number
|
|
weight: runtime.Decimal
|
|
workoutSessionId: number
|
|
mesoCycleExerciseId: number
|
|
}, ExtArgs["result"]["exerciseLog"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type ExerciseLogGetPayload<S extends boolean | null | undefined | ExerciseLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload, S>
|
|
|
|
export type ExerciseLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<ExerciseLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ExerciseLogCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ExerciseLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ExerciseLog'], meta: { name: 'ExerciseLog' } }
|
|
/**
|
|
* Find zero or one ExerciseLog that matches the filter.
|
|
* @param {ExerciseLogFindUniqueArgs} args - Arguments to find a ExerciseLog
|
|
* @example
|
|
* // Get one ExerciseLog
|
|
* const exerciseLog = await prisma.exerciseLog.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ExerciseLogFindUniqueArgs>(args: Prisma.SelectSubset<T, ExerciseLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one ExerciseLog that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ExerciseLogFindUniqueOrThrowArgs} args - Arguments to find a ExerciseLog
|
|
* @example
|
|
* // Get one ExerciseLog
|
|
* const exerciseLog = await prisma.exerciseLog.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ExerciseLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ExerciseLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ExerciseLog 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 {ExerciseLogFindFirstArgs} args - Arguments to find a ExerciseLog
|
|
* @example
|
|
* // Get one ExerciseLog
|
|
* const exerciseLog = await prisma.exerciseLog.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ExerciseLogFindFirstArgs>(args?: Prisma.SelectSubset<T, ExerciseLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ExerciseLog 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 {ExerciseLogFindFirstOrThrowArgs} args - Arguments to find a ExerciseLog
|
|
* @example
|
|
* // Get one ExerciseLog
|
|
* const exerciseLog = await prisma.exerciseLog.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ExerciseLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ExerciseLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more ExerciseLogs 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 {ExerciseLogFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ExerciseLogs
|
|
* const exerciseLogs = await prisma.exerciseLog.findMany()
|
|
*
|
|
* // Get first 10 ExerciseLogs
|
|
* const exerciseLogs = await prisma.exerciseLog.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const exerciseLogWithIdOnly = await prisma.exerciseLog.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ExerciseLogFindManyArgs>(args?: Prisma.SelectSubset<T, ExerciseLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a ExerciseLog.
|
|
* @param {ExerciseLogCreateArgs} args - Arguments to create a ExerciseLog.
|
|
* @example
|
|
* // Create one ExerciseLog
|
|
* const ExerciseLog = await prisma.exerciseLog.create({
|
|
* data: {
|
|
* // ... data to create a ExerciseLog
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ExerciseLogCreateArgs>(args: Prisma.SelectSubset<T, ExerciseLogCreateArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many ExerciseLogs.
|
|
* @param {ExerciseLogCreateManyArgs} args - Arguments to create many ExerciseLogs.
|
|
* @example
|
|
* // Create many ExerciseLogs
|
|
* const exerciseLog = await prisma.exerciseLog.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ExerciseLogCreateManyArgs>(args?: Prisma.SelectSubset<T, ExerciseLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a ExerciseLog.
|
|
* @param {ExerciseLogDeleteArgs} args - Arguments to delete one ExerciseLog.
|
|
* @example
|
|
* // Delete one ExerciseLog
|
|
* const ExerciseLog = await prisma.exerciseLog.delete({
|
|
* where: {
|
|
* // ... filter to delete one ExerciseLog
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ExerciseLogDeleteArgs>(args: Prisma.SelectSubset<T, ExerciseLogDeleteArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one ExerciseLog.
|
|
* @param {ExerciseLogUpdateArgs} args - Arguments to update one ExerciseLog.
|
|
* @example
|
|
* // Update one ExerciseLog
|
|
* const exerciseLog = await prisma.exerciseLog.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ExerciseLogUpdateArgs>(args: Prisma.SelectSubset<T, ExerciseLogUpdateArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more ExerciseLogs.
|
|
* @param {ExerciseLogDeleteManyArgs} args - Arguments to filter ExerciseLogs to delete.
|
|
* @example
|
|
* // Delete a few ExerciseLogs
|
|
* const { count } = await prisma.exerciseLog.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ExerciseLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, ExerciseLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ExerciseLogs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ExerciseLogUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ExerciseLogs
|
|
* const exerciseLog = await prisma.exerciseLog.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ExerciseLogUpdateManyArgs>(args: Prisma.SelectSubset<T, ExerciseLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one ExerciseLog.
|
|
* @param {ExerciseLogUpsertArgs} args - Arguments to update or create a ExerciseLog.
|
|
* @example
|
|
* // Update or create a ExerciseLog
|
|
* const exerciseLog = await prisma.exerciseLog.upsert({
|
|
* create: {
|
|
* // ... data to create a ExerciseLog
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ExerciseLog we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ExerciseLogUpsertArgs>(args: Prisma.SelectSubset<T, ExerciseLogUpsertArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of ExerciseLogs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ExerciseLogCountArgs} args - Arguments to filter ExerciseLogs to count.
|
|
* @example
|
|
* // Count the number of ExerciseLogs
|
|
* const count = await prisma.exerciseLog.count({
|
|
* where: {
|
|
* // ... the filter for the ExerciseLogs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ExerciseLogCountArgs>(
|
|
args?: Prisma.Subset<T, ExerciseLogCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ExerciseLogCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ExerciseLog.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ExerciseLogAggregateArgs} 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 ExerciseLogAggregateArgs>(args: Prisma.Subset<T, ExerciseLogAggregateArgs>): Prisma.PrismaPromise<GetExerciseLogAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ExerciseLog.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ExerciseLogGroupByArgs} 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 ExerciseLogGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: ExerciseLogGroupByArgs['orderBy'] }
|
|
: { orderBy?: ExerciseLogGroupByArgs['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, ExerciseLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetExerciseLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ExerciseLog model
|
|
*/
|
|
readonly fields: ExerciseLogFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ExerciseLog.
|
|
* 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__ExerciseLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
workoutSession<T extends Prisma.WorkoutSessionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkoutSessionDefaultArgs<ExtArgs>>): Prisma.Prisma__WorkoutSessionClient<runtime.Types.Result.GetResult<Prisma.$WorkoutSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
mesoCycleExercise<T extends Prisma.MesoCycleExerciseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MesoCycleExerciseDefaultArgs<ExtArgs>>): Prisma.Prisma__MesoCycleExerciseClient<runtime.Types.Result.GetResult<Prisma.$MesoCycleExercisePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
sessionFeedbacks<T extends Prisma.ExerciseLog$sessionFeedbacksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ExerciseLog$sessionFeedbacksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<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 ExerciseLog model
|
|
*/
|
|
export interface ExerciseLogFieldRefs {
|
|
readonly id: Prisma.FieldRef<"ExerciseLog", 'Int'>
|
|
readonly sets: Prisma.FieldRef<"ExerciseLog", 'Int'>
|
|
readonly reps: Prisma.FieldRef<"ExerciseLog", 'Int'>
|
|
readonly weight: Prisma.FieldRef<"ExerciseLog", 'Decimal'>
|
|
readonly workoutSessionId: Prisma.FieldRef<"ExerciseLog", 'Int'>
|
|
readonly mesoCycleExerciseId: Prisma.FieldRef<"ExerciseLog", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ExerciseLog findUnique
|
|
*/
|
|
export type ExerciseLogFindUniqueArgs<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
|
|
/**
|
|
* Filter, which ExerciseLog to fetch.
|
|
*/
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog findUniqueOrThrow
|
|
*/
|
|
export type ExerciseLogFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which ExerciseLog to fetch.
|
|
*/
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog findFirst
|
|
*/
|
|
export type ExerciseLogFindFirstArgs<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
|
|
/**
|
|
* Filter, which ExerciseLog to fetch.
|
|
*/
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ExerciseLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ExerciseLogs.
|
|
*/
|
|
cursor?: Prisma.ExerciseLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ExerciseLogs 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` ExerciseLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ExerciseLogs.
|
|
*/
|
|
distinct?: Prisma.ExerciseLogScalarFieldEnum | Prisma.ExerciseLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog findFirstOrThrow
|
|
*/
|
|
export type ExerciseLogFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which ExerciseLog to fetch.
|
|
*/
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ExerciseLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ExerciseLogs.
|
|
*/
|
|
cursor?: Prisma.ExerciseLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ExerciseLogs 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` ExerciseLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ExerciseLogs.
|
|
*/
|
|
distinct?: Prisma.ExerciseLogScalarFieldEnum | Prisma.ExerciseLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog findMany
|
|
*/
|
|
export type ExerciseLogFindManyArgs<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
|
|
/**
|
|
* Filter, which ExerciseLogs to fetch.
|
|
*/
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ExerciseLogs to fetch.
|
|
*/
|
|
orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ExerciseLogs.
|
|
*/
|
|
cursor?: Prisma.ExerciseLogWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ExerciseLogs 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` ExerciseLogs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ExerciseLogs.
|
|
*/
|
|
distinct?: Prisma.ExerciseLogScalarFieldEnum | Prisma.ExerciseLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog create
|
|
*/
|
|
export type ExerciseLogCreateArgs<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
|
|
/**
|
|
* The data needed to create a ExerciseLog.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ExerciseLogCreateInput, Prisma.ExerciseLogUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog createMany
|
|
*/
|
|
export type ExerciseLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ExerciseLogs.
|
|
*/
|
|
data: Prisma.ExerciseLogCreateManyInput | Prisma.ExerciseLogCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog update
|
|
*/
|
|
export type ExerciseLogUpdateArgs<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
|
|
/**
|
|
* The data needed to update a ExerciseLog.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ExerciseLogUpdateInput, Prisma.ExerciseLogUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ExerciseLog to update.
|
|
*/
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog updateMany
|
|
*/
|
|
export type ExerciseLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ExerciseLogs.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ExerciseLogUpdateManyMutationInput, Prisma.ExerciseLogUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ExerciseLogs to update
|
|
*/
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
/**
|
|
* Limit how many ExerciseLogs to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog upsert
|
|
*/
|
|
export type ExerciseLogUpsertArgs<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
|
|
/**
|
|
* The filter to search for the ExerciseLog to update in case it exists.
|
|
*/
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
/**
|
|
* In case the ExerciseLog found by the `where` argument doesn't exist, create a new ExerciseLog with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.ExerciseLogCreateInput, Prisma.ExerciseLogUncheckedCreateInput>
|
|
/**
|
|
* In case the ExerciseLog was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.ExerciseLogUpdateInput, Prisma.ExerciseLogUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog delete
|
|
*/
|
|
export type ExerciseLogDeleteArgs<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
|
|
/**
|
|
* Filter which ExerciseLog to delete.
|
|
*/
|
|
where: Prisma.ExerciseLogWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog deleteMany
|
|
*/
|
|
export type ExerciseLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ExerciseLogs to delete
|
|
*/
|
|
where?: Prisma.ExerciseLogWhereInput
|
|
/**
|
|
* Limit how many ExerciseLogs to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog.sessionFeedbacks
|
|
*/
|
|
export type ExerciseLog$sessionFeedbacksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[]
|
|
cursor?: Prisma.SessionFeedbackWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.SessionFeedbackScalarFieldEnum | Prisma.SessionFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ExerciseLog without action
|
|
*/
|
|
export type ExerciseLogDefaultArgs<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
|
|
}
|