/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `MesoCycle` 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 MesoCycle * */ export type MesoCycleModel = runtime.Types.Result.DefaultSelection export type AggregateMesoCycle = { _count: MesoCycleCountAggregateOutputType | null _avg: MesoCycleAvgAggregateOutputType | null _sum: MesoCycleSumAggregateOutputType | null _min: MesoCycleMinAggregateOutputType | null _max: MesoCycleMaxAggregateOutputType | null } export type MesoCycleAvgAggregateOutputType = { id: number | null totalWeeks: number | null currentWeek: number | null } export type MesoCycleSumAggregateOutputType = { id: number | null totalWeeks: number | null currentWeek: number | null } export type MesoCycleMinAggregateOutputType = { id: number | null name: string | null totalWeeks: number | null currentWeek: number | null isAsync: boolean | null userId: string | null } export type MesoCycleMaxAggregateOutputType = { id: number | null name: string | null totalWeeks: number | null currentWeek: number | null isAsync: boolean | null userId: string | null } export type MesoCycleCountAggregateOutputType = { id: number name: number totalWeeks: number currentWeek: number isAsync: number userId: number _all: number } export type MesoCycleAvgAggregateInputType = { id?: true totalWeeks?: true currentWeek?: true } export type MesoCycleSumAggregateInputType = { id?: true totalWeeks?: true currentWeek?: true } export type MesoCycleMinAggregateInputType = { id?: true name?: true totalWeeks?: true currentWeek?: true isAsync?: true userId?: true } export type MesoCycleMaxAggregateInputType = { id?: true name?: true totalWeeks?: true currentWeek?: true isAsync?: true userId?: true } export type MesoCycleCountAggregateInputType = { id?: true name?: true totalWeeks?: true currentWeek?: true isAsync?: true userId?: true _all?: true } export type MesoCycleAggregateArgs = { /** * Filter which MesoCycle to aggregate. */ where?: Prisma.MesoCycleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MesoCycles to fetch. */ orderBy?: Prisma.MesoCycleOrderByWithRelationInput | Prisma.MesoCycleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.MesoCycleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MesoCycles 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` MesoCycles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned MesoCycles **/ _count?: true | MesoCycleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: MesoCycleAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: MesoCycleSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MesoCycleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MesoCycleMaxAggregateInputType } export type GetMesoCycleAggregateType = { [P in keyof T & keyof AggregateMesoCycle]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type MesoCycleGroupByArgs = { where?: Prisma.MesoCycleWhereInput orderBy?: Prisma.MesoCycleOrderByWithAggregationInput | Prisma.MesoCycleOrderByWithAggregationInput[] by: Prisma.MesoCycleScalarFieldEnum[] | Prisma.MesoCycleScalarFieldEnum having?: Prisma.MesoCycleScalarWhereWithAggregatesInput take?: number skip?: number _count?: MesoCycleCountAggregateInputType | true _avg?: MesoCycleAvgAggregateInputType _sum?: MesoCycleSumAggregateInputType _min?: MesoCycleMinAggregateInputType _max?: MesoCycleMaxAggregateInputType } export type MesoCycleGroupByOutputType = { id: number name: string totalWeeks: number currentWeek: number isAsync: boolean userId: string _count: MesoCycleCountAggregateOutputType | null _avg: MesoCycleAvgAggregateOutputType | null _sum: MesoCycleSumAggregateOutputType | null _min: MesoCycleMinAggregateOutputType | null _max: MesoCycleMaxAggregateOutputType | null } type GetMesoCycleGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof MesoCycleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type MesoCycleWhereInput = { AND?: Prisma.MesoCycleWhereInput | Prisma.MesoCycleWhereInput[] OR?: Prisma.MesoCycleWhereInput[] NOT?: Prisma.MesoCycleWhereInput | Prisma.MesoCycleWhereInput[] id?: Prisma.IntFilter<"MesoCycle"> | number name?: Prisma.StringFilter<"MesoCycle"> | string totalWeeks?: Prisma.IntFilter<"MesoCycle"> | number currentWeek?: Prisma.IntFilter<"MesoCycle"> | number isAsync?: Prisma.BoolFilter<"MesoCycle"> | boolean userId?: Prisma.StringFilter<"MesoCycle"> | string user?: Prisma.XOR mesoCycleDays?: Prisma.MesoCycleDayListRelationFilter } export type MesoCycleOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder totalWeeks?: Prisma.SortOrder currentWeek?: Prisma.SortOrder isAsync?: Prisma.SortOrder userId?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput mesoCycleDays?: Prisma.MesoCycleDayOrderByRelationAggregateInput _relevance?: Prisma.MesoCycleOrderByRelevanceInput } export type MesoCycleWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.MesoCycleWhereInput | Prisma.MesoCycleWhereInput[] OR?: Prisma.MesoCycleWhereInput[] NOT?: Prisma.MesoCycleWhereInput | Prisma.MesoCycleWhereInput[] name?: Prisma.StringFilter<"MesoCycle"> | string totalWeeks?: Prisma.IntFilter<"MesoCycle"> | number currentWeek?: Prisma.IntFilter<"MesoCycle"> | number isAsync?: Prisma.BoolFilter<"MesoCycle"> | boolean userId?: Prisma.StringFilter<"MesoCycle"> | string user?: Prisma.XOR mesoCycleDays?: Prisma.MesoCycleDayListRelationFilter }, "id"> export type MesoCycleOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder totalWeeks?: Prisma.SortOrder currentWeek?: Prisma.SortOrder isAsync?: Prisma.SortOrder userId?: Prisma.SortOrder _count?: Prisma.MesoCycleCountOrderByAggregateInput _avg?: Prisma.MesoCycleAvgOrderByAggregateInput _max?: Prisma.MesoCycleMaxOrderByAggregateInput _min?: Prisma.MesoCycleMinOrderByAggregateInput _sum?: Prisma.MesoCycleSumOrderByAggregateInput } export type MesoCycleScalarWhereWithAggregatesInput = { AND?: Prisma.MesoCycleScalarWhereWithAggregatesInput | Prisma.MesoCycleScalarWhereWithAggregatesInput[] OR?: Prisma.MesoCycleScalarWhereWithAggregatesInput[] NOT?: Prisma.MesoCycleScalarWhereWithAggregatesInput | Prisma.MesoCycleScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"MesoCycle"> | number name?: Prisma.StringWithAggregatesFilter<"MesoCycle"> | string totalWeeks?: Prisma.IntWithAggregatesFilter<"MesoCycle"> | number currentWeek?: Prisma.IntWithAggregatesFilter<"MesoCycle"> | number isAsync?: Prisma.BoolWithAggregatesFilter<"MesoCycle"> | boolean userId?: Prisma.StringWithAggregatesFilter<"MesoCycle"> | string } export type MesoCycleCreateInput = { name: string totalWeeks: number currentWeek: number isAsync: boolean user: Prisma.UserCreateNestedOneWithoutMesoCycleInput mesoCycleDays?: Prisma.MesoCycleDayCreateNestedManyWithoutMesoCycleInput } export type MesoCycleUncheckedCreateInput = { id?: number name: string totalWeeks: number currentWeek: number isAsync: boolean userId: string mesoCycleDays?: Prisma.MesoCycleDayUncheckedCreateNestedManyWithoutMesoCycleInput } export type MesoCycleUpdateInput = { name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean user?: Prisma.UserUpdateOneRequiredWithoutMesoCycleNestedInput mesoCycleDays?: Prisma.MesoCycleDayUpdateManyWithoutMesoCycleNestedInput } export type MesoCycleUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean userId?: Prisma.StringFieldUpdateOperationsInput | string mesoCycleDays?: Prisma.MesoCycleDayUncheckedUpdateManyWithoutMesoCycleNestedInput } export type MesoCycleCreateManyInput = { id?: number name: string totalWeeks: number currentWeek: number isAsync: boolean userId: string } export type MesoCycleUpdateManyMutationInput = { name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type MesoCycleUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean userId?: Prisma.StringFieldUpdateOperationsInput | string } export type MesoCycleListRelationFilter = { every?: Prisma.MesoCycleWhereInput some?: Prisma.MesoCycleWhereInput none?: Prisma.MesoCycleWhereInput } export type MesoCycleOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type MesoCycleOrderByRelevanceInput = { fields: Prisma.MesoCycleOrderByRelevanceFieldEnum | Prisma.MesoCycleOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type MesoCycleCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder totalWeeks?: Prisma.SortOrder currentWeek?: Prisma.SortOrder isAsync?: Prisma.SortOrder userId?: Prisma.SortOrder } export type MesoCycleAvgOrderByAggregateInput = { id?: Prisma.SortOrder totalWeeks?: Prisma.SortOrder currentWeek?: Prisma.SortOrder } export type MesoCycleMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder totalWeeks?: Prisma.SortOrder currentWeek?: Prisma.SortOrder isAsync?: Prisma.SortOrder userId?: Prisma.SortOrder } export type MesoCycleMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder totalWeeks?: Prisma.SortOrder currentWeek?: Prisma.SortOrder isAsync?: Prisma.SortOrder userId?: Prisma.SortOrder } export type MesoCycleSumOrderByAggregateInput = { id?: Prisma.SortOrder totalWeeks?: Prisma.SortOrder currentWeek?: Prisma.SortOrder } export type MesoCycleScalarRelationFilter = { is?: Prisma.MesoCycleWhereInput isNot?: Prisma.MesoCycleWhereInput } export type MesoCycleCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.MesoCycleCreateWithoutUserInput[] | Prisma.MesoCycleUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.MesoCycleCreateOrConnectWithoutUserInput | Prisma.MesoCycleCreateOrConnectWithoutUserInput[] createMany?: Prisma.MesoCycleCreateManyUserInputEnvelope connect?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] } export type MesoCycleUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.MesoCycleCreateWithoutUserInput[] | Prisma.MesoCycleUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.MesoCycleCreateOrConnectWithoutUserInput | Prisma.MesoCycleCreateOrConnectWithoutUserInput[] createMany?: Prisma.MesoCycleCreateManyUserInputEnvelope connect?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] } export type MesoCycleUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.MesoCycleCreateWithoutUserInput[] | Prisma.MesoCycleUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.MesoCycleCreateOrConnectWithoutUserInput | Prisma.MesoCycleCreateOrConnectWithoutUserInput[] upsert?: Prisma.MesoCycleUpsertWithWhereUniqueWithoutUserInput | Prisma.MesoCycleUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.MesoCycleCreateManyUserInputEnvelope set?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] disconnect?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] delete?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] connect?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] update?: Prisma.MesoCycleUpdateWithWhereUniqueWithoutUserInput | Prisma.MesoCycleUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.MesoCycleUpdateManyWithWhereWithoutUserInput | Prisma.MesoCycleUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.MesoCycleScalarWhereInput | Prisma.MesoCycleScalarWhereInput[] } export type MesoCycleUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.MesoCycleCreateWithoutUserInput[] | Prisma.MesoCycleUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.MesoCycleCreateOrConnectWithoutUserInput | Prisma.MesoCycleCreateOrConnectWithoutUserInput[] upsert?: Prisma.MesoCycleUpsertWithWhereUniqueWithoutUserInput | Prisma.MesoCycleUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.MesoCycleCreateManyUserInputEnvelope set?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] disconnect?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] delete?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] connect?: Prisma.MesoCycleWhereUniqueInput | Prisma.MesoCycleWhereUniqueInput[] update?: Prisma.MesoCycleUpdateWithWhereUniqueWithoutUserInput | Prisma.MesoCycleUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.MesoCycleUpdateManyWithWhereWithoutUserInput | Prisma.MesoCycleUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.MesoCycleScalarWhereInput | Prisma.MesoCycleScalarWhereInput[] } export type MesoCycleCreateNestedOneWithoutMesoCycleDaysInput = { create?: Prisma.XOR connectOrCreate?: Prisma.MesoCycleCreateOrConnectWithoutMesoCycleDaysInput connect?: Prisma.MesoCycleWhereUniqueInput } export type MesoCycleUpdateOneRequiredWithoutMesoCycleDaysNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.MesoCycleCreateOrConnectWithoutMesoCycleDaysInput upsert?: Prisma.MesoCycleUpsertWithoutMesoCycleDaysInput connect?: Prisma.MesoCycleWhereUniqueInput update?: Prisma.XOR, Prisma.MesoCycleUncheckedUpdateWithoutMesoCycleDaysInput> } export type MesoCycleCreateWithoutUserInput = { name: string totalWeeks: number currentWeek: number isAsync: boolean mesoCycleDays?: Prisma.MesoCycleDayCreateNestedManyWithoutMesoCycleInput } export type MesoCycleUncheckedCreateWithoutUserInput = { id?: number name: string totalWeeks: number currentWeek: number isAsync: boolean mesoCycleDays?: Prisma.MesoCycleDayUncheckedCreateNestedManyWithoutMesoCycleInput } export type MesoCycleCreateOrConnectWithoutUserInput = { where: Prisma.MesoCycleWhereUniqueInput create: Prisma.XOR } export type MesoCycleCreateManyUserInputEnvelope = { data: Prisma.MesoCycleCreateManyUserInput | Prisma.MesoCycleCreateManyUserInput[] skipDuplicates?: boolean } export type MesoCycleUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.MesoCycleWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type MesoCycleUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.MesoCycleWhereUniqueInput data: Prisma.XOR } export type MesoCycleUpdateManyWithWhereWithoutUserInput = { where: Prisma.MesoCycleScalarWhereInput data: Prisma.XOR } export type MesoCycleScalarWhereInput = { AND?: Prisma.MesoCycleScalarWhereInput | Prisma.MesoCycleScalarWhereInput[] OR?: Prisma.MesoCycleScalarWhereInput[] NOT?: Prisma.MesoCycleScalarWhereInput | Prisma.MesoCycleScalarWhereInput[] id?: Prisma.IntFilter<"MesoCycle"> | number name?: Prisma.StringFilter<"MesoCycle"> | string totalWeeks?: Prisma.IntFilter<"MesoCycle"> | number currentWeek?: Prisma.IntFilter<"MesoCycle"> | number isAsync?: Prisma.BoolFilter<"MesoCycle"> | boolean userId?: Prisma.StringFilter<"MesoCycle"> | string } export type MesoCycleCreateWithoutMesoCycleDaysInput = { name: string totalWeeks: number currentWeek: number isAsync: boolean user: Prisma.UserCreateNestedOneWithoutMesoCycleInput } export type MesoCycleUncheckedCreateWithoutMesoCycleDaysInput = { id?: number name: string totalWeeks: number currentWeek: number isAsync: boolean userId: string } export type MesoCycleCreateOrConnectWithoutMesoCycleDaysInput = { where: Prisma.MesoCycleWhereUniqueInput create: Prisma.XOR } export type MesoCycleUpsertWithoutMesoCycleDaysInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.MesoCycleWhereInput } export type MesoCycleUpdateToOneWithWhereWithoutMesoCycleDaysInput = { where?: Prisma.MesoCycleWhereInput data: Prisma.XOR } export type MesoCycleUpdateWithoutMesoCycleDaysInput = { name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean user?: Prisma.UserUpdateOneRequiredWithoutMesoCycleNestedInput } export type MesoCycleUncheckedUpdateWithoutMesoCycleDaysInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean userId?: Prisma.StringFieldUpdateOperationsInput | string } export type MesoCycleCreateManyUserInput = { id?: number name: string totalWeeks: number currentWeek: number isAsync: boolean } export type MesoCycleUpdateWithoutUserInput = { name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean mesoCycleDays?: Prisma.MesoCycleDayUpdateManyWithoutMesoCycleNestedInput } export type MesoCycleUncheckedUpdateWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean mesoCycleDays?: Prisma.MesoCycleDayUncheckedUpdateManyWithoutMesoCycleNestedInput } export type MesoCycleUncheckedUpdateManyWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string totalWeeks?: Prisma.IntFieldUpdateOperationsInput | number currentWeek?: Prisma.IntFieldUpdateOperationsInput | number isAsync?: Prisma.BoolFieldUpdateOperationsInput | boolean } /** * Count Type MesoCycleCountOutputType */ export type MesoCycleCountOutputType = { mesoCycleDays: number } export type MesoCycleCountOutputTypeSelect = { mesoCycleDays?: boolean | MesoCycleCountOutputTypeCountMesoCycleDaysArgs } /** * MesoCycleCountOutputType without action */ export type MesoCycleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the MesoCycleCountOutputType */ select?: Prisma.MesoCycleCountOutputTypeSelect | null } /** * MesoCycleCountOutputType without action */ export type MesoCycleCountOutputTypeCountMesoCycleDaysArgs = { where?: Prisma.MesoCycleDayWhereInput } export type MesoCycleSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean totalWeeks?: boolean currentWeek?: boolean isAsync?: boolean userId?: boolean user?: boolean | Prisma.UserDefaultArgs mesoCycleDays?: boolean | Prisma.MesoCycle$mesoCycleDaysArgs _count?: boolean | Prisma.MesoCycleCountOutputTypeDefaultArgs }, ExtArgs["result"]["mesoCycle"]> export type MesoCycleSelectScalar = { id?: boolean name?: boolean totalWeeks?: boolean currentWeek?: boolean isAsync?: boolean userId?: boolean } export type MesoCycleOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "totalWeeks" | "currentWeek" | "isAsync" | "userId", ExtArgs["result"]["mesoCycle"]> export type MesoCycleInclude = { user?: boolean | Prisma.UserDefaultArgs mesoCycleDays?: boolean | Prisma.MesoCycle$mesoCycleDaysArgs _count?: boolean | Prisma.MesoCycleCountOutputTypeDefaultArgs } export type $MesoCyclePayload = { name: "MesoCycle" objects: { user: Prisma.$UserPayload mesoCycleDays: Prisma.$MesoCycleDayPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number name: string totalWeeks: number currentWeek: number isAsync: boolean userId: string }, ExtArgs["result"]["mesoCycle"]> composites: {} } export type MesoCycleGetPayload = runtime.Types.Result.GetResult export type MesoCycleCountArgs = Omit & { select?: MesoCycleCountAggregateInputType | true } export interface MesoCycleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['MesoCycle'], meta: { name: 'MesoCycle' } } /** * Find zero or one MesoCycle that matches the filter. * @param {MesoCycleFindUniqueArgs} args - Arguments to find a MesoCycle * @example * // Get one MesoCycle * const mesoCycle = await prisma.mesoCycle.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one MesoCycle that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MesoCycleFindUniqueOrThrowArgs} args - Arguments to find a MesoCycle * @example * // Get one MesoCycle * const mesoCycle = await prisma.mesoCycle.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first MesoCycle 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 {MesoCycleFindFirstArgs} args - Arguments to find a MesoCycle * @example * // Get one MesoCycle * const mesoCycle = await prisma.mesoCycle.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first MesoCycle 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 {MesoCycleFindFirstOrThrowArgs} args - Arguments to find a MesoCycle * @example * // Get one MesoCycle * const mesoCycle = await prisma.mesoCycle.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more MesoCycles 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 {MesoCycleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all MesoCycles * const mesoCycles = await prisma.mesoCycle.findMany() * * // Get first 10 MesoCycles * const mesoCycles = await prisma.mesoCycle.findMany({ take: 10 }) * * // Only select the `id` * const mesoCycleWithIdOnly = await prisma.mesoCycle.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a MesoCycle. * @param {MesoCycleCreateArgs} args - Arguments to create a MesoCycle. * @example * // Create one MesoCycle * const MesoCycle = await prisma.mesoCycle.create({ * data: { * // ... data to create a MesoCycle * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many MesoCycles. * @param {MesoCycleCreateManyArgs} args - Arguments to create many MesoCycles. * @example * // Create many MesoCycles * const mesoCycle = await prisma.mesoCycle.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a MesoCycle. * @param {MesoCycleDeleteArgs} args - Arguments to delete one MesoCycle. * @example * // Delete one MesoCycle * const MesoCycle = await prisma.mesoCycle.delete({ * where: { * // ... filter to delete one MesoCycle * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one MesoCycle. * @param {MesoCycleUpdateArgs} args - Arguments to update one MesoCycle. * @example * // Update one MesoCycle * const mesoCycle = await prisma.mesoCycle.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more MesoCycles. * @param {MesoCycleDeleteManyArgs} args - Arguments to filter MesoCycles to delete. * @example * // Delete a few MesoCycles * const { count } = await prisma.mesoCycle.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MesoCycles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MesoCycleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many MesoCycles * const mesoCycle = await prisma.mesoCycle.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one MesoCycle. * @param {MesoCycleUpsertArgs} args - Arguments to update or create a MesoCycle. * @example * // Update or create a MesoCycle * const mesoCycle = await prisma.mesoCycle.upsert({ * create: { * // ... data to create a MesoCycle * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the MesoCycle we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of MesoCycles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MesoCycleCountArgs} args - Arguments to filter MesoCycles to count. * @example * // Count the number of MesoCycles * const count = await prisma.mesoCycle.count({ * where: { * // ... the filter for the MesoCycles 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 MesoCycle. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MesoCycleAggregateArgs} 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 MesoCycle. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MesoCycleGroupByArgs} 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 MesoCycleGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: MesoCycleGroupByArgs['orderBy'] } : { orderBy?: MesoCycleGroupByArgs['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 ? GetMesoCycleGroupByPayload : Prisma.PrismaPromise /** * Fields of the MesoCycle model */ readonly fields: MesoCycleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for MesoCycle. * 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__MesoCycleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> mesoCycleDays = {}>(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 MesoCycle model */ export interface MesoCycleFieldRefs { readonly id: Prisma.FieldRef<"MesoCycle", 'Int'> readonly name: Prisma.FieldRef<"MesoCycle", 'String'> readonly totalWeeks: Prisma.FieldRef<"MesoCycle", 'Int'> readonly currentWeek: Prisma.FieldRef<"MesoCycle", 'Int'> readonly isAsync: Prisma.FieldRef<"MesoCycle", 'Boolean'> readonly userId: Prisma.FieldRef<"MesoCycle", 'String'> } // Custom InputTypes /** * MesoCycle findUnique */ export type MesoCycleFindUniqueArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * Filter, which MesoCycle to fetch. */ where: Prisma.MesoCycleWhereUniqueInput } /** * MesoCycle findUniqueOrThrow */ export type MesoCycleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * Filter, which MesoCycle to fetch. */ where: Prisma.MesoCycleWhereUniqueInput } /** * MesoCycle findFirst */ export type MesoCycleFindFirstArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * Filter, which MesoCycle to fetch. */ where?: Prisma.MesoCycleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MesoCycles to fetch. */ orderBy?: Prisma.MesoCycleOrderByWithRelationInput | Prisma.MesoCycleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MesoCycles. */ cursor?: Prisma.MesoCycleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MesoCycles 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` MesoCycles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MesoCycles. */ distinct?: Prisma.MesoCycleScalarFieldEnum | Prisma.MesoCycleScalarFieldEnum[] } /** * MesoCycle findFirstOrThrow */ export type MesoCycleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * Filter, which MesoCycle to fetch. */ where?: Prisma.MesoCycleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MesoCycles to fetch. */ orderBy?: Prisma.MesoCycleOrderByWithRelationInput | Prisma.MesoCycleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MesoCycles. */ cursor?: Prisma.MesoCycleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MesoCycles 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` MesoCycles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MesoCycles. */ distinct?: Prisma.MesoCycleScalarFieldEnum | Prisma.MesoCycleScalarFieldEnum[] } /** * MesoCycle findMany */ export type MesoCycleFindManyArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * Filter, which MesoCycles to fetch. */ where?: Prisma.MesoCycleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MesoCycles to fetch. */ orderBy?: Prisma.MesoCycleOrderByWithRelationInput | Prisma.MesoCycleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing MesoCycles. */ cursor?: Prisma.MesoCycleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MesoCycles 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` MesoCycles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MesoCycles. */ distinct?: Prisma.MesoCycleScalarFieldEnum | Prisma.MesoCycleScalarFieldEnum[] } /** * MesoCycle create */ export type MesoCycleCreateArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * The data needed to create a MesoCycle. */ data: Prisma.XOR } /** * MesoCycle createMany */ export type MesoCycleCreateManyArgs = { /** * The data used to create many MesoCycles. */ data: Prisma.MesoCycleCreateManyInput | Prisma.MesoCycleCreateManyInput[] skipDuplicates?: boolean } /** * MesoCycle update */ export type MesoCycleUpdateArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * The data needed to update a MesoCycle. */ data: Prisma.XOR /** * Choose, which MesoCycle to update. */ where: Prisma.MesoCycleWhereUniqueInput } /** * MesoCycle updateMany */ export type MesoCycleUpdateManyArgs = { /** * The data used to update MesoCycles. */ data: Prisma.XOR /** * Filter which MesoCycles to update */ where?: Prisma.MesoCycleWhereInput /** * Limit how many MesoCycles to update. */ limit?: number } /** * MesoCycle upsert */ export type MesoCycleUpsertArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * The filter to search for the MesoCycle to update in case it exists. */ where: Prisma.MesoCycleWhereUniqueInput /** * In case the MesoCycle found by the `where` argument doesn't exist, create a new MesoCycle with this data. */ create: Prisma.XOR /** * In case the MesoCycle was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * MesoCycle delete */ export type MesoCycleDeleteArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null /** * Filter which MesoCycle to delete. */ where: Prisma.MesoCycleWhereUniqueInput } /** * MesoCycle deleteMany */ export type MesoCycleDeleteManyArgs = { /** * Filter which MesoCycles to delete */ where?: Prisma.MesoCycleWhereInput /** * Limit how many MesoCycles to delete. */ limit?: number } /** * MesoCycle.mesoCycleDays */ export type MesoCycle$mesoCycleDaysArgs = { /** * Select specific fields to fetch from the MesoCycleDay */ select?: Prisma.MesoCycleDaySelect | null /** * Omit specific fields from the MesoCycleDay */ omit?: Prisma.MesoCycleDayOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleDayInclude | null where?: Prisma.MesoCycleDayWhereInput orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[] cursor?: Prisma.MesoCycleDayWhereUniqueInput take?: number skip?: number distinct?: Prisma.MesoCycleDayScalarFieldEnum | Prisma.MesoCycleDayScalarFieldEnum[] } /** * MesoCycle without action */ export type MesoCycleDefaultArgs = { /** * Select specific fields to fetch from the MesoCycle */ select?: Prisma.MesoCycleSelect | null /** * Omit specific fields from the MesoCycle */ omit?: Prisma.MesoCycleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MesoCycleInclude | null }