/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `WorkoutSession` 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 WorkoutSession * */ export type WorkoutSessionModel = runtime.Types.Result.DefaultSelection export type AggregateWorkoutSession = { _count: WorkoutSessionCountAggregateOutputType | null _avg: WorkoutSessionAvgAggregateOutputType | null _sum: WorkoutSessionSumAggregateOutputType | null _min: WorkoutSessionMinAggregateOutputType | null _max: WorkoutSessionMaxAggregateOutputType | null } export type WorkoutSessionAvgAggregateOutputType = { id: number | null weekNumber: number | null mesoCycleDayId: number | null } export type WorkoutSessionSumAggregateOutputType = { id: number | null weekNumber: number | null mesoCycleDayId: number | null } export type WorkoutSessionMinAggregateOutputType = { id: number | null weekNumber: number | null isDeload: boolean | null completedAt: Date | null mesoCycleDayId: number | null userId: string | null } export type WorkoutSessionMaxAggregateOutputType = { id: number | null weekNumber: number | null isDeload: boolean | null completedAt: Date | null mesoCycleDayId: number | null userId: string | null } export type WorkoutSessionCountAggregateOutputType = { id: number weekNumber: number isDeload: number completedAt: number mesoCycleDayId: number userId: number _all: number } export type WorkoutSessionAvgAggregateInputType = { id?: true weekNumber?: true mesoCycleDayId?: true } export type WorkoutSessionSumAggregateInputType = { id?: true weekNumber?: true mesoCycleDayId?: true } export type WorkoutSessionMinAggregateInputType = { id?: true weekNumber?: true isDeload?: true completedAt?: true mesoCycleDayId?: true userId?: true } export type WorkoutSessionMaxAggregateInputType = { id?: true weekNumber?: true isDeload?: true completedAt?: true mesoCycleDayId?: true userId?: true } export type WorkoutSessionCountAggregateInputType = { id?: true weekNumber?: true isDeload?: true completedAt?: true mesoCycleDayId?: true userId?: true _all?: true } export type WorkoutSessionAggregateArgs = { /** * Filter which WorkoutSession to aggregate. */ where?: Prisma.WorkoutSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WorkoutSessions to fetch. */ orderBy?: Prisma.WorkoutSessionOrderByWithRelationInput | Prisma.WorkoutSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.WorkoutSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WorkoutSessions 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` WorkoutSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned WorkoutSessions **/ _count?: true | WorkoutSessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: WorkoutSessionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: WorkoutSessionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: WorkoutSessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: WorkoutSessionMaxAggregateInputType } export type GetWorkoutSessionAggregateType = { [P in keyof T & keyof AggregateWorkoutSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type WorkoutSessionGroupByArgs = { where?: Prisma.WorkoutSessionWhereInput orderBy?: Prisma.WorkoutSessionOrderByWithAggregationInput | Prisma.WorkoutSessionOrderByWithAggregationInput[] by: Prisma.WorkoutSessionScalarFieldEnum[] | Prisma.WorkoutSessionScalarFieldEnum having?: Prisma.WorkoutSessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: WorkoutSessionCountAggregateInputType | true _avg?: WorkoutSessionAvgAggregateInputType _sum?: WorkoutSessionSumAggregateInputType _min?: WorkoutSessionMinAggregateInputType _max?: WorkoutSessionMaxAggregateInputType } export type WorkoutSessionGroupByOutputType = { id: number weekNumber: number isDeload: boolean completedAt: Date | null mesoCycleDayId: number userId: string _count: WorkoutSessionCountAggregateOutputType | null _avg: WorkoutSessionAvgAggregateOutputType | null _sum: WorkoutSessionSumAggregateOutputType | null _min: WorkoutSessionMinAggregateOutputType | null _max: WorkoutSessionMaxAggregateOutputType | null } type GetWorkoutSessionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof WorkoutSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type WorkoutSessionWhereInput = { AND?: Prisma.WorkoutSessionWhereInput | Prisma.WorkoutSessionWhereInput[] OR?: Prisma.WorkoutSessionWhereInput[] NOT?: Prisma.WorkoutSessionWhereInput | Prisma.WorkoutSessionWhereInput[] id?: Prisma.IntFilter<"WorkoutSession"> | number weekNumber?: Prisma.IntFilter<"WorkoutSession"> | number isDeload?: Prisma.BoolFilter<"WorkoutSession"> | boolean completedAt?: Prisma.DateTimeNullableFilter<"WorkoutSession"> | Date | string | null mesoCycleDayId?: Prisma.IntFilter<"WorkoutSession"> | number userId?: Prisma.StringFilter<"WorkoutSession"> | string mesoCycleDay?: Prisma.XOR user?: Prisma.XOR exerciseLogs?: Prisma.ExerciseLogListRelationFilter } export type WorkoutSessionOrderByWithRelationInput = { id?: Prisma.SortOrder weekNumber?: Prisma.SortOrder isDeload?: Prisma.SortOrder completedAt?: Prisma.SortOrderInput | Prisma.SortOrder mesoCycleDayId?: Prisma.SortOrder userId?: Prisma.SortOrder mesoCycleDay?: Prisma.MesoCycleDayOrderByWithRelationInput user?: Prisma.UserOrderByWithRelationInput exerciseLogs?: Prisma.ExerciseLogOrderByRelationAggregateInput _relevance?: Prisma.WorkoutSessionOrderByRelevanceInput } export type WorkoutSessionWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.WorkoutSessionWhereInput | Prisma.WorkoutSessionWhereInput[] OR?: Prisma.WorkoutSessionWhereInput[] NOT?: Prisma.WorkoutSessionWhereInput | Prisma.WorkoutSessionWhereInput[] weekNumber?: Prisma.IntFilter<"WorkoutSession"> | number isDeload?: Prisma.BoolFilter<"WorkoutSession"> | boolean completedAt?: Prisma.DateTimeNullableFilter<"WorkoutSession"> | Date | string | null mesoCycleDayId?: Prisma.IntFilter<"WorkoutSession"> | number userId?: Prisma.StringFilter<"WorkoutSession"> | string mesoCycleDay?: Prisma.XOR user?: Prisma.XOR exerciseLogs?: Prisma.ExerciseLogListRelationFilter }, "id"> export type WorkoutSessionOrderByWithAggregationInput = { id?: Prisma.SortOrder weekNumber?: Prisma.SortOrder isDeload?: Prisma.SortOrder completedAt?: Prisma.SortOrderInput | Prisma.SortOrder mesoCycleDayId?: Prisma.SortOrder userId?: Prisma.SortOrder _count?: Prisma.WorkoutSessionCountOrderByAggregateInput _avg?: Prisma.WorkoutSessionAvgOrderByAggregateInput _max?: Prisma.WorkoutSessionMaxOrderByAggregateInput _min?: Prisma.WorkoutSessionMinOrderByAggregateInput _sum?: Prisma.WorkoutSessionSumOrderByAggregateInput } export type WorkoutSessionScalarWhereWithAggregatesInput = { AND?: Prisma.WorkoutSessionScalarWhereWithAggregatesInput | Prisma.WorkoutSessionScalarWhereWithAggregatesInput[] OR?: Prisma.WorkoutSessionScalarWhereWithAggregatesInput[] NOT?: Prisma.WorkoutSessionScalarWhereWithAggregatesInput | Prisma.WorkoutSessionScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"WorkoutSession"> | number weekNumber?: Prisma.IntWithAggregatesFilter<"WorkoutSession"> | number isDeload?: Prisma.BoolWithAggregatesFilter<"WorkoutSession"> | boolean completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"WorkoutSession"> | Date | string | null mesoCycleDayId?: Prisma.IntWithAggregatesFilter<"WorkoutSession"> | number userId?: Prisma.StringWithAggregatesFilter<"WorkoutSession"> | string } export type WorkoutSessionCreateInput = { weekNumber: number isDeload: boolean completedAt?: Date | string | null mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutWorkOutSessionsInput user: Prisma.UserCreateNestedOneWithoutWorkoutSessionInput exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutWorkoutSessionInput } export type WorkoutSessionUncheckedCreateInput = { id?: number weekNumber: number isDeload: boolean completedAt?: Date | string | null mesoCycleDayId: number userId: string exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutWorkoutSessionInput } export type WorkoutSessionUpdateInput = { weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutWorkOutSessionsNestedInput user?: Prisma.UserUpdateOneRequiredWithoutWorkoutSessionNestedInput exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutWorkoutSessionNestedInput } export type WorkoutSessionUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.StringFieldUpdateOperationsInput | string exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutWorkoutSessionNestedInput } export type WorkoutSessionCreateManyInput = { id?: number weekNumber: number isDeload: boolean completedAt?: Date | string | null mesoCycleDayId: number userId: string } export type WorkoutSessionUpdateManyMutationInput = { weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type WorkoutSessionUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.StringFieldUpdateOperationsInput | string } export type WorkoutSessionListRelationFilter = { every?: Prisma.WorkoutSessionWhereInput some?: Prisma.WorkoutSessionWhereInput none?: Prisma.WorkoutSessionWhereInput } export type WorkoutSessionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type WorkoutSessionOrderByRelevanceInput = { fields: Prisma.WorkoutSessionOrderByRelevanceFieldEnum | Prisma.WorkoutSessionOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type WorkoutSessionCountOrderByAggregateInput = { id?: Prisma.SortOrder weekNumber?: Prisma.SortOrder isDeload?: Prisma.SortOrder completedAt?: Prisma.SortOrder mesoCycleDayId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type WorkoutSessionAvgOrderByAggregateInput = { id?: Prisma.SortOrder weekNumber?: Prisma.SortOrder mesoCycleDayId?: Prisma.SortOrder } export type WorkoutSessionMaxOrderByAggregateInput = { id?: Prisma.SortOrder weekNumber?: Prisma.SortOrder isDeload?: Prisma.SortOrder completedAt?: Prisma.SortOrder mesoCycleDayId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type WorkoutSessionMinOrderByAggregateInput = { id?: Prisma.SortOrder weekNumber?: Prisma.SortOrder isDeload?: Prisma.SortOrder completedAt?: Prisma.SortOrder mesoCycleDayId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type WorkoutSessionSumOrderByAggregateInput = { id?: Prisma.SortOrder weekNumber?: Prisma.SortOrder mesoCycleDayId?: Prisma.SortOrder } export type WorkoutSessionScalarRelationFilter = { is?: Prisma.WorkoutSessionWhereInput isNot?: Prisma.WorkoutSessionWhereInput } export type WorkoutSessionCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.WorkoutSessionCreateWithoutUserInput[] | Prisma.WorkoutSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutUserInput | Prisma.WorkoutSessionCreateOrConnectWithoutUserInput[] createMany?: Prisma.WorkoutSessionCreateManyUserInputEnvelope connect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] } export type WorkoutSessionUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.WorkoutSessionCreateWithoutUserInput[] | Prisma.WorkoutSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutUserInput | Prisma.WorkoutSessionCreateOrConnectWithoutUserInput[] createMany?: Prisma.WorkoutSessionCreateManyUserInputEnvelope connect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] } export type WorkoutSessionUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.WorkoutSessionCreateWithoutUserInput[] | Prisma.WorkoutSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutUserInput | Prisma.WorkoutSessionCreateOrConnectWithoutUserInput[] upsert?: Prisma.WorkoutSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.WorkoutSessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.WorkoutSessionCreateManyUserInputEnvelope set?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] disconnect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] delete?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] connect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] update?: Prisma.WorkoutSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.WorkoutSessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.WorkoutSessionUpdateManyWithWhereWithoutUserInput | Prisma.WorkoutSessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.WorkoutSessionScalarWhereInput | Prisma.WorkoutSessionScalarWhereInput[] } export type WorkoutSessionUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.WorkoutSessionCreateWithoutUserInput[] | Prisma.WorkoutSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutUserInput | Prisma.WorkoutSessionCreateOrConnectWithoutUserInput[] upsert?: Prisma.WorkoutSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.WorkoutSessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.WorkoutSessionCreateManyUserInputEnvelope set?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] disconnect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] delete?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] connect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] update?: Prisma.WorkoutSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.WorkoutSessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.WorkoutSessionUpdateManyWithWhereWithoutUserInput | Prisma.WorkoutSessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.WorkoutSessionScalarWhereInput | Prisma.WorkoutSessionScalarWhereInput[] } export type WorkoutSessionCreateNestedManyWithoutMesoCycleDayInput = { create?: Prisma.XOR | Prisma.WorkoutSessionCreateWithoutMesoCycleDayInput[] | Prisma.WorkoutSessionUncheckedCreateWithoutMesoCycleDayInput[] connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput | Prisma.WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput[] createMany?: Prisma.WorkoutSessionCreateManyMesoCycleDayInputEnvelope connect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] } export type WorkoutSessionUncheckedCreateNestedManyWithoutMesoCycleDayInput = { create?: Prisma.XOR | Prisma.WorkoutSessionCreateWithoutMesoCycleDayInput[] | Prisma.WorkoutSessionUncheckedCreateWithoutMesoCycleDayInput[] connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput | Prisma.WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput[] createMany?: Prisma.WorkoutSessionCreateManyMesoCycleDayInputEnvelope connect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] } export type WorkoutSessionUpdateManyWithoutMesoCycleDayNestedInput = { create?: Prisma.XOR | Prisma.WorkoutSessionCreateWithoutMesoCycleDayInput[] | Prisma.WorkoutSessionUncheckedCreateWithoutMesoCycleDayInput[] connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput | Prisma.WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput[] upsert?: Prisma.WorkoutSessionUpsertWithWhereUniqueWithoutMesoCycleDayInput | Prisma.WorkoutSessionUpsertWithWhereUniqueWithoutMesoCycleDayInput[] createMany?: Prisma.WorkoutSessionCreateManyMesoCycleDayInputEnvelope set?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] disconnect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] delete?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] connect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] update?: Prisma.WorkoutSessionUpdateWithWhereUniqueWithoutMesoCycleDayInput | Prisma.WorkoutSessionUpdateWithWhereUniqueWithoutMesoCycleDayInput[] updateMany?: Prisma.WorkoutSessionUpdateManyWithWhereWithoutMesoCycleDayInput | Prisma.WorkoutSessionUpdateManyWithWhereWithoutMesoCycleDayInput[] deleteMany?: Prisma.WorkoutSessionScalarWhereInput | Prisma.WorkoutSessionScalarWhereInput[] } export type WorkoutSessionUncheckedUpdateManyWithoutMesoCycleDayNestedInput = { create?: Prisma.XOR | Prisma.WorkoutSessionCreateWithoutMesoCycleDayInput[] | Prisma.WorkoutSessionUncheckedCreateWithoutMesoCycleDayInput[] connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput | Prisma.WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput[] upsert?: Prisma.WorkoutSessionUpsertWithWhereUniqueWithoutMesoCycleDayInput | Prisma.WorkoutSessionUpsertWithWhereUniqueWithoutMesoCycleDayInput[] createMany?: Prisma.WorkoutSessionCreateManyMesoCycleDayInputEnvelope set?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] disconnect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] delete?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] connect?: Prisma.WorkoutSessionWhereUniqueInput | Prisma.WorkoutSessionWhereUniqueInput[] update?: Prisma.WorkoutSessionUpdateWithWhereUniqueWithoutMesoCycleDayInput | Prisma.WorkoutSessionUpdateWithWhereUniqueWithoutMesoCycleDayInput[] updateMany?: Prisma.WorkoutSessionUpdateManyWithWhereWithoutMesoCycleDayInput | Prisma.WorkoutSessionUpdateManyWithWhereWithoutMesoCycleDayInput[] deleteMany?: Prisma.WorkoutSessionScalarWhereInput | Prisma.WorkoutSessionScalarWhereInput[] } export type WorkoutSessionCreateNestedOneWithoutExerciseLogsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutExerciseLogsInput connect?: Prisma.WorkoutSessionWhereUniqueInput } export type WorkoutSessionUpdateOneRequiredWithoutExerciseLogsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkoutSessionCreateOrConnectWithoutExerciseLogsInput upsert?: Prisma.WorkoutSessionUpsertWithoutExerciseLogsInput connect?: Prisma.WorkoutSessionWhereUniqueInput update?: Prisma.XOR, Prisma.WorkoutSessionUncheckedUpdateWithoutExerciseLogsInput> } export type WorkoutSessionCreateWithoutUserInput = { weekNumber: number isDeload: boolean completedAt?: Date | string | null mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutWorkOutSessionsInput exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutWorkoutSessionInput } export type WorkoutSessionUncheckedCreateWithoutUserInput = { id?: number weekNumber: number isDeload: boolean completedAt?: Date | string | null mesoCycleDayId: number exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutWorkoutSessionInput } export type WorkoutSessionCreateOrConnectWithoutUserInput = { where: Prisma.WorkoutSessionWhereUniqueInput create: Prisma.XOR } export type WorkoutSessionCreateManyUserInputEnvelope = { data: Prisma.WorkoutSessionCreateManyUserInput | Prisma.WorkoutSessionCreateManyUserInput[] skipDuplicates?: boolean } export type WorkoutSessionUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.WorkoutSessionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type WorkoutSessionUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.WorkoutSessionWhereUniqueInput data: Prisma.XOR } export type WorkoutSessionUpdateManyWithWhereWithoutUserInput = { where: Prisma.WorkoutSessionScalarWhereInput data: Prisma.XOR } export type WorkoutSessionScalarWhereInput = { AND?: Prisma.WorkoutSessionScalarWhereInput | Prisma.WorkoutSessionScalarWhereInput[] OR?: Prisma.WorkoutSessionScalarWhereInput[] NOT?: Prisma.WorkoutSessionScalarWhereInput | Prisma.WorkoutSessionScalarWhereInput[] id?: Prisma.IntFilter<"WorkoutSession"> | number weekNumber?: Prisma.IntFilter<"WorkoutSession"> | number isDeload?: Prisma.BoolFilter<"WorkoutSession"> | boolean completedAt?: Prisma.DateTimeNullableFilter<"WorkoutSession"> | Date | string | null mesoCycleDayId?: Prisma.IntFilter<"WorkoutSession"> | number userId?: Prisma.StringFilter<"WorkoutSession"> | string } export type WorkoutSessionCreateWithoutMesoCycleDayInput = { weekNumber: number isDeload: boolean completedAt?: Date | string | null user: Prisma.UserCreateNestedOneWithoutWorkoutSessionInput exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutWorkoutSessionInput } export type WorkoutSessionUncheckedCreateWithoutMesoCycleDayInput = { id?: number weekNumber: number isDeload: boolean completedAt?: Date | string | null userId: string exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutWorkoutSessionInput } export type WorkoutSessionCreateOrConnectWithoutMesoCycleDayInput = { where: Prisma.WorkoutSessionWhereUniqueInput create: Prisma.XOR } export type WorkoutSessionCreateManyMesoCycleDayInputEnvelope = { data: Prisma.WorkoutSessionCreateManyMesoCycleDayInput | Prisma.WorkoutSessionCreateManyMesoCycleDayInput[] skipDuplicates?: boolean } export type WorkoutSessionUpsertWithWhereUniqueWithoutMesoCycleDayInput = { where: Prisma.WorkoutSessionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type WorkoutSessionUpdateWithWhereUniqueWithoutMesoCycleDayInput = { where: Prisma.WorkoutSessionWhereUniqueInput data: Prisma.XOR } export type WorkoutSessionUpdateManyWithWhereWithoutMesoCycleDayInput = { where: Prisma.WorkoutSessionScalarWhereInput data: Prisma.XOR } export type WorkoutSessionCreateWithoutExerciseLogsInput = { weekNumber: number isDeload: boolean completedAt?: Date | string | null mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutWorkOutSessionsInput user: Prisma.UserCreateNestedOneWithoutWorkoutSessionInput } export type WorkoutSessionUncheckedCreateWithoutExerciseLogsInput = { id?: number weekNumber: number isDeload: boolean completedAt?: Date | string | null mesoCycleDayId: number userId: string } export type WorkoutSessionCreateOrConnectWithoutExerciseLogsInput = { where: Prisma.WorkoutSessionWhereUniqueInput create: Prisma.XOR } export type WorkoutSessionUpsertWithoutExerciseLogsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.WorkoutSessionWhereInput } export type WorkoutSessionUpdateToOneWithWhereWithoutExerciseLogsInput = { where?: Prisma.WorkoutSessionWhereInput data: Prisma.XOR } export type WorkoutSessionUpdateWithoutExerciseLogsInput = { weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutWorkOutSessionsNestedInput user?: Prisma.UserUpdateOneRequiredWithoutWorkoutSessionNestedInput } export type WorkoutSessionUncheckedUpdateWithoutExerciseLogsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.StringFieldUpdateOperationsInput | string } export type WorkoutSessionCreateManyUserInput = { id?: number weekNumber: number isDeload: boolean completedAt?: Date | string | null mesoCycleDayId: number } export type WorkoutSessionUpdateWithoutUserInput = { weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutWorkOutSessionsNestedInput exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutWorkoutSessionNestedInput } export type WorkoutSessionUncheckedUpdateWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutWorkoutSessionNestedInput } export type WorkoutSessionUncheckedUpdateManyWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number } export type WorkoutSessionCreateManyMesoCycleDayInput = { id?: number weekNumber: number isDeload: boolean completedAt?: Date | string | null userId: string } export type WorkoutSessionUpdateWithoutMesoCycleDayInput = { weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: Prisma.UserUpdateOneRequiredWithoutWorkoutSessionNestedInput exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutWorkoutSessionNestedInput } export type WorkoutSessionUncheckedUpdateWithoutMesoCycleDayInput = { id?: Prisma.IntFieldUpdateOperationsInput | number weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null userId?: Prisma.StringFieldUpdateOperationsInput | string exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutWorkoutSessionNestedInput } export type WorkoutSessionUncheckedUpdateManyWithoutMesoCycleDayInput = { id?: Prisma.IntFieldUpdateOperationsInput | number weekNumber?: Prisma.IntFieldUpdateOperationsInput | number isDeload?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null userId?: Prisma.StringFieldUpdateOperationsInput | string } /** * Count Type WorkoutSessionCountOutputType */ export type WorkoutSessionCountOutputType = { exerciseLogs: number } export type WorkoutSessionCountOutputTypeSelect = { exerciseLogs?: boolean | WorkoutSessionCountOutputTypeCountExerciseLogsArgs } /** * WorkoutSessionCountOutputType without action */ export type WorkoutSessionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the WorkoutSessionCountOutputType */ select?: Prisma.WorkoutSessionCountOutputTypeSelect | null } /** * WorkoutSessionCountOutputType without action */ export type WorkoutSessionCountOutputTypeCountExerciseLogsArgs = { where?: Prisma.ExerciseLogWhereInput } export type WorkoutSessionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean weekNumber?: boolean isDeload?: boolean completedAt?: boolean mesoCycleDayId?: boolean userId?: boolean mesoCycleDay?: boolean | Prisma.MesoCycleDayDefaultArgs user?: boolean | Prisma.UserDefaultArgs exerciseLogs?: boolean | Prisma.WorkoutSession$exerciseLogsArgs _count?: boolean | Prisma.WorkoutSessionCountOutputTypeDefaultArgs }, ExtArgs["result"]["workoutSession"]> export type WorkoutSessionSelectScalar = { id?: boolean weekNumber?: boolean isDeload?: boolean completedAt?: boolean mesoCycleDayId?: boolean userId?: boolean } export type WorkoutSessionOmit = runtime.Types.Extensions.GetOmit<"id" | "weekNumber" | "isDeload" | "completedAt" | "mesoCycleDayId" | "userId", ExtArgs["result"]["workoutSession"]> export type WorkoutSessionInclude = { mesoCycleDay?: boolean | Prisma.MesoCycleDayDefaultArgs user?: boolean | Prisma.UserDefaultArgs exerciseLogs?: boolean | Prisma.WorkoutSession$exerciseLogsArgs _count?: boolean | Prisma.WorkoutSessionCountOutputTypeDefaultArgs } export type $WorkoutSessionPayload = { name: "WorkoutSession" objects: { mesoCycleDay: Prisma.$MesoCycleDayPayload user: Prisma.$UserPayload exerciseLogs: Prisma.$ExerciseLogPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number weekNumber: number isDeload: boolean completedAt: Date | null mesoCycleDayId: number userId: string }, ExtArgs["result"]["workoutSession"]> composites: {} } export type WorkoutSessionGetPayload = runtime.Types.Result.GetResult export type WorkoutSessionCountArgs = Omit & { select?: WorkoutSessionCountAggregateInputType | true } export interface WorkoutSessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['WorkoutSession'], meta: { name: 'WorkoutSession' } } /** * Find zero or one WorkoutSession that matches the filter. * @param {WorkoutSessionFindUniqueArgs} args - Arguments to find a WorkoutSession * @example * // Get one WorkoutSession * const workoutSession = await prisma.workoutSession.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__WorkoutSessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one WorkoutSession that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WorkoutSessionFindUniqueOrThrowArgs} args - Arguments to find a WorkoutSession * @example * // Get one WorkoutSession * const workoutSession = await prisma.workoutSession.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__WorkoutSessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first WorkoutSession 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 {WorkoutSessionFindFirstArgs} args - Arguments to find a WorkoutSession * @example * // Get one WorkoutSession * const workoutSession = await prisma.workoutSession.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__WorkoutSessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first WorkoutSession 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 {WorkoutSessionFindFirstOrThrowArgs} args - Arguments to find a WorkoutSession * @example * // Get one WorkoutSession * const workoutSession = await prisma.workoutSession.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__WorkoutSessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more WorkoutSessions 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 {WorkoutSessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all WorkoutSessions * const workoutSessions = await prisma.workoutSession.findMany() * * // Get first 10 WorkoutSessions * const workoutSessions = await prisma.workoutSession.findMany({ take: 10 }) * * // Only select the `id` * const workoutSessionWithIdOnly = await prisma.workoutSession.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a WorkoutSession. * @param {WorkoutSessionCreateArgs} args - Arguments to create a WorkoutSession. * @example * // Create one WorkoutSession * const WorkoutSession = await prisma.workoutSession.create({ * data: { * // ... data to create a WorkoutSession * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__WorkoutSessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many WorkoutSessions. * @param {WorkoutSessionCreateManyArgs} args - Arguments to create many WorkoutSessions. * @example * // Create many WorkoutSessions * const workoutSession = await prisma.workoutSession.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a WorkoutSession. * @param {WorkoutSessionDeleteArgs} args - Arguments to delete one WorkoutSession. * @example * // Delete one WorkoutSession * const WorkoutSession = await prisma.workoutSession.delete({ * where: { * // ... filter to delete one WorkoutSession * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__WorkoutSessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one WorkoutSession. * @param {WorkoutSessionUpdateArgs} args - Arguments to update one WorkoutSession. * @example * // Update one WorkoutSession * const workoutSession = await prisma.workoutSession.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__WorkoutSessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more WorkoutSessions. * @param {WorkoutSessionDeleteManyArgs} args - Arguments to filter WorkoutSessions to delete. * @example * // Delete a few WorkoutSessions * const { count } = await prisma.workoutSession.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more WorkoutSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkoutSessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many WorkoutSessions * const workoutSession = await prisma.workoutSession.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one WorkoutSession. * @param {WorkoutSessionUpsertArgs} args - Arguments to update or create a WorkoutSession. * @example * // Update or create a WorkoutSession * const workoutSession = await prisma.workoutSession.upsert({ * create: { * // ... data to create a WorkoutSession * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the WorkoutSession we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__WorkoutSessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of WorkoutSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkoutSessionCountArgs} args - Arguments to filter WorkoutSessions to count. * @example * // Count the number of WorkoutSessions * const count = await prisma.workoutSession.count({ * where: { * // ... the filter for the WorkoutSessions 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 WorkoutSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkoutSessionAggregateArgs} 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 WorkoutSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WorkoutSessionGroupByArgs} 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 WorkoutSessionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: WorkoutSessionGroupByArgs['orderBy'] } : { orderBy?: WorkoutSessionGroupByArgs['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 ? GetWorkoutSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the WorkoutSession model */ readonly fields: WorkoutSessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for WorkoutSession. * 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__WorkoutSessionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" mesoCycleDay = {}>(args?: Prisma.Subset>): Prisma.Prisma__MesoCycleDayClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> exerciseLogs = {}>(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 WorkoutSession model */ export interface WorkoutSessionFieldRefs { readonly id: Prisma.FieldRef<"WorkoutSession", 'Int'> readonly weekNumber: Prisma.FieldRef<"WorkoutSession", 'Int'> readonly isDeload: Prisma.FieldRef<"WorkoutSession", 'Boolean'> readonly completedAt: Prisma.FieldRef<"WorkoutSession", 'DateTime'> readonly mesoCycleDayId: Prisma.FieldRef<"WorkoutSession", 'Int'> readonly userId: Prisma.FieldRef<"WorkoutSession", 'String'> } // Custom InputTypes /** * WorkoutSession findUnique */ export type WorkoutSessionFindUniqueArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * Filter, which WorkoutSession to fetch. */ where: Prisma.WorkoutSessionWhereUniqueInput } /** * WorkoutSession findUniqueOrThrow */ export type WorkoutSessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * Filter, which WorkoutSession to fetch. */ where: Prisma.WorkoutSessionWhereUniqueInput } /** * WorkoutSession findFirst */ export type WorkoutSessionFindFirstArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * Filter, which WorkoutSession to fetch. */ where?: Prisma.WorkoutSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WorkoutSessions to fetch. */ orderBy?: Prisma.WorkoutSessionOrderByWithRelationInput | Prisma.WorkoutSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WorkoutSessions. */ cursor?: Prisma.WorkoutSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WorkoutSessions 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` WorkoutSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WorkoutSessions. */ distinct?: Prisma.WorkoutSessionScalarFieldEnum | Prisma.WorkoutSessionScalarFieldEnum[] } /** * WorkoutSession findFirstOrThrow */ export type WorkoutSessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * Filter, which WorkoutSession to fetch. */ where?: Prisma.WorkoutSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WorkoutSessions to fetch. */ orderBy?: Prisma.WorkoutSessionOrderByWithRelationInput | Prisma.WorkoutSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WorkoutSessions. */ cursor?: Prisma.WorkoutSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WorkoutSessions 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` WorkoutSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WorkoutSessions. */ distinct?: Prisma.WorkoutSessionScalarFieldEnum | Prisma.WorkoutSessionScalarFieldEnum[] } /** * WorkoutSession findMany */ export type WorkoutSessionFindManyArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * Filter, which WorkoutSessions to fetch. */ where?: Prisma.WorkoutSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WorkoutSessions to fetch. */ orderBy?: Prisma.WorkoutSessionOrderByWithRelationInput | Prisma.WorkoutSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing WorkoutSessions. */ cursor?: Prisma.WorkoutSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WorkoutSessions 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` WorkoutSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WorkoutSessions. */ distinct?: Prisma.WorkoutSessionScalarFieldEnum | Prisma.WorkoutSessionScalarFieldEnum[] } /** * WorkoutSession create */ export type WorkoutSessionCreateArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * The data needed to create a WorkoutSession. */ data: Prisma.XOR } /** * WorkoutSession createMany */ export type WorkoutSessionCreateManyArgs = { /** * The data used to create many WorkoutSessions. */ data: Prisma.WorkoutSessionCreateManyInput | Prisma.WorkoutSessionCreateManyInput[] skipDuplicates?: boolean } /** * WorkoutSession update */ export type WorkoutSessionUpdateArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * The data needed to update a WorkoutSession. */ data: Prisma.XOR /** * Choose, which WorkoutSession to update. */ where: Prisma.WorkoutSessionWhereUniqueInput } /** * WorkoutSession updateMany */ export type WorkoutSessionUpdateManyArgs = { /** * The data used to update WorkoutSessions. */ data: Prisma.XOR /** * Filter which WorkoutSessions to update */ where?: Prisma.WorkoutSessionWhereInput /** * Limit how many WorkoutSessions to update. */ limit?: number } /** * WorkoutSession upsert */ export type WorkoutSessionUpsertArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * The filter to search for the WorkoutSession to update in case it exists. */ where: Prisma.WorkoutSessionWhereUniqueInput /** * In case the WorkoutSession found by the `where` argument doesn't exist, create a new WorkoutSession with this data. */ create: Prisma.XOR /** * In case the WorkoutSession was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * WorkoutSession delete */ export type WorkoutSessionDeleteArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null /** * Filter which WorkoutSession to delete. */ where: Prisma.WorkoutSessionWhereUniqueInput } /** * WorkoutSession deleteMany */ export type WorkoutSessionDeleteManyArgs = { /** * Filter which WorkoutSessions to delete */ where?: Prisma.WorkoutSessionWhereInput /** * Limit how many WorkoutSessions to delete. */ limit?: number } /** * WorkoutSession.exerciseLogs */ export type WorkoutSession$exerciseLogsArgs = { /** * Select specific fields to fetch from the ExerciseLog */ select?: Prisma.ExerciseLogSelect | null /** * Omit specific fields from the ExerciseLog */ omit?: Prisma.ExerciseLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExerciseLogInclude | null where?: Prisma.ExerciseLogWhereInput orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[] cursor?: Prisma.ExerciseLogWhereUniqueInput take?: number skip?: number distinct?: Prisma.ExerciseLogScalarFieldEnum | Prisma.ExerciseLogScalarFieldEnum[] } /** * WorkoutSession without action */ export type WorkoutSessionDefaultArgs = { /** * Select specific fields to fetch from the WorkoutSession */ select?: Prisma.WorkoutSessionSelect | null /** * Omit specific fields from the WorkoutSession */ omit?: Prisma.WorkoutSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.WorkoutSessionInclude | null }