diff --git a/.env b/.env new file mode 100644 index 0000000..8fc9c1d --- /dev/null +++ b/.env @@ -0,0 +1,9 @@ +DATABASE_URL="mysql://root:pwm88ncc@r3l4x.com:3306/strengthApp" +DATABASE_USER="root" +DATABASE_PASSWORD="pwm88ncc" +DATABASE_NAME="strengthApp" +DATABASE_HOST="r3l4x.com" +DATABASE_PORT=3306 + +BETTER_AUTH_SECRET=QCOebJ3HUrPbCnZJeOj4WklBmDZqLJQk +BETTER_AUTH_URL=http://localhost:3000 # Base URL of your app diff --git a/.gitignore b/.gitignore index 1a386ec..2eff1ac 100644 --- a/.gitignore +++ b/.gitignore @@ -16,11 +16,11 @@ _.log report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json # dotenv environment variable files -.env -.env.development.local -.env.test.local -.env.production.local -.env.local +#.env +#.env.development.local +#.env.test.local +#.env.production.local +#.env.local # caches .eslintcache @@ -33,4 +33,4 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json # Finder (MacOS) folder config .DS_Store -/generated/prisma +#/generated/prisma diff --git a/generated/prisma/browser.ts b/generated/prisma/browser.ts new file mode 100644 index 0000000..c8db02f --- /dev/null +++ b/generated/prisma/browser.ts @@ -0,0 +1,74 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma-related types and utilities in a browser. + * Use it to get access to models, enums, and input types. + * + * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. + * See `client.ts` for the standard, server-side entry point. + * + * 🟢 You can import this file directly. + */ + +import * as Prisma from './internal/prismaNamespaceBrowser.ts' +export { Prisma } +export * as $Enums from './enums.ts' +export * from './enums.ts'; +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Session + * + */ +export type Session = Prisma.SessionModel +/** + * Model Account + * + */ +export type Account = Prisma.AccountModel +/** + * Model Verification + * + */ +export type Verification = Prisma.VerificationModel +/** + * Model Exercise + * + */ +export type Exercise = Prisma.ExerciseModel +/** + * Model MesoCycle + * + */ +export type MesoCycle = Prisma.MesoCycleModel +/** + * Model MesoCycleDay + * + */ +export type MesoCycleDay = Prisma.MesoCycleDayModel +/** + * Model MesoCycleExercise + * + */ +export type MesoCycleExercise = Prisma.MesoCycleExerciseModel +/** + * Model WorkoutSession + * + */ +export type WorkoutSession = Prisma.WorkoutSessionModel +/** + * Model ExerciseLog + * + */ +export type ExerciseLog = Prisma.ExerciseLogModel +/** + * Model SessionFeedback + * + */ +export type SessionFeedback = Prisma.SessionFeedbackModel diff --git a/generated/prisma/client.ts b/generated/prisma/client.ts new file mode 100644 index 0000000..d3eeca9 --- /dev/null +++ b/generated/prisma/client.ts @@ -0,0 +1,98 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. + * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. + * + * 🟢 You can import this file directly. + */ + +import * as process from 'node:process' +import * as path from 'node:path' +import { fileURLToPath } from 'node:url' +globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) + +import * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums.ts" +import * as $Class from "./internal/class.ts" +import * as Prisma from "./internal/prismaNamespace.ts" + +export * as $Enums from './enums.ts' +export * from "./enums.ts" +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) + * }) + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ +export const PrismaClient = $Class.getPrismaClientClass() +export type PrismaClient = $Class.PrismaClient +export { Prisma } + +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Session + * + */ +export type Session = Prisma.SessionModel +/** + * Model Account + * + */ +export type Account = Prisma.AccountModel +/** + * Model Verification + * + */ +export type Verification = Prisma.VerificationModel +/** + * Model Exercise + * + */ +export type Exercise = Prisma.ExerciseModel +/** + * Model MesoCycle + * + */ +export type MesoCycle = Prisma.MesoCycleModel +/** + * Model MesoCycleDay + * + */ +export type MesoCycleDay = Prisma.MesoCycleDayModel +/** + * Model MesoCycleExercise + * + */ +export type MesoCycleExercise = Prisma.MesoCycleExerciseModel +/** + * Model WorkoutSession + * + */ +export type WorkoutSession = Prisma.WorkoutSessionModel +/** + * Model ExerciseLog + * + */ +export type ExerciseLog = Prisma.ExerciseLogModel +/** + * Model SessionFeedback + * + */ +export type SessionFeedback = Prisma.SessionFeedbackModel diff --git a/generated/prisma/commonInputTypes.ts b/generated/prisma/commonInputTypes.ts new file mode 100644 index 0000000..196eaf0 --- /dev/null +++ b/generated/prisma/commonInputTypes.ts @@ -0,0 +1,410 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports various common sort, input & filter types that are not directly linked to a particular model. + * + * 🟢 You can import this file directly. + */ + +import type * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums.ts" +import type * as Prisma from "./internal/prismaNamespace.ts" + + +export type StringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] + notIn?: string[] + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + search?: string + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type BoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type StringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | null + notIn?: string[] | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + search?: string + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type DateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] + notIn?: Date[] | string[] + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type SortOrderInput = { + sort: Prisma.SortOrder + nulls?: Prisma.NullsOrder +} + +export type StringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] + notIn?: string[] + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + search?: string + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type BoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | null + notIn?: string[] | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + search?: string + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] + notIn?: Date[] | string[] + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type DateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | null + notIn?: Date[] | string[] | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | null + notIn?: Date[] | string[] | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type IntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type DecimalFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type IntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type DecimalWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalFilter<$PrismaModel> + _min?: Prisma.NestedDecimalFilter<$PrismaModel> + _max?: Prisma.NestedDecimalFilter<$PrismaModel> +} + +export type NestedStringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] + notIn?: string[] + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + search?: string + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type NestedStringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | null + notIn?: string[] | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + search?: string + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type NestedDateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] + notIn?: Date[] | string[] + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] + notIn?: string[] + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + search?: string + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedIntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | null + notIn?: string[] | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + search?: string + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type NestedIntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | null + notIn?: number[] | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] + notIn?: Date[] | string[] + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type NestedDateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | null + notIn?: Date[] | string[] | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | null + notIn?: Date[] | string[] | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type NestedDecimalFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type NestedFloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalFilter<$PrismaModel> + _min?: Prisma.NestedDecimalFilter<$PrismaModel> + _max?: Prisma.NestedDecimalFilter<$PrismaModel> +} + + diff --git a/generated/prisma/enums.ts b/generated/prisma/enums.ts new file mode 100644 index 0000000..043572d --- /dev/null +++ b/generated/prisma/enums.ts @@ -0,0 +1,15 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* +* This file exports all enum related types from the schema. +* +* 🟢 You can import this file directly. +*/ + + + +// This file is empty because there are no enums in the schema. +export {} diff --git a/generated/prisma/internal/class.ts b/generated/prisma/internal/class.ts new file mode 100644 index 0000000..71bc8d8 --- /dev/null +++ b/generated/prisma/internal/class.ts @@ -0,0 +1,304 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * Please import the `PrismaClient` class from the `client.ts` file instead. + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "./prismaNamespace.ts" + + +const config: runtime.GetPrismaClientConfig = { + "previewFeatures": [], + "clientVersion": "7.5.0", + "engineVersion": "280c870be64f457428992c43c1f6d557fab6e29e", + "activeProvider": "mysql", + "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Get a free hosted Postgres database in seconds: `npx create-db`\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"mysql\"\n}\n\nmodel User {\n id String @id\n name String @db.Text\n email String\n emailVerified Boolean @default(false)\n image String? @db.Text\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n sessions Session[]\n accounts Account[]\n mesoCycle MesoCycle[]\n workoutSession WorkoutSession[]\n\n @@unique([email])\n @@map(\"user\")\n}\n\nmodel Session {\n id String @id\n expiresAt DateTime\n token String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n ipAddress String? @db.Text\n userAgent String? @db.Text\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([token])\n @@index([userId(length: 191)])\n @@map(\"session\")\n}\n\nmodel Account {\n id String @id\n accountId String @db.Text\n providerId String @db.Text\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n accessToken String? @db.Text\n refreshToken String? @db.Text\n idToken String? @db.Text\n accessTokenExpiresAt DateTime?\n refreshTokenExpiresAt DateTime?\n scope String? @db.Text\n password String? @db.Text\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([userId(length: 191)])\n @@map(\"account\")\n}\n\nmodel Verification {\n id String @id\n identifier String @db.Text\n value String @db.Text\n expiresAt DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([identifier(length: 191)])\n @@map(\"verification\")\n}\n\nmodel Exercise {\n id Int @id @default(autoincrement())\n name String\n muscleGroup String\n SFR Decimal\n\n mesoCycleExercises MesoCycleExercise[]\n}\n\nmodel MesoCycle {\n id Int @id @default(autoincrement())\n name String\n totalWeeks Int\n currentWeek Int\n isAsync Boolean\n user User @relation(fields: [userId], references: [id])\n userId String\n mesoCycleDays MesoCycleDay[]\n}\n\nmodel MesoCycleDay {\n id Int @id @default(autoincrement())\n weekday String? // If async === NULL\n orderIndex Int\n mesoCycle MesoCycle @relation(fields: [mesoCycleId], references: [id])\n mesoCycleId Int\n\n mesoCycleExercises MesoCycleExercise[]\n workOutSessions WorkoutSession[]\n}\n\nmodel MesoCycleExercise {\n id Int @id @default(autoincrement())\n startingSets Int\n orderIndex Int\n\n mesoCycleDay MesoCycleDay @relation(fields: [mesoCycleDayId], references: [id])\n mesoCycleDayId Int\n\n exercise Exercise @relation(fields: [exerciseId], references: [id])\n exerciseId Int\n exerciseLogs ExerciseLog[]\n}\n\nmodel WorkoutSession {\n id Int @id @default(autoincrement())\n weekNumber Int\n isDeload Boolean\n completedAt DateTime? // Null until finished\n mesoCycleDay MesoCycleDay @relation(fields: [mesoCycleDayId], references: [id])\n mesoCycleDayId Int\n user User @relation(fields: [userId], references: [id])\n userId String\n exerciseLogs ExerciseLog[]\n}\n\nmodel ExerciseLog {\n id Int @id @default(autoincrement())\n sets Int\n reps Int\n weight Decimal\n workoutSession WorkoutSession @relation(fields: [workoutSessionId], references: [id])\n workoutSessionId Int\n\n mesoCycleExercise MesoCycleExercise @relation(fields: [mesoCycleExerciseId], references: [id])\n mesoCycleExerciseId Int\n\n sessionFeedbacks SessionFeedback[]\n}\n\nmodel SessionFeedback {\n id Int @id @default(autoincrement())\n question String\n answer String\n\n exerciseLog ExerciseLog @relation(fields: [exerciseLogId], references: [id])\n exerciseLogId Int\n}\n", + "runtimeDataModel": { + "models": {}, + "enums": {}, + "types": {} + }, + "parameterizationSchema": { + "strings": [], + "graph": "" + } +} + +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"image\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"accounts\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToUser\"},{\"name\":\"mesoCycle\",\"kind\":\"object\",\"type\":\"MesoCycle\",\"relationName\":\"MesoCycleToUser\"},{\"name\":\"workoutSession\",\"kind\":\"object\",\"type\":\"WorkoutSession\",\"relationName\":\"UserToWorkoutSession\"}],\"dbName\":\"user\"},\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"ipAddress\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userAgent\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"}],\"dbName\":\"session\"},\"Account\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accountId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"providerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"AccountToUser\"},{\"name\":\"accessToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refreshToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"idToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accessTokenExpiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"refreshTokenExpiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"scope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"account\"},\"Verification\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"verification\"},\"Exercise\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"muscleGroup\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"SFR\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"mesoCycleExercises\",\"kind\":\"object\",\"type\":\"MesoCycleExercise\",\"relationName\":\"ExerciseToMesoCycleExercise\"}],\"dbName\":null},\"MesoCycle\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"totalWeeks\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"currentWeek\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isAsync\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"MesoCycleToUser\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mesoCycleDays\",\"kind\":\"object\",\"type\":\"MesoCycleDay\",\"relationName\":\"MesoCycleToMesoCycleDay\"}],\"dbName\":null},\"MesoCycleDay\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"weekday\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"orderIndex\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mesoCycle\",\"kind\":\"object\",\"type\":\"MesoCycle\",\"relationName\":\"MesoCycleToMesoCycleDay\"},{\"name\":\"mesoCycleId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mesoCycleExercises\",\"kind\":\"object\",\"type\":\"MesoCycleExercise\",\"relationName\":\"MesoCycleDayToMesoCycleExercise\"},{\"name\":\"workOutSessions\",\"kind\":\"object\",\"type\":\"WorkoutSession\",\"relationName\":\"MesoCycleDayToWorkoutSession\"}],\"dbName\":null},\"MesoCycleExercise\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"startingSets\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"orderIndex\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mesoCycleDay\",\"kind\":\"object\",\"type\":\"MesoCycleDay\",\"relationName\":\"MesoCycleDayToMesoCycleExercise\"},{\"name\":\"mesoCycleDayId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"exercise\",\"kind\":\"object\",\"type\":\"Exercise\",\"relationName\":\"ExerciseToMesoCycleExercise\"},{\"name\":\"exerciseId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"exerciseLogs\",\"kind\":\"object\",\"type\":\"ExerciseLog\",\"relationName\":\"ExerciseLogToMesoCycleExercise\"}],\"dbName\":null},\"WorkoutSession\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"weekNumber\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isDeload\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"completedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"mesoCycleDay\",\"kind\":\"object\",\"type\":\"MesoCycleDay\",\"relationName\":\"MesoCycleDayToWorkoutSession\"},{\"name\":\"mesoCycleDayId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToWorkoutSession\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"exerciseLogs\",\"kind\":\"object\",\"type\":\"ExerciseLog\",\"relationName\":\"ExerciseLogToWorkoutSession\"}],\"dbName\":null},\"ExerciseLog\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"sets\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"reps\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"weight\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"workoutSession\",\"kind\":\"object\",\"type\":\"WorkoutSession\",\"relationName\":\"ExerciseLogToWorkoutSession\"},{\"name\":\"workoutSessionId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mesoCycleExercise\",\"kind\":\"object\",\"type\":\"MesoCycleExercise\",\"relationName\":\"ExerciseLogToMesoCycleExercise\"},{\"name\":\"mesoCycleExerciseId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"sessionFeedbacks\",\"kind\":\"object\",\"type\":\"SessionFeedback\",\"relationName\":\"ExerciseLogToSessionFeedback\"}],\"dbName\":null},\"SessionFeedback\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"question\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"answer\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"exerciseLog\",\"kind\":\"object\",\"type\":\"ExerciseLog\",\"relationName\":\"ExerciseLogToSessionFeedback\"},{\"name\":\"exerciseLogId\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") +config.parameterizationSchema = { + strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"user\",\"sessions\",\"accounts\",\"mesoCycle\",\"mesoCycleDay\",\"mesoCycleExercises\",\"_count\",\"exercise\",\"exerciseLogs\",\"workoutSession\",\"mesoCycleExercise\",\"exerciseLog\",\"sessionFeedbacks\",\"workOutSessions\",\"mesoCycleDays\",\"User.findUnique\",\"User.findUniqueOrThrow\",\"User.findFirst\",\"User.findFirstOrThrow\",\"User.findMany\",\"data\",\"User.createOne\",\"User.createMany\",\"User.updateOne\",\"User.updateMany\",\"create\",\"update\",\"User.upsertOne\",\"User.deleteOne\",\"User.deleteMany\",\"having\",\"_min\",\"_max\",\"User.groupBy\",\"User.aggregate\",\"Session.findUnique\",\"Session.findUniqueOrThrow\",\"Session.findFirst\",\"Session.findFirstOrThrow\",\"Session.findMany\",\"Session.createOne\",\"Session.createMany\",\"Session.updateOne\",\"Session.updateMany\",\"Session.upsertOne\",\"Session.deleteOne\",\"Session.deleteMany\",\"Session.groupBy\",\"Session.aggregate\",\"Account.findUnique\",\"Account.findUniqueOrThrow\",\"Account.findFirst\",\"Account.findFirstOrThrow\",\"Account.findMany\",\"Account.createOne\",\"Account.createMany\",\"Account.updateOne\",\"Account.updateMany\",\"Account.upsertOne\",\"Account.deleteOne\",\"Account.deleteMany\",\"Account.groupBy\",\"Account.aggregate\",\"Verification.findUnique\",\"Verification.findUniqueOrThrow\",\"Verification.findFirst\",\"Verification.findFirstOrThrow\",\"Verification.findMany\",\"Verification.createOne\",\"Verification.createMany\",\"Verification.updateOne\",\"Verification.updateMany\",\"Verification.upsertOne\",\"Verification.deleteOne\",\"Verification.deleteMany\",\"Verification.groupBy\",\"Verification.aggregate\",\"Exercise.findUnique\",\"Exercise.findUniqueOrThrow\",\"Exercise.findFirst\",\"Exercise.findFirstOrThrow\",\"Exercise.findMany\",\"Exercise.createOne\",\"Exercise.createMany\",\"Exercise.updateOne\",\"Exercise.updateMany\",\"Exercise.upsertOne\",\"Exercise.deleteOne\",\"Exercise.deleteMany\",\"_avg\",\"_sum\",\"Exercise.groupBy\",\"Exercise.aggregate\",\"MesoCycle.findUnique\",\"MesoCycle.findUniqueOrThrow\",\"MesoCycle.findFirst\",\"MesoCycle.findFirstOrThrow\",\"MesoCycle.findMany\",\"MesoCycle.createOne\",\"MesoCycle.createMany\",\"MesoCycle.updateOne\",\"MesoCycle.updateMany\",\"MesoCycle.upsertOne\",\"MesoCycle.deleteOne\",\"MesoCycle.deleteMany\",\"MesoCycle.groupBy\",\"MesoCycle.aggregate\",\"MesoCycleDay.findUnique\",\"MesoCycleDay.findUniqueOrThrow\",\"MesoCycleDay.findFirst\",\"MesoCycleDay.findFirstOrThrow\",\"MesoCycleDay.findMany\",\"MesoCycleDay.createOne\",\"MesoCycleDay.createMany\",\"MesoCycleDay.updateOne\",\"MesoCycleDay.updateMany\",\"MesoCycleDay.upsertOne\",\"MesoCycleDay.deleteOne\",\"MesoCycleDay.deleteMany\",\"MesoCycleDay.groupBy\",\"MesoCycleDay.aggregate\",\"MesoCycleExercise.findUnique\",\"MesoCycleExercise.findUniqueOrThrow\",\"MesoCycleExercise.findFirst\",\"MesoCycleExercise.findFirstOrThrow\",\"MesoCycleExercise.findMany\",\"MesoCycleExercise.createOne\",\"MesoCycleExercise.createMany\",\"MesoCycleExercise.updateOne\",\"MesoCycleExercise.updateMany\",\"MesoCycleExercise.upsertOne\",\"MesoCycleExercise.deleteOne\",\"MesoCycleExercise.deleteMany\",\"MesoCycleExercise.groupBy\",\"MesoCycleExercise.aggregate\",\"WorkoutSession.findUnique\",\"WorkoutSession.findUniqueOrThrow\",\"WorkoutSession.findFirst\",\"WorkoutSession.findFirstOrThrow\",\"WorkoutSession.findMany\",\"WorkoutSession.createOne\",\"WorkoutSession.createMany\",\"WorkoutSession.updateOne\",\"WorkoutSession.updateMany\",\"WorkoutSession.upsertOne\",\"WorkoutSession.deleteOne\",\"WorkoutSession.deleteMany\",\"WorkoutSession.groupBy\",\"WorkoutSession.aggregate\",\"ExerciseLog.findUnique\",\"ExerciseLog.findUniqueOrThrow\",\"ExerciseLog.findFirst\",\"ExerciseLog.findFirstOrThrow\",\"ExerciseLog.findMany\",\"ExerciseLog.createOne\",\"ExerciseLog.createMany\",\"ExerciseLog.updateOne\",\"ExerciseLog.updateMany\",\"ExerciseLog.upsertOne\",\"ExerciseLog.deleteOne\",\"ExerciseLog.deleteMany\",\"ExerciseLog.groupBy\",\"ExerciseLog.aggregate\",\"SessionFeedback.findUnique\",\"SessionFeedback.findUniqueOrThrow\",\"SessionFeedback.findFirst\",\"SessionFeedback.findFirstOrThrow\",\"SessionFeedback.findMany\",\"SessionFeedback.createOne\",\"SessionFeedback.createMany\",\"SessionFeedback.updateOne\",\"SessionFeedback.updateMany\",\"SessionFeedback.upsertOne\",\"SessionFeedback.deleteOne\",\"SessionFeedback.deleteMany\",\"SessionFeedback.groupBy\",\"SessionFeedback.aggregate\",\"AND\",\"OR\",\"NOT\",\"id\",\"question\",\"answer\",\"exerciseLogId\",\"equals\",\"in\",\"notIn\",\"lt\",\"lte\",\"gt\",\"gte\",\"contains\",\"startsWith\",\"endsWith\",\"search\",\"not\",\"sets\",\"reps\",\"weight\",\"workoutSessionId\",\"mesoCycleExerciseId\",\"weekNumber\",\"isDeload\",\"completedAt\",\"mesoCycleDayId\",\"userId\",\"startingSets\",\"orderIndex\",\"exerciseId\",\"weekday\",\"mesoCycleId\",\"name\",\"totalWeeks\",\"currentWeek\",\"isAsync\",\"muscleGroup\",\"SFR\",\"every\",\"some\",\"none\",\"identifier\",\"value\",\"expiresAt\",\"createdAt\",\"updatedAt\",\"accountId\",\"providerId\",\"accessToken\",\"refreshToken\",\"idToken\",\"accessTokenExpiresAt\",\"refreshTokenExpiresAt\",\"scope\",\"password\",\"token\",\"ipAddress\",\"userAgent\",\"email\",\"emailVerified\",\"image\",\"is\",\"isNot\",\"connectOrCreate\",\"upsert\",\"createMany\",\"set\",\"disconnect\",\"delete\",\"connect\",\"updateMany\",\"deleteMany\",\"_relevance\",\"increment\",\"decrement\",\"multiply\",\"divide\"]"), + graph: "jgVYmgEOBAAAwAIAIAUAAMECACAGAADCAgAgDAAAwwIAILQBAAC9AgAwtQEAADIAELYBAAC9AgAwtwEBAAAAAdYBAQCxAgAh4gFAALkCACHjAUAAuQIAIfABAQAAAAHxASAAvgIAIfIBAQC_AgAhAQAAAAEAIAwDAADHAgAgtAEAANYCADC1AQAAAwAQtgEAANYCADC3AQEAsQIAIdABAQCxAgAh4QFAALkCACHiAUAAuQIAIeMBQAC5AgAh7QEBALECACHuAQEAvwIAIe8BAQC_AgAhBAMAAL4EACDuAQAA-AIAIO8BAAD4AgAg_gEAAMwEACAMAwAAxwIAILQBAADWAgAwtQEAAAMAELYBAADWAgAwtwEBAAAAAdABAQCxAgAh4QFAALkCACHiAUAAuQIAIeMBQAC5AgAh7QEBAAAAAe4BAQC_AgAh7wEBAL8CACEDAAAAAwAgAQAABAAwAgAABQAgEQMAAMcCACC0AQAA1QIAMLUBAAAHABC2AQAA1QIAMLcBAQCxAgAh0AEBALECACHiAUAAuQIAIeMBQAC5AgAh5AEBALECACHlAQEAsQIAIeYBAQC_AgAh5wEBAL8CACHoAQEAvwIAIekBQADFAgAh6gFAAMUCACHrAQEAvwIAIewBAQC_AgAhCQMAAL4EACDmAQAA-AIAIOcBAAD4AgAg6AEAAPgCACDpAQAA-AIAIOoBAAD4AgAg6wEAAPgCACDsAQAA-AIAIP4BAADLBAAgEQMAAMcCACC0AQAA1QIAMLUBAAAHABC2AQAA1QIAMLcBAQAAAAHQAQEAsQIAIeIBQAC5AgAh4wFAALkCACHkAQEAsQIAIeUBAQCxAgAh5gEBAL8CACHnAQEAvwIAIegBAQC_AgAh6QFAAMUCACHqAUAAxQIAIesBAQC_AgAh7AEBAL8CACEDAAAABwAgAQAACAAwAgAACQAgCwMAAMcCACARAADUAgAgtAEAANMCADC1AQAACwAQtgEAANMCADC3AQIAsAIAIdABAQCxAgAh1gEBALECACHXAQIAsAIAIdgBAgCwAgAh2QEgAL4CACEDAwAAvgQAIBEAAMkEACD-AQAAygQAIAsDAADHAgAgEQAA1AIAILQBAADTAgAwtQEAAAsAELYBAADTAgAwtwECAAAAAdABAQCxAgAh1gEBALECACHXAQIAsAIAIdgBAgCwAgAh2QEgAL4CACEDAAAACwAgAQAADAAwAgAADQAgCgYAANICACAIAACzAgAgEAAAwwIAILQBAADRAgAwtQEAAA8AELYBAADRAgAwtwECALACACHSAQIAsAIAIdQBAQC_AgAh1QECALACACEFBgAAxwQAIAgAAO8DACAQAAC7BAAg1AEAAPgCACD-AQAAyAQAIAoGAADSAgAgCAAAswIAIBAAAMMCACC0AQAA0QIAMLUBAAAPABC2AQAA0QIAMLcBAgAAAAHSAQIAsAIAIdQBAQC_AgAh1QECALACACEDAAAADwAgAQAAEAAwAgAAEQAgCwcAAMYCACAKAADQAgAgCwAAyAIAILQBAADPAgAwtQEAABMAELYBAADPAgAwtwECALACACHPAQIAsAIAIdEBAgCwAgAh0gECALACACHTAQIAsAIAIQMHAAC9BAAgCgAAxgQAIAsAAL8EACALBwAAxgIAIAoAANACACALAADIAgAgtAEAAM8CADC1AQAAEwAQtgEAAM8CADC3AQIAAAABzwECALACACHRAQIAsAIAIdIBAgCwAgAh0wECALACACEDAAAAEwAgAQAAFAAwAgAAFQAgAwAAABMAIAEAABQAMAIAABUAIAEAAAATACAMDAAAzAIAIA0AAM0CACAPAADOAgAgtAEAAMsCADC1AQAAGQAQtgEAAMsCADC3AQIAsAIAIccBAgCwAgAhyAECALACACHJARAAsgIAIcoBAgCwAgAhywECALACACEDDAAAwwQAIA0AAMQEACAPAADFBAAgDAwAAMwCACANAADNAgAgDwAAzgIAILQBAADLAgAwtQEAABkAELYBAADLAgAwtwECAAAAAccBAgCwAgAhyAECALACACHJARAAsgIAIcoBAgCwAgAhywECALACACEDAAAAGQAgAQAAGgAwAgAAGwAgAwAAABkAIAEAABoAMAIAABsAIAEAAAAZACAIDgAAygIAILQBAADJAgAwtQEAAB8AELYBAADJAgAwtwECALACACG4AQEAsQIAIbkBAQCxAgAhugECALACACECDgAAwQQAIP4BAADCBAAgCA4AAMoCACC0AQAAyQIAMLUBAAAfABC2AQAAyQIAMLcBAgAAAAG4AQEAsQIAIbkBAQCxAgAhugECALACACEDAAAAHwAgAQAAIAAwAgAAIQAgAQAAAB8AIAEAAAAZACAMAwAAxwIAIAcAAMYCACALAADIAgAgtAEAAMQCADC1AQAAJQAQtgEAAMQCADC3AQIAsAIAIcwBAgCwAgAhzQEgAL4CACHOAUAAxQIAIc8BAgCwAgAh0AEBALECACEFAwAAvgQAIAcAAL0EACALAAC_BAAgzgEAAPgCACD-AQAAwAQAIAwDAADHAgAgBwAAxgIAIAsAAMgCACC0AQAAxAIAMLUBAAAlABC2AQAAxAIAMLcBAgAAAAHMAQIAsAIAIc0BIAC-AgAhzgFAAMUCACHPAQIAsAIAIdABAQCxAgAhAwAAACUAIAEAACYAMAIAACcAIAEAAAATACABAAAAJQAgAQAAAA8AIAMAAAAlACABAAAmADACAAAnACABAAAAAwAgAQAAAAcAIAEAAAALACABAAAAJQAgAQAAAAEAIA4EAADAAgAgBQAAwQIAIAYAAMICACAMAADDAgAgtAEAAL0CADC1AQAAMgAQtgEAAL0CADC3AQEAsQIAIdYBAQCxAgAh4gFAALkCACHjAUAAuQIAIfABAQCxAgAh8QEgAL4CACHyAQEAvwIAIQYEAAC4BAAgBQAAuQQAIAYAALoEACAMAAC7BAAg8gEAAPgCACD-AQAAvAQAIAMAAAAyACABAAAzADACAAABACADAAAAMgAgAQAAMwAwAgAAAQAgAwAAADIAIAEAADMAMAIAAAEAIAsEAAC0BAAgBQAAtQQAIAYAALYEACAMAAC3BAAgtwEBAAAAAdYBAQAAAAHiAUAAAAAB4wFAAAAAAfABAQAAAAHxASAAAAAB8gEBAAAAAQEXAAA3ACAHtwEBAAAAAdYBAQAAAAHiAUAAAAAB4wFAAAAAAfABAQAAAAHxASAAAAAB8gEBAAAAAQEXAAA5ADALBAAAgwQAIAUAAIQEACAGAACFBAAgDAAAhgQAILcBAQDcAgAh1gEBANwCACHiAUAA9AMAIeMBQAD0AwAh8AEBANwCACHxASAA_gIAIfIBAQCrAwAhAgAAAAEAIBcAADsAIAe3AQEA3AIAIdYBAQDcAgAh4gFAAPQDACHjAUAA9AMAIfABAQDcAgAh8QEgAP4CACHyAQEAqwMAIQIAAAAyACAXAAA9ACADAAAAAQAgHAAANwAgHQAAOwAgAQAAAAEAIAEAAAAyACAECQAAgAQAICIAAIIEACAjAACBBAAg8gEAAPgCACAKtAEAALwCADC1AQAAQwAQtgEAALwCADC3AQEAlgIAIdYBAQCWAgAh4gFAALUCACHjAUAAtQIAIfABAQCWAgAh8QEgAKECACHyAQEAqgIAIQMAAAAyACABAABCADAhAABDACADAAAAMgAgAQAAMwAwAgAAAQAgAQAAAAUAIAEAAAAFACADAAAAAwAgAQAABAAwAgAABQAgAwAAAAMAIAEAAAQAMAIAAAUAIAMAAAADACABAAAEADACAAAFACAJAwAA_wMAILcBAQAAAAHQAQEAAAAB4QFAAAAAAeIBQAAAAAHjAUAAAAAB7QEBAAAAAe4BAQAAAAHvAQEAAAABARcAAEsAIAi3AQEAAAAB0AEBAAAAAeEBQAAAAAHiAUAAAAAB4wFAAAAAAe0BAQAAAAHuAQEAAAAB7wEBAAAAAQEXAABNADAJAwAA_gMAILcBAQDcAgAh0AEBANwCACHhAUAA9AMAIeIBQAD0AwAh4wFAAPQDACHtAQEA3AIAIe4BAQCrAwAh7wEBAKsDACECAAAABQAgFwAATwAgCLcBAQDcAgAh0AEBANwCACHhAUAA9AMAIeIBQAD0AwAh4wFAAPQDACHtAQEA3AIAIe4BAQCrAwAh7wEBAKsDACECAAAAAwAgFwAAUQAgAwAAAAUAIBwAAEsAIB0AAE8AIAEAAAAFACABAAAAAwAgBQkAAPsDACAiAAD9AwAgIwAA_AMAIO4BAAD4AgAg7wEAAPgCACALtAEAALsCADC1AQAAVwAQtgEAALsCADC3AQEAlgIAIdABAQCWAgAh4QFAALUCACHiAUAAtQIAIeMBQAC1AgAh7QEBAJYCACHuAQEAqgIAIe8BAQCqAgAhAwAAAAMAIAEAAFYAMCEAAFcAIAMAAAADACABAAAEADACAAAFACABAAAACQAgAQAAAAkAIAMAAAAHACABAAAIADACAAAJACADAAAABwAgAQAACAAwAgAACQAgAwAAAAcAIAEAAAgAMAIAAAkAIA4DAAD6AwAgtwEBAAAAAdABAQAAAAHiAUAAAAAB4wFAAAAAAeQBAQAAAAHlAQEAAAAB5gEBAAAAAecBAQAAAAHoAQEAAAAB6QFAAAAAAeoBQAAAAAHrAQEAAAAB7AEBAAAAAQEXAABfACANtwEBAAAAAdABAQAAAAHiAUAAAAAB4wFAAAAAAeQBAQAAAAHlAQEAAAAB5gEBAAAAAecBAQAAAAHoAQEAAAAB6QFAAAAAAeoBQAAAAAHrAQEAAAAB7AEBAAAAAQEXAABhADAOAwAA-QMAILcBAQDcAgAh0AEBANwCACHiAUAA9AMAIeMBQAD0AwAh5AEBANwCACHlAQEA3AIAIeYBAQCrAwAh5wEBAKsDACHoAQEAqwMAIekBQAD_AgAh6gFAAP8CACHrAQEAqwMAIewBAQCrAwAhAgAAAAkAIBcAAGMAIA23AQEA3AIAIdABAQDcAgAh4gFAAPQDACHjAUAA9AMAIeQBAQDcAgAh5QEBANwCACHmAQEAqwMAIecBAQCrAwAh6AEBAKsDACHpAUAA_wIAIeoBQAD_AgAh6wEBAKsDACHsAQEAqwMAIQIAAAAHACAXAABlACADAAAACQAgHAAAXwAgHQAAYwAgAQAAAAkAIAEAAAAHACAKCQAA9gMAICIAAPgDACAjAAD3AwAg5gEAAPgCACDnAQAA-AIAIOgBAAD4AgAg6QEAAPgCACDqAQAA-AIAIOsBAAD4AgAg7AEAAPgCACAQtAEAALoCADC1AQAAawAQtgEAALoCADC3AQEAlgIAIdABAQCWAgAh4gFAALUCACHjAUAAtQIAIeQBAQCWAgAh5QEBAJYCACHmAQEAqgIAIecBAQCqAgAh6AEBAKoCACHpAUAAogIAIeoBQACiAgAh6wEBAKoCACHsAQEAqgIAIQMAAAAHACABAABqADAhAABrACADAAAABwAgAQAACAAwAgAACQAgCbQBAAC4AgAwtQEAAHEAELYBAAC4AgAwtwEBAAAAAd8BAQCxAgAh4AEBALECACHhAUAAuQIAIeIBQAC5AgAh4wFAALkCACEBAAAAbgAgAQAAAG4AIAm0AQAAuAIAMLUBAABxABC2AQAAuAIAMLcBAQCxAgAh3wEBALECACHgAQEAsQIAIeEBQAC5AgAh4gFAALkCACHjAUAAuQIAIQH-AQAA9QMAIAMAAABxACABAAByADACAABuACADAAAAcQAgAQAAcgAwAgAAbgAgAwAAAHEAIAEAAHIAMAIAAG4AIAa3AQEAAAAB3wEBAAAAAeABAQAAAAHhAUAAAAAB4gFAAAAAAeMBQAAAAAEBFwAAdgAgBrcBAQAAAAHfAQEAAAAB4AEBAAAAAeEBQAAAAAHiAUAAAAAB4wFAAAAAAQEXAAB4ADAGtwEBANwCACHfAQEA3AIAIeABAQDcAgAh4QFAAPQDACHiAUAA9AMAIeMBQAD0AwAhAgAAAG4AIBcAAHoAIAa3AQEA3AIAId8BAQDcAgAh4AEBANwCACHhAUAA9AMAIeIBQAD0AwAh4wFAAPQDACECAAAAcQAgFwAAfAAgAwAAAG4AIBwAAHYAIB0AAHoAIAEAAABuACABAAAAcQAgAwkAAPEDACAiAADzAwAgIwAA8gMAIAm0AQAAtAIAMLUBAACCAQAQtgEAALQCADC3AQEAlgIAId8BAQCWAgAh4AEBAJYCACHhAUAAtQIAIeIBQAC1AgAh4wFAALUCACEDAAAAcQAgAQAAgQEAMCEAAIIBACADAAAAcQAgAQAAcgAwAgAAbgAgCAgAALMCACC0AQAArwIAMLUBAACIAQAQtgEAAK8CADC3AQIAAAAB1gEBALECACHaAQEAsQIAIdsBEACyAgAhAQAAAIUBACABAAAAhQEAIAgIAACzAgAgtAEAAK8CADC1AQAAiAEAELYBAACvAgAwtwECALACACHWAQEAsQIAIdoBAQCxAgAh2wEQALICACECCAAA7wMAIP4BAADwAwAgAwAAAIgBACABAACJAQAwAgAAhQEAIAMAAACIAQAgAQAAiQEAMAIAAIUBACADAAAAiAEAIAEAAIkBADACAACFAQAgBQgAAO4DACC3AQIAAAAB1gEBAAAAAdoBAQAAAAHbARAAAAABARcAAI0BACAEtwECAAAAAdYBAQAAAAHaAQEAAAAB2wEQAAAAAQEXAACPAQAwBQgAAOQDACC3AQIA3QIAIdYBAQDcAgAh2gEBANwCACHbARAA5QIAIQIAAACFAQAgFwAAkQEAIAS3AQIA3QIAIdYBAQDcAgAh2gEBANwCACHbARAA5QIAIQIAAACIAQAgFwAAkwEAIAMAAACFAQAgHAAAjQEAIB0AAJEBACABAAAAhQEAIAEAAACIAQAgBQkAAN8DACAiAADiAwAgIwAA4QMAIFwAAOADACBdAADjAwAgB7QBAACuAgAwtQEAAJkBABC2AQAArgIAMLcBAgCVAgAh1gEBAJYCACHaAQEAlgIAIdsBEACdAgAhAwAAAIgBACABAACYAQAwIQAAmQEAIAMAAACIAQAgAQAAiQEAMAIAAIUBACABAAAADQAgAQAAAA0AIAMAAAALACABAAAMADACAAANACADAAAACwAgAQAADAAwAgAADQAgAwAAAAsAIAEAAAwAMAIAAA0AIAgDAADdAwAgEQAA3gMAILcBAgAAAAHQAQEAAAAB1gEBAAAAAdcBAgAAAAHYAQIAAAAB2QEgAAAAAQEXAAChAQAgBrcBAgAAAAHQAQEAAAAB1gEBAAAAAdcBAgAAAAHYAQIAAAAB2QEgAAAAAQEXAACjAQAwCAMAAM8DACARAADQAwAgtwECAN0CACHQAQEA3AIAIdYBAQDcAgAh1wECAN0CACHYAQIA3QIAIdkBIAD-AgAhAgAAAA0AIBcAAKUBACAGtwECAN0CACHQAQEA3AIAIdYBAQDcAgAh1wECAN0CACHYAQIA3QIAIdkBIAD-AgAhAgAAAAsAIBcAAKcBACADAAAADQAgHAAAoQEAIB0AAKUBACABAAAADQAgAQAAAAsAIAUJAADKAwAgIgAAzQMAICMAAMwDACBcAADLAwAgXQAAzgMAIAm0AQAArQIAMLUBAACtAQAQtgEAAK0CADC3AQIAlQIAIdABAQCWAgAh1gEBAJYCACHXAQIAlQIAIdgBAgCVAgAh2QEgAKECACEDAAAACwAgAQAArAEAMCEAAK0BACADAAAACwAgAQAADAAwAgAADQAgAQAAABEAIAEAAAARACADAAAADwAgAQAAEAAwAgAAEQAgAwAAAA8AIAEAABAAMAIAABEAIAMAAAAPACABAAAQADACAAARACAHBgAAxwMAIAgAAMgDACAQAADJAwAgtwECAAAAAdIBAgAAAAHUAQEAAAAB1QECAAAAAQEXAAC1AQAgBLcBAgAAAAHSAQIAAAAB1AEBAAAAAdUBAgAAAAEBFwAAtwEAMAcGAACsAwAgCAAArQMAIBAAAK4DACC3AQIA3QIAIdIBAgDdAgAh1AEBAKsDACHVAQIA3QIAIQIAAAARACAXAAC5AQAgBLcBAgDdAgAh0gECAN0CACHUAQEAqwMAIdUBAgDdAgAhAgAAAA8AIBcAALsBACADAAAAEQAgHAAAtQEAIB0AALkBACABAAAAEQAgAQAAAA8AIAYJAACmAwAgIgAAqQMAICMAAKgDACBcAACnAwAgXQAAqgMAINQBAAD4AgAgB7QBAACpAgAwtQEAAMEBABC2AQAAqQIAMLcBAgCVAgAh0gECAJUCACHUAQEAqgIAIdUBAgCVAgAhAwAAAA8AIAEAAMABADAhAADBAQAgAwAAAA8AIAEAABAAMAIAABEAIAEAAAAVACABAAAAFQAgAwAAABMAIAEAABQAMAIAABUAIAMAAAATACABAAAUADACAAAVACADAAAAEwAgAQAAFAAwAgAAFQAgCAcAAKMDACAKAACkAwAgCwAApQMAILcBAgAAAAHPAQIAAAAB0QECAAAAAdIBAgAAAAHTAQIAAAABARcAAMkBACAFtwECAAAAAc8BAgAAAAHRAQIAAAAB0gECAAAAAdMBAgAAAAEBFwAAywEAMAgHAACXAwAgCgAAmAMAIAsAAJkDACC3AQIA3QIAIc8BAgDdAgAh0QECAN0CACHSAQIA3QIAIdMBAgDdAgAhAgAAABUAIBcAAM0BACAFtwECAN0CACHPAQIA3QIAIdEBAgDdAgAh0gECAN0CACHTAQIA3QIAIQIAAAATACAXAADPAQAgAwAAABUAIBwAAMkBACAdAADNAQAgAQAAABUAIAEAAAATACAFCQAAkgMAICIAAJUDACAjAACUAwAgXAAAkwMAIF0AAJYDACAItAEAAKgCADC1AQAA1QEAELYBAACoAgAwtwECAJUCACHPAQIAlQIAIdEBAgCVAgAh0gECAJUCACHTAQIAlQIAIQMAAAATACABAADUAQAwIQAA1QEAIAMAAAATACABAAAUADACAAAVACABAAAAJwAgAQAAACcAIAMAAAAlACABAAAmADACAAAnACADAAAAJQAgAQAAJgAwAgAAJwAgAwAAACUAIAEAACYAMAIAACcAIAkDAACQAwAgBwAAjwMAIAsAAJEDACC3AQIAAAABzAECAAAAAc0BIAAAAAHOAUAAAAABzwECAAAAAdABAQAAAAEBFwAA3QEAIAa3AQIAAAABzAECAAAAAc0BIAAAAAHOAUAAAAABzwECAAAAAdABAQAAAAEBFwAA3wEAMAkDAACBAwAgBwAAgAMAIAsAAIIDACC3AQIA3QIAIcwBAgDdAgAhzQEgAP4CACHOAUAA_wIAIc8BAgDdAgAh0AEBANwCACECAAAAJwAgFwAA4QEAIAa3AQIA3QIAIcwBAgDdAgAhzQEgAP4CACHOAUAA_wIAIc8BAgDdAgAh0AEBANwCACECAAAAJQAgFwAA4wEAIAMAAAAnACAcAADdAQAgHQAA4QEAIAEAAAAnACABAAAAJQAgBgkAAPkCACAiAAD8AgAgIwAA-wIAIFwAAPoCACBdAAD9AgAgzgEAAPgCACAJtAEAAKACADC1AQAA6QEAELYBAACgAgAwtwECAJUCACHMAQIAlQIAIc0BIAChAgAhzgFAAKICACHPAQIAlQIAIdABAQCWAgAhAwAAACUAIAEAAOgBADAhAADpAQAgAwAAACUAIAEAACYAMAIAACcAIAEAAAAbACABAAAAGwAgAwAAABkAIAEAABoAMAIAABsAIAMAAAAZACABAAAaADACAAAbACADAAAAGQAgAQAAGgAwAgAAGwAgCQwAAPUCACANAAD2AgAgDwAA9wIAILcBAgAAAAHHAQIAAAAByAECAAAAAckBEAAAAAHKAQIAAAABywECAAAAAQEXAADxAQAgBrcBAgAAAAHHAQIAAAAByAECAAAAAckBEAAAAAHKAQIAAAABywECAAAAAQEXAADzAQAwCQwAAOYCACANAADnAgAgDwAA6AIAILcBAgDdAgAhxwECAN0CACHIAQIA3QIAIckBEADlAgAhygECAN0CACHLAQIA3QIAIQIAAAAbACAXAAD1AQAgBrcBAgDdAgAhxwECAN0CACHIAQIA3QIAIckBEADlAgAhygECAN0CACHLAQIA3QIAIQIAAAAZACAXAAD3AQAgAwAAABsAIBwAAPEBACAdAAD1AQAgAQAAABsAIAEAAAAZACAFCQAA4AIAICIAAOMCACAjAADiAgAgXAAA4QIAIF0AAOQCACAJtAEAAJwCADC1AQAA_QEAELYBAACcAgAwtwECAJUCACHHAQIAlQIAIcgBAgCVAgAhyQEQAJ0CACHKAQIAlQIAIcsBAgCVAgAhAwAAABkAIAEAAPwBADAhAAD9AQAgAwAAABkAIAEAABoAMAIAABsAIAEAAAAhACABAAAAIQAgAwAAAB8AIAEAACAAMAIAACEAIAMAAAAfACABAAAgADACAAAhACADAAAAHwAgAQAAIAAwAgAAIQAgBQ4AAN8CACC3AQIAAAABuAEBAAAAAbkBAQAAAAG6AQIAAAABARcAAIUCACAEtwECAAAAAbgBAQAAAAG5AQEAAAABugECAAAAAQEXAACHAgAwBQ4AAN4CACC3AQIA3QIAIbgBAQDcAgAhuQEBANwCACG6AQIA3QIAIQIAAAAhACAXAACJAgAgBLcBAgDdAgAhuAEBANwCACG5AQEA3AIAIboBAgDdAgAhAgAAAB8AIBcAAIsCACADAAAAIQAgHAAAhQIAIB0AAIkCACABAAAAIQAgAQAAAB8AIAUJAADXAgAgIgAA2gIAICMAANkCACBcAADYAgAgXQAA2wIAIAe0AQAAlAIAMLUBAACRAgAQtgEAAJQCADC3AQIAlQIAIbgBAQCWAgAhuQEBAJYCACG6AQIAlQIAIQMAAAAfACABAACQAgAwIQAAkQIAIAMAAAAfACABAAAgADACAAAhACAHtAEAAJQCADC1AQAAkQIAELYBAACUAgAwtwECAJUCACG4AQEAlgIAIbkBAQCWAgAhugECAJUCACENCQAAmAIAICIAAJgCACAjAACYAgAgXAAAmwIAIF0AAJgCACC7AQIAAAABvAECAAAABL0BAgAAAAS-AQIAAAABvwECAAAAAcABAgAAAAHBAQIAAAABxgECAJoCACEPCQAAmAIAICIAAJkCACAjAACZAgAguwEBAAAAAbwBAQAAAAS9AQEAAAAEvgEBAAAAAb8BAQAAAAHAAQEAAAABwQEBAAAAAcIBAQAAAAHDAQEAAAABxAEBAAAAAcUBAQAAAAHGAQEAlwIAIQ8JAACYAgAgIgAAmQIAICMAAJkCACC7AQEAAAABvAEBAAAABL0BAQAAAAS-AQEAAAABvwEBAAAAAcABAQAAAAHBAQEAAAABwgEBAAAAAcMBAQAAAAHEAQEAAAABxQEBAAAAAcYBAQCXAgAhCLsBAgAAAAG8AQIAAAAEvQECAAAABL4BAgAAAAG_AQIAAAABwAECAAAAAcEBAgAAAAHGAQIAmAIAIQy7AQEAAAABvAEBAAAABL0BAQAAAAS-AQEAAAABvwEBAAAAAcABAQAAAAHBAQEAAAABwgEBAAAAAcMBAQAAAAHEAQEAAAABxQEBAAAAAcYBAQCZAgAhDQkAAJgCACAiAACYAgAgIwAAmAIAIFwAAJsCACBdAACYAgAguwECAAAAAbwBAgAAAAS9AQIAAAAEvgECAAAAAb8BAgAAAAHAAQIAAAABwQECAAAAAcYBAgCaAgAhCLsBCAAAAAG8AQgAAAAEvQEIAAAABL4BCAAAAAG_AQgAAAABwAEIAAAAAcEBCAAAAAHGAQgAmwIAIQm0AQAAnAIAMLUBAAD9AQAQtgEAAJwCADC3AQIAlQIAIccBAgCVAgAhyAECAJUCACHJARAAnQIAIcoBAgCVAgAhywECAJUCACENCQAAmAIAICIAAJ8CACAjAACfAgAgXAAAnwIAIF0AAJ8CACC7ARAAAAABvAEQAAAABL0BEAAAAAS-ARAAAAABvwEQAAAAAcABEAAAAAHBARAAAAABxgEQAJ4CACENCQAAmAIAICIAAJ8CACAjAACfAgAgXAAAnwIAIF0AAJ8CACC7ARAAAAABvAEQAAAABL0BEAAAAAS-ARAAAAABvwEQAAAAAcABEAAAAAHBARAAAAABxgEQAJ4CACEIuwEQAAAAAbwBEAAAAAS9ARAAAAAEvgEQAAAAAb8BEAAAAAHAARAAAAABwQEQAAAAAcYBEACfAgAhCbQBAACgAgAwtQEAAOkBABC2AQAAoAIAMLcBAgCVAgAhzAECAJUCACHNASAAoQIAIc4BQACiAgAhzwECAJUCACHQAQEAlgIAIQUJAACYAgAgIgAApwIAICMAAKcCACC7ASAAAAABxgEgAKYCACELCQAApAIAICIAAKUCACAjAAClAgAguwFAAAAAAbwBQAAAAAW9AUAAAAAFvgFAAAAAAb8BQAAAAAHAAUAAAAABwQFAAAAAAcYBQACjAgAhCwkAAKQCACAiAAClAgAgIwAApQIAILsBQAAAAAG8AUAAAAAFvQFAAAAABb4BQAAAAAG_AUAAAAABwAFAAAAAAcEBQAAAAAHGAUAAowIAIQi7AQIAAAABvAECAAAABb0BAgAAAAW-AQIAAAABvwECAAAAAcABAgAAAAHBAQIAAAABxgECAKQCACEIuwFAAAAAAbwBQAAAAAW9AUAAAAAFvgFAAAAAAb8BQAAAAAHAAUAAAAABwQFAAAAAAcYBQAClAgAhBQkAAJgCACAiAACnAgAgIwAApwIAILsBIAAAAAHGASAApgIAIQK7ASAAAAABxgEgAKcCACEItAEAAKgCADC1AQAA1QEAELYBAACoAgAwtwECAJUCACHPAQIAlQIAIdEBAgCVAgAh0gECAJUCACHTAQIAlQIAIQe0AQAAqQIAMLUBAADBAQAQtgEAAKkCADC3AQIAlQIAIdIBAgCVAgAh1AEBAKoCACHVAQIAlQIAIQ8JAACkAgAgIgAArAIAICMAAKwCACC7AQEAAAABvAEBAAAABb0BAQAAAAW-AQEAAAABvwEBAAAAAcABAQAAAAHBAQEAAAABwgEBAAAAAcMBAQAAAAHEAQEAAAABxQEBAAAAAcYBAQCrAgAhDwkAAKQCACAiAACsAgAgIwAArAIAILsBAQAAAAG8AQEAAAAFvQEBAAAABb4BAQAAAAG_AQEAAAABwAEBAAAAAcEBAQAAAAHCAQEAAAABwwEBAAAAAcQBAQAAAAHFAQEAAAABxgEBAKsCACEMuwEBAAAAAbwBAQAAAAW9AQEAAAAFvgEBAAAAAb8BAQAAAAHAAQEAAAABwQEBAAAAAcIBAQAAAAHDAQEAAAABxAEBAAAAAcUBAQAAAAHGAQEArAIAIQm0AQAArQIAMLUBAACtAQAQtgEAAK0CADC3AQIAlQIAIdABAQCWAgAh1gEBAJYCACHXAQIAlQIAIdgBAgCVAgAh2QEgAKECACEHtAEAAK4CADC1AQAAmQEAELYBAACuAgAwtwECAJUCACHWAQEAlgIAIdoBAQCWAgAh2wEQAJ0CACEICAAAswIAILQBAACvAgAwtQEAAIgBABC2AQAArwIAMLcBAgCwAgAh1gEBALECACHaAQEAsQIAIdsBEACyAgAhCLsBAgAAAAG8AQIAAAAEvQECAAAABL4BAgAAAAG_AQIAAAABwAECAAAAAcEBAgAAAAHGAQIAmAIAIQy7AQEAAAABvAEBAAAABL0BAQAAAAS-AQEAAAABvwEBAAAAAcABAQAAAAHBAQEAAAABwgEBAAAAAcMBAQAAAAHEAQEAAAABxQEBAAAAAcYBAQCZAgAhCLsBEAAAAAG8ARAAAAAEvQEQAAAABL4BEAAAAAG_ARAAAAABwAEQAAAAAcEBEAAAAAHGARAAnwIAIQPcAQAAEwAg3QEAABMAIN4BAAATACAJtAEAALQCADC1AQAAggEAELYBAAC0AgAwtwEBAJYCACHfAQEAlgIAIeABAQCWAgAh4QFAALUCACHiAUAAtQIAIeMBQAC1AgAhCwkAAJgCACAiAAC3AgAgIwAAtwIAILsBQAAAAAG8AUAAAAAEvQFAAAAABL4BQAAAAAG_AUAAAAABwAFAAAAAAcEBQAAAAAHGAUAAtgIAIQsJAACYAgAgIgAAtwIAICMAALcCACC7AUAAAAABvAFAAAAABL0BQAAAAAS-AUAAAAABvwFAAAAAAcABQAAAAAHBAUAAAAABxgFAALYCACEIuwFAAAAAAbwBQAAAAAS9AUAAAAAEvgFAAAAAAb8BQAAAAAHAAUAAAAABwQFAAAAAAcYBQAC3AgAhCbQBAAC4AgAwtQEAAHEAELYBAAC4AgAwtwEBALECACHfAQEAsQIAIeABAQCxAgAh4QFAALkCACHiAUAAuQIAIeMBQAC5AgAhCLsBQAAAAAG8AUAAAAAEvQFAAAAABL4BQAAAAAG_AUAAAAABwAFAAAAAAcEBQAAAAAHGAUAAtwIAIRC0AQAAugIAMLUBAABrABC2AQAAugIAMLcBAQCWAgAh0AEBAJYCACHiAUAAtQIAIeMBQAC1AgAh5AEBAJYCACHlAQEAlgIAIeYBAQCqAgAh5wEBAKoCACHoAQEAqgIAIekBQACiAgAh6gFAAKICACHrAQEAqgIAIewBAQCqAgAhC7QBAAC7AgAwtQEAAFcAELYBAAC7AgAwtwEBAJYCACHQAQEAlgIAIeEBQAC1AgAh4gFAALUCACHjAUAAtQIAIe0BAQCWAgAh7gEBAKoCACHvAQEAqgIAIQq0AQAAvAIAMLUBAABDABC2AQAAvAIAMLcBAQCWAgAh1gEBAJYCACHiAUAAtQIAIeMBQAC1AgAh8AEBAJYCACHxASAAoQIAIfIBAQCqAgAhDgQAAMACACAFAADBAgAgBgAAwgIAIAwAAMMCACC0AQAAvQIAMLUBAAAyABC2AQAAvQIAMLcBAQCxAgAh1gEBALECACHiAUAAuQIAIeMBQAC5AgAh8AEBALECACHxASAAvgIAIfIBAQC_AgAhArsBIAAAAAHGASAApwIAIQy7AQEAAAABvAEBAAAABb0BAQAAAAW-AQEAAAABvwEBAAAAAcABAQAAAAHBAQEAAAABwgEBAAAAAcMBAQAAAAHEAQEAAAABxQEBAAAAAcYBAQCsAgAhA9wBAAADACDdAQAAAwAg3gEAAAMAIAPcAQAABwAg3QEAAAcAIN4BAAAHACAD3AEAAAsAIN0BAAALACDeAQAACwAgA9wBAAAlACDdAQAAJQAg3gEAACUAIAwDAADHAgAgBwAAxgIAIAsAAMgCACC0AQAAxAIAMLUBAAAlABC2AQAAxAIAMLcBAgCwAgAhzAECALACACHNASAAvgIAIc4BQADFAgAhzwECALACACHQAQEAsQIAIQi7AUAAAAABvAFAAAAABb0BQAAAAAW-AUAAAAABvwFAAAAAAcABQAAAAAHBAUAAAAABxgFAAKUCACEMBgAA0gIAIAgAALMCACAQAADDAgAgtAEAANECADC1AQAADwAQtgEAANECADC3AQIAsAIAIdIBAgCwAgAh1AEBAL8CACHVAQIAsAIAIfMBAAAPACD0AQAADwAgEAQAAMACACAFAADBAgAgBgAAwgIAIAwAAMMCACC0AQAAvQIAMLUBAAAyABC2AQAAvQIAMLcBAQCxAgAh1gEBALECACHiAUAAuQIAIeMBQAC5AgAh8AEBALECACHxASAAvgIAIfIBAQC_AgAh8wEAADIAIPQBAAAyACAD3AEAABkAIN0BAAAZACDeAQAAGQAgCA4AAMoCACC0AQAAyQIAMLUBAAAfABC2AQAAyQIAMLcBAgCwAgAhuAEBALECACG5AQEAsQIAIboBAgCwAgAhDgwAAMwCACANAADNAgAgDwAAzgIAILQBAADLAgAwtQEAABkAELYBAADLAgAwtwECALACACHHAQIAsAIAIcgBAgCwAgAhyQEQALICACHKAQIAsAIAIcsBAgCwAgAh8wEAABkAIPQBAAAZACAMDAAAzAIAIA0AAM0CACAPAADOAgAgtAEAAMsCADC1AQAAGQAQtgEAAMsCADC3AQIAsAIAIccBAgCwAgAhyAECALACACHJARAAsgIAIcoBAgCwAgAhywECALACACEOAwAAxwIAIAcAAMYCACALAADIAgAgtAEAAMQCADC1AQAAJQAQtgEAAMQCADC3AQIAsAIAIcwBAgCwAgAhzQEgAL4CACHOAUAAxQIAIc8BAgCwAgAh0AEBALECACHzAQAAJQAg9AEAACUAIA0HAADGAgAgCgAA0AIAIAsAAMgCACC0AQAAzwIAMLUBAAATABC2AQAAzwIAMLcBAgCwAgAhzwECALACACHRAQIAsAIAIdIBAgCwAgAh0wECALACACHzAQAAEwAg9AEAABMAIAPcAQAAHwAg3QEAAB8AIN4BAAAfACALBwAAxgIAIAoAANACACALAADIAgAgtAEAAM8CADC1AQAAEwAQtgEAAM8CADC3AQIAsAIAIc8BAgCwAgAh0QECALACACHSAQIAsAIAIdMBAgCwAgAhCggAALMCACC0AQAArwIAMLUBAACIAQAQtgEAAK8CADC3AQIAsAIAIdYBAQCxAgAh2gEBALECACHbARAAsgIAIfMBAACIAQAg9AEAAIgBACAKBgAA0gIAIAgAALMCACAQAADDAgAgtAEAANECADC1AQAADwAQtgEAANECADC3AQIAsAIAIdIBAgCwAgAh1AEBAL8CACHVAQIAsAIAIQ0DAADHAgAgEQAA1AIAILQBAADTAgAwtQEAAAsAELYBAADTAgAwtwECALACACHQAQEAsQIAIdYBAQCxAgAh1wECALACACHYAQIAsAIAIdkBIAC-AgAh8wEAAAsAIPQBAAALACALAwAAxwIAIBEAANQCACC0AQAA0wIAMLUBAAALABC2AQAA0wIAMLcBAgCwAgAh0AEBALECACHWAQEAsQIAIdcBAgCwAgAh2AECALACACHZASAAvgIAIQPcAQAADwAg3QEAAA8AIN4BAAAPACARAwAAxwIAILQBAADVAgAwtQEAAAcAELYBAADVAgAwtwEBALECACHQAQEAsQIAIeIBQAC5AgAh4wFAALkCACHkAQEAsQIAIeUBAQCxAgAh5gEBAL8CACHnAQEAvwIAIegBAQC_AgAh6QFAAMUCACHqAUAAxQIAIesBAQC_AgAh7AEBAL8CACEMAwAAxwIAILQBAADWAgAwtQEAAAMAELYBAADWAgAwtwEBALECACHQAQEAsQIAIeEBQAC5AgAh4gFAALkCACHjAUAAuQIAIe0BAQCxAgAh7gEBAL8CACHvAQEAvwIAIQAAAAAAAfgBAQAAAAEF-AECAAAAAf8BAgAAAAGAAgIAAAABgQICAAAAAYICAgAAAAEFHAAAigUAIB0AAI0FACD1AQAAiwUAIPYBAACMBQAg-wEAABsAIAMcAACKBQAg9QEAAIsFACD7AQAAGwAgAAAAAAAF-AEQAAAAAf8BEAAAAAGAAhAAAAABgQIQAAAAAYICEAAAAAEFHAAAgQUAIB0AAIgFACD1AQAAggUAIPYBAACHBQAg-wEAACcAIAUcAAD_BAAgHQAAhQUAIPUBAACABQAg9gEAAIQFACD7AQAAFQAgCxwAAOkCADAdAADuAgAw9QEAAOoCADD2AQAA6wIAMPcBAADsAgAg-AEAAO0CADD5AQAA7QIAMPoBAADtAgAw-wEAAO0CADD8AQAA7wIAMP0BAADwAgAwA7cBAgAAAAG4AQEAAAABuQEBAAAAAQIAAAAhACAcAAD0AgAgAwAAACEAIBwAAPQCACAdAADzAgAgARcAAIMFADAIDgAAygIAILQBAADJAgAwtQEAAB8AELYBAADJAgAwtwECAAAAAbgBAQCxAgAhuQEBALECACG6AQIAsAIAIQIAAAAhACAXAADzAgAgAgAAAPECACAXAADyAgAgB7QBAADwAgAwtQEAAPECABC2AQAA8AIAMLcBAgCwAgAhuAEBALECACG5AQEAsQIAIboBAgCwAgAhB7QBAADwAgAwtQEAAPECABC2AQAA8AIAMLcBAgCwAgAhuAEBALECACG5AQEAsQIAIboBAgCwAgAhA7cBAgDdAgAhuAEBANwCACG5AQEA3AIAIQO3AQIA3QIAIbgBAQDcAgAhuQEBANwCACEDtwECAAAAAbgBAQAAAAG5AQEAAAABAxwAAIEFACD1AQAAggUAIPsBAAAnACADHAAA_wQAIPUBAACABQAg-wEAABUAIAQcAADpAgAw9QEAAOoCADD3AQAA7AIAIPsBAADtAgAwAAAAAAAAAfgBIAAAAAEB-AFAAAAAAQUcAAD2BAAgHQAA_QQAIPUBAAD3BAAg9gEAAPwEACD7AQAAEQAgBRwAAPQEACAdAAD6BAAg9QEAAPUEACD2AQAA-QQAIPsBAAABACALHAAAgwMAMB0AAIgDADD1AQAAhAMAMPYBAACFAwAw9wEAAIYDACD4AQAAhwMAMPkBAACHAwAw-gEAAIcDADD7AQAAhwMAMPwBAACJAwAw_QEAAIoDADAHDQAA9gIAIA8AAPcCACC3AQIAAAABxwECAAAAAcgBAgAAAAHJARAAAAABywECAAAAAQIAAAAbACAcAACOAwAgAwAAABsAIBwAAI4DACAdAACNAwAgARcAAPgEADAMDAAAzAIAIA0AAM0CACAPAADOAgAgtAEAAMsCADC1AQAAGQAQtgEAAMsCADC3AQIAAAABxwECALACACHIAQIAsAIAIckBEACyAgAhygECALACACHLAQIAsAIAIQIAAAAbACAXAACNAwAgAgAAAIsDACAXAACMAwAgCbQBAACKAwAwtQEAAIsDABC2AQAAigMAMLcBAgCwAgAhxwECALACACHIAQIAsAIAIckBEACyAgAhygECALACACHLAQIAsAIAIQm0AQAAigMAMLUBAACLAwAQtgEAAIoDADC3AQIAsAIAIccBAgCwAgAhyAECALACACHJARAAsgIAIcoBAgCwAgAhywECALACACEFtwECAN0CACHHAQIA3QIAIcgBAgDdAgAhyQEQAOUCACHLAQIA3QIAIQcNAADnAgAgDwAA6AIAILcBAgDdAgAhxwECAN0CACHIAQIA3QIAIckBEADlAgAhywECAN0CACEHDQAA9gIAIA8AAPcCACC3AQIAAAABxwECAAAAAcgBAgAAAAHJARAAAAABywECAAAAAQMcAAD2BAAg9QEAAPcEACD7AQAAEQAgAxwAAPQEACD1AQAA9QQAIPsBAAABACAEHAAAgwMAMPUBAACEAwAw9wEAAIYDACD7AQAAhwMAMAAAAAAABRwAAOsEACAdAADyBAAg9QEAAOwEACD2AQAA8QQAIPsBAAARACAFHAAA6QQAIB0AAO8EACD1AQAA6gQAIPYBAADuBAAg-wEAAIUBACALHAAAmgMAMB0AAJ4DADD1AQAAmwMAMPYBAACcAwAw9wEAAJ0DACD4AQAAhwMAMPkBAACHAwAw-gEAAIcDADD7AQAAhwMAMPwBAACfAwAw_QEAAIoDADAHDAAA9QIAIA8AAPcCACC3AQIAAAABxwECAAAAAcgBAgAAAAHJARAAAAABygECAAAAAQIAAAAbACAcAACiAwAgAwAAABsAIBwAAKIDACAdAAChAwAgARcAAO0EADACAAAAGwAgFwAAoQMAIAIAAACLAwAgFwAAoAMAIAW3AQIA3QIAIccBAgDdAgAhyAECAN0CACHJARAA5QIAIcoBAgDdAgAhBwwAAOYCACAPAADoAgAgtwECAN0CACHHAQIA3QIAIcgBAgDdAgAhyQEQAOUCACHKAQIA3QIAIQcMAAD1AgAgDwAA9wIAILcBAgAAAAHHAQIAAAAByAECAAAAAckBEAAAAAHKAQIAAAABAxwAAOsEACD1AQAA7AQAIPsBAAARACADHAAA6QQAIPUBAADqBAAg-wEAAIUBACAEHAAAmgMAMPUBAACbAwAw9wEAAJ0DACD7AQAAhwMAMAAAAAAAAfgBAQAAAAEFHAAA4gQAIB0AAOcEACD1AQAA4wQAIPYBAADmBAAg-wEAAA0AIAscAAC7AwAwHQAAwAMAMPUBAAC8AwAw9gEAAL0DADD3AQAAvgMAIPgBAAC_AwAw-QEAAL8DADD6AQAAvwMAMPsBAAC_AwAw_AEAAMEDADD9AQAAwgMAMAscAACvAwAwHQAAtAMAMPUBAACwAwAw9gEAALEDADD3AQAAsgMAIPgBAACzAwAw-QEAALMDADD6AQAAswMAMPsBAACzAwAw_AEAALUDADD9AQAAtgMAMAcDAACQAwAgCwAAkQMAILcBAgAAAAHMAQIAAAABzQEgAAAAAc4BQAAAAAHQAQEAAAABAgAAACcAIBwAALoDACADAAAAJwAgHAAAugMAIB0AALkDACABFwAA5QQAMAwDAADHAgAgBwAAxgIAIAsAAMgCACC0AQAAxAIAMLUBAAAlABC2AQAAxAIAMLcBAgAAAAHMAQIAsAIAIc0BIAC-AgAhzgFAAMUCACHPAQIAsAIAIdABAQCxAgAhAgAAACcAIBcAALkDACACAAAAtwMAIBcAALgDACAJtAEAALYDADC1AQAAtwMAELYBAAC2AwAwtwECALACACHMAQIAsAIAIc0BIAC-AgAhzgFAAMUCACHPAQIAsAIAIdABAQCxAgAhCbQBAAC2AwAwtQEAALcDABC2AQAAtgMAMLcBAgCwAgAhzAECALACACHNASAAvgIAIc4BQADFAgAhzwECALACACHQAQEAsQIAIQW3AQIA3QIAIcwBAgDdAgAhzQEgAP4CACHOAUAA_wIAIdABAQDcAgAhBwMAAIEDACALAACCAwAgtwECAN0CACHMAQIA3QIAIc0BIAD-AgAhzgFAAP8CACHQAQEA3AIAIQcDAACQAwAgCwAAkQMAILcBAgAAAAHMAQIAAAABzQEgAAAAAc4BQAAAAAHQAQEAAAABBgoAAKQDACALAAClAwAgtwECAAAAAdEBAgAAAAHSAQIAAAAB0wECAAAAAQIAAAAVACAcAADGAwAgAwAAABUAIBwAAMYDACAdAADFAwAgARcAAOQEADALBwAAxgIAIAoAANACACALAADIAgAgtAEAAM8CADC1AQAAEwAQtgEAAM8CADC3AQIAAAABzwECALACACHRAQIAsAIAIdIBAgCwAgAh0wECALACACECAAAAFQAgFwAAxQMAIAIAAADDAwAgFwAAxAMAIAi0AQAAwgMAMLUBAADDAwAQtgEAAMIDADC3AQIAsAIAIc8BAgCwAgAh0QECALACACHSAQIAsAIAIdMBAgCwAgAhCLQBAADCAwAwtQEAAMMDABC2AQAAwgMAMLcBAgCwAgAhzwECALACACHRAQIAsAIAIdIBAgCwAgAh0wECALACACEEtwECAN0CACHRAQIA3QIAIdIBAgDdAgAh0wECAN0CACEGCgAAmAMAIAsAAJkDACC3AQIA3QIAIdEBAgDdAgAh0gECAN0CACHTAQIA3QIAIQYKAACkAwAgCwAApQMAILcBAgAAAAHRAQIAAAAB0gECAAAAAdMBAgAAAAEDHAAA4gQAIPUBAADjBAAg-wEAAA0AIAQcAAC7AwAw9QEAALwDADD3AQAAvgMAIPsBAAC_AwAwBBwAAK8DADD1AQAAsAMAMPcBAACyAwAg-wEAALMDADAAAAAAAAUcAADcBAAgHQAA4AQAIPUBAADdBAAg9gEAAN8EACD7AQAAAQAgCxwAANEDADAdAADWAwAw9QEAANIDADD2AQAA0wMAMPcBAADUAwAg-AEAANUDADD5AQAA1QMAMPoBAADVAwAw-wEAANUDADD8AQAA1wMAMP0BAADYAwAwBQgAAMgDACAQAADJAwAgtwECAAAAAdIBAgAAAAHUAQEAAAABAgAAABEAIBwAANwDACADAAAAEQAgHAAA3AMAIB0AANsDACABFwAA3gQAMAoGAADSAgAgCAAAswIAIBAAAMMCACC0AQAA0QIAMLUBAAAPABC2AQAA0QIAMLcBAgAAAAHSAQIAsAIAIdQBAQC_AgAh1QECALACACECAAAAEQAgFwAA2wMAIAIAAADZAwAgFwAA2gMAIAe0AQAA2AMAMLUBAADZAwAQtgEAANgDADC3AQIAsAIAIdIBAgCwAgAh1AEBAL8CACHVAQIAsAIAIQe0AQAA2AMAMLUBAADZAwAQtgEAANgDADC3AQIAsAIAIdIBAgCwAgAh1AEBAL8CACHVAQIAsAIAIQO3AQIA3QIAIdIBAgDdAgAh1AEBAKsDACEFCAAArQMAIBAAAK4DACC3AQIA3QIAIdIBAgDdAgAh1AEBAKsDACEFCAAAyAMAIBAAAMkDACC3AQIAAAAB0gECAAAAAdQBAQAAAAEDHAAA3AQAIPUBAADdBAAg-wEAAAEAIAQcAADRAwAw9QEAANIDADD3AQAA1AMAIPsBAADVAwAwAAAAAAALHAAA5QMAMB0AAOkDADD1AQAA5gMAMPYBAADnAwAw9wEAAOgDACD4AQAAvwMAMPkBAAC_AwAw-gEAAL8DADD7AQAAvwMAMPwBAADqAwAw_QEAAMIDADAGBwAAowMAIAsAAKUDACC3AQIAAAABzwECAAAAAdEBAgAAAAHSAQIAAAABAgAAABUAIBwAAO0DACADAAAAFQAgHAAA7QMAIB0AAOwDACABFwAA2wQAMAIAAAAVACAXAADsAwAgAgAAAMMDACAXAADrAwAgBLcBAgDdAgAhzwECAN0CACHRAQIA3QIAIdIBAgDdAgAhBgcAAJcDACALAACZAwAgtwECAN0CACHPAQIA3QIAIdEBAgDdAgAh0gECAN0CACEGBwAAowMAIAsAAKUDACC3AQIAAAABzwECAAAAAdEBAgAAAAHSAQIAAAABBBwAAOUDADD1AQAA5gMAMPcBAADoAwAg-wEAAL8DADAAAcUBAQAAAAEAAAAB-AFAAAAAAQHFAQEAAAABAAAABRwAANYEACAdAADZBAAg9QEAANcEACD2AQAA2AQAIPsBAAABACADHAAA1gQAIPUBAADXBAAg-wEAAAEAIAAAAAUcAADRBAAgHQAA1AQAIPUBAADSBAAg9gEAANMEACD7AQAAAQAgAxwAANEEACD1AQAA0gQAIPsBAAABACAAAAALHAAAqAQAMB0AAK0EADD1AQAAqQQAMPYBAACqBAAw9wEAAKsEACD4AQAArAQAMPkBAACsBAAw-gEAAKwEADD7AQAArAQAMPwBAACuBAAw_QEAAK8EADALHAAAnAQAMB0AAKEEADD1AQAAnQQAMPYBAACeBAAw9wEAAJ8EACD4AQAAoAQAMPkBAACgBAAw-gEAAKAEADD7AQAAoAQAMPwBAACiBAAw_QEAAKMEADALHAAAkAQAMB0AAJUEADD1AQAAkQQAMPYBAACSBAAw9wEAAJMEACD4AQAAlAQAMPkBAACUBAAw-gEAAJQEADD7AQAAlAQAMPwBAACWBAAw_QEAAJcEADALHAAAhwQAMB0AAIsEADD1AQAAiAQAMPYBAACJBAAw9wEAAIoEACD4AQAAswMAMPkBAACzAwAw-gEAALMDADD7AQAAswMAMPwBAACMBAAw_QEAALYDADAHBwAAjwMAIAsAAJEDACC3AQIAAAABzAECAAAAAc0BIAAAAAHOAUAAAAABzwECAAAAAQIAAAAnACAcAACPBAAgAwAAACcAIBwAAI8EACAdAACOBAAgARcAANAEADACAAAAJwAgFwAAjgQAIAIAAAC3AwAgFwAAjQQAIAW3AQIA3QIAIcwBAgDdAgAhzQEgAP4CACHOAUAA_wIAIc8BAgDdAgAhBwcAAIADACALAACCAwAgtwECAN0CACHMAQIA3QIAIc0BIAD-AgAhzgFAAP8CACHPAQIA3QIAIQcHAACPAwAgCwAAkQMAILcBAgAAAAHMAQIAAAABzQEgAAAAAc4BQAAAAAHPAQIAAAABBhEAAN4DACC3AQIAAAAB1gEBAAAAAdcBAgAAAAHYAQIAAAAB2QEgAAAAAQIAAAANACAcAACbBAAgAwAAAA0AIBwAAJsEACAdAACaBAAgARcAAM8EADALAwAAxwIAIBEAANQCACC0AQAA0wIAMLUBAAALABC2AQAA0wIAMLcBAgAAAAHQAQEAsQIAIdYBAQCxAgAh1wECALACACHYAQIAsAIAIdkBIAC-AgAhAgAAAA0AIBcAAJoEACACAAAAmAQAIBcAAJkEACAJtAEAAJcEADC1AQAAmAQAELYBAACXBAAwtwECALACACHQAQEAsQIAIdYBAQCxAgAh1wECALACACHYAQIAsAIAIdkBIAC-AgAhCbQBAACXBAAwtQEAAJgEABC2AQAAlwQAMLcBAgCwAgAh0AEBALECACHWAQEAsQIAIdcBAgCwAgAh2AECALACACHZASAAvgIAIQW3AQIA3QIAIdYBAQDcAgAh1wECAN0CACHYAQIA3QIAIdkBIAD-AgAhBhEAANADACC3AQIA3QIAIdYBAQDcAgAh1wECAN0CACHYAQIA3QIAIdkBIAD-AgAhBhEAAN4DACC3AQIAAAAB1gEBAAAAAdcBAgAAAAHYAQIAAAAB2QEgAAAAAQy3AQEAAAAB4gFAAAAAAeMBQAAAAAHkAQEAAAAB5QEBAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAekBQAAAAAHqAUAAAAAB6wEBAAAAAewBAQAAAAECAAAACQAgHAAApwQAIAMAAAAJACAcAACnBAAgHQAApgQAIAEXAADOBAAwEQMAAMcCACC0AQAA1QIAMLUBAAAHABC2AQAA1QIAMLcBAQAAAAHQAQEAsQIAIeIBQAC5AgAh4wFAALkCACHkAQEAsQIAIeUBAQCxAgAh5gEBAL8CACHnAQEAvwIAIegBAQC_AgAh6QFAAMUCACHqAUAAxQIAIesBAQC_AgAh7AEBAL8CACECAAAACQAgFwAApgQAIAIAAACkBAAgFwAApQQAIBC0AQAAowQAMLUBAACkBAAQtgEAAKMEADC3AQEAsQIAIdABAQCxAgAh4gFAALkCACHjAUAAuQIAIeQBAQCxAgAh5QEBALECACHmAQEAvwIAIecBAQC_AgAh6AEBAL8CACHpAUAAxQIAIeoBQADFAgAh6wEBAL8CACHsAQEAvwIAIRC0AQAAowQAMLUBAACkBAAQtgEAAKMEADC3AQEAsQIAIdABAQCxAgAh4gFAALkCACHjAUAAuQIAIeQBAQCxAgAh5QEBALECACHmAQEAvwIAIecBAQC_AgAh6AEBAL8CACHpAUAAxQIAIeoBQADFAgAh6wEBAL8CACHsAQEAvwIAIQy3AQEA3AIAIeIBQAD0AwAh4wFAAPQDACHkAQEA3AIAIeUBAQDcAgAh5gEBAKsDACHnAQEAqwMAIegBAQCrAwAh6QFAAP8CACHqAUAA_wIAIesBAQCrAwAh7AEBAKsDACEMtwEBANwCACHiAUAA9AMAIeMBQAD0AwAh5AEBANwCACHlAQEA3AIAIeYBAQCrAwAh5wEBAKsDACHoAQEAqwMAIekBQAD_AgAh6gFAAP8CACHrAQEAqwMAIewBAQCrAwAhDLcBAQAAAAHiAUAAAAAB4wFAAAAAAeQBAQAAAAHlAQEAAAAB5gEBAAAAAecBAQAAAAHoAQEAAAAB6QFAAAAAAeoBQAAAAAHrAQEAAAAB7AEBAAAAAQe3AQEAAAAB4QFAAAAAAeIBQAAAAAHjAUAAAAAB7QEBAAAAAe4BAQAAAAHvAQEAAAABAgAAAAUAIBwAALMEACADAAAABQAgHAAAswQAIB0AALIEACABFwAAzQQAMAwDAADHAgAgtAEAANYCADC1AQAAAwAQtgEAANYCADC3AQEAAAAB0AEBALECACHhAUAAuQIAIeIBQAC5AgAh4wFAALkCACHtAQEAAAAB7gEBAL8CACHvAQEAvwIAIQIAAAAFACAXAACyBAAgAgAAALAEACAXAACxBAAgC7QBAACvBAAwtQEAALAEABC2AQAArwQAMLcBAQCxAgAh0AEBALECACHhAUAAuQIAIeIBQAC5AgAh4wFAALkCACHtAQEAsQIAIe4BAQC_AgAh7wEBAL8CACELtAEAAK8EADC1AQAAsAQAELYBAACvBAAwtwEBALECACHQAQEAsQIAIeEBQAC5AgAh4gFAALkCACHjAUAAuQIAIe0BAQCxAgAh7gEBAL8CACHvAQEAvwIAIQe3AQEA3AIAIeEBQAD0AwAh4gFAAPQDACHjAUAA9AMAIe0BAQDcAgAh7gEBAKsDACHvAQEAqwMAIQe3AQEA3AIAIeEBQAD0AwAh4gFAAPQDACHjAUAA9AMAIe0BAQDcAgAh7gEBAKsDACHvAQEAqwMAIQe3AQEAAAAB4QFAAAAAAeIBQAAAAAHjAUAAAAAB7QEBAAAAAe4BAQAAAAHvAQEAAAABBBwAAKgEADD1AQAAqQQAMPcBAACrBAAg-wEAAKwEADAEHAAAnAQAMPUBAACdBAAw9wEAAJ8EACD7AQAAoAQAMAQcAACQBAAw9QEAAJEEADD3AQAAkwQAIPsBAACUBAAwBBwAAIcEADD1AQAAiAQAMPcBAACKBAAg-wEAALMDADAAAAAAAcUBAQAAAAEFBgAAxwQAIAgAAO8DACAQAAC7BAAg1AEAAPgCACD-AQAAyAQAIAYEAAC4BAAgBQAAuQQAIAYAALoEACAMAAC7BAAg8gEAAPgCACD-AQAAvAQAIAABxQEBAAAAAQMMAADDBAAgDQAAxAQAIA8AAMUEACABxQEBAAAAAQUDAAC-BAAgBwAAvQQAIAsAAL8EACDOAQAA-AIAIP4BAADABAAgAwcAAL0EACAKAADGBAAgCwAAvwQAIAACCAAA7wMAIP4BAADwAwAgAwMAAL4EACARAADJBAAg_gEAAMoEACABxQEBAAAAAQABxQEBAAAAAQHFAQEAAAABAcUBAQAAAAEHtwEBAAAAAeEBQAAAAAHiAUAAAAAB4wFAAAAAAe0BAQAAAAHuAQEAAAAB7wEBAAAAAQy3AQEAAAAB4gFAAAAAAeMBQAAAAAHkAQEAAAAB5QEBAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAekBQAAAAAHqAUAAAAAB6wEBAAAAAewBAQAAAAEFtwECAAAAAdYBAQAAAAHXAQIAAAAB2AECAAAAAdkBIAAAAAEFtwECAAAAAcwBAgAAAAHNASAAAAABzgFAAAAAAc8BAgAAAAEKBQAAtQQAIAYAALYEACAMAAC3BAAgtwEBAAAAAdYBAQAAAAHiAUAAAAAB4wFAAAAAAfABAQAAAAHxASAAAAAB8gEBAAAAAQIAAAABACAcAADRBAAgAwAAADIAIBwAANEEACAdAADVBAAgDAAAADIAIAUAAIQEACAGAACFBAAgDAAAhgQAIBcAANUEACC3AQEA3AIAIdYBAQDcAgAh4gFAAPQDACHjAUAA9AMAIfABAQDcAgAh8QEgAP4CACHyAQEAqwMAIQoFAACEBAAgBgAAhQQAIAwAAIYEACC3AQEA3AIAIdYBAQDcAgAh4gFAAPQDACHjAUAA9AMAIfABAQDcAgAh8QEgAP4CACHyAQEAqwMAIQoEAAC0BAAgBgAAtgQAIAwAALcEACC3AQEAAAAB1gEBAAAAAeIBQAAAAAHjAUAAAAAB8AEBAAAAAfEBIAAAAAHyAQEAAAABAgAAAAEAIBwAANYEACADAAAAMgAgHAAA1gQAIB0AANoEACAMAAAAMgAgBAAAgwQAIAYAAIUEACAMAACGBAAgFwAA2gQAILcBAQDcAgAh1gEBANwCACHiAUAA9AMAIeMBQAD0AwAh8AEBANwCACHxASAA_gIAIfIBAQCrAwAhCgQAAIMEACAGAACFBAAgDAAAhgQAILcBAQDcAgAh1gEBANwCACHiAUAA9AMAIeMBQAD0AwAh8AEBANwCACHxASAA_gIAIfIBAQCrAwAhBLcBAgAAAAHPAQIAAAAB0QECAAAAAdIBAgAAAAEKBAAAtAQAIAUAALUEACAMAAC3BAAgtwEBAAAAAdYBAQAAAAHiAUAAAAAB4wFAAAAAAfABAQAAAAHxASAAAAAB8gEBAAAAAQIAAAABACAcAADcBAAgA7cBAgAAAAHSAQIAAAAB1AEBAAAAAQMAAAAyACAcAADcBAAgHQAA4QQAIAwAAAAyACAEAACDBAAgBQAAhAQAIAwAAIYEACAXAADhBAAgtwEBANwCACHWAQEA3AIAIeIBQAD0AwAh4wFAAPQDACHwAQEA3AIAIfEBIAD-AgAh8gEBAKsDACEKBAAAgwQAIAUAAIQEACAMAACGBAAgtwEBANwCACHWAQEA3AIAIeIBQAD0AwAh4wFAAPQDACHwAQEA3AIAIfEBIAD-AgAh8gEBAKsDACEHAwAA3QMAILcBAgAAAAHQAQEAAAAB1gEBAAAAAdcBAgAAAAHYAQIAAAAB2QEgAAAAAQIAAAANACAcAADiBAAgBLcBAgAAAAHRAQIAAAAB0gECAAAAAdMBAgAAAAEFtwECAAAAAcwBAgAAAAHNASAAAAABzgFAAAAAAdABAQAAAAEDAAAACwAgHAAA4gQAIB0AAOgEACAJAAAACwAgAwAAzwMAIBcAAOgEACC3AQIA3QIAIdABAQDcAgAh1gEBANwCACHXAQIA3QIAIdgBAgDdAgAh2QEgAP4CACEHAwAAzwMAILcBAgDdAgAh0AEBANwCACHWAQEA3AIAIdcBAgDdAgAh2AECAN0CACHZASAA_gIAIQS3AQIAAAAB1gEBAAAAAdoBAQAAAAHbARAAAAABAgAAAIUBACAcAADpBAAgBgYAAMcDACAQAADJAwAgtwECAAAAAdIBAgAAAAHUAQEAAAAB1QECAAAAAQIAAAARACAcAADrBAAgBbcBAgAAAAHHAQIAAAAByAECAAAAAckBEAAAAAHKAQIAAAABAwAAAIgBACAcAADpBAAgHQAA8AQAIAYAAACIAQAgFwAA8AQAILcBAgDdAgAh1gEBANwCACHaAQEA3AIAIdsBEADlAgAhBLcBAgDdAgAh1gEBANwCACHaAQEA3AIAIdsBEADlAgAhAwAAAA8AIBwAAOsEACAdAADzBAAgCAAAAA8AIAYAAKwDACAQAACuAwAgFwAA8wQAILcBAgDdAgAh0gECAN0CACHUAQEAqwMAIdUBAgDdAgAhBgYAAKwDACAQAACuAwAgtwECAN0CACHSAQIA3QIAIdQBAQCrAwAh1QECAN0CACEKBAAAtAQAIAUAALUEACAGAAC2BAAgtwEBAAAAAdYBAQAAAAHiAUAAAAAB4wFAAAAAAfABAQAAAAHxASAAAAAB8gEBAAAAAQIAAAABACAcAAD0BAAgBgYAAMcDACAIAADIAwAgtwECAAAAAdIBAgAAAAHUAQEAAAAB1QECAAAAAQIAAAARACAcAAD2BAAgBbcBAgAAAAHHAQIAAAAByAECAAAAAckBEAAAAAHLAQIAAAABAwAAADIAIBwAAPQEACAdAAD7BAAgDAAAADIAIAQAAIMEACAFAACEBAAgBgAAhQQAIBcAAPsEACC3AQEA3AIAIdYBAQDcAgAh4gFAAPQDACHjAUAA9AMAIfABAQDcAgAh8QEgAP4CACHyAQEAqwMAIQoEAACDBAAgBQAAhAQAIAYAAIUEACC3AQEA3AIAIdYBAQDcAgAh4gFAAPQDACHjAUAA9AMAIfABAQDcAgAh8QEgAP4CACHyAQEAqwMAIQMAAAAPACAcAAD2BAAgHQAA_gQAIAgAAAAPACAGAACsAwAgCAAArQMAIBcAAP4EACC3AQIA3QIAIdIBAgDdAgAh1AEBAKsDACHVAQIA3QIAIQYGAACsAwAgCAAArQMAILcBAgDdAgAh0gECAN0CACHUAQEAqwMAIdUBAgDdAgAhBwcAAKMDACAKAACkAwAgtwECAAAAAc8BAgAAAAHRAQIAAAAB0gECAAAAAdMBAgAAAAECAAAAFQAgHAAA_wQAIAgDAACQAwAgBwAAjwMAILcBAgAAAAHMAQIAAAABzQEgAAAAAc4BQAAAAAHPAQIAAAAB0AEBAAAAAQIAAAAnACAcAACBBQAgA7cBAgAAAAG4AQEAAAABuQEBAAAAAQMAAAATACAcAAD_BAAgHQAAhgUAIAkAAAATACAHAACXAwAgCgAAmAMAIBcAAIYFACC3AQIA3QIAIc8BAgDdAgAh0QECAN0CACHSAQIA3QIAIdMBAgDdAgAhBwcAAJcDACAKAACYAwAgtwECAN0CACHPAQIA3QIAIdEBAgDdAgAh0gECAN0CACHTAQIA3QIAIQMAAAAlACAcAACBBQAgHQAAiQUAIAoAAAAlACADAACBAwAgBwAAgAMAIBcAAIkFACC3AQIA3QIAIcwBAgDdAgAhzQEgAP4CACHOAUAA_wIAIc8BAgDdAgAh0AEBANwCACEIAwAAgQMAIAcAAIADACC3AQIA3QIAIcwBAgDdAgAhzQEgAP4CACHOAUAA_wIAIc8BAgDdAgAh0AEBANwCACEIDAAA9QIAIA0AAPYCACC3AQIAAAABxwECAAAAAcgBAgAAAAHJARAAAAABygECAAAAAcsBAgAAAAECAAAAGwAgHAAAigUAIAMAAAAZACAcAACKBQAgHQAAjgUAIAoAAAAZACAMAADmAgAgDQAA5wIAIBcAAI4FACC3AQIA3QIAIccBAgDdAgAhyAECAN0CACHJARAA5QIAIcoBAgDdAgAhywECAN0CACEIDAAA5gIAIA0AAOcCACC3AQIA3QIAIccBAgDdAgAhyAECAN0CACHJARAA5QIAIcoBAgDdAgAhywECAN0CACEFBAYCBQoDBg4ECQARDCwKAQMAAQEDAAEDAwABCQAQERIFBAYABAgWBgkADxAoCgQHAAUJAA4KAAcLHAkCCBcGCQAIAQgYAAQJAA0MAAoNAAYPIgwEAwABBwAFCQALCx0JAQseAAEOAAkBDyMAAQskAAIIKQAQKgABESsABAQtAAUuAAYvAAwwAAADCQAUIgAVIwAWAAAAAwkAFCIAFSMAFgMJABkiABojABsAAAADCQAZIgAaIwAbAwkAHiIAHyMAIAAAAAMJAB4iAB8jACAAAwkAJCIAJSMAJgAAAAMJACQiACUjACYFCQApIgAsIwAtXAAqXQArAAAAAAAFCQApIgAsIwAtXAAqXQArBQkAMCIAMyMANFwAMV0AMgAAAAAABQkAMCIAMyMANFwAMV0AMgUJADciADojADtcADhdADkAAAAAAAUJADciADojADtcADhdADkFCQA-IgBBIwBCXAA_XQBAAAAAAAAFCQA-IgBBIwBCXAA_XQBABQkARSIASCMASVwARl0ARwAAAAAABQkARSIASCMASVwARl0ARwUJAEwiAE8jAFBcAE1dAE4AAAAAAAUJAEwiAE8jAFBcAE1dAE4FCQBTIgBWIwBXXABUXQBVAAAAAAAFCQBTIgBWIwBXXABUXQBVEgIBEzEBFDQBFTUBFjYBGDgBGToSGjwBGz4SHj8BH0ABIEESJEQTJUUXJkYCJ0cCKEgCKUkCKkoCK0wCLE4SLVACLlISL1MCMFQCMVUSMlgYM1kcNFoDNVsDNlwDN10DOF4DOWADOmISO2QDPGYSPWcDPmgDP2kSQGwdQW0hQm8iQ3AiRHMiRXQiRnUiR3ciSHkSSXsiSn0SS34iTH8iTYABEk6DASNPhAEnUIYBB1GHAQdSigEHU4sBB1SMAQdVjgEHVpABEleSAQdYlAESWZUBB1qWAQdblwESXpoBKF-bAS5gnAEEYZ0BBGKeAQRjnwEEZKABBGWiAQRmpAESZ6YBBGioARJpqQEEaqoBBGurARJsrgEvba8BNW6wAQVvsQEFcLIBBXGzAQVytAEFc7YBBXS4ARJ1ugEFdrwBEne9AQV4vgEFeb8BEnrCATZ7wwE8fMQBBn3FAQZ-xgEGf8cBBoAByAEGgQHKAQaCAcwBEoMBzgEGhAHQARKFAdEBBoYB0gEGhwHTARKIAdYBPYkB1wFDigHYAQqLAdkBCowB2gEKjQHbAQqOAdwBCo8B3gEKkAHgARKRAeIBCpIB5AESkwHlAQqUAeYBCpUB5wESlgHqAUSXAesBSpgB7AEJmQHtAQmaAe4BCZsB7wEJnAHwAQmdAfIBCZ4B9AESnwH2AQmgAfgBEqEB-QEJogH6AQmjAfsBEqQB_gFLpQH_AVGmAYACDKcBgQIMqAGCAgypAYMCDKoBhAIMqwGGAgysAYgCEq0BigIMrgGMAhKvAY0CDLABjgIMsQGPAhKyAZICUrMBkwJY" +} + +async function decodeBase64AsWasm(wasmBase64: string): Promise { + const { Buffer } = await import('node:buffer') + const wasmArray = Buffer.from(wasmBase64, 'base64') + return new WebAssembly.Module(wasmArray) +} + +config.compilerWasm = { + getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.mysql.mjs"), + + getQueryCompilerWasmModule: async () => { + const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.mysql.wasm-base64.mjs") + return await decodeBase64AsWasm(wasm) + }, + + importName: "./query_compiler_fast_bg.js" +} + + + +export type LogOptions = + 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never + +export interface PrismaClientConstructor { + /** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) + * }) + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + + new < + Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, + LogOpts extends LogOptions = LogOptions, + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs + >(options: Prisma.Subset ): PrismaClient +} + +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) + * }) + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + +export interface PrismaClient< + in LogOpts extends Prisma.LogLevel = never, + in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, + in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs +> { + [K: symbol]: { types: Prisma.TypeMap['other'] } + + $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; + + /** + * Connect with the database + */ + $connect(): runtime.Types.Utils.JsPromise; + + /** + * Disconnect from the database + */ + $disconnect(): runtime.Types.Utils.JsPromise; + +/** + * Executes a prepared raw query and returns the number of affected rows. + * @example + * ``` + * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + + /** + * Executes a raw query and returns the number of affected rows. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + + /** + * Performs a prepared raw query and returns the `SELECT` data. + * @example + * ``` + * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + + /** + * Performs a raw query and returns the `SELECT` data. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + + + /** + * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. + * @example + * ``` + * const [george, bob, alice] = await prisma.$transaction([ + * prisma.user.create({ data: { name: 'George' } }), + * prisma.user.create({ data: { name: 'Bob' } }), + * prisma.user.create({ data: { name: 'Alice' } }), + * ]) + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions). + */ + $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> + + $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise + + $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { + extArgs: ExtArgs + }>> + + /** + * `prisma.user`: Exposes CRUD operations for the **User** model. + * Example usage: + * ```ts + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + */ + get user(): Prisma.UserDelegate; + + /** + * `prisma.session`: Exposes CRUD operations for the **Session** model. + * Example usage: + * ```ts + * // Fetch zero or more Sessions + * const sessions = await prisma.session.findMany() + * ``` + */ + get session(): Prisma.SessionDelegate; + + /** + * `prisma.account`: Exposes CRUD operations for the **Account** model. + * Example usage: + * ```ts + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + */ + get account(): Prisma.AccountDelegate; + + /** + * `prisma.verification`: Exposes CRUD operations for the **Verification** model. + * Example usage: + * ```ts + * // Fetch zero or more Verifications + * const verifications = await prisma.verification.findMany() + * ``` + */ + get verification(): Prisma.VerificationDelegate; + + /** + * `prisma.exercise`: Exposes CRUD operations for the **Exercise** model. + * Example usage: + * ```ts + * // Fetch zero or more Exercises + * const exercises = await prisma.exercise.findMany() + * ``` + */ + get exercise(): Prisma.ExerciseDelegate; + + /** + * `prisma.mesoCycle`: Exposes CRUD operations for the **MesoCycle** model. + * Example usage: + * ```ts + * // Fetch zero or more MesoCycles + * const mesoCycles = await prisma.mesoCycle.findMany() + * ``` + */ + get mesoCycle(): Prisma.MesoCycleDelegate; + + /** + * `prisma.mesoCycleDay`: Exposes CRUD operations for the **MesoCycleDay** model. + * Example usage: + * ```ts + * // Fetch zero or more MesoCycleDays + * const mesoCycleDays = await prisma.mesoCycleDay.findMany() + * ``` + */ + get mesoCycleDay(): Prisma.MesoCycleDayDelegate; + + /** + * `prisma.mesoCycleExercise`: Exposes CRUD operations for the **MesoCycleExercise** model. + * Example usage: + * ```ts + * // Fetch zero or more MesoCycleExercises + * const mesoCycleExercises = await prisma.mesoCycleExercise.findMany() + * ``` + */ + get mesoCycleExercise(): Prisma.MesoCycleExerciseDelegate; + + /** + * `prisma.workoutSession`: Exposes CRUD operations for the **WorkoutSession** model. + * Example usage: + * ```ts + * // Fetch zero or more WorkoutSessions + * const workoutSessions = await prisma.workoutSession.findMany() + * ``` + */ + get workoutSession(): Prisma.WorkoutSessionDelegate; + + /** + * `prisma.exerciseLog`: Exposes CRUD operations for the **ExerciseLog** model. + * Example usage: + * ```ts + * // Fetch zero or more ExerciseLogs + * const exerciseLogs = await prisma.exerciseLog.findMany() + * ``` + */ + get exerciseLog(): Prisma.ExerciseLogDelegate; + + /** + * `prisma.sessionFeedback`: Exposes CRUD operations for the **SessionFeedback** model. + * Example usage: + * ```ts + * // Fetch zero or more SessionFeedbacks + * const sessionFeedbacks = await prisma.sessionFeedback.findMany() + * ``` + */ + get sessionFeedback(): Prisma.SessionFeedbackDelegate; +} + +export function getPrismaClientClass(): PrismaClientConstructor { + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor +} diff --git a/generated/prisma/internal/prismaNamespace.ts b/generated/prisma/internal/prismaNamespace.ts new file mode 100644 index 0000000..d35ec0f --- /dev/null +++ b/generated/prisma/internal/prismaNamespace.ts @@ -0,0 +1,1631 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "../models.ts" +import { type PrismaClient } from "./class.ts" + +export type * from '../models.ts' + +export type DMMF = typeof runtime.DMMF + +export type PrismaPromise = runtime.Types.Public.PrismaPromise + +/** + * Prisma Errors + */ + +export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError + +export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError + +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError + +export const PrismaClientInitializationError = runtime.PrismaClientInitializationError +export type PrismaClientInitializationError = runtime.PrismaClientInitializationError + +export const PrismaClientValidationError = runtime.PrismaClientValidationError +export type PrismaClientValidationError = runtime.PrismaClientValidationError + +/** + * Re-export of sql-template-tag + */ +export const sql = runtime.sqltag +export const empty = runtime.empty +export const join = runtime.join +export const raw = runtime.raw +export const Sql = runtime.Sql +export type Sql = runtime.Sql + + + +/** + * Decimal.js + */ +export const Decimal = runtime.Decimal +export type Decimal = runtime.Decimal + +export type DecimalJsLike = runtime.DecimalJsLike + +/** +* Extensions +*/ +export type Extension = runtime.Types.Extensions.UserArgs +export const getExtensionContext = runtime.Extensions.getExtensionContext +export type Args = runtime.Types.Public.Args +export type Payload = runtime.Types.Public.Payload +export type Result = runtime.Types.Public.Result +export type Exact = runtime.Types.Public.Exact + +export type PrismaVersion = { + client: string + engine: string +} + +/** + * Prisma Client JS version: 7.5.0 + * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e + */ +export const prismaVersion: PrismaVersion = { + client: "7.5.0", + engine: "280c870be64f457428992c43c1f6d557fab6e29e" +} + +/** + * Utility Types + */ + +export type Bytes = runtime.Bytes +export type JsonObject = runtime.JsonObject +export type JsonArray = runtime.JsonArray +export type JsonValue = runtime.JsonValue +export type InputJsonObject = runtime.InputJsonObject +export type InputJsonArray = runtime.InputJsonArray +export type InputJsonValue = runtime.InputJsonValue + + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + + +type SelectAndInclude = { + select: any + include: any +} + +type SelectAndOmit = { + select: any + omit: any +} + +/** + * From T, pick a set of properties whose keys are in the union K + */ +type Prisma__Pick = { + [P in K]: T[P]; +}; + +export type Enumerable = T | Array; + +/** + * Subset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection + */ +export type Subset = { + [key in keyof T]: key extends keyof U ? T[key] : never; +}; + +/** + * SelectSubset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. + * Additionally, it validates, if both select and include are present. If the case, it errors. + */ +export type SelectSubset = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & + (T extends SelectAndInclude + ? 'Please either choose `select` or `include`.' + : T extends SelectAndOmit + ? 'Please either choose `select` or `omit`.' + : {}) + +/** + * Subset + Intersection + * @desc From `T` pick properties that exist in `U` and intersect `K` + */ +export type SubsetIntersection = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & + K + +type Without = { [P in Exclude]?: never }; + +/** + * XOR is needed to have a real mutually exclusive union type + * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types + */ +export type XOR = + T extends object ? + U extends object ? + (Without & U) | (Without & T) + : U : T + + +/** + * Is T a Record? + */ +type IsObject = T extends Array +? False +: T extends Date +? False +: T extends Uint8Array +? False +: T extends BigInt +? False +: T extends object +? True +: False + + +/** + * If it's T[], return T + */ +export type UnEnumerate = T extends Array ? U : T + +/** + * From ts-toolbelt + */ + +type __Either = Omit & + { + // Merge all but K + [P in K]: Prisma__Pick // With K possibilities + }[K] + +type EitherStrict = Strict<__Either> + +type EitherLoose = ComputeRaw<__Either> + +type _Either< + O extends object, + K extends Key, + strict extends Boolean +> = { + 1: EitherStrict + 0: EitherLoose +}[strict] + +export type Either< + O extends object, + K extends Key, + strict extends Boolean = 1 +> = O extends unknown ? _Either : never + +export type Union = any + +export type PatchUndefined = { + [K in keyof O]: O[K] extends undefined ? At : O[K] +} & {} + +/** Helper Types for "Merge" **/ +export type IntersectOf = ( + U extends unknown ? (k: U) => void : never +) extends (k: infer I) => void + ? I + : never + +export type Overwrite = { + [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; +} & {}; + +type _Merge = IntersectOf; +}>>; + +type Key = string | number | symbol; +type AtStrict = O[K & keyof O]; +type AtLoose = O extends unknown ? AtStrict : never; +export type At = { + 1: AtStrict; + 0: AtLoose; +}[strict]; + +export type ComputeRaw = A extends Function ? A : { + [K in keyof A]: A[K]; +} & {}; + +export type OptionalFlat = { + [K in keyof O]?: O[K]; +} & {}; + +type _Record = { + [P in K]: T; +}; + +// cause typescript not to expand types and preserve names +type NoExpand = T extends unknown ? T : never; + +// this type assumes the passed object is entirely optional +export type AtLeast = NoExpand< + O extends unknown + ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) + | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O + : never>; + +type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; + +export type Strict = ComputeRaw<_Strict>; +/** End Helper Types for "Merge" **/ + +export type Merge = ComputeRaw<_Merge>>; + +export type Boolean = True | False + +export type True = 1 + +export type False = 0 + +export type Not = { + 0: 1 + 1: 0 +}[B] + +export type Extends = [A1] extends [never] + ? 0 // anything `never` is false + : A1 extends A2 + ? 1 + : 0 + +export type Has = Not< + Extends, U1> +> + +export type Or = { + 0: { + 0: 0 + 1: 1 + } + 1: { + 0: 1 + 1: 1 + } +}[B1][B2] + +export type Keys = U extends unknown ? keyof U : never + +export type GetScalarType = O extends object ? { + [P in keyof T]: P extends keyof O + ? O[P] + : never +} : never + +type FieldPaths< + T, + U = Omit +> = IsObject extends True ? U : T + +export type GetHavingFields = { + [K in keyof T]: Or< + Or, Extends<'AND', K>>, + Extends<'NOT', K> + > extends True + ? // infer is only needed to not hit TS limit + // based on the brilliant idea of Pierre-Antoine Mills + // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 + T[K] extends infer TK + ? GetHavingFields extends object ? Merge> : never> + : never + : {} extends FieldPaths + ? never + : K +}[keyof T] + +/** + * Convert tuple to union + */ +type _TupleToUnion = T extends (infer E)[] ? E : never +type TupleToUnion = _TupleToUnion +export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T + +/** + * Like `Pick`, but additionally can also accept an array of keys + */ +export type PickEnumerable | keyof T> = Prisma__Pick> + +/** + * Exclude all keys with underscores + */ +export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T + + +export type FieldRef = runtime.FieldRef + +type FieldRefInputType = Model extends never ? never : FieldRef + + +export const ModelName = { + User: 'User', + Session: 'Session', + Account: 'Account', + Verification: 'Verification', + Exercise: 'Exercise', + MesoCycle: 'MesoCycle', + MesoCycleDay: 'MesoCycleDay', + MesoCycleExercise: 'MesoCycleExercise', + WorkoutSession: 'WorkoutSession', + ExerciseLog: 'ExerciseLog', + SessionFeedback: 'SessionFeedback' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + + + +export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { + returns: TypeMap +} + +export type TypeMap = { + globalOmitOptions: { + omit: GlobalOmitOptions + } + meta: { + modelProps: "user" | "session" | "account" | "verification" | "exercise" | "mesoCycle" | "mesoCycleDay" | "mesoCycleExercise" | "workoutSession" | "exerciseLog" | "sessionFeedback" + txIsolationLevel: TransactionIsolationLevel + } + model: { + User: { + payload: Prisma.$UserPayload + fields: Prisma.UserFieldRefs + operations: { + findUnique: { + args: Prisma.UserFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.UserDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.UserUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Session: { + payload: Prisma.$SessionPayload + fields: Prisma.SessionFieldRefs + operations: { + findUnique: { + args: Prisma.SessionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SessionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SessionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SessionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SessionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SessionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SessionCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.SessionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SessionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SessionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SessionUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.SessionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SessionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SessionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SessionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Account: { + payload: Prisma.$AccountPayload + fields: Prisma.AccountFieldRefs + operations: { + findUnique: { + args: Prisma.AccountFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AccountFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AccountFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AccountFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AccountFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AccountCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AccountCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.AccountDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AccountUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AccountDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AccountUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.AccountUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AccountAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AccountGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AccountCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Verification: { + payload: Prisma.$VerificationPayload + fields: Prisma.VerificationFieldRefs + operations: { + findUnique: { + args: Prisma.VerificationFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.VerificationFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.VerificationFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.VerificationFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.VerificationFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.VerificationCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.VerificationCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.VerificationDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.VerificationUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.VerificationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.VerificationUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.VerificationUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.VerificationAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.VerificationGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.VerificationCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Exercise: { + payload: Prisma.$ExercisePayload + fields: Prisma.ExerciseFieldRefs + operations: { + findUnique: { + args: Prisma.ExerciseFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ExerciseFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ExerciseFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ExerciseFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ExerciseFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ExerciseCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ExerciseCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ExerciseDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ExerciseUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ExerciseDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ExerciseUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ExerciseUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ExerciseAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ExerciseGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ExerciseCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + MesoCycle: { + payload: Prisma.$MesoCyclePayload + fields: Prisma.MesoCycleFieldRefs + operations: { + findUnique: { + args: Prisma.MesoCycleFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.MesoCycleFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.MesoCycleFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.MesoCycleFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.MesoCycleFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.MesoCycleCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.MesoCycleCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.MesoCycleDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.MesoCycleUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.MesoCycleDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.MesoCycleUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.MesoCycleUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.MesoCycleAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.MesoCycleGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.MesoCycleCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + MesoCycleDay: { + payload: Prisma.$MesoCycleDayPayload + fields: Prisma.MesoCycleDayFieldRefs + operations: { + findUnique: { + args: Prisma.MesoCycleDayFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.MesoCycleDayFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.MesoCycleDayFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.MesoCycleDayFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.MesoCycleDayFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.MesoCycleDayCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.MesoCycleDayCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.MesoCycleDayDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.MesoCycleDayUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.MesoCycleDayDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.MesoCycleDayUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.MesoCycleDayUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.MesoCycleDayAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.MesoCycleDayGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.MesoCycleDayCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + MesoCycleExercise: { + payload: Prisma.$MesoCycleExercisePayload + fields: Prisma.MesoCycleExerciseFieldRefs + operations: { + findUnique: { + args: Prisma.MesoCycleExerciseFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.MesoCycleExerciseFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.MesoCycleExerciseFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.MesoCycleExerciseFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.MesoCycleExerciseFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.MesoCycleExerciseCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.MesoCycleExerciseCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.MesoCycleExerciseDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.MesoCycleExerciseUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.MesoCycleExerciseDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.MesoCycleExerciseUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.MesoCycleExerciseUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.MesoCycleExerciseAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.MesoCycleExerciseGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.MesoCycleExerciseCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + WorkoutSession: { + payload: Prisma.$WorkoutSessionPayload + fields: Prisma.WorkoutSessionFieldRefs + operations: { + findUnique: { + args: Prisma.WorkoutSessionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.WorkoutSessionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.WorkoutSessionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.WorkoutSessionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.WorkoutSessionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.WorkoutSessionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.WorkoutSessionCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.WorkoutSessionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.WorkoutSessionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.WorkoutSessionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.WorkoutSessionUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.WorkoutSessionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.WorkoutSessionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.WorkoutSessionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.WorkoutSessionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ExerciseLog: { + payload: Prisma.$ExerciseLogPayload + fields: Prisma.ExerciseLogFieldRefs + operations: { + findUnique: { + args: Prisma.ExerciseLogFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ExerciseLogFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ExerciseLogFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ExerciseLogFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ExerciseLogFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ExerciseLogCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ExerciseLogCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ExerciseLogDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ExerciseLogUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ExerciseLogDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ExerciseLogUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ExerciseLogUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ExerciseLogAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ExerciseLogGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ExerciseLogCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + SessionFeedback: { + payload: Prisma.$SessionFeedbackPayload + fields: Prisma.SessionFeedbackFieldRefs + operations: { + findUnique: { + args: Prisma.SessionFeedbackFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SessionFeedbackFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SessionFeedbackFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SessionFeedbackFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SessionFeedbackFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SessionFeedbackCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SessionFeedbackCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.SessionFeedbackDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SessionFeedbackUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SessionFeedbackDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SessionFeedbackUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.SessionFeedbackUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SessionFeedbackAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SessionFeedbackGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SessionFeedbackCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + } +} & { + other: { + payload: any + operations: { + $executeRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $executeRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + $queryRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $queryRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + } + } +} + +/** + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const UserScalarFieldEnum = { + id: 'id', + name: 'name', + email: 'email', + emailVerified: 'emailVerified', + image: 'image', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const SessionScalarFieldEnum = { + id: 'id', + expiresAt: 'expiresAt', + token: 'token', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + ipAddress: 'ipAddress', + userAgent: 'userAgent', + userId: 'userId' +} as const + +export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] + + +export const AccountScalarFieldEnum = { + id: 'id', + accountId: 'accountId', + providerId: 'providerId', + userId: 'userId', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + idToken: 'idToken', + accessTokenExpiresAt: 'accessTokenExpiresAt', + refreshTokenExpiresAt: 'refreshTokenExpiresAt', + scope: 'scope', + password: 'password', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] + + +export const VerificationScalarFieldEnum = { + id: 'id', + identifier: 'identifier', + value: 'value', + expiresAt: 'expiresAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum] + + +export const ExerciseScalarFieldEnum = { + id: 'id', + name: 'name', + muscleGroup: 'muscleGroup', + SFR: 'SFR' +} as const + +export type ExerciseScalarFieldEnum = (typeof ExerciseScalarFieldEnum)[keyof typeof ExerciseScalarFieldEnum] + + +export const MesoCycleScalarFieldEnum = { + id: 'id', + name: 'name', + totalWeeks: 'totalWeeks', + currentWeek: 'currentWeek', + isAsync: 'isAsync', + userId: 'userId' +} as const + +export type MesoCycleScalarFieldEnum = (typeof MesoCycleScalarFieldEnum)[keyof typeof MesoCycleScalarFieldEnum] + + +export const MesoCycleDayScalarFieldEnum = { + id: 'id', + weekday: 'weekday', + orderIndex: 'orderIndex', + mesoCycleId: 'mesoCycleId' +} as const + +export type MesoCycleDayScalarFieldEnum = (typeof MesoCycleDayScalarFieldEnum)[keyof typeof MesoCycleDayScalarFieldEnum] + + +export const MesoCycleExerciseScalarFieldEnum = { + id: 'id', + startingSets: 'startingSets', + orderIndex: 'orderIndex', + mesoCycleDayId: 'mesoCycleDayId', + exerciseId: 'exerciseId' +} as const + +export type MesoCycleExerciseScalarFieldEnum = (typeof MesoCycleExerciseScalarFieldEnum)[keyof typeof MesoCycleExerciseScalarFieldEnum] + + +export const WorkoutSessionScalarFieldEnum = { + id: 'id', + weekNumber: 'weekNumber', + isDeload: 'isDeload', + completedAt: 'completedAt', + mesoCycleDayId: 'mesoCycleDayId', + userId: 'userId' +} as const + +export type WorkoutSessionScalarFieldEnum = (typeof WorkoutSessionScalarFieldEnum)[keyof typeof WorkoutSessionScalarFieldEnum] + + +export const ExerciseLogScalarFieldEnum = { + id: 'id', + sets: 'sets', + reps: 'reps', + weight: 'weight', + workoutSessionId: 'workoutSessionId', + mesoCycleExerciseId: 'mesoCycleExerciseId' +} as const + +export type ExerciseLogScalarFieldEnum = (typeof ExerciseLogScalarFieldEnum)[keyof typeof ExerciseLogScalarFieldEnum] + + +export const SessionFeedbackScalarFieldEnum = { + id: 'id', + question: 'question', + answer: 'answer', + exerciseLogId: 'exerciseLogId' +} as const + +export type SessionFeedbackScalarFieldEnum = (typeof SessionFeedbackScalarFieldEnum)[keyof typeof SessionFeedbackScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + +export const UserOrderByRelevanceFieldEnum = { + id: 'id', + name: 'name', + email: 'email', + image: 'image' +} as const + +export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum] + + +export const SessionOrderByRelevanceFieldEnum = { + id: 'id', + token: 'token', + ipAddress: 'ipAddress', + userAgent: 'userAgent', + userId: 'userId' +} as const + +export type SessionOrderByRelevanceFieldEnum = (typeof SessionOrderByRelevanceFieldEnum)[keyof typeof SessionOrderByRelevanceFieldEnum] + + +export const AccountOrderByRelevanceFieldEnum = { + id: 'id', + accountId: 'accountId', + providerId: 'providerId', + userId: 'userId', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + idToken: 'idToken', + scope: 'scope', + password: 'password' +} as const + +export type AccountOrderByRelevanceFieldEnum = (typeof AccountOrderByRelevanceFieldEnum)[keyof typeof AccountOrderByRelevanceFieldEnum] + + +export const VerificationOrderByRelevanceFieldEnum = { + id: 'id', + identifier: 'identifier', + value: 'value' +} as const + +export type VerificationOrderByRelevanceFieldEnum = (typeof VerificationOrderByRelevanceFieldEnum)[keyof typeof VerificationOrderByRelevanceFieldEnum] + + +export const ExerciseOrderByRelevanceFieldEnum = { + name: 'name', + muscleGroup: 'muscleGroup' +} as const + +export type ExerciseOrderByRelevanceFieldEnum = (typeof ExerciseOrderByRelevanceFieldEnum)[keyof typeof ExerciseOrderByRelevanceFieldEnum] + + +export const MesoCycleOrderByRelevanceFieldEnum = { + name: 'name', + userId: 'userId' +} as const + +export type MesoCycleOrderByRelevanceFieldEnum = (typeof MesoCycleOrderByRelevanceFieldEnum)[keyof typeof MesoCycleOrderByRelevanceFieldEnum] + + +export const MesoCycleDayOrderByRelevanceFieldEnum = { + weekday: 'weekday' +} as const + +export type MesoCycleDayOrderByRelevanceFieldEnum = (typeof MesoCycleDayOrderByRelevanceFieldEnum)[keyof typeof MesoCycleDayOrderByRelevanceFieldEnum] + + +export const WorkoutSessionOrderByRelevanceFieldEnum = { + userId: 'userId' +} as const + +export type WorkoutSessionOrderByRelevanceFieldEnum = (typeof WorkoutSessionOrderByRelevanceFieldEnum)[keyof typeof WorkoutSessionOrderByRelevanceFieldEnum] + + +export const SessionFeedbackOrderByRelevanceFieldEnum = { + question: 'question', + answer: 'answer' +} as const + +export type SessionFeedbackOrderByRelevanceFieldEnum = (typeof SessionFeedbackOrderByRelevanceFieldEnum)[keyof typeof SessionFeedbackOrderByRelevanceFieldEnum] + + + +/** + * Field references + */ + + +/** + * Reference to a field of type 'String' + */ +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + + + +/** + * Reference to a field of type 'Boolean' + */ +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + + + +/** + * Reference to a field of type 'DateTime' + */ +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + + + +/** + * Reference to a field of type 'Int' + */ +export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> + + + +/** + * Reference to a field of type 'Decimal' + */ +export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> + + + +/** + * Reference to a field of type 'Float' + */ +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + + +/** + * Batch Payload for updateMany & deleteMany & createMany + */ +export type BatchPayload = { + count: number +} + +export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> +export type DefaultPrismaClient = PrismaClient +export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' +export type PrismaClientOptions = ({ + /** + * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. + */ + adapter: runtime.SqlDriverAdapterFactory + accelerateUrl?: never +} | { + /** + * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. + */ + accelerateUrl: string + adapter?: never +}) & { + /** + * @default "colorless" + */ + errorFormat?: ErrorFormat + /** + * @example + * ``` + * // Shorthand for `emit: 'stdout'` + * log: ['query', 'info', 'warn', 'error'] + * + * // Emit as events only + * log: [ + * { emit: 'event', level: 'query' }, + * { emit: 'event', level: 'info' }, + * { emit: 'event', level: 'warn' } + * { emit: 'event', level: 'error' } + * ] + * + * / Emit as events and log to stdout + * og: [ + * { emit: 'stdout', level: 'query' }, + * { emit: 'stdout', level: 'info' }, + * { emit: 'stdout', level: 'warn' } + * { emit: 'stdout', level: 'error' } + * + * ``` + * Read more in our [docs](https://pris.ly/d/logging). + */ + log?: (LogLevel | LogDefinition)[] + /** + * The default values for transactionOptions + * maxWait ?= 2000 + * timeout ?= 5000 + */ + transactionOptions?: { + maxWait?: number + timeout?: number + isolationLevel?: TransactionIsolationLevel + } + /** + * Global configuration for omitting model fields by default. + * + * @example + * ``` + * const prisma = new PrismaClient({ + * omit: { + * user: { + * password: true + * } + * } + * }) + * ``` + */ + omit?: GlobalOmitConfig + /** + * SQL commenter plugins that add metadata to SQL queries as comments. + * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/ + * + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter, + * comments: [ + * traceContext(), + * queryInsights(), + * ], + * }) + * ``` + */ + comments?: runtime.SqlCommenterPlugin[] +} +export type GlobalOmitConfig = { + user?: Prisma.UserOmit + session?: Prisma.SessionOmit + account?: Prisma.AccountOmit + verification?: Prisma.VerificationOmit + exercise?: Prisma.ExerciseOmit + mesoCycle?: Prisma.MesoCycleOmit + mesoCycleDay?: Prisma.MesoCycleDayOmit + mesoCycleExercise?: Prisma.MesoCycleExerciseOmit + workoutSession?: Prisma.WorkoutSessionOmit + exerciseLog?: Prisma.ExerciseLogOmit + sessionFeedback?: Prisma.SessionFeedbackOmit +} + +/* Types for Logging */ +export type LogLevel = 'info' | 'query' | 'warn' | 'error' +export type LogDefinition = { + level: LogLevel + emit: 'stdout' | 'event' +} + +export type CheckIsLogLevel = T extends LogLevel ? T : never; + +export type GetLogType = CheckIsLogLevel< + T extends LogDefinition ? T['level'] : T +>; + +export type GetEvents = T extends Array + ? GetLogType + : never; + +export type QueryEvent = { + timestamp: Date + query: string + params: string + duration: number + target: string +} + +export type LogEvent = { + timestamp: Date + message: string + target: string +} +/* End Types for Logging */ + + +export type PrismaAction = + | 'findUnique' + | 'findUniqueOrThrow' + | 'findMany' + | 'findFirst' + | 'findFirstOrThrow' + | 'create' + | 'createMany' + | 'createManyAndReturn' + | 'update' + | 'updateMany' + | 'updateManyAndReturn' + | 'upsert' + | 'delete' + | 'deleteMany' + | 'executeRaw' + | 'queryRaw' + | 'aggregate' + | 'count' + | 'runCommandRaw' + | 'findRaw' + | 'groupBy' + +/** + * `PrismaClient` proxy available in interactive transactions. + */ +export type TransactionClient = Omit + diff --git a/generated/prisma/internal/prismaNamespaceBrowser.ts b/generated/prisma/internal/prismaNamespaceBrowser.ts new file mode 100644 index 0000000..3c2f1ac --- /dev/null +++ b/generated/prisma/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,315 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/index-browser" + +export type * from '../models.ts' +export type * from './prismaNamespace.ts' + +export const Decimal = runtime.Decimal + + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + + +export const ModelName = { + User: 'User', + Session: 'Session', + Account: 'Account', + Verification: 'Verification', + Exercise: 'Exercise', + MesoCycle: 'MesoCycle', + MesoCycleDay: 'MesoCycleDay', + MesoCycleExercise: 'MesoCycleExercise', + WorkoutSession: 'WorkoutSession', + ExerciseLog: 'ExerciseLog', + SessionFeedback: 'SessionFeedback' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +/* + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const UserScalarFieldEnum = { + id: 'id', + name: 'name', + email: 'email', + emailVerified: 'emailVerified', + image: 'image', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const SessionScalarFieldEnum = { + id: 'id', + expiresAt: 'expiresAt', + token: 'token', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + ipAddress: 'ipAddress', + userAgent: 'userAgent', + userId: 'userId' +} as const + +export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] + + +export const AccountScalarFieldEnum = { + id: 'id', + accountId: 'accountId', + providerId: 'providerId', + userId: 'userId', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + idToken: 'idToken', + accessTokenExpiresAt: 'accessTokenExpiresAt', + refreshTokenExpiresAt: 'refreshTokenExpiresAt', + scope: 'scope', + password: 'password', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] + + +export const VerificationScalarFieldEnum = { + id: 'id', + identifier: 'identifier', + value: 'value', + expiresAt: 'expiresAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +} as const + +export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum] + + +export const ExerciseScalarFieldEnum = { + id: 'id', + name: 'name', + muscleGroup: 'muscleGroup', + SFR: 'SFR' +} as const + +export type ExerciseScalarFieldEnum = (typeof ExerciseScalarFieldEnum)[keyof typeof ExerciseScalarFieldEnum] + + +export const MesoCycleScalarFieldEnum = { + id: 'id', + name: 'name', + totalWeeks: 'totalWeeks', + currentWeek: 'currentWeek', + isAsync: 'isAsync', + userId: 'userId' +} as const + +export type MesoCycleScalarFieldEnum = (typeof MesoCycleScalarFieldEnum)[keyof typeof MesoCycleScalarFieldEnum] + + +export const MesoCycleDayScalarFieldEnum = { + id: 'id', + weekday: 'weekday', + orderIndex: 'orderIndex', + mesoCycleId: 'mesoCycleId' +} as const + +export type MesoCycleDayScalarFieldEnum = (typeof MesoCycleDayScalarFieldEnum)[keyof typeof MesoCycleDayScalarFieldEnum] + + +export const MesoCycleExerciseScalarFieldEnum = { + id: 'id', + startingSets: 'startingSets', + orderIndex: 'orderIndex', + mesoCycleDayId: 'mesoCycleDayId', + exerciseId: 'exerciseId' +} as const + +export type MesoCycleExerciseScalarFieldEnum = (typeof MesoCycleExerciseScalarFieldEnum)[keyof typeof MesoCycleExerciseScalarFieldEnum] + + +export const WorkoutSessionScalarFieldEnum = { + id: 'id', + weekNumber: 'weekNumber', + isDeload: 'isDeload', + completedAt: 'completedAt', + mesoCycleDayId: 'mesoCycleDayId', + userId: 'userId' +} as const + +export type WorkoutSessionScalarFieldEnum = (typeof WorkoutSessionScalarFieldEnum)[keyof typeof WorkoutSessionScalarFieldEnum] + + +export const ExerciseLogScalarFieldEnum = { + id: 'id', + sets: 'sets', + reps: 'reps', + weight: 'weight', + workoutSessionId: 'workoutSessionId', + mesoCycleExerciseId: 'mesoCycleExerciseId' +} as const + +export type ExerciseLogScalarFieldEnum = (typeof ExerciseLogScalarFieldEnum)[keyof typeof ExerciseLogScalarFieldEnum] + + +export const SessionFeedbackScalarFieldEnum = { + id: 'id', + question: 'question', + answer: 'answer', + exerciseLogId: 'exerciseLogId' +} as const + +export type SessionFeedbackScalarFieldEnum = (typeof SessionFeedbackScalarFieldEnum)[keyof typeof SessionFeedbackScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + +export const UserOrderByRelevanceFieldEnum = { + id: 'id', + name: 'name', + email: 'email', + image: 'image' +} as const + +export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum] + + +export const SessionOrderByRelevanceFieldEnum = { + id: 'id', + token: 'token', + ipAddress: 'ipAddress', + userAgent: 'userAgent', + userId: 'userId' +} as const + +export type SessionOrderByRelevanceFieldEnum = (typeof SessionOrderByRelevanceFieldEnum)[keyof typeof SessionOrderByRelevanceFieldEnum] + + +export const AccountOrderByRelevanceFieldEnum = { + id: 'id', + accountId: 'accountId', + providerId: 'providerId', + userId: 'userId', + accessToken: 'accessToken', + refreshToken: 'refreshToken', + idToken: 'idToken', + scope: 'scope', + password: 'password' +} as const + +export type AccountOrderByRelevanceFieldEnum = (typeof AccountOrderByRelevanceFieldEnum)[keyof typeof AccountOrderByRelevanceFieldEnum] + + +export const VerificationOrderByRelevanceFieldEnum = { + id: 'id', + identifier: 'identifier', + value: 'value' +} as const + +export type VerificationOrderByRelevanceFieldEnum = (typeof VerificationOrderByRelevanceFieldEnum)[keyof typeof VerificationOrderByRelevanceFieldEnum] + + +export const ExerciseOrderByRelevanceFieldEnum = { + name: 'name', + muscleGroup: 'muscleGroup' +} as const + +export type ExerciseOrderByRelevanceFieldEnum = (typeof ExerciseOrderByRelevanceFieldEnum)[keyof typeof ExerciseOrderByRelevanceFieldEnum] + + +export const MesoCycleOrderByRelevanceFieldEnum = { + name: 'name', + userId: 'userId' +} as const + +export type MesoCycleOrderByRelevanceFieldEnum = (typeof MesoCycleOrderByRelevanceFieldEnum)[keyof typeof MesoCycleOrderByRelevanceFieldEnum] + + +export const MesoCycleDayOrderByRelevanceFieldEnum = { + weekday: 'weekday' +} as const + +export type MesoCycleDayOrderByRelevanceFieldEnum = (typeof MesoCycleDayOrderByRelevanceFieldEnum)[keyof typeof MesoCycleDayOrderByRelevanceFieldEnum] + + +export const WorkoutSessionOrderByRelevanceFieldEnum = { + userId: 'userId' +} as const + +export type WorkoutSessionOrderByRelevanceFieldEnum = (typeof WorkoutSessionOrderByRelevanceFieldEnum)[keyof typeof WorkoutSessionOrderByRelevanceFieldEnum] + + +export const SessionFeedbackOrderByRelevanceFieldEnum = { + question: 'question', + answer: 'answer' +} as const + +export type SessionFeedbackOrderByRelevanceFieldEnum = (typeof SessionFeedbackOrderByRelevanceFieldEnum)[keyof typeof SessionFeedbackOrderByRelevanceFieldEnum] + diff --git a/generated/prisma/models.ts b/generated/prisma/models.ts new file mode 100644 index 0000000..05b92cc --- /dev/null +++ b/generated/prisma/models.ts @@ -0,0 +1,22 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This is a barrel export file for all models and their related types. + * + * 🟢 You can import this file directly. + */ +export type * from './models/User.ts' +export type * from './models/Session.ts' +export type * from './models/Account.ts' +export type * from './models/Verification.ts' +export type * from './models/Exercise.ts' +export type * from './models/MesoCycle.ts' +export type * from './models/MesoCycleDay.ts' +export type * from './models/MesoCycleExercise.ts' +export type * from './models/WorkoutSession.ts' +export type * from './models/ExerciseLog.ts' +export type * from './models/SessionFeedback.ts' +export type * from './commonInputTypes.ts' \ No newline at end of file diff --git a/generated/prisma/models/Account.ts b/generated/prisma/models/Account.ts new file mode 100644 index 0000000..fa3721d --- /dev/null +++ b/generated/prisma/models/Account.ts @@ -0,0 +1,1491 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Account` 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 Account + * + */ +export type AccountModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount = { + _count: AccountCountAggregateOutputType | null + _min: AccountMinAggregateOutputType | null + _max: AccountMaxAggregateOutputType | null +} + +export type AccountMinAggregateOutputType = { + id: string | null + accountId: string | null + providerId: string | null + userId: string | null + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + scope: string | null + password: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AccountMaxAggregateOutputType = { + id: string | null + accountId: string | null + providerId: string | null + userId: string | null + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + scope: string | null + password: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type AccountCountAggregateOutputType = { + id: number + accountId: number + providerId: number + userId: number + accessToken: number + refreshToken: number + idToken: number + accessTokenExpiresAt: number + refreshTokenExpiresAt: number + scope: number + password: number + createdAt: number + updatedAt: number + _all: number +} + + +export type AccountMinAggregateInputType = { + id?: true + accountId?: true + providerId?: true + userId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + scope?: true + password?: true + createdAt?: true + updatedAt?: true +} + +export type AccountMaxAggregateInputType = { + id?: true + accountId?: true + providerId?: true + userId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + scope?: true + password?: true + createdAt?: true + updatedAt?: true +} + +export type AccountCountAggregateInputType = { + id?: true + accountId?: true + providerId?: true + userId?: true + accessToken?: true + refreshToken?: true + idToken?: true + accessTokenExpiresAt?: true + refreshTokenExpiresAt?: true + scope?: true + password?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type AccountAggregateArgs = { + /** + * Filter which Account to aggregate. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts 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` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Accounts + **/ + _count?: true | AccountCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AccountMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AccountMaxAggregateInputType +} + +export type GetAccountAggregateType = { + [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type AccountGroupByArgs = { + where?: Prisma.AccountWhereInput + orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[] + by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum + having?: Prisma.AccountScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AccountCountAggregateInputType | true + _min?: AccountMinAggregateInputType + _max?: AccountMaxAggregateInputType +} + +export type AccountGroupByOutputType = { + id: string + accountId: string + providerId: string + userId: string + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + scope: string | null + password: string | null + createdAt: Date + updatedAt: Date + _count: AccountCountAggregateOutputType | null + _min: AccountMinAggregateOutputType | null + _max: AccountMaxAggregateOutputType | null +} + +type GetAccountGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type AccountWhereInput = { + AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + OR?: Prisma.AccountWhereInput[] + NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + id?: Prisma.StringFilter<"Account"> | string + accountId?: Prisma.StringFilter<"Account"> | string + providerId?: Prisma.StringFilter<"Account"> | string + userId?: Prisma.StringFilter<"Account"> | string + accessToken?: Prisma.StringNullableFilter<"Account"> | string | null + refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null + idToken?: Prisma.StringNullableFilter<"Account"> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + scope?: Prisma.StringNullableFilter<"Account"> | string | null + password?: Prisma.StringNullableFilter<"Account"> | string | null + createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string + user?: Prisma.XOR +} + +export type AccountOrderByWithRelationInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrderInput | Prisma.SortOrder + refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder + idToken?: Prisma.SortOrderInput | Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + _relevance?: Prisma.AccountOrderByRelevanceInput +} + +export type AccountWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + OR?: Prisma.AccountWhereInput[] + NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] + accountId?: Prisma.StringFilter<"Account"> | string + providerId?: Prisma.StringFilter<"Account"> | string + userId?: Prisma.StringFilter<"Account"> | string + accessToken?: Prisma.StringNullableFilter<"Account"> | string | null + refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null + idToken?: Prisma.StringNullableFilter<"Account"> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + scope?: Prisma.StringNullableFilter<"Account"> | string | null + password?: Prisma.StringNullableFilter<"Account"> | string | null + createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string + user?: Prisma.XOR +}, "id"> + +export type AccountOrderByWithAggregationInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrderInput | Prisma.SortOrder + refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder + idToken?: Prisma.SortOrderInput | Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder + scope?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.AccountCountOrderByAggregateInput + _max?: Prisma.AccountMaxOrderByAggregateInput + _min?: Prisma.AccountMinOrderByAggregateInput +} + +export type AccountScalarWhereWithAggregatesInput = { + AND?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[] + OR?: Prisma.AccountScalarWhereWithAggregatesInput[] + NOT?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Account"> | string + accountId?: Prisma.StringWithAggregatesFilter<"Account"> | string + providerId?: Prisma.StringWithAggregatesFilter<"Account"> | string + userId?: Prisma.StringWithAggregatesFilter<"Account"> | string + accessToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + refreshToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + idToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Account"> | Date | string | null + refreshTokenExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Account"> | Date | string | null + scope?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + password?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string +} + +export type AccountCreateInput = { + id: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutAccountsInput +} + +export type AccountUncheckedCreateInput = { + id: string + accountId: string + providerId: string + userId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput +} + +export type AccountUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountCreateManyInput = { + id: string + accountId: string + providerId: string + userId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + userId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountListRelationFilter = { + every?: Prisma.AccountWhereInput + some?: Prisma.AccountWhereInput + none?: Prisma.AccountWhereInput +} + +export type AccountOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AccountOrderByRelevanceInput = { + fields: Prisma.AccountOrderByRelevanceFieldEnum | Prisma.AccountOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type AccountCountOrderByAggregateInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountMinOrderByAggregateInput = { + id?: Prisma.SortOrder + accountId?: Prisma.SortOrder + providerId?: Prisma.SortOrder + userId?: Prisma.SortOrder + accessToken?: Prisma.SortOrder + refreshToken?: Prisma.SortOrder + idToken?: Prisma.SortOrder + accessTokenExpiresAt?: Prisma.SortOrder + refreshTokenExpiresAt?: Prisma.SortOrder + scope?: Prisma.SortOrder + password?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type AccountCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] +} + +export type AccountUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] +} + +export type AccountUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] + upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] +} + +export type AccountUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] + upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.AccountCreateManyUserInputEnvelope + set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] + update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] +} + +export type NullableDateTimeFieldUpdateOperationsInput = { + set?: Date | string | null +} + +export type AccountCreateWithoutUserInput = { + id: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUncheckedCreateWithoutUserInput = { + id: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountCreateOrConnectWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + create: Prisma.XOR +} + +export type AccountCreateManyUserInputEnvelope = { + data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type AccountUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type AccountUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.AccountWhereUniqueInput + data: Prisma.XOR +} + +export type AccountUpdateManyWithWhereWithoutUserInput = { + where: Prisma.AccountScalarWhereInput + data: Prisma.XOR +} + +export type AccountScalarWhereInput = { + AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] + OR?: Prisma.AccountScalarWhereInput[] + NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] + id?: Prisma.StringFilter<"Account"> | string + accountId?: Prisma.StringFilter<"Account"> | string + providerId?: Prisma.StringFilter<"Account"> | string + userId?: Prisma.StringFilter<"Account"> | string + accessToken?: Prisma.StringNullableFilter<"Account"> | string | null + refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null + idToken?: Prisma.StringNullableFilter<"Account"> | string | null + accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<"Account"> | Date | string | null + scope?: Prisma.StringNullableFilter<"Account"> | string | null + password?: Prisma.StringNullableFilter<"Account"> | string | null + createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string +} + +export type AccountCreateManyUserInput = { + id: string + accountId: string + providerId: string + accessToken?: string | null + refreshToken?: string | null + idToken?: string | null + accessTokenExpiresAt?: Date | string | null + refreshTokenExpiresAt?: Date | string | null + scope?: string | null + password?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type AccountUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type AccountUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + accountId?: Prisma.StringFieldUpdateOperationsInput | string + providerId?: Prisma.StringFieldUpdateOperationsInput | string + accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type AccountSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + accountId?: boolean + providerId?: boolean + userId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + scope?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["account"]> + + + +export type AccountSelectScalar = { + id?: boolean + accountId?: boolean + providerId?: boolean + userId?: boolean + accessToken?: boolean + refreshToken?: boolean + idToken?: boolean + accessTokenExpiresAt?: boolean + refreshTokenExpiresAt?: boolean + scope?: boolean + password?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type AccountOmit = runtime.Types.Extensions.GetOmit<"id" | "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["account"]> +export type AccountInclude = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $AccountPayload = { + name: "Account" + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + accountId: string + providerId: string + userId: string + accessToken: string | null + refreshToken: string | null + idToken: string | null + accessTokenExpiresAt: Date | null + refreshTokenExpiresAt: Date | null + scope: string | null + password: string | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["account"]> + composites: {} +} + +export type AccountGetPayload = runtime.Types.Result.GetResult + +export type AccountCountArgs = + Omit & { + select?: AccountCountAggregateInputType | true + } + +export interface AccountDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Account'], meta: { name: 'Account' } } + /** + * Find zero or one Account that matches the filter. + * @param {AccountFindUniqueArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Account that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account 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 {AccountFindFirstArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account 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 {AccountFindFirstOrThrowArgs} args - Arguments to find a Account + * @example + * // Get one Account + * const account = await prisma.account.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Accounts 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 {AccountFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Accounts + * const accounts = await prisma.account.findMany() + * + * // Get first 10 Accounts + * const accounts = await prisma.account.findMany({ take: 10 }) + * + * // Only select the `id` + * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Account. + * @param {AccountCreateArgs} args - Arguments to create a Account. + * @example + * // Create one Account + * const Account = await prisma.account.create({ + * data: { + * // ... data to create a Account + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Accounts. + * @param {AccountCreateManyArgs} args - Arguments to create many Accounts. + * @example + * // Create many Accounts + * const account = await prisma.account.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Account. + * @param {AccountDeleteArgs} args - Arguments to delete one Account. + * @example + * // Delete one Account + * const Account = await prisma.account.delete({ + * where: { + * // ... filter to delete one Account + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Account. + * @param {AccountUpdateArgs} args - Arguments to update one Account. + * @example + * // Update one Account + * const account = await prisma.account.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Accounts. + * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete. + * @example + * // Delete a few Accounts + * const { count } = await prisma.account.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Accounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Accounts + * const account = await prisma.account.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Account. + * @param {AccountUpsertArgs} args - Arguments to update or create a Account. + * @example + * // Update or create a Account + * const account = await prisma.account.upsert({ + * create: { + * // ... data to create a Account + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Account we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Accounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountCountArgs} args - Arguments to filter Accounts to count. + * @example + * // Count the number of Accounts + * const count = await prisma.account.count({ + * where: { + * // ... the filter for the Accounts 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 Account. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountAggregateArgs} 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 Account. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AccountGroupByArgs} 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 AccountGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AccountGroupByArgs['orderBy'] } + : { orderBy?: AccountGroupByArgs['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 ? GetAccountGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Account model + */ +readonly fields: AccountFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Account. + * 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__AccountClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + /** + * 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 Account model + */ +export interface AccountFieldRefs { + readonly id: Prisma.FieldRef<"Account", 'String'> + readonly accountId: Prisma.FieldRef<"Account", 'String'> + readonly providerId: Prisma.FieldRef<"Account", 'String'> + readonly userId: Prisma.FieldRef<"Account", 'String'> + readonly accessToken: Prisma.FieldRef<"Account", 'String'> + readonly refreshToken: Prisma.FieldRef<"Account", 'String'> + readonly idToken: Prisma.FieldRef<"Account", 'String'> + readonly accessTokenExpiresAt: Prisma.FieldRef<"Account", 'DateTime'> + readonly refreshTokenExpiresAt: Prisma.FieldRef<"Account", 'DateTime'> + readonly scope: Prisma.FieldRef<"Account", 'String'> + readonly password: Prisma.FieldRef<"Account", 'String'> + readonly createdAt: Prisma.FieldRef<"Account", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Account", 'DateTime'> +} + + +// Custom InputTypes +/** + * Account findUnique + */ +export type AccountFindUniqueArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account findUniqueOrThrow + */ +export type AccountFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account findFirst + */ +export type AccountFindFirstArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts 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` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Accounts. + */ + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account findFirstOrThrow + */ +export type AccountFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Account to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts 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` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Accounts. + */ + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account findMany + */ +export type AccountFindManyArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter, which Accounts to fetch. + */ + where?: Prisma.AccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Accounts to fetch. + */ + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Accounts. + */ + cursor?: Prisma.AccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Accounts 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` Accounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Accounts. + */ + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * Account create + */ +export type AccountCreateArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The data needed to create a Account. + */ + data: Prisma.XOR +} + +/** + * Account createMany + */ +export type AccountCreateManyArgs = { + /** + * The data used to create many Accounts. + */ + data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Account update + */ +export type AccountUpdateArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The data needed to update a Account. + */ + data: Prisma.XOR + /** + * Choose, which Account to update. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account updateMany + */ +export type AccountUpdateManyArgs = { + /** + * The data used to update Accounts. + */ + data: Prisma.XOR + /** + * Filter which Accounts to update + */ + where?: Prisma.AccountWhereInput + /** + * Limit how many Accounts to update. + */ + limit?: number +} + +/** + * Account upsert + */ +export type AccountUpsertArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * The filter to search for the Account to update in case it exists. + */ + where: Prisma.AccountWhereUniqueInput + /** + * In case the Account found by the `where` argument doesn't exist, create a new Account with this data. + */ + create: Prisma.XOR + /** + * In case the Account was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Account delete + */ +export type AccountDeleteArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + /** + * Filter which Account to delete. + */ + where: Prisma.AccountWhereUniqueInput +} + +/** + * Account deleteMany + */ +export type AccountDeleteManyArgs = { + /** + * Filter which Accounts to delete + */ + where?: Prisma.AccountWhereInput + /** + * Limit how many Accounts to delete. + */ + limit?: number +} + +/** + * Account without action + */ +export type AccountDefaultArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null +} diff --git a/generated/prisma/models/Exercise.ts b/generated/prisma/models/Exercise.ts new file mode 100644 index 0000000..173ab74 --- /dev/null +++ b/generated/prisma/models/Exercise.ts @@ -0,0 +1,1250 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Exercise` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Exercise + * + */ +export type ExerciseModel = runtime.Types.Result.DefaultSelection + +export type AggregateExercise = { + _count: ExerciseCountAggregateOutputType | null + _avg: ExerciseAvgAggregateOutputType | null + _sum: ExerciseSumAggregateOutputType | null + _min: ExerciseMinAggregateOutputType | null + _max: ExerciseMaxAggregateOutputType | null +} + +export type ExerciseAvgAggregateOutputType = { + id: number | null + SFR: runtime.Decimal | null +} + +export type ExerciseSumAggregateOutputType = { + id: number | null + SFR: runtime.Decimal | null +} + +export type ExerciseMinAggregateOutputType = { + id: number | null + name: string | null + muscleGroup: string | null + SFR: runtime.Decimal | null +} + +export type ExerciseMaxAggregateOutputType = { + id: number | null + name: string | null + muscleGroup: string | null + SFR: runtime.Decimal | null +} + +export type ExerciseCountAggregateOutputType = { + id: number + name: number + muscleGroup: number + SFR: number + _all: number +} + + +export type ExerciseAvgAggregateInputType = { + id?: true + SFR?: true +} + +export type ExerciseSumAggregateInputType = { + id?: true + SFR?: true +} + +export type ExerciseMinAggregateInputType = { + id?: true + name?: true + muscleGroup?: true + SFR?: true +} + +export type ExerciseMaxAggregateInputType = { + id?: true + name?: true + muscleGroup?: true + SFR?: true +} + +export type ExerciseCountAggregateInputType = { + id?: true + name?: true + muscleGroup?: true + SFR?: true + _all?: true +} + +export type ExerciseAggregateArgs = { + /** + * Filter which Exercise to aggregate. + */ + where?: Prisma.ExerciseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Exercises to fetch. + */ + orderBy?: Prisma.ExerciseOrderByWithRelationInput | Prisma.ExerciseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ExerciseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Exercises from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Exercises. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Exercises + **/ + _count?: true | ExerciseCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ExerciseAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ExerciseSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ExerciseMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ExerciseMaxAggregateInputType +} + +export type GetExerciseAggregateType = { + [P in keyof T & keyof AggregateExercise]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ExerciseGroupByArgs = { + where?: Prisma.ExerciseWhereInput + orderBy?: Prisma.ExerciseOrderByWithAggregationInput | Prisma.ExerciseOrderByWithAggregationInput[] + by: Prisma.ExerciseScalarFieldEnum[] | Prisma.ExerciseScalarFieldEnum + having?: Prisma.ExerciseScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ExerciseCountAggregateInputType | true + _avg?: ExerciseAvgAggregateInputType + _sum?: ExerciseSumAggregateInputType + _min?: ExerciseMinAggregateInputType + _max?: ExerciseMaxAggregateInputType +} + +export type ExerciseGroupByOutputType = { + id: number + name: string + muscleGroup: string + SFR: runtime.Decimal + _count: ExerciseCountAggregateOutputType | null + _avg: ExerciseAvgAggregateOutputType | null + _sum: ExerciseSumAggregateOutputType | null + _min: ExerciseMinAggregateOutputType | null + _max: ExerciseMaxAggregateOutputType | null +} + +type GetExerciseGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ExerciseGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ExerciseWhereInput = { + AND?: Prisma.ExerciseWhereInput | Prisma.ExerciseWhereInput[] + OR?: Prisma.ExerciseWhereInput[] + NOT?: Prisma.ExerciseWhereInput | Prisma.ExerciseWhereInput[] + id?: Prisma.IntFilter<"Exercise"> | number + name?: Prisma.StringFilter<"Exercise"> | string + muscleGroup?: Prisma.StringFilter<"Exercise"> | string + SFR?: Prisma.DecimalFilter<"Exercise"> | runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExercises?: Prisma.MesoCycleExerciseListRelationFilter +} + +export type ExerciseOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + muscleGroup?: Prisma.SortOrder + SFR?: Prisma.SortOrder + mesoCycleExercises?: Prisma.MesoCycleExerciseOrderByRelationAggregateInput + _relevance?: Prisma.ExerciseOrderByRelevanceInput +} + +export type ExerciseWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ExerciseWhereInput | Prisma.ExerciseWhereInput[] + OR?: Prisma.ExerciseWhereInput[] + NOT?: Prisma.ExerciseWhereInput | Prisma.ExerciseWhereInput[] + name?: Prisma.StringFilter<"Exercise"> | string + muscleGroup?: Prisma.StringFilter<"Exercise"> | string + SFR?: Prisma.DecimalFilter<"Exercise"> | runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExercises?: Prisma.MesoCycleExerciseListRelationFilter +}, "id"> + +export type ExerciseOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + muscleGroup?: Prisma.SortOrder + SFR?: Prisma.SortOrder + _count?: Prisma.ExerciseCountOrderByAggregateInput + _avg?: Prisma.ExerciseAvgOrderByAggregateInput + _max?: Prisma.ExerciseMaxOrderByAggregateInput + _min?: Prisma.ExerciseMinOrderByAggregateInput + _sum?: Prisma.ExerciseSumOrderByAggregateInput +} + +export type ExerciseScalarWhereWithAggregatesInput = { + AND?: Prisma.ExerciseScalarWhereWithAggregatesInput | Prisma.ExerciseScalarWhereWithAggregatesInput[] + OR?: Prisma.ExerciseScalarWhereWithAggregatesInput[] + NOT?: Prisma.ExerciseScalarWhereWithAggregatesInput | Prisma.ExerciseScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Exercise"> | number + name?: Prisma.StringWithAggregatesFilter<"Exercise"> | string + muscleGroup?: Prisma.StringWithAggregatesFilter<"Exercise"> | string + SFR?: Prisma.DecimalWithAggregatesFilter<"Exercise"> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExerciseCreateInput = { + name: string + muscleGroup: string + SFR: runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExercises?: Prisma.MesoCycleExerciseCreateNestedManyWithoutExerciseInput +} + +export type ExerciseUncheckedCreateInput = { + id?: number + name: string + muscleGroup: string + SFR: runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedCreateNestedManyWithoutExerciseInput +} + +export type ExerciseUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string + SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExercises?: Prisma.MesoCycleExerciseUpdateManyWithoutExerciseNestedInput +} + +export type ExerciseUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string + SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutExerciseNestedInput +} + +export type ExerciseCreateManyInput = { + id?: number + name: string + muscleGroup: string + SFR: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExerciseUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string + SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExerciseUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string + SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExerciseOrderByRelevanceInput = { + fields: Prisma.ExerciseOrderByRelevanceFieldEnum | Prisma.ExerciseOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ExerciseCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + muscleGroup?: Prisma.SortOrder + SFR?: Prisma.SortOrder +} + +export type ExerciseAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + SFR?: Prisma.SortOrder +} + +export type ExerciseMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + muscleGroup?: Prisma.SortOrder + SFR?: Prisma.SortOrder +} + +export type ExerciseMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + muscleGroup?: Prisma.SortOrder + SFR?: Prisma.SortOrder +} + +export type ExerciseSumOrderByAggregateInput = { + id?: Prisma.SortOrder + SFR?: Prisma.SortOrder +} + +export type ExerciseScalarRelationFilter = { + is?: Prisma.ExerciseWhereInput + isNot?: Prisma.ExerciseWhereInput +} + +export type DecimalFieldUpdateOperationsInput = { + set?: runtime.Decimal | runtime.DecimalJsLike | number | string + increment?: runtime.Decimal | runtime.DecimalJsLike | number | string + decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string + multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string + divide?: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type IntFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type ExerciseCreateNestedOneWithoutMesoCycleExercisesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExerciseCreateOrConnectWithoutMesoCycleExercisesInput + connect?: Prisma.ExerciseWhereUniqueInput +} + +export type ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExerciseCreateOrConnectWithoutMesoCycleExercisesInput + upsert?: Prisma.ExerciseUpsertWithoutMesoCycleExercisesInput + connect?: Prisma.ExerciseWhereUniqueInput + update?: Prisma.XOR, Prisma.ExerciseUncheckedUpdateWithoutMesoCycleExercisesInput> +} + +export type ExerciseCreateWithoutMesoCycleExercisesInput = { + name: string + muscleGroup: string + SFR: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExerciseUncheckedCreateWithoutMesoCycleExercisesInput = { + id?: number + name: string + muscleGroup: string + SFR: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExerciseCreateOrConnectWithoutMesoCycleExercisesInput = { + where: Prisma.ExerciseWhereUniqueInput + create: Prisma.XOR +} + +export type ExerciseUpsertWithoutMesoCycleExercisesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExerciseWhereInput +} + +export type ExerciseUpdateToOneWithWhereWithoutMesoCycleExercisesInput = { + where?: Prisma.ExerciseWhereInput + data: Prisma.XOR +} + +export type ExerciseUpdateWithoutMesoCycleExercisesInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string + SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExerciseUncheckedUpdateWithoutMesoCycleExercisesInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + muscleGroup?: Prisma.StringFieldUpdateOperationsInput | string + SFR?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + + +/** + * Count Type ExerciseCountOutputType + */ + +export type ExerciseCountOutputType = { + mesoCycleExercises: number +} + +export type ExerciseCountOutputTypeSelect = { + mesoCycleExercises?: boolean | ExerciseCountOutputTypeCountMesoCycleExercisesArgs +} + +/** + * ExerciseCountOutputType without action + */ +export type ExerciseCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ExerciseCountOutputType + */ + select?: Prisma.ExerciseCountOutputTypeSelect | null +} + +/** + * ExerciseCountOutputType without action + */ +export type ExerciseCountOutputTypeCountMesoCycleExercisesArgs = { + where?: Prisma.MesoCycleExerciseWhereInput +} + + +export type ExerciseSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + muscleGroup?: boolean + SFR?: boolean + mesoCycleExercises?: boolean | Prisma.Exercise$mesoCycleExercisesArgs + _count?: boolean | Prisma.ExerciseCountOutputTypeDefaultArgs +}, ExtArgs["result"]["exercise"]> + + + +export type ExerciseSelectScalar = { + id?: boolean + name?: boolean + muscleGroup?: boolean + SFR?: boolean +} + +export type ExerciseOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "muscleGroup" | "SFR", ExtArgs["result"]["exercise"]> +export type ExerciseInclude = { + mesoCycleExercises?: boolean | Prisma.Exercise$mesoCycleExercisesArgs + _count?: boolean | Prisma.ExerciseCountOutputTypeDefaultArgs +} + +export type $ExercisePayload = { + name: "Exercise" + objects: { + mesoCycleExercises: Prisma.$MesoCycleExercisePayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + muscleGroup: string + SFR: runtime.Decimal + }, ExtArgs["result"]["exercise"]> + composites: {} +} + +export type ExerciseGetPayload = runtime.Types.Result.GetResult + +export type ExerciseCountArgs = + Omit & { + select?: ExerciseCountAggregateInputType | true + } + +export interface ExerciseDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Exercise'], meta: { name: 'Exercise' } } + /** + * Find zero or one Exercise that matches the filter. + * @param {ExerciseFindUniqueArgs} args - Arguments to find a Exercise + * @example + * // Get one Exercise + * const exercise = await prisma.exercise.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Exercise that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ExerciseFindUniqueOrThrowArgs} args - Arguments to find a Exercise + * @example + * // Get one Exercise + * const exercise = await prisma.exercise.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Exercise that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseFindFirstArgs} args - Arguments to find a Exercise + * @example + * // Get one Exercise + * const exercise = await prisma.exercise.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Exercise that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseFindFirstOrThrowArgs} args - Arguments to find a Exercise + * @example + * // Get one Exercise + * const exercise = await prisma.exercise.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Exercises that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Exercises + * const exercises = await prisma.exercise.findMany() + * + * // Get first 10 Exercises + * const exercises = await prisma.exercise.findMany({ take: 10 }) + * + * // Only select the `id` + * const exerciseWithIdOnly = await prisma.exercise.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Exercise. + * @param {ExerciseCreateArgs} args - Arguments to create a Exercise. + * @example + * // Create one Exercise + * const Exercise = await prisma.exercise.create({ + * data: { + * // ... data to create a Exercise + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Exercises. + * @param {ExerciseCreateManyArgs} args - Arguments to create many Exercises. + * @example + * // Create many Exercises + * const exercise = await prisma.exercise.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Exercise. + * @param {ExerciseDeleteArgs} args - Arguments to delete one Exercise. + * @example + * // Delete one Exercise + * const Exercise = await prisma.exercise.delete({ + * where: { + * // ... filter to delete one Exercise + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Exercise. + * @param {ExerciseUpdateArgs} args - Arguments to update one Exercise. + * @example + * // Update one Exercise + * const exercise = await prisma.exercise.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Exercises. + * @param {ExerciseDeleteManyArgs} args - Arguments to filter Exercises to delete. + * @example + * // Delete a few Exercises + * const { count } = await prisma.exercise.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Exercises. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Exercises + * const exercise = await prisma.exercise.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Exercise. + * @param {ExerciseUpsertArgs} args - Arguments to update or create a Exercise. + * @example + * // Update or create a Exercise + * const exercise = await prisma.exercise.upsert({ + * create: { + * // ... data to create a Exercise + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Exercise we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Exercises. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseCountArgs} args - Arguments to filter Exercises to count. + * @example + * // Count the number of Exercises + * const count = await prisma.exercise.count({ + * where: { + * // ... the filter for the Exercises we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Exercise. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Exercise. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends ExerciseGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ExerciseGroupByArgs['orderBy'] } + : { orderBy?: ExerciseGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetExerciseGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Exercise model + */ +readonly fields: ExerciseFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Exercise. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__ExerciseClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + mesoCycleExercises = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the Exercise model + */ +export interface ExerciseFieldRefs { + readonly id: Prisma.FieldRef<"Exercise", 'Int'> + readonly name: Prisma.FieldRef<"Exercise", 'String'> + readonly muscleGroup: Prisma.FieldRef<"Exercise", 'String'> + readonly SFR: Prisma.FieldRef<"Exercise", 'Decimal'> +} + + +// Custom InputTypes +/** + * Exercise findUnique + */ +export type ExerciseFindUniqueArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * Filter, which Exercise to fetch. + */ + where: Prisma.ExerciseWhereUniqueInput +} + +/** + * Exercise findUniqueOrThrow + */ +export type ExerciseFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * Filter, which Exercise to fetch. + */ + where: Prisma.ExerciseWhereUniqueInput +} + +/** + * Exercise findFirst + */ +export type ExerciseFindFirstArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * Filter, which Exercise to fetch. + */ + where?: Prisma.ExerciseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Exercises to fetch. + */ + orderBy?: Prisma.ExerciseOrderByWithRelationInput | Prisma.ExerciseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Exercises. + */ + cursor?: Prisma.ExerciseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Exercises from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Exercises. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Exercises. + */ + distinct?: Prisma.ExerciseScalarFieldEnum | Prisma.ExerciseScalarFieldEnum[] +} + +/** + * Exercise findFirstOrThrow + */ +export type ExerciseFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * Filter, which Exercise to fetch. + */ + where?: Prisma.ExerciseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Exercises to fetch. + */ + orderBy?: Prisma.ExerciseOrderByWithRelationInput | Prisma.ExerciseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Exercises. + */ + cursor?: Prisma.ExerciseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Exercises from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Exercises. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Exercises. + */ + distinct?: Prisma.ExerciseScalarFieldEnum | Prisma.ExerciseScalarFieldEnum[] +} + +/** + * Exercise findMany + */ +export type ExerciseFindManyArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * Filter, which Exercises to fetch. + */ + where?: Prisma.ExerciseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Exercises to fetch. + */ + orderBy?: Prisma.ExerciseOrderByWithRelationInput | Prisma.ExerciseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Exercises. + */ + cursor?: Prisma.ExerciseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Exercises from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Exercises. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Exercises. + */ + distinct?: Prisma.ExerciseScalarFieldEnum | Prisma.ExerciseScalarFieldEnum[] +} + +/** + * Exercise create + */ +export type ExerciseCreateArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * The data needed to create a Exercise. + */ + data: Prisma.XOR +} + +/** + * Exercise createMany + */ +export type ExerciseCreateManyArgs = { + /** + * The data used to create many Exercises. + */ + data: Prisma.ExerciseCreateManyInput | Prisma.ExerciseCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Exercise update + */ +export type ExerciseUpdateArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * The data needed to update a Exercise. + */ + data: Prisma.XOR + /** + * Choose, which Exercise to update. + */ + where: Prisma.ExerciseWhereUniqueInput +} + +/** + * Exercise updateMany + */ +export type ExerciseUpdateManyArgs = { + /** + * The data used to update Exercises. + */ + data: Prisma.XOR + /** + * Filter which Exercises to update + */ + where?: Prisma.ExerciseWhereInput + /** + * Limit how many Exercises to update. + */ + limit?: number +} + +/** + * Exercise upsert + */ +export type ExerciseUpsertArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * The filter to search for the Exercise to update in case it exists. + */ + where: Prisma.ExerciseWhereUniqueInput + /** + * In case the Exercise found by the `where` argument doesn't exist, create a new Exercise with this data. + */ + create: Prisma.XOR + /** + * In case the Exercise was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Exercise delete + */ +export type ExerciseDeleteArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null + /** + * Filter which Exercise to delete. + */ + where: Prisma.ExerciseWhereUniqueInput +} + +/** + * Exercise deleteMany + */ +export type ExerciseDeleteManyArgs = { + /** + * Filter which Exercises to delete + */ + where?: Prisma.ExerciseWhereInput + /** + * Limit how many Exercises to delete. + */ + limit?: number +} + +/** + * Exercise.mesoCycleExercises + */ +export type Exercise$mesoCycleExercisesArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + where?: Prisma.MesoCycleExerciseWhereInput + orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[] + cursor?: Prisma.MesoCycleExerciseWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[] +} + +/** + * Exercise without action + */ +export type ExerciseDefaultArgs = { + /** + * Select specific fields to fetch from the Exercise + */ + select?: Prisma.ExerciseSelect | null + /** + * Omit specific fields from the Exercise + */ + omit?: Prisma.ExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExerciseInclude | null +} diff --git a/generated/prisma/models/ExerciseLog.ts b/generated/prisma/models/ExerciseLog.ts new file mode 100644 index 0000000..e52eafd --- /dev/null +++ b/generated/prisma/models/ExerciseLog.ts @@ -0,0 +1,1581 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ExerciseLog` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model ExerciseLog + * + */ +export type ExerciseLogModel = runtime.Types.Result.DefaultSelection + +export type AggregateExerciseLog = { + _count: ExerciseLogCountAggregateOutputType | null + _avg: ExerciseLogAvgAggregateOutputType | null + _sum: ExerciseLogSumAggregateOutputType | null + _min: ExerciseLogMinAggregateOutputType | null + _max: ExerciseLogMaxAggregateOutputType | null +} + +export type ExerciseLogAvgAggregateOutputType = { + id: number | null + sets: number | null + reps: number | null + weight: runtime.Decimal | null + workoutSessionId: number | null + mesoCycleExerciseId: number | null +} + +export type ExerciseLogSumAggregateOutputType = { + id: number | null + sets: number | null + reps: number | null + weight: runtime.Decimal | null + workoutSessionId: number | null + mesoCycleExerciseId: number | null +} + +export type ExerciseLogMinAggregateOutputType = { + id: number | null + sets: number | null + reps: number | null + weight: runtime.Decimal | null + workoutSessionId: number | null + mesoCycleExerciseId: number | null +} + +export type ExerciseLogMaxAggregateOutputType = { + id: number | null + sets: number | null + reps: number | null + weight: runtime.Decimal | null + workoutSessionId: number | null + mesoCycleExerciseId: number | null +} + +export type ExerciseLogCountAggregateOutputType = { + id: number + sets: number + reps: number + weight: number + workoutSessionId: number + mesoCycleExerciseId: number + _all: number +} + + +export type ExerciseLogAvgAggregateInputType = { + id?: true + sets?: true + reps?: true + weight?: true + workoutSessionId?: true + mesoCycleExerciseId?: true +} + +export type ExerciseLogSumAggregateInputType = { + id?: true + sets?: true + reps?: true + weight?: true + workoutSessionId?: true + mesoCycleExerciseId?: true +} + +export type ExerciseLogMinAggregateInputType = { + id?: true + sets?: true + reps?: true + weight?: true + workoutSessionId?: true + mesoCycleExerciseId?: true +} + +export type ExerciseLogMaxAggregateInputType = { + id?: true + sets?: true + reps?: true + weight?: true + workoutSessionId?: true + mesoCycleExerciseId?: true +} + +export type ExerciseLogCountAggregateInputType = { + id?: true + sets?: true + reps?: true + weight?: true + workoutSessionId?: true + mesoCycleExerciseId?: true + _all?: true +} + +export type ExerciseLogAggregateArgs = { + /** + * Filter which ExerciseLog to aggregate. + */ + where?: Prisma.ExerciseLogWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExerciseLogs to fetch. + */ + orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ExerciseLogWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExerciseLogs from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ExerciseLogs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ExerciseLogs + **/ + _count?: true | ExerciseLogCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ExerciseLogAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ExerciseLogSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ExerciseLogMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ExerciseLogMaxAggregateInputType +} + +export type GetExerciseLogAggregateType = { + [P in keyof T & keyof AggregateExerciseLog]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ExerciseLogGroupByArgs = { + where?: Prisma.ExerciseLogWhereInput + orderBy?: Prisma.ExerciseLogOrderByWithAggregationInput | Prisma.ExerciseLogOrderByWithAggregationInput[] + by: Prisma.ExerciseLogScalarFieldEnum[] | Prisma.ExerciseLogScalarFieldEnum + having?: Prisma.ExerciseLogScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ExerciseLogCountAggregateInputType | true + _avg?: ExerciseLogAvgAggregateInputType + _sum?: ExerciseLogSumAggregateInputType + _min?: ExerciseLogMinAggregateInputType + _max?: ExerciseLogMaxAggregateInputType +} + +export type ExerciseLogGroupByOutputType = { + id: number + sets: number + reps: number + weight: runtime.Decimal + workoutSessionId: number + mesoCycleExerciseId: number + _count: ExerciseLogCountAggregateOutputType | null + _avg: ExerciseLogAvgAggregateOutputType | null + _sum: ExerciseLogSumAggregateOutputType | null + _min: ExerciseLogMinAggregateOutputType | null + _max: ExerciseLogMaxAggregateOutputType | null +} + +type GetExerciseLogGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ExerciseLogGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ExerciseLogWhereInput = { + AND?: Prisma.ExerciseLogWhereInput | Prisma.ExerciseLogWhereInput[] + OR?: Prisma.ExerciseLogWhereInput[] + NOT?: Prisma.ExerciseLogWhereInput | Prisma.ExerciseLogWhereInput[] + id?: Prisma.IntFilter<"ExerciseLog"> | number + sets?: Prisma.IntFilter<"ExerciseLog"> | number + reps?: Prisma.IntFilter<"ExerciseLog"> | number + weight?: Prisma.DecimalFilter<"ExerciseLog"> | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntFilter<"ExerciseLog"> | number + mesoCycleExerciseId?: Prisma.IntFilter<"ExerciseLog"> | number + workoutSession?: Prisma.XOR + mesoCycleExercise?: Prisma.XOR + sessionFeedbacks?: Prisma.SessionFeedbackListRelationFilter +} + +export type ExerciseLogOrderByWithRelationInput = { + id?: Prisma.SortOrder + sets?: Prisma.SortOrder + reps?: Prisma.SortOrder + weight?: Prisma.SortOrder + workoutSessionId?: Prisma.SortOrder + mesoCycleExerciseId?: Prisma.SortOrder + workoutSession?: Prisma.WorkoutSessionOrderByWithRelationInput + mesoCycleExercise?: Prisma.MesoCycleExerciseOrderByWithRelationInput + sessionFeedbacks?: Prisma.SessionFeedbackOrderByRelationAggregateInput +} + +export type ExerciseLogWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ExerciseLogWhereInput | Prisma.ExerciseLogWhereInput[] + OR?: Prisma.ExerciseLogWhereInput[] + NOT?: Prisma.ExerciseLogWhereInput | Prisma.ExerciseLogWhereInput[] + sets?: Prisma.IntFilter<"ExerciseLog"> | number + reps?: Prisma.IntFilter<"ExerciseLog"> | number + weight?: Prisma.DecimalFilter<"ExerciseLog"> | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntFilter<"ExerciseLog"> | number + mesoCycleExerciseId?: Prisma.IntFilter<"ExerciseLog"> | number + workoutSession?: Prisma.XOR + mesoCycleExercise?: Prisma.XOR + sessionFeedbacks?: Prisma.SessionFeedbackListRelationFilter +}, "id"> + +export type ExerciseLogOrderByWithAggregationInput = { + id?: Prisma.SortOrder + sets?: Prisma.SortOrder + reps?: Prisma.SortOrder + weight?: Prisma.SortOrder + workoutSessionId?: Prisma.SortOrder + mesoCycleExerciseId?: Prisma.SortOrder + _count?: Prisma.ExerciseLogCountOrderByAggregateInput + _avg?: Prisma.ExerciseLogAvgOrderByAggregateInput + _max?: Prisma.ExerciseLogMaxOrderByAggregateInput + _min?: Prisma.ExerciseLogMinOrderByAggregateInput + _sum?: Prisma.ExerciseLogSumOrderByAggregateInput +} + +export type ExerciseLogScalarWhereWithAggregatesInput = { + AND?: Prisma.ExerciseLogScalarWhereWithAggregatesInput | Prisma.ExerciseLogScalarWhereWithAggregatesInput[] + OR?: Prisma.ExerciseLogScalarWhereWithAggregatesInput[] + NOT?: Prisma.ExerciseLogScalarWhereWithAggregatesInput | Prisma.ExerciseLogScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number + sets?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number + reps?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number + weight?: Prisma.DecimalWithAggregatesFilter<"ExerciseLog"> | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number + mesoCycleExerciseId?: Prisma.IntWithAggregatesFilter<"ExerciseLog"> | number +} + +export type ExerciseLogCreateInput = { + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSession: Prisma.WorkoutSessionCreateNestedOneWithoutExerciseLogsInput + mesoCycleExercise: Prisma.MesoCycleExerciseCreateNestedOneWithoutExerciseLogsInput + sessionFeedbacks?: Prisma.SessionFeedbackCreateNestedManyWithoutExerciseLogInput +} + +export type ExerciseLogUncheckedCreateInput = { + id?: number + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId: number + mesoCycleExerciseId: number + sessionFeedbacks?: Prisma.SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput +} + +export type ExerciseLogUpdateInput = { + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSession?: Prisma.WorkoutSessionUpdateOneRequiredWithoutExerciseLogsNestedInput + mesoCycleExercise?: Prisma.MesoCycleExerciseUpdateOneRequiredWithoutExerciseLogsNestedInput + sessionFeedbacks?: Prisma.SessionFeedbackUpdateManyWithoutExerciseLogNestedInput +} + +export type ExerciseLogUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number + sessionFeedbacks?: Prisma.SessionFeedbackUncheckedUpdateManyWithoutExerciseLogNestedInput +} + +export type ExerciseLogCreateManyInput = { + id?: number + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId: number + mesoCycleExerciseId: number +} + +export type ExerciseLogUpdateManyMutationInput = { + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExerciseLogUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ExerciseLogListRelationFilter = { + every?: Prisma.ExerciseLogWhereInput + some?: Prisma.ExerciseLogWhereInput + none?: Prisma.ExerciseLogWhereInput +} + +export type ExerciseLogOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ExerciseLogCountOrderByAggregateInput = { + id?: Prisma.SortOrder + sets?: Prisma.SortOrder + reps?: Prisma.SortOrder + weight?: Prisma.SortOrder + workoutSessionId?: Prisma.SortOrder + mesoCycleExerciseId?: Prisma.SortOrder +} + +export type ExerciseLogAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + sets?: Prisma.SortOrder + reps?: Prisma.SortOrder + weight?: Prisma.SortOrder + workoutSessionId?: Prisma.SortOrder + mesoCycleExerciseId?: Prisma.SortOrder +} + +export type ExerciseLogMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + sets?: Prisma.SortOrder + reps?: Prisma.SortOrder + weight?: Prisma.SortOrder + workoutSessionId?: Prisma.SortOrder + mesoCycleExerciseId?: Prisma.SortOrder +} + +export type ExerciseLogMinOrderByAggregateInput = { + id?: Prisma.SortOrder + sets?: Prisma.SortOrder + reps?: Prisma.SortOrder + weight?: Prisma.SortOrder + workoutSessionId?: Prisma.SortOrder + mesoCycleExerciseId?: Prisma.SortOrder +} + +export type ExerciseLogSumOrderByAggregateInput = { + id?: Prisma.SortOrder + sets?: Prisma.SortOrder + reps?: Prisma.SortOrder + weight?: Prisma.SortOrder + workoutSessionId?: Prisma.SortOrder + mesoCycleExerciseId?: Prisma.SortOrder +} + +export type ExerciseLogScalarRelationFilter = { + is?: Prisma.ExerciseLogWhereInput + isNot?: Prisma.ExerciseLogWhereInput +} + +export type ExerciseLogCreateNestedManyWithoutMesoCycleExerciseInput = { + create?: Prisma.XOR | Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput[] | Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput[] + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput | Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput[] + createMany?: Prisma.ExerciseLogCreateManyMesoCycleExerciseInputEnvelope + connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] +} + +export type ExerciseLogUncheckedCreateNestedManyWithoutMesoCycleExerciseInput = { + create?: Prisma.XOR | Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput[] | Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput[] + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput | Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput[] + createMany?: Prisma.ExerciseLogCreateManyMesoCycleExerciseInputEnvelope + connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] +} + +export type ExerciseLogUpdateManyWithoutMesoCycleExerciseNestedInput = { + create?: Prisma.XOR | Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput[] | Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput[] + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput | Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput[] + upsert?: Prisma.ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput[] + createMany?: Prisma.ExerciseLogCreateManyMesoCycleExerciseInputEnvelope + set?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + disconnect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + delete?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + update?: Prisma.ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput[] + updateMany?: Prisma.ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput[] + deleteMany?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[] +} + +export type ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseNestedInput = { + create?: Prisma.XOR | Prisma.ExerciseLogCreateWithoutMesoCycleExerciseInput[] | Prisma.ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput[] + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput | Prisma.ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput[] + upsert?: Prisma.ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput[] + createMany?: Prisma.ExerciseLogCreateManyMesoCycleExerciseInputEnvelope + set?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + disconnect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + delete?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + update?: Prisma.ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput[] + updateMany?: Prisma.ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput | Prisma.ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput[] + deleteMany?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[] +} + +export type ExerciseLogCreateNestedManyWithoutWorkoutSessionInput = { + create?: Prisma.XOR | Prisma.ExerciseLogCreateWithoutWorkoutSessionInput[] | Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput[] + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput | Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput[] + createMany?: Prisma.ExerciseLogCreateManyWorkoutSessionInputEnvelope + connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] +} + +export type ExerciseLogUncheckedCreateNestedManyWithoutWorkoutSessionInput = { + create?: Prisma.XOR | Prisma.ExerciseLogCreateWithoutWorkoutSessionInput[] | Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput[] + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput | Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput[] + createMany?: Prisma.ExerciseLogCreateManyWorkoutSessionInputEnvelope + connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] +} + +export type ExerciseLogUpdateManyWithoutWorkoutSessionNestedInput = { + create?: Prisma.XOR | Prisma.ExerciseLogCreateWithoutWorkoutSessionInput[] | Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput[] + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput | Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput[] + upsert?: Prisma.ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput | Prisma.ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput[] + createMany?: Prisma.ExerciseLogCreateManyWorkoutSessionInputEnvelope + set?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + disconnect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + delete?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + update?: Prisma.ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput | Prisma.ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput[] + updateMany?: Prisma.ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput | Prisma.ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput[] + deleteMany?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[] +} + +export type ExerciseLogUncheckedUpdateManyWithoutWorkoutSessionNestedInput = { + create?: Prisma.XOR | Prisma.ExerciseLogCreateWithoutWorkoutSessionInput[] | Prisma.ExerciseLogUncheckedCreateWithoutWorkoutSessionInput[] + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput | Prisma.ExerciseLogCreateOrConnectWithoutWorkoutSessionInput[] + upsert?: Prisma.ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput | Prisma.ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput[] + createMany?: Prisma.ExerciseLogCreateManyWorkoutSessionInputEnvelope + set?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + disconnect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + delete?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + connect?: Prisma.ExerciseLogWhereUniqueInput | Prisma.ExerciseLogWhereUniqueInput[] + update?: Prisma.ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput | Prisma.ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput[] + updateMany?: Prisma.ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput | Prisma.ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput[] + deleteMany?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[] +} + +export type ExerciseLogCreateNestedOneWithoutSessionFeedbacksInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutSessionFeedbacksInput + connect?: Prisma.ExerciseLogWhereUniqueInput +} + +export type ExerciseLogUpdateOneRequiredWithoutSessionFeedbacksNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExerciseLogCreateOrConnectWithoutSessionFeedbacksInput + upsert?: Prisma.ExerciseLogUpsertWithoutSessionFeedbacksInput + connect?: Prisma.ExerciseLogWhereUniqueInput + update?: Prisma.XOR, Prisma.ExerciseLogUncheckedUpdateWithoutSessionFeedbacksInput> +} + +export type ExerciseLogCreateWithoutMesoCycleExerciseInput = { + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSession: Prisma.WorkoutSessionCreateNestedOneWithoutExerciseLogsInput + sessionFeedbacks?: Prisma.SessionFeedbackCreateNestedManyWithoutExerciseLogInput +} + +export type ExerciseLogUncheckedCreateWithoutMesoCycleExerciseInput = { + id?: number + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId: number + sessionFeedbacks?: Prisma.SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput +} + +export type ExerciseLogCreateOrConnectWithoutMesoCycleExerciseInput = { + where: Prisma.ExerciseLogWhereUniqueInput + create: Prisma.XOR +} + +export type ExerciseLogCreateManyMesoCycleExerciseInputEnvelope = { + data: Prisma.ExerciseLogCreateManyMesoCycleExerciseInput | Prisma.ExerciseLogCreateManyMesoCycleExerciseInput[] + skipDuplicates?: boolean +} + +export type ExerciseLogUpsertWithWhereUniqueWithoutMesoCycleExerciseInput = { + where: Prisma.ExerciseLogWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExerciseLogUpdateWithWhereUniqueWithoutMesoCycleExerciseInput = { + where: Prisma.ExerciseLogWhereUniqueInput + data: Prisma.XOR +} + +export type ExerciseLogUpdateManyWithWhereWithoutMesoCycleExerciseInput = { + where: Prisma.ExerciseLogScalarWhereInput + data: Prisma.XOR +} + +export type ExerciseLogScalarWhereInput = { + AND?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[] + OR?: Prisma.ExerciseLogScalarWhereInput[] + NOT?: Prisma.ExerciseLogScalarWhereInput | Prisma.ExerciseLogScalarWhereInput[] + id?: Prisma.IntFilter<"ExerciseLog"> | number + sets?: Prisma.IntFilter<"ExerciseLog"> | number + reps?: Prisma.IntFilter<"ExerciseLog"> | number + weight?: Prisma.DecimalFilter<"ExerciseLog"> | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntFilter<"ExerciseLog"> | number + mesoCycleExerciseId?: Prisma.IntFilter<"ExerciseLog"> | number +} + +export type ExerciseLogCreateWithoutWorkoutSessionInput = { + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExercise: Prisma.MesoCycleExerciseCreateNestedOneWithoutExerciseLogsInput + sessionFeedbacks?: Prisma.SessionFeedbackCreateNestedManyWithoutExerciseLogInput +} + +export type ExerciseLogUncheckedCreateWithoutWorkoutSessionInput = { + id?: number + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExerciseId: number + sessionFeedbacks?: Prisma.SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput +} + +export type ExerciseLogCreateOrConnectWithoutWorkoutSessionInput = { + where: Prisma.ExerciseLogWhereUniqueInput + create: Prisma.XOR +} + +export type ExerciseLogCreateManyWorkoutSessionInputEnvelope = { + data: Prisma.ExerciseLogCreateManyWorkoutSessionInput | Prisma.ExerciseLogCreateManyWorkoutSessionInput[] + skipDuplicates?: boolean +} + +export type ExerciseLogUpsertWithWhereUniqueWithoutWorkoutSessionInput = { + where: Prisma.ExerciseLogWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExerciseLogUpdateWithWhereUniqueWithoutWorkoutSessionInput = { + where: Prisma.ExerciseLogWhereUniqueInput + data: Prisma.XOR +} + +export type ExerciseLogUpdateManyWithWhereWithoutWorkoutSessionInput = { + where: Prisma.ExerciseLogScalarWhereInput + data: Prisma.XOR +} + +export type ExerciseLogCreateWithoutSessionFeedbacksInput = { + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSession: Prisma.WorkoutSessionCreateNestedOneWithoutExerciseLogsInput + mesoCycleExercise: Prisma.MesoCycleExerciseCreateNestedOneWithoutExerciseLogsInput +} + +export type ExerciseLogUncheckedCreateWithoutSessionFeedbacksInput = { + id?: number + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId: number + mesoCycleExerciseId: number +} + +export type ExerciseLogCreateOrConnectWithoutSessionFeedbacksInput = { + where: Prisma.ExerciseLogWhereUniqueInput + create: Prisma.XOR +} + +export type ExerciseLogUpsertWithoutSessionFeedbacksInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExerciseLogWhereInput +} + +export type ExerciseLogUpdateToOneWithWhereWithoutSessionFeedbacksInput = { + where?: Prisma.ExerciseLogWhereInput + data: Prisma.XOR +} + +export type ExerciseLogUpdateWithoutSessionFeedbacksInput = { + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSession?: Prisma.WorkoutSessionUpdateOneRequiredWithoutExerciseLogsNestedInput + mesoCycleExercise?: Prisma.MesoCycleExerciseUpdateOneRequiredWithoutExerciseLogsNestedInput +} + +export type ExerciseLogUncheckedUpdateWithoutSessionFeedbacksInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ExerciseLogCreateManyMesoCycleExerciseInput = { + id?: number + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId: number +} + +export type ExerciseLogUpdateWithoutMesoCycleExerciseInput = { + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSession?: Prisma.WorkoutSessionUpdateOneRequiredWithoutExerciseLogsNestedInput + sessionFeedbacks?: Prisma.SessionFeedbackUpdateManyWithoutExerciseLogNestedInput +} + +export type ExerciseLogUncheckedUpdateWithoutMesoCycleExerciseInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number + sessionFeedbacks?: Prisma.SessionFeedbackUncheckedUpdateManyWithoutExerciseLogNestedInput +} + +export type ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + workoutSessionId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ExerciseLogCreateManyWorkoutSessionInput = { + id?: number + sets: number + reps: number + weight: runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExerciseId: number +} + +export type ExerciseLogUpdateWithoutWorkoutSessionInput = { + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExercise?: Prisma.MesoCycleExerciseUpdateOneRequiredWithoutExerciseLogsNestedInput + sessionFeedbacks?: Prisma.SessionFeedbackUpdateManyWithoutExerciseLogNestedInput +} + +export type ExerciseLogUncheckedUpdateWithoutWorkoutSessionInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number + sessionFeedbacks?: Prisma.SessionFeedbackUncheckedUpdateManyWithoutExerciseLogNestedInput +} + +export type ExerciseLogUncheckedUpdateManyWithoutWorkoutSessionInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sets?: Prisma.IntFieldUpdateOperationsInput | number + reps?: Prisma.IntFieldUpdateOperationsInput | number + weight?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + mesoCycleExerciseId?: Prisma.IntFieldUpdateOperationsInput | number +} + + +/** + * Count Type ExerciseLogCountOutputType + */ + +export type ExerciseLogCountOutputType = { + sessionFeedbacks: number +} + +export type ExerciseLogCountOutputTypeSelect = { + sessionFeedbacks?: boolean | ExerciseLogCountOutputTypeCountSessionFeedbacksArgs +} + +/** + * ExerciseLogCountOutputType without action + */ +export type ExerciseLogCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ExerciseLogCountOutputType + */ + select?: Prisma.ExerciseLogCountOutputTypeSelect | null +} + +/** + * ExerciseLogCountOutputType without action + */ +export type ExerciseLogCountOutputTypeCountSessionFeedbacksArgs = { + where?: Prisma.SessionFeedbackWhereInput +} + + +export type ExerciseLogSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + sets?: boolean + reps?: boolean + weight?: boolean + workoutSessionId?: boolean + mesoCycleExerciseId?: boolean + workoutSession?: boolean | Prisma.WorkoutSessionDefaultArgs + mesoCycleExercise?: boolean | Prisma.MesoCycleExerciseDefaultArgs + sessionFeedbacks?: boolean | Prisma.ExerciseLog$sessionFeedbacksArgs + _count?: boolean | Prisma.ExerciseLogCountOutputTypeDefaultArgs +}, ExtArgs["result"]["exerciseLog"]> + + + +export type ExerciseLogSelectScalar = { + id?: boolean + sets?: boolean + reps?: boolean + weight?: boolean + workoutSessionId?: boolean + mesoCycleExerciseId?: boolean +} + +export type ExerciseLogOmit = runtime.Types.Extensions.GetOmit<"id" | "sets" | "reps" | "weight" | "workoutSessionId" | "mesoCycleExerciseId", ExtArgs["result"]["exerciseLog"]> +export type ExerciseLogInclude = { + workoutSession?: boolean | Prisma.WorkoutSessionDefaultArgs + mesoCycleExercise?: boolean | Prisma.MesoCycleExerciseDefaultArgs + sessionFeedbacks?: boolean | Prisma.ExerciseLog$sessionFeedbacksArgs + _count?: boolean | Prisma.ExerciseLogCountOutputTypeDefaultArgs +} + +export type $ExerciseLogPayload = { + name: "ExerciseLog" + objects: { + workoutSession: Prisma.$WorkoutSessionPayload + mesoCycleExercise: Prisma.$MesoCycleExercisePayload + sessionFeedbacks: Prisma.$SessionFeedbackPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + sets: number + reps: number + weight: runtime.Decimal + workoutSessionId: number + mesoCycleExerciseId: number + }, ExtArgs["result"]["exerciseLog"]> + composites: {} +} + +export type ExerciseLogGetPayload = runtime.Types.Result.GetResult + +export type ExerciseLogCountArgs = + Omit & { + select?: ExerciseLogCountAggregateInputType | true + } + +export interface ExerciseLogDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ExerciseLog'], meta: { name: 'ExerciseLog' } } + /** + * Find zero or one ExerciseLog that matches the filter. + * @param {ExerciseLogFindUniqueArgs} args - Arguments to find a ExerciseLog + * @example + * // Get one ExerciseLog + * const exerciseLog = await prisma.exerciseLog.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseLogClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one ExerciseLog that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ExerciseLogFindUniqueOrThrowArgs} args - Arguments to find a ExerciseLog + * @example + * // Get one ExerciseLog + * const exerciseLog = await prisma.exerciseLog.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseLogClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ExerciseLog that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseLogFindFirstArgs} args - Arguments to find a ExerciseLog + * @example + * // Get one ExerciseLog + * const exerciseLog = await prisma.exerciseLog.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ExerciseLogClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ExerciseLog that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseLogFindFirstOrThrowArgs} args - Arguments to find a ExerciseLog + * @example + * // Get one ExerciseLog + * const exerciseLog = await prisma.exerciseLog.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ExerciseLogClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more ExerciseLogs that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseLogFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ExerciseLogs + * const exerciseLogs = await prisma.exerciseLog.findMany() + * + * // Get first 10 ExerciseLogs + * const exerciseLogs = await prisma.exerciseLog.findMany({ take: 10 }) + * + * // Only select the `id` + * const exerciseLogWithIdOnly = await prisma.exerciseLog.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a ExerciseLog. + * @param {ExerciseLogCreateArgs} args - Arguments to create a ExerciseLog. + * @example + * // Create one ExerciseLog + * const ExerciseLog = await prisma.exerciseLog.create({ + * data: { + * // ... data to create a ExerciseLog + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseLogClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many ExerciseLogs. + * @param {ExerciseLogCreateManyArgs} args - Arguments to create many ExerciseLogs. + * @example + * // Create many ExerciseLogs + * const exerciseLog = await prisma.exerciseLog.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a ExerciseLog. + * @param {ExerciseLogDeleteArgs} args - Arguments to delete one ExerciseLog. + * @example + * // Delete one ExerciseLog + * const ExerciseLog = await prisma.exerciseLog.delete({ + * where: { + * // ... filter to delete one ExerciseLog + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseLogClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one ExerciseLog. + * @param {ExerciseLogUpdateArgs} args - Arguments to update one ExerciseLog. + * @example + * // Update one ExerciseLog + * const exerciseLog = await prisma.exerciseLog.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseLogClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more ExerciseLogs. + * @param {ExerciseLogDeleteManyArgs} args - Arguments to filter ExerciseLogs to delete. + * @example + * // Delete a few ExerciseLogs + * const { count } = await prisma.exerciseLog.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ExerciseLogs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseLogUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ExerciseLogs + * const exerciseLog = await prisma.exerciseLog.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one ExerciseLog. + * @param {ExerciseLogUpsertArgs} args - Arguments to update or create a ExerciseLog. + * @example + * // Update or create a ExerciseLog + * const exerciseLog = await prisma.exerciseLog.upsert({ + * create: { + * // ... data to create a ExerciseLog + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ExerciseLog we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ExerciseLogClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of ExerciseLogs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseLogCountArgs} args - Arguments to filter ExerciseLogs to count. + * @example + * // Count the number of ExerciseLogs + * const count = await prisma.exerciseLog.count({ + * where: { + * // ... the filter for the ExerciseLogs we want to count + * } + * }) + **/ + count( + 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 ExerciseLog. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by ExerciseLog. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExerciseLogGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends ExerciseLogGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ExerciseLogGroupByArgs['orderBy'] } + : { orderBy?: ExerciseLogGroupByArgs['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 ? GetExerciseLogGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ExerciseLog model + */ +readonly fields: ExerciseLogFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ExerciseLog. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__ExerciseLogClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + workoutSession = {}>(args?: Prisma.Subset>): Prisma.Prisma__WorkoutSessionClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + mesoCycleExercise = {}>(args?: Prisma.Subset>): Prisma.Prisma__MesoCycleExerciseClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + sessionFeedbacks = {}>(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 ExerciseLog model + */ +export interface ExerciseLogFieldRefs { + readonly id: Prisma.FieldRef<"ExerciseLog", 'Int'> + readonly sets: Prisma.FieldRef<"ExerciseLog", 'Int'> + readonly reps: Prisma.FieldRef<"ExerciseLog", 'Int'> + readonly weight: Prisma.FieldRef<"ExerciseLog", 'Decimal'> + readonly workoutSessionId: Prisma.FieldRef<"ExerciseLog", 'Int'> + readonly mesoCycleExerciseId: Prisma.FieldRef<"ExerciseLog", 'Int'> +} + + +// Custom InputTypes +/** + * ExerciseLog findUnique + */ +export type ExerciseLogFindUniqueArgs = { + /** + * 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 + /** + * Filter, which ExerciseLog to fetch. + */ + where: Prisma.ExerciseLogWhereUniqueInput +} + +/** + * ExerciseLog findUniqueOrThrow + */ +export type ExerciseLogFindUniqueOrThrowArgs = { + /** + * 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 + /** + * Filter, which ExerciseLog to fetch. + */ + where: Prisma.ExerciseLogWhereUniqueInput +} + +/** + * ExerciseLog findFirst + */ +export type ExerciseLogFindFirstArgs = { + /** + * 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 + /** + * Filter, which ExerciseLog to fetch. + */ + where?: Prisma.ExerciseLogWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExerciseLogs to fetch. + */ + orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ExerciseLogs. + */ + cursor?: Prisma.ExerciseLogWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExerciseLogs from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ExerciseLogs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExerciseLogs. + */ + distinct?: Prisma.ExerciseLogScalarFieldEnum | Prisma.ExerciseLogScalarFieldEnum[] +} + +/** + * ExerciseLog findFirstOrThrow + */ +export type ExerciseLogFindFirstOrThrowArgs = { + /** + * 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 + /** + * Filter, which ExerciseLog to fetch. + */ + where?: Prisma.ExerciseLogWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExerciseLogs to fetch. + */ + orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ExerciseLogs. + */ + cursor?: Prisma.ExerciseLogWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExerciseLogs from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ExerciseLogs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExerciseLogs. + */ + distinct?: Prisma.ExerciseLogScalarFieldEnum | Prisma.ExerciseLogScalarFieldEnum[] +} + +/** + * ExerciseLog findMany + */ +export type ExerciseLogFindManyArgs = { + /** + * 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 + /** + * Filter, which ExerciseLogs to fetch. + */ + where?: Prisma.ExerciseLogWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExerciseLogs to fetch. + */ + orderBy?: Prisma.ExerciseLogOrderByWithRelationInput | Prisma.ExerciseLogOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ExerciseLogs. + */ + cursor?: Prisma.ExerciseLogWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` ExerciseLogs from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` ExerciseLogs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExerciseLogs. + */ + distinct?: Prisma.ExerciseLogScalarFieldEnum | Prisma.ExerciseLogScalarFieldEnum[] +} + +/** + * ExerciseLog create + */ +export type ExerciseLogCreateArgs = { + /** + * 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 + /** + * The data needed to create a ExerciseLog. + */ + data: Prisma.XOR +} + +/** + * ExerciseLog createMany + */ +export type ExerciseLogCreateManyArgs = { + /** + * The data used to create many ExerciseLogs. + */ + data: Prisma.ExerciseLogCreateManyInput | Prisma.ExerciseLogCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ExerciseLog update + */ +export type ExerciseLogUpdateArgs = { + /** + * 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 + /** + * The data needed to update a ExerciseLog. + */ + data: Prisma.XOR + /** + * Choose, which ExerciseLog to update. + */ + where: Prisma.ExerciseLogWhereUniqueInput +} + +/** + * ExerciseLog updateMany + */ +export type ExerciseLogUpdateManyArgs = { + /** + * The data used to update ExerciseLogs. + */ + data: Prisma.XOR + /** + * Filter which ExerciseLogs to update + */ + where?: Prisma.ExerciseLogWhereInput + /** + * Limit how many ExerciseLogs to update. + */ + limit?: number +} + +/** + * ExerciseLog upsert + */ +export type ExerciseLogUpsertArgs = { + /** + * 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 + /** + * The filter to search for the ExerciseLog to update in case it exists. + */ + where: Prisma.ExerciseLogWhereUniqueInput + /** + * In case the ExerciseLog found by the `where` argument doesn't exist, create a new ExerciseLog with this data. + */ + create: Prisma.XOR + /** + * In case the ExerciseLog was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ExerciseLog delete + */ +export type ExerciseLogDeleteArgs = { + /** + * 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 + /** + * Filter which ExerciseLog to delete. + */ + where: Prisma.ExerciseLogWhereUniqueInput +} + +/** + * ExerciseLog deleteMany + */ +export type ExerciseLogDeleteManyArgs = { + /** + * Filter which ExerciseLogs to delete + */ + where?: Prisma.ExerciseLogWhereInput + /** + * Limit how many ExerciseLogs to delete. + */ + limit?: number +} + +/** + * ExerciseLog.sessionFeedbacks + */ +export type ExerciseLog$sessionFeedbacksArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + where?: Prisma.SessionFeedbackWhereInput + orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[] + cursor?: Prisma.SessionFeedbackWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.SessionFeedbackScalarFieldEnum | Prisma.SessionFeedbackScalarFieldEnum[] +} + +/** + * ExerciseLog without action + */ +export type ExerciseLogDefaultArgs = { + /** + * 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 +} diff --git a/generated/prisma/models/MesoCycle.ts b/generated/prisma/models/MesoCycle.ts new file mode 100644 index 0000000..00914f1 --- /dev/null +++ b/generated/prisma/models/MesoCycle.ts @@ -0,0 +1,1446 @@ + +/* !!! 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 +} diff --git a/generated/prisma/models/MesoCycleDay.ts b/generated/prisma/models/MesoCycleDay.ts new file mode 100644 index 0000000..244af2c --- /dev/null +++ b/generated/prisma/models/MesoCycleDay.ts @@ -0,0 +1,1484 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `MesoCycleDay` 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 MesoCycleDay + * + */ +export type MesoCycleDayModel = runtime.Types.Result.DefaultSelection + +export type AggregateMesoCycleDay = { + _count: MesoCycleDayCountAggregateOutputType | null + _avg: MesoCycleDayAvgAggregateOutputType | null + _sum: MesoCycleDaySumAggregateOutputType | null + _min: MesoCycleDayMinAggregateOutputType | null + _max: MesoCycleDayMaxAggregateOutputType | null +} + +export type MesoCycleDayAvgAggregateOutputType = { + id: number | null + orderIndex: number | null + mesoCycleId: number | null +} + +export type MesoCycleDaySumAggregateOutputType = { + id: number | null + orderIndex: number | null + mesoCycleId: number | null +} + +export type MesoCycleDayMinAggregateOutputType = { + id: number | null + weekday: string | null + orderIndex: number | null + mesoCycleId: number | null +} + +export type MesoCycleDayMaxAggregateOutputType = { + id: number | null + weekday: string | null + orderIndex: number | null + mesoCycleId: number | null +} + +export type MesoCycleDayCountAggregateOutputType = { + id: number + weekday: number + orderIndex: number + mesoCycleId: number + _all: number +} + + +export type MesoCycleDayAvgAggregateInputType = { + id?: true + orderIndex?: true + mesoCycleId?: true +} + +export type MesoCycleDaySumAggregateInputType = { + id?: true + orderIndex?: true + mesoCycleId?: true +} + +export type MesoCycleDayMinAggregateInputType = { + id?: true + weekday?: true + orderIndex?: true + mesoCycleId?: true +} + +export type MesoCycleDayMaxAggregateInputType = { + id?: true + weekday?: true + orderIndex?: true + mesoCycleId?: true +} + +export type MesoCycleDayCountAggregateInputType = { + id?: true + weekday?: true + orderIndex?: true + mesoCycleId?: true + _all?: true +} + +export type MesoCycleDayAggregateArgs = { + /** + * Filter which MesoCycleDay to aggregate. + */ + where?: Prisma.MesoCycleDayWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MesoCycleDays to fetch. + */ + orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.MesoCycleDayWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MesoCycleDays 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` MesoCycleDays. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned MesoCycleDays + **/ + _count?: true | MesoCycleDayCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: MesoCycleDayAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: MesoCycleDaySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: MesoCycleDayMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: MesoCycleDayMaxAggregateInputType +} + +export type GetMesoCycleDayAggregateType = { + [P in keyof T & keyof AggregateMesoCycleDay]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type MesoCycleDayGroupByArgs = { + where?: Prisma.MesoCycleDayWhereInput + orderBy?: Prisma.MesoCycleDayOrderByWithAggregationInput | Prisma.MesoCycleDayOrderByWithAggregationInput[] + by: Prisma.MesoCycleDayScalarFieldEnum[] | Prisma.MesoCycleDayScalarFieldEnum + having?: Prisma.MesoCycleDayScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: MesoCycleDayCountAggregateInputType | true + _avg?: MesoCycleDayAvgAggregateInputType + _sum?: MesoCycleDaySumAggregateInputType + _min?: MesoCycleDayMinAggregateInputType + _max?: MesoCycleDayMaxAggregateInputType +} + +export type MesoCycleDayGroupByOutputType = { + id: number + weekday: string | null + orderIndex: number + mesoCycleId: number + _count: MesoCycleDayCountAggregateOutputType | null + _avg: MesoCycleDayAvgAggregateOutputType | null + _sum: MesoCycleDaySumAggregateOutputType | null + _min: MesoCycleDayMinAggregateOutputType | null + _max: MesoCycleDayMaxAggregateOutputType | null +} + +type GetMesoCycleDayGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof MesoCycleDayGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type MesoCycleDayWhereInput = { + AND?: Prisma.MesoCycleDayWhereInput | Prisma.MesoCycleDayWhereInput[] + OR?: Prisma.MesoCycleDayWhereInput[] + NOT?: Prisma.MesoCycleDayWhereInput | Prisma.MesoCycleDayWhereInput[] + id?: Prisma.IntFilter<"MesoCycleDay"> | number + weekday?: Prisma.StringNullableFilter<"MesoCycleDay"> | string | null + orderIndex?: Prisma.IntFilter<"MesoCycleDay"> | number + mesoCycleId?: Prisma.IntFilter<"MesoCycleDay"> | number + mesoCycle?: Prisma.XOR + mesoCycleExercises?: Prisma.MesoCycleExerciseListRelationFilter + workOutSessions?: Prisma.WorkoutSessionListRelationFilter +} + +export type MesoCycleDayOrderByWithRelationInput = { + id?: Prisma.SortOrder + weekday?: Prisma.SortOrderInput | Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleId?: Prisma.SortOrder + mesoCycle?: Prisma.MesoCycleOrderByWithRelationInput + mesoCycleExercises?: Prisma.MesoCycleExerciseOrderByRelationAggregateInput + workOutSessions?: Prisma.WorkoutSessionOrderByRelationAggregateInput + _relevance?: Prisma.MesoCycleDayOrderByRelevanceInput +} + +export type MesoCycleDayWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.MesoCycleDayWhereInput | Prisma.MesoCycleDayWhereInput[] + OR?: Prisma.MesoCycleDayWhereInput[] + NOT?: Prisma.MesoCycleDayWhereInput | Prisma.MesoCycleDayWhereInput[] + weekday?: Prisma.StringNullableFilter<"MesoCycleDay"> | string | null + orderIndex?: Prisma.IntFilter<"MesoCycleDay"> | number + mesoCycleId?: Prisma.IntFilter<"MesoCycleDay"> | number + mesoCycle?: Prisma.XOR + mesoCycleExercises?: Prisma.MesoCycleExerciseListRelationFilter + workOutSessions?: Prisma.WorkoutSessionListRelationFilter +}, "id"> + +export type MesoCycleDayOrderByWithAggregationInput = { + id?: Prisma.SortOrder + weekday?: Prisma.SortOrderInput | Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleId?: Prisma.SortOrder + _count?: Prisma.MesoCycleDayCountOrderByAggregateInput + _avg?: Prisma.MesoCycleDayAvgOrderByAggregateInput + _max?: Prisma.MesoCycleDayMaxOrderByAggregateInput + _min?: Prisma.MesoCycleDayMinOrderByAggregateInput + _sum?: Prisma.MesoCycleDaySumOrderByAggregateInput +} + +export type MesoCycleDayScalarWhereWithAggregatesInput = { + AND?: Prisma.MesoCycleDayScalarWhereWithAggregatesInput | Prisma.MesoCycleDayScalarWhereWithAggregatesInput[] + OR?: Prisma.MesoCycleDayScalarWhereWithAggregatesInput[] + NOT?: Prisma.MesoCycleDayScalarWhereWithAggregatesInput | Prisma.MesoCycleDayScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"MesoCycleDay"> | number + weekday?: Prisma.StringNullableWithAggregatesFilter<"MesoCycleDay"> | string | null + orderIndex?: Prisma.IntWithAggregatesFilter<"MesoCycleDay"> | number + mesoCycleId?: Prisma.IntWithAggregatesFilter<"MesoCycleDay"> | number +} + +export type MesoCycleDayCreateInput = { + weekday?: string | null + orderIndex: number + mesoCycle: Prisma.MesoCycleCreateNestedOneWithoutMesoCycleDaysInput + mesoCycleExercises?: Prisma.MesoCycleExerciseCreateNestedManyWithoutMesoCycleDayInput + workOutSessions?: Prisma.WorkoutSessionCreateNestedManyWithoutMesoCycleDayInput +} + +export type MesoCycleDayUncheckedCreateInput = { + id?: number + weekday?: string | null + orderIndex: number + mesoCycleId: number + mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedCreateNestedManyWithoutMesoCycleDayInput + workOutSessions?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutMesoCycleDayInput +} + +export type MesoCycleDayUpdateInput = { + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycle?: Prisma.MesoCycleUpdateOneRequiredWithoutMesoCycleDaysNestedInput + mesoCycleExercises?: Prisma.MesoCycleExerciseUpdateManyWithoutMesoCycleDayNestedInput + workOutSessions?: Prisma.WorkoutSessionUpdateManyWithoutMesoCycleDayNestedInput +} + +export type MesoCycleDayUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleId?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayNestedInput + workOutSessions?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutMesoCycleDayNestedInput +} + +export type MesoCycleDayCreateManyInput = { + id?: number + weekday?: string | null + orderIndex: number + mesoCycleId: number +} + +export type MesoCycleDayUpdateManyMutationInput = { + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type MesoCycleDayUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type MesoCycleDayListRelationFilter = { + every?: Prisma.MesoCycleDayWhereInput + some?: Prisma.MesoCycleDayWhereInput + none?: Prisma.MesoCycleDayWhereInput +} + +export type MesoCycleDayOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type MesoCycleDayOrderByRelevanceInput = { + fields: Prisma.MesoCycleDayOrderByRelevanceFieldEnum | Prisma.MesoCycleDayOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type MesoCycleDayCountOrderByAggregateInput = { + id?: Prisma.SortOrder + weekday?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleId?: Prisma.SortOrder +} + +export type MesoCycleDayAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleId?: Prisma.SortOrder +} + +export type MesoCycleDayMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + weekday?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleId?: Prisma.SortOrder +} + +export type MesoCycleDayMinOrderByAggregateInput = { + id?: Prisma.SortOrder + weekday?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleId?: Prisma.SortOrder +} + +export type MesoCycleDaySumOrderByAggregateInput = { + id?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleId?: Prisma.SortOrder +} + +export type MesoCycleDayScalarRelationFilter = { + is?: Prisma.MesoCycleDayWhereInput + isNot?: Prisma.MesoCycleDayWhereInput +} + +export type MesoCycleDayCreateNestedManyWithoutMesoCycleInput = { + create?: Prisma.XOR | Prisma.MesoCycleDayCreateWithoutMesoCycleInput[] | Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput[] + connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput | Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput[] + createMany?: Prisma.MesoCycleDayCreateManyMesoCycleInputEnvelope + connect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] +} + +export type MesoCycleDayUncheckedCreateNestedManyWithoutMesoCycleInput = { + create?: Prisma.XOR | Prisma.MesoCycleDayCreateWithoutMesoCycleInput[] | Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput[] + connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput | Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput[] + createMany?: Prisma.MesoCycleDayCreateManyMesoCycleInputEnvelope + connect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] +} + +export type MesoCycleDayUpdateManyWithoutMesoCycleNestedInput = { + create?: Prisma.XOR | Prisma.MesoCycleDayCreateWithoutMesoCycleInput[] | Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput[] + connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput | Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput[] + upsert?: Prisma.MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput | Prisma.MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput[] + createMany?: Prisma.MesoCycleDayCreateManyMesoCycleInputEnvelope + set?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] + disconnect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] + delete?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] + connect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] + update?: Prisma.MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput | Prisma.MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput[] + updateMany?: Prisma.MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput | Prisma.MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput[] + deleteMany?: Prisma.MesoCycleDayScalarWhereInput | Prisma.MesoCycleDayScalarWhereInput[] +} + +export type MesoCycleDayUncheckedUpdateManyWithoutMesoCycleNestedInput = { + create?: Prisma.XOR | Prisma.MesoCycleDayCreateWithoutMesoCycleInput[] | Prisma.MesoCycleDayUncheckedCreateWithoutMesoCycleInput[] + connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput | Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleInput[] + upsert?: Prisma.MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput | Prisma.MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput[] + createMany?: Prisma.MesoCycleDayCreateManyMesoCycleInputEnvelope + set?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] + disconnect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] + delete?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] + connect?: Prisma.MesoCycleDayWhereUniqueInput | Prisma.MesoCycleDayWhereUniqueInput[] + update?: Prisma.MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput | Prisma.MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput[] + updateMany?: Prisma.MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput | Prisma.MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput[] + deleteMany?: Prisma.MesoCycleDayScalarWhereInput | Prisma.MesoCycleDayScalarWhereInput[] +} + +export type MesoCycleDayCreateNestedOneWithoutMesoCycleExercisesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleExercisesInput + connect?: Prisma.MesoCycleDayWhereUniqueInput +} + +export type MesoCycleDayUpdateOneRequiredWithoutMesoCycleExercisesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutMesoCycleExercisesInput + upsert?: Prisma.MesoCycleDayUpsertWithoutMesoCycleExercisesInput + connect?: Prisma.MesoCycleDayWhereUniqueInput + update?: Prisma.XOR, Prisma.MesoCycleDayUncheckedUpdateWithoutMesoCycleExercisesInput> +} + +export type MesoCycleDayCreateNestedOneWithoutWorkOutSessionsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutWorkOutSessionsInput + connect?: Prisma.MesoCycleDayWhereUniqueInput +} + +export type MesoCycleDayUpdateOneRequiredWithoutWorkOutSessionsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.MesoCycleDayCreateOrConnectWithoutWorkOutSessionsInput + upsert?: Prisma.MesoCycleDayUpsertWithoutWorkOutSessionsInput + connect?: Prisma.MesoCycleDayWhereUniqueInput + update?: Prisma.XOR, Prisma.MesoCycleDayUncheckedUpdateWithoutWorkOutSessionsInput> +} + +export type MesoCycleDayCreateWithoutMesoCycleInput = { + weekday?: string | null + orderIndex: number + mesoCycleExercises?: Prisma.MesoCycleExerciseCreateNestedManyWithoutMesoCycleDayInput + workOutSessions?: Prisma.WorkoutSessionCreateNestedManyWithoutMesoCycleDayInput +} + +export type MesoCycleDayUncheckedCreateWithoutMesoCycleInput = { + id?: number + weekday?: string | null + orderIndex: number + mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedCreateNestedManyWithoutMesoCycleDayInput + workOutSessions?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutMesoCycleDayInput +} + +export type MesoCycleDayCreateOrConnectWithoutMesoCycleInput = { + where: Prisma.MesoCycleDayWhereUniqueInput + create: Prisma.XOR +} + +export type MesoCycleDayCreateManyMesoCycleInputEnvelope = { + data: Prisma.MesoCycleDayCreateManyMesoCycleInput | Prisma.MesoCycleDayCreateManyMesoCycleInput[] + skipDuplicates?: boolean +} + +export type MesoCycleDayUpsertWithWhereUniqueWithoutMesoCycleInput = { + where: Prisma.MesoCycleDayWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type MesoCycleDayUpdateWithWhereUniqueWithoutMesoCycleInput = { + where: Prisma.MesoCycleDayWhereUniqueInput + data: Prisma.XOR +} + +export type MesoCycleDayUpdateManyWithWhereWithoutMesoCycleInput = { + where: Prisma.MesoCycleDayScalarWhereInput + data: Prisma.XOR +} + +export type MesoCycleDayScalarWhereInput = { + AND?: Prisma.MesoCycleDayScalarWhereInput | Prisma.MesoCycleDayScalarWhereInput[] + OR?: Prisma.MesoCycleDayScalarWhereInput[] + NOT?: Prisma.MesoCycleDayScalarWhereInput | Prisma.MesoCycleDayScalarWhereInput[] + id?: Prisma.IntFilter<"MesoCycleDay"> | number + weekday?: Prisma.StringNullableFilter<"MesoCycleDay"> | string | null + orderIndex?: Prisma.IntFilter<"MesoCycleDay"> | number + mesoCycleId?: Prisma.IntFilter<"MesoCycleDay"> | number +} + +export type MesoCycleDayCreateWithoutMesoCycleExercisesInput = { + weekday?: string | null + orderIndex: number + mesoCycle: Prisma.MesoCycleCreateNestedOneWithoutMesoCycleDaysInput + workOutSessions?: Prisma.WorkoutSessionCreateNestedManyWithoutMesoCycleDayInput +} + +export type MesoCycleDayUncheckedCreateWithoutMesoCycleExercisesInput = { + id?: number + weekday?: string | null + orderIndex: number + mesoCycleId: number + workOutSessions?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutMesoCycleDayInput +} + +export type MesoCycleDayCreateOrConnectWithoutMesoCycleExercisesInput = { + where: Prisma.MesoCycleDayWhereUniqueInput + create: Prisma.XOR +} + +export type MesoCycleDayUpsertWithoutMesoCycleExercisesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.MesoCycleDayWhereInput +} + +export type MesoCycleDayUpdateToOneWithWhereWithoutMesoCycleExercisesInput = { + where?: Prisma.MesoCycleDayWhereInput + data: Prisma.XOR +} + +export type MesoCycleDayUpdateWithoutMesoCycleExercisesInput = { + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycle?: Prisma.MesoCycleUpdateOneRequiredWithoutMesoCycleDaysNestedInput + workOutSessions?: Prisma.WorkoutSessionUpdateManyWithoutMesoCycleDayNestedInput +} + +export type MesoCycleDayUncheckedUpdateWithoutMesoCycleExercisesInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleId?: Prisma.IntFieldUpdateOperationsInput | number + workOutSessions?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutMesoCycleDayNestedInput +} + +export type MesoCycleDayCreateWithoutWorkOutSessionsInput = { + weekday?: string | null + orderIndex: number + mesoCycle: Prisma.MesoCycleCreateNestedOneWithoutMesoCycleDaysInput + mesoCycleExercises?: Prisma.MesoCycleExerciseCreateNestedManyWithoutMesoCycleDayInput +} + +export type MesoCycleDayUncheckedCreateWithoutWorkOutSessionsInput = { + id?: number + weekday?: string | null + orderIndex: number + mesoCycleId: number + mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedCreateNestedManyWithoutMesoCycleDayInput +} + +export type MesoCycleDayCreateOrConnectWithoutWorkOutSessionsInput = { + where: Prisma.MesoCycleDayWhereUniqueInput + create: Prisma.XOR +} + +export type MesoCycleDayUpsertWithoutWorkOutSessionsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.MesoCycleDayWhereInput +} + +export type MesoCycleDayUpdateToOneWithWhereWithoutWorkOutSessionsInput = { + where?: Prisma.MesoCycleDayWhereInput + data: Prisma.XOR +} + +export type MesoCycleDayUpdateWithoutWorkOutSessionsInput = { + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycle?: Prisma.MesoCycleUpdateOneRequiredWithoutMesoCycleDaysNestedInput + mesoCycleExercises?: Prisma.MesoCycleExerciseUpdateManyWithoutMesoCycleDayNestedInput +} + +export type MesoCycleDayUncheckedUpdateWithoutWorkOutSessionsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleId?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayNestedInput +} + +export type MesoCycleDayCreateManyMesoCycleInput = { + id?: number + weekday?: string | null + orderIndex: number +} + +export type MesoCycleDayUpdateWithoutMesoCycleInput = { + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleExercises?: Prisma.MesoCycleExerciseUpdateManyWithoutMesoCycleDayNestedInput + workOutSessions?: Prisma.WorkoutSessionUpdateManyWithoutMesoCycleDayNestedInput +} + +export type MesoCycleDayUncheckedUpdateWithoutMesoCycleInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleExercises?: Prisma.MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayNestedInput + workOutSessions?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutMesoCycleDayNestedInput +} + +export type MesoCycleDayUncheckedUpdateManyWithoutMesoCycleInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + weekday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number +} + + +/** + * Count Type MesoCycleDayCountOutputType + */ + +export type MesoCycleDayCountOutputType = { + mesoCycleExercises: number + workOutSessions: number +} + +export type MesoCycleDayCountOutputTypeSelect = { + mesoCycleExercises?: boolean | MesoCycleDayCountOutputTypeCountMesoCycleExercisesArgs + workOutSessions?: boolean | MesoCycleDayCountOutputTypeCountWorkOutSessionsArgs +} + +/** + * MesoCycleDayCountOutputType without action + */ +export type MesoCycleDayCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the MesoCycleDayCountOutputType + */ + select?: Prisma.MesoCycleDayCountOutputTypeSelect | null +} + +/** + * MesoCycleDayCountOutputType without action + */ +export type MesoCycleDayCountOutputTypeCountMesoCycleExercisesArgs = { + where?: Prisma.MesoCycleExerciseWhereInput +} + +/** + * MesoCycleDayCountOutputType without action + */ +export type MesoCycleDayCountOutputTypeCountWorkOutSessionsArgs = { + where?: Prisma.WorkoutSessionWhereInput +} + + +export type MesoCycleDaySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + weekday?: boolean + orderIndex?: boolean + mesoCycleId?: boolean + mesoCycle?: boolean | Prisma.MesoCycleDefaultArgs + mesoCycleExercises?: boolean | Prisma.MesoCycleDay$mesoCycleExercisesArgs + workOutSessions?: boolean | Prisma.MesoCycleDay$workOutSessionsArgs + _count?: boolean | Prisma.MesoCycleDayCountOutputTypeDefaultArgs +}, ExtArgs["result"]["mesoCycleDay"]> + + + +export type MesoCycleDaySelectScalar = { + id?: boolean + weekday?: boolean + orderIndex?: boolean + mesoCycleId?: boolean +} + +export type MesoCycleDayOmit = runtime.Types.Extensions.GetOmit<"id" | "weekday" | "orderIndex" | "mesoCycleId", ExtArgs["result"]["mesoCycleDay"]> +export type MesoCycleDayInclude = { + mesoCycle?: boolean | Prisma.MesoCycleDefaultArgs + mesoCycleExercises?: boolean | Prisma.MesoCycleDay$mesoCycleExercisesArgs + workOutSessions?: boolean | Prisma.MesoCycleDay$workOutSessionsArgs + _count?: boolean | Prisma.MesoCycleDayCountOutputTypeDefaultArgs +} + +export type $MesoCycleDayPayload = { + name: "MesoCycleDay" + objects: { + mesoCycle: Prisma.$MesoCyclePayload + mesoCycleExercises: Prisma.$MesoCycleExercisePayload[] + workOutSessions: Prisma.$WorkoutSessionPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + weekday: string | null + orderIndex: number + mesoCycleId: number + }, ExtArgs["result"]["mesoCycleDay"]> + composites: {} +} + +export type MesoCycleDayGetPayload = runtime.Types.Result.GetResult + +export type MesoCycleDayCountArgs = + Omit & { + select?: MesoCycleDayCountAggregateInputType | true + } + +export interface MesoCycleDayDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['MesoCycleDay'], meta: { name: 'MesoCycleDay' } } + /** + * Find zero or one MesoCycleDay that matches the filter. + * @param {MesoCycleDayFindUniqueArgs} args - Arguments to find a MesoCycleDay + * @example + * // Get one MesoCycleDay + * const mesoCycleDay = await prisma.mesoCycleDay.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleDayClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one MesoCycleDay that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {MesoCycleDayFindUniqueOrThrowArgs} args - Arguments to find a MesoCycleDay + * @example + * // Get one MesoCycleDay + * const mesoCycleDay = await prisma.mesoCycleDay.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleDayClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first MesoCycleDay 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 {MesoCycleDayFindFirstArgs} args - Arguments to find a MesoCycleDay + * @example + * // Get one MesoCycleDay + * const mesoCycleDay = await prisma.mesoCycleDay.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleDayClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first MesoCycleDay 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 {MesoCycleDayFindFirstOrThrowArgs} args - Arguments to find a MesoCycleDay + * @example + * // Get one MesoCycleDay + * const mesoCycleDay = await prisma.mesoCycleDay.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleDayClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more MesoCycleDays 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 {MesoCycleDayFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all MesoCycleDays + * const mesoCycleDays = await prisma.mesoCycleDay.findMany() + * + * // Get first 10 MesoCycleDays + * const mesoCycleDays = await prisma.mesoCycleDay.findMany({ take: 10 }) + * + * // Only select the `id` + * const mesoCycleDayWithIdOnly = await prisma.mesoCycleDay.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a MesoCycleDay. + * @param {MesoCycleDayCreateArgs} args - Arguments to create a MesoCycleDay. + * @example + * // Create one MesoCycleDay + * const MesoCycleDay = await prisma.mesoCycleDay.create({ + * data: { + * // ... data to create a MesoCycleDay + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleDayClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many MesoCycleDays. + * @param {MesoCycleDayCreateManyArgs} args - Arguments to create many MesoCycleDays. + * @example + * // Create many MesoCycleDays + * const mesoCycleDay = await prisma.mesoCycleDay.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a MesoCycleDay. + * @param {MesoCycleDayDeleteArgs} args - Arguments to delete one MesoCycleDay. + * @example + * // Delete one MesoCycleDay + * const MesoCycleDay = await prisma.mesoCycleDay.delete({ + * where: { + * // ... filter to delete one MesoCycleDay + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleDayClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one MesoCycleDay. + * @param {MesoCycleDayUpdateArgs} args - Arguments to update one MesoCycleDay. + * @example + * // Update one MesoCycleDay + * const mesoCycleDay = await prisma.mesoCycleDay.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleDayClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more MesoCycleDays. + * @param {MesoCycleDayDeleteManyArgs} args - Arguments to filter MesoCycleDays to delete. + * @example + * // Delete a few MesoCycleDays + * const { count } = await prisma.mesoCycleDay.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more MesoCycleDays. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MesoCycleDayUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many MesoCycleDays + * const mesoCycleDay = await prisma.mesoCycleDay.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one MesoCycleDay. + * @param {MesoCycleDayUpsertArgs} args - Arguments to update or create a MesoCycleDay. + * @example + * // Update or create a MesoCycleDay + * const mesoCycleDay = await prisma.mesoCycleDay.upsert({ + * create: { + * // ... data to create a MesoCycleDay + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the MesoCycleDay we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleDayClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of MesoCycleDays. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MesoCycleDayCountArgs} args - Arguments to filter MesoCycleDays to count. + * @example + * // Count the number of MesoCycleDays + * const count = await prisma.mesoCycleDay.count({ + * where: { + * // ... the filter for the MesoCycleDays 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 MesoCycleDay. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MesoCycleDayAggregateArgs} 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 MesoCycleDay. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MesoCycleDayGroupByArgs} 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 MesoCycleDayGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: MesoCycleDayGroupByArgs['orderBy'] } + : { orderBy?: MesoCycleDayGroupByArgs['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 ? GetMesoCycleDayGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the MesoCycleDay model + */ +readonly fields: MesoCycleDayFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for MesoCycleDay. + * 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__MesoCycleDayClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + mesoCycle = {}>(args?: Prisma.Subset>): Prisma.Prisma__MesoCycleClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + mesoCycleExercises = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + workOutSessions = {}>(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 MesoCycleDay model + */ +export interface MesoCycleDayFieldRefs { + readonly id: Prisma.FieldRef<"MesoCycleDay", 'Int'> + readonly weekday: Prisma.FieldRef<"MesoCycleDay", 'String'> + readonly orderIndex: Prisma.FieldRef<"MesoCycleDay", 'Int'> + readonly mesoCycleId: Prisma.FieldRef<"MesoCycleDay", 'Int'> +} + + +// Custom InputTypes +/** + * MesoCycleDay findUnique + */ +export type MesoCycleDayFindUniqueArgs = { + /** + * 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 + /** + * Filter, which MesoCycleDay to fetch. + */ + where: Prisma.MesoCycleDayWhereUniqueInput +} + +/** + * MesoCycleDay findUniqueOrThrow + */ +export type MesoCycleDayFindUniqueOrThrowArgs = { + /** + * 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 + /** + * Filter, which MesoCycleDay to fetch. + */ + where: Prisma.MesoCycleDayWhereUniqueInput +} + +/** + * MesoCycleDay findFirst + */ +export type MesoCycleDayFindFirstArgs = { + /** + * 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 + /** + * Filter, which MesoCycleDay to fetch. + */ + where?: Prisma.MesoCycleDayWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MesoCycleDays to fetch. + */ + orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for MesoCycleDays. + */ + cursor?: Prisma.MesoCycleDayWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MesoCycleDays 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` MesoCycleDays. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MesoCycleDays. + */ + distinct?: Prisma.MesoCycleDayScalarFieldEnum | Prisma.MesoCycleDayScalarFieldEnum[] +} + +/** + * MesoCycleDay findFirstOrThrow + */ +export type MesoCycleDayFindFirstOrThrowArgs = { + /** + * 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 + /** + * Filter, which MesoCycleDay to fetch. + */ + where?: Prisma.MesoCycleDayWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MesoCycleDays to fetch. + */ + orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for MesoCycleDays. + */ + cursor?: Prisma.MesoCycleDayWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MesoCycleDays 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` MesoCycleDays. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MesoCycleDays. + */ + distinct?: Prisma.MesoCycleDayScalarFieldEnum | Prisma.MesoCycleDayScalarFieldEnum[] +} + +/** + * MesoCycleDay findMany + */ +export type MesoCycleDayFindManyArgs = { + /** + * 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 + /** + * Filter, which MesoCycleDays to fetch. + */ + where?: Prisma.MesoCycleDayWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MesoCycleDays to fetch. + */ + orderBy?: Prisma.MesoCycleDayOrderByWithRelationInput | Prisma.MesoCycleDayOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing MesoCycleDays. + */ + cursor?: Prisma.MesoCycleDayWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MesoCycleDays 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` MesoCycleDays. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MesoCycleDays. + */ + distinct?: Prisma.MesoCycleDayScalarFieldEnum | Prisma.MesoCycleDayScalarFieldEnum[] +} + +/** + * MesoCycleDay create + */ +export type MesoCycleDayCreateArgs = { + /** + * 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 + /** + * The data needed to create a MesoCycleDay. + */ + data: Prisma.XOR +} + +/** + * MesoCycleDay createMany + */ +export type MesoCycleDayCreateManyArgs = { + /** + * The data used to create many MesoCycleDays. + */ + data: Prisma.MesoCycleDayCreateManyInput | Prisma.MesoCycleDayCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * MesoCycleDay update + */ +export type MesoCycleDayUpdateArgs = { + /** + * 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 + /** + * The data needed to update a MesoCycleDay. + */ + data: Prisma.XOR + /** + * Choose, which MesoCycleDay to update. + */ + where: Prisma.MesoCycleDayWhereUniqueInput +} + +/** + * MesoCycleDay updateMany + */ +export type MesoCycleDayUpdateManyArgs = { + /** + * The data used to update MesoCycleDays. + */ + data: Prisma.XOR + /** + * Filter which MesoCycleDays to update + */ + where?: Prisma.MesoCycleDayWhereInput + /** + * Limit how many MesoCycleDays to update. + */ + limit?: number +} + +/** + * MesoCycleDay upsert + */ +export type MesoCycleDayUpsertArgs = { + /** + * 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 + /** + * The filter to search for the MesoCycleDay to update in case it exists. + */ + where: Prisma.MesoCycleDayWhereUniqueInput + /** + * In case the MesoCycleDay found by the `where` argument doesn't exist, create a new MesoCycleDay with this data. + */ + create: Prisma.XOR + /** + * In case the MesoCycleDay was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * MesoCycleDay delete + */ +export type MesoCycleDayDeleteArgs = { + /** + * 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 + /** + * Filter which MesoCycleDay to delete. + */ + where: Prisma.MesoCycleDayWhereUniqueInput +} + +/** + * MesoCycleDay deleteMany + */ +export type MesoCycleDayDeleteManyArgs = { + /** + * Filter which MesoCycleDays to delete + */ + where?: Prisma.MesoCycleDayWhereInput + /** + * Limit how many MesoCycleDays to delete. + */ + limit?: number +} + +/** + * MesoCycleDay.mesoCycleExercises + */ +export type MesoCycleDay$mesoCycleExercisesArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + where?: Prisma.MesoCycleExerciseWhereInput + orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[] + cursor?: Prisma.MesoCycleExerciseWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[] +} + +/** + * MesoCycleDay.workOutSessions + */ +export type MesoCycleDay$workOutSessionsArgs = { + /** + * 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 + where?: Prisma.WorkoutSessionWhereInput + orderBy?: Prisma.WorkoutSessionOrderByWithRelationInput | Prisma.WorkoutSessionOrderByWithRelationInput[] + cursor?: Prisma.WorkoutSessionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.WorkoutSessionScalarFieldEnum | Prisma.WorkoutSessionScalarFieldEnum[] +} + +/** + * MesoCycleDay without action + */ +export type MesoCycleDayDefaultArgs = { + /** + * 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 +} diff --git a/generated/prisma/models/MesoCycleExercise.ts b/generated/prisma/models/MesoCycleExercise.ts new file mode 100644 index 0000000..d8f545f --- /dev/null +++ b/generated/prisma/models/MesoCycleExercise.ts @@ -0,0 +1,1532 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `MesoCycleExercise` 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 MesoCycleExercise + * + */ +export type MesoCycleExerciseModel = runtime.Types.Result.DefaultSelection + +export type AggregateMesoCycleExercise = { + _count: MesoCycleExerciseCountAggregateOutputType | null + _avg: MesoCycleExerciseAvgAggregateOutputType | null + _sum: MesoCycleExerciseSumAggregateOutputType | null + _min: MesoCycleExerciseMinAggregateOutputType | null + _max: MesoCycleExerciseMaxAggregateOutputType | null +} + +export type MesoCycleExerciseAvgAggregateOutputType = { + id: number | null + startingSets: number | null + orderIndex: number | null + mesoCycleDayId: number | null + exerciseId: number | null +} + +export type MesoCycleExerciseSumAggregateOutputType = { + id: number | null + startingSets: number | null + orderIndex: number | null + mesoCycleDayId: number | null + exerciseId: number | null +} + +export type MesoCycleExerciseMinAggregateOutputType = { + id: number | null + startingSets: number | null + orderIndex: number | null + mesoCycleDayId: number | null + exerciseId: number | null +} + +export type MesoCycleExerciseMaxAggregateOutputType = { + id: number | null + startingSets: number | null + orderIndex: number | null + mesoCycleDayId: number | null + exerciseId: number | null +} + +export type MesoCycleExerciseCountAggregateOutputType = { + id: number + startingSets: number + orderIndex: number + mesoCycleDayId: number + exerciseId: number + _all: number +} + + +export type MesoCycleExerciseAvgAggregateInputType = { + id?: true + startingSets?: true + orderIndex?: true + mesoCycleDayId?: true + exerciseId?: true +} + +export type MesoCycleExerciseSumAggregateInputType = { + id?: true + startingSets?: true + orderIndex?: true + mesoCycleDayId?: true + exerciseId?: true +} + +export type MesoCycleExerciseMinAggregateInputType = { + id?: true + startingSets?: true + orderIndex?: true + mesoCycleDayId?: true + exerciseId?: true +} + +export type MesoCycleExerciseMaxAggregateInputType = { + id?: true + startingSets?: true + orderIndex?: true + mesoCycleDayId?: true + exerciseId?: true +} + +export type MesoCycleExerciseCountAggregateInputType = { + id?: true + startingSets?: true + orderIndex?: true + mesoCycleDayId?: true + exerciseId?: true + _all?: true +} + +export type MesoCycleExerciseAggregateArgs = { + /** + * Filter which MesoCycleExercise to aggregate. + */ + where?: Prisma.MesoCycleExerciseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MesoCycleExercises to fetch. + */ + orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.MesoCycleExerciseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MesoCycleExercises 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` MesoCycleExercises. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned MesoCycleExercises + **/ + _count?: true | MesoCycleExerciseCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: MesoCycleExerciseAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: MesoCycleExerciseSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: MesoCycleExerciseMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: MesoCycleExerciseMaxAggregateInputType +} + +export type GetMesoCycleExerciseAggregateType = { + [P in keyof T & keyof AggregateMesoCycleExercise]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type MesoCycleExerciseGroupByArgs = { + where?: Prisma.MesoCycleExerciseWhereInput + orderBy?: Prisma.MesoCycleExerciseOrderByWithAggregationInput | Prisma.MesoCycleExerciseOrderByWithAggregationInput[] + by: Prisma.MesoCycleExerciseScalarFieldEnum[] | Prisma.MesoCycleExerciseScalarFieldEnum + having?: Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: MesoCycleExerciseCountAggregateInputType | true + _avg?: MesoCycleExerciseAvgAggregateInputType + _sum?: MesoCycleExerciseSumAggregateInputType + _min?: MesoCycleExerciseMinAggregateInputType + _max?: MesoCycleExerciseMaxAggregateInputType +} + +export type MesoCycleExerciseGroupByOutputType = { + id: number + startingSets: number + orderIndex: number + mesoCycleDayId: number + exerciseId: number + _count: MesoCycleExerciseCountAggregateOutputType | null + _avg: MesoCycleExerciseAvgAggregateOutputType | null + _sum: MesoCycleExerciseSumAggregateOutputType | null + _min: MesoCycleExerciseMinAggregateOutputType | null + _max: MesoCycleExerciseMaxAggregateOutputType | null +} + +type GetMesoCycleExerciseGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof MesoCycleExerciseGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type MesoCycleExerciseWhereInput = { + AND?: Prisma.MesoCycleExerciseWhereInput | Prisma.MesoCycleExerciseWhereInput[] + OR?: Prisma.MesoCycleExerciseWhereInput[] + NOT?: Prisma.MesoCycleExerciseWhereInput | Prisma.MesoCycleExerciseWhereInput[] + id?: Prisma.IntFilter<"MesoCycleExercise"> | number + startingSets?: Prisma.IntFilter<"MesoCycleExercise"> | number + orderIndex?: Prisma.IntFilter<"MesoCycleExercise"> | number + mesoCycleDayId?: Prisma.IntFilter<"MesoCycleExercise"> | number + exerciseId?: Prisma.IntFilter<"MesoCycleExercise"> | number + mesoCycleDay?: Prisma.XOR + exercise?: Prisma.XOR + exerciseLogs?: Prisma.ExerciseLogListRelationFilter +} + +export type MesoCycleExerciseOrderByWithRelationInput = { + id?: Prisma.SortOrder + startingSets?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleDayId?: Prisma.SortOrder + exerciseId?: Prisma.SortOrder + mesoCycleDay?: Prisma.MesoCycleDayOrderByWithRelationInput + exercise?: Prisma.ExerciseOrderByWithRelationInput + exerciseLogs?: Prisma.ExerciseLogOrderByRelationAggregateInput +} + +export type MesoCycleExerciseWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.MesoCycleExerciseWhereInput | Prisma.MesoCycleExerciseWhereInput[] + OR?: Prisma.MesoCycleExerciseWhereInput[] + NOT?: Prisma.MesoCycleExerciseWhereInput | Prisma.MesoCycleExerciseWhereInput[] + startingSets?: Prisma.IntFilter<"MesoCycleExercise"> | number + orderIndex?: Prisma.IntFilter<"MesoCycleExercise"> | number + mesoCycleDayId?: Prisma.IntFilter<"MesoCycleExercise"> | number + exerciseId?: Prisma.IntFilter<"MesoCycleExercise"> | number + mesoCycleDay?: Prisma.XOR + exercise?: Prisma.XOR + exerciseLogs?: Prisma.ExerciseLogListRelationFilter +}, "id"> + +export type MesoCycleExerciseOrderByWithAggregationInput = { + id?: Prisma.SortOrder + startingSets?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleDayId?: Prisma.SortOrder + exerciseId?: Prisma.SortOrder + _count?: Prisma.MesoCycleExerciseCountOrderByAggregateInput + _avg?: Prisma.MesoCycleExerciseAvgOrderByAggregateInput + _max?: Prisma.MesoCycleExerciseMaxOrderByAggregateInput + _min?: Prisma.MesoCycleExerciseMinOrderByAggregateInput + _sum?: Prisma.MesoCycleExerciseSumOrderByAggregateInput +} + +export type MesoCycleExerciseScalarWhereWithAggregatesInput = { + AND?: Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput | Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput[] + OR?: Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput[] + NOT?: Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput | Prisma.MesoCycleExerciseScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number + startingSets?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number + orderIndex?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number + mesoCycleDayId?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number + exerciseId?: Prisma.IntWithAggregatesFilter<"MesoCycleExercise"> | number +} + +export type MesoCycleExerciseCreateInput = { + startingSets: number + orderIndex: number + mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutMesoCycleExercisesInput + exercise: Prisma.ExerciseCreateNestedOneWithoutMesoCycleExercisesInput + exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutMesoCycleExerciseInput +} + +export type MesoCycleExerciseUncheckedCreateInput = { + id?: number + startingSets: number + orderIndex: number + mesoCycleDayId: number + exerciseId: number + exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutMesoCycleExerciseInput +} + +export type MesoCycleExerciseUpdateInput = { + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutMesoCycleExercisesNestedInput + exercise?: Prisma.ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput + exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutMesoCycleExerciseNestedInput +} + +export type MesoCycleExerciseUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number + exerciseId?: Prisma.IntFieldUpdateOperationsInput | number + exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseNestedInput +} + +export type MesoCycleExerciseCreateManyInput = { + id?: number + startingSets: number + orderIndex: number + mesoCycleDayId: number + exerciseId: number +} + +export type MesoCycleExerciseUpdateManyMutationInput = { + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type MesoCycleExerciseUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number + exerciseId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type MesoCycleExerciseListRelationFilter = { + every?: Prisma.MesoCycleExerciseWhereInput + some?: Prisma.MesoCycleExerciseWhereInput + none?: Prisma.MesoCycleExerciseWhereInput +} + +export type MesoCycleExerciseOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type MesoCycleExerciseCountOrderByAggregateInput = { + id?: Prisma.SortOrder + startingSets?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleDayId?: Prisma.SortOrder + exerciseId?: Prisma.SortOrder +} + +export type MesoCycleExerciseAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + startingSets?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleDayId?: Prisma.SortOrder + exerciseId?: Prisma.SortOrder +} + +export type MesoCycleExerciseMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + startingSets?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleDayId?: Prisma.SortOrder + exerciseId?: Prisma.SortOrder +} + +export type MesoCycleExerciseMinOrderByAggregateInput = { + id?: Prisma.SortOrder + startingSets?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleDayId?: Prisma.SortOrder + exerciseId?: Prisma.SortOrder +} + +export type MesoCycleExerciseSumOrderByAggregateInput = { + id?: Prisma.SortOrder + startingSets?: Prisma.SortOrder + orderIndex?: Prisma.SortOrder + mesoCycleDayId?: Prisma.SortOrder + exerciseId?: Prisma.SortOrder +} + +export type MesoCycleExerciseScalarRelationFilter = { + is?: Prisma.MesoCycleExerciseWhereInput + isNot?: Prisma.MesoCycleExerciseWhereInput +} + +export type MesoCycleExerciseCreateNestedManyWithoutExerciseInput = { + create?: Prisma.XOR | Prisma.MesoCycleExerciseCreateWithoutExerciseInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput[] + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput[] + createMany?: Prisma.MesoCycleExerciseCreateManyExerciseInputEnvelope + connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] +} + +export type MesoCycleExerciseUncheckedCreateNestedManyWithoutExerciseInput = { + create?: Prisma.XOR | Prisma.MesoCycleExerciseCreateWithoutExerciseInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput[] + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput[] + createMany?: Prisma.MesoCycleExerciseCreateManyExerciseInputEnvelope + connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] +} + +export type MesoCycleExerciseUpdateManyWithoutExerciseNestedInput = { + create?: Prisma.XOR | Prisma.MesoCycleExerciseCreateWithoutExerciseInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput[] + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput[] + upsert?: Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput | Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput[] + createMany?: Prisma.MesoCycleExerciseCreateManyExerciseInputEnvelope + set?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + disconnect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + delete?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + update?: Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput | Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput[] + updateMany?: Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput | Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput[] + deleteMany?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[] +} + +export type MesoCycleExerciseUncheckedUpdateManyWithoutExerciseNestedInput = { + create?: Prisma.XOR | Prisma.MesoCycleExerciseCreateWithoutExerciseInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutExerciseInput[] + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseInput[] + upsert?: Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput | Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput[] + createMany?: Prisma.MesoCycleExerciseCreateManyExerciseInputEnvelope + set?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + disconnect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + delete?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + update?: Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput | Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput[] + updateMany?: Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput | Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput[] + deleteMany?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[] +} + +export type MesoCycleExerciseCreateNestedManyWithoutMesoCycleDayInput = { + create?: Prisma.XOR | Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput[] + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput[] + createMany?: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope + connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] +} + +export type MesoCycleExerciseUncheckedCreateNestedManyWithoutMesoCycleDayInput = { + create?: Prisma.XOR | Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput[] + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput[] + createMany?: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope + connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] +} + +export type MesoCycleExerciseUpdateManyWithoutMesoCycleDayNestedInput = { + create?: Prisma.XOR | Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput[] + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput[] + upsert?: Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput[] + createMany?: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope + set?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + disconnect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + delete?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + update?: Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput[] + updateMany?: Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput[] + deleteMany?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[] +} + +export type MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayNestedInput = { + create?: Prisma.XOR | Prisma.MesoCycleExerciseCreateWithoutMesoCycleDayInput[] | Prisma.MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput[] + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput[] + upsert?: Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput[] + createMany?: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope + set?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + disconnect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + delete?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + connect?: Prisma.MesoCycleExerciseWhereUniqueInput | Prisma.MesoCycleExerciseWhereUniqueInput[] + update?: Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput[] + updateMany?: Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput | Prisma.MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput[] + deleteMany?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[] +} + +export type MesoCycleExerciseCreateNestedOneWithoutExerciseLogsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseLogsInput + connect?: Prisma.MesoCycleExerciseWhereUniqueInput +} + +export type MesoCycleExerciseUpdateOneRequiredWithoutExerciseLogsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.MesoCycleExerciseCreateOrConnectWithoutExerciseLogsInput + upsert?: Prisma.MesoCycleExerciseUpsertWithoutExerciseLogsInput + connect?: Prisma.MesoCycleExerciseWhereUniqueInput + update?: Prisma.XOR, Prisma.MesoCycleExerciseUncheckedUpdateWithoutExerciseLogsInput> +} + +export type MesoCycleExerciseCreateWithoutExerciseInput = { + startingSets: number + orderIndex: number + mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutMesoCycleExercisesInput + exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutMesoCycleExerciseInput +} + +export type MesoCycleExerciseUncheckedCreateWithoutExerciseInput = { + id?: number + startingSets: number + orderIndex: number + mesoCycleDayId: number + exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutMesoCycleExerciseInput +} + +export type MesoCycleExerciseCreateOrConnectWithoutExerciseInput = { + where: Prisma.MesoCycleExerciseWhereUniqueInput + create: Prisma.XOR +} + +export type MesoCycleExerciseCreateManyExerciseInputEnvelope = { + data: Prisma.MesoCycleExerciseCreateManyExerciseInput | Prisma.MesoCycleExerciseCreateManyExerciseInput[] + skipDuplicates?: boolean +} + +export type MesoCycleExerciseUpsertWithWhereUniqueWithoutExerciseInput = { + where: Prisma.MesoCycleExerciseWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type MesoCycleExerciseUpdateWithWhereUniqueWithoutExerciseInput = { + where: Prisma.MesoCycleExerciseWhereUniqueInput + data: Prisma.XOR +} + +export type MesoCycleExerciseUpdateManyWithWhereWithoutExerciseInput = { + where: Prisma.MesoCycleExerciseScalarWhereInput + data: Prisma.XOR +} + +export type MesoCycleExerciseScalarWhereInput = { + AND?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[] + OR?: Prisma.MesoCycleExerciseScalarWhereInput[] + NOT?: Prisma.MesoCycleExerciseScalarWhereInput | Prisma.MesoCycleExerciseScalarWhereInput[] + id?: Prisma.IntFilter<"MesoCycleExercise"> | number + startingSets?: Prisma.IntFilter<"MesoCycleExercise"> | number + orderIndex?: Prisma.IntFilter<"MesoCycleExercise"> | number + mesoCycleDayId?: Prisma.IntFilter<"MesoCycleExercise"> | number + exerciseId?: Prisma.IntFilter<"MesoCycleExercise"> | number +} + +export type MesoCycleExerciseCreateWithoutMesoCycleDayInput = { + startingSets: number + orderIndex: number + exercise: Prisma.ExerciseCreateNestedOneWithoutMesoCycleExercisesInput + exerciseLogs?: Prisma.ExerciseLogCreateNestedManyWithoutMesoCycleExerciseInput +} + +export type MesoCycleExerciseUncheckedCreateWithoutMesoCycleDayInput = { + id?: number + startingSets: number + orderIndex: number + exerciseId: number + exerciseLogs?: Prisma.ExerciseLogUncheckedCreateNestedManyWithoutMesoCycleExerciseInput +} + +export type MesoCycleExerciseCreateOrConnectWithoutMesoCycleDayInput = { + where: Prisma.MesoCycleExerciseWhereUniqueInput + create: Prisma.XOR +} + +export type MesoCycleExerciseCreateManyMesoCycleDayInputEnvelope = { + data: Prisma.MesoCycleExerciseCreateManyMesoCycleDayInput | Prisma.MesoCycleExerciseCreateManyMesoCycleDayInput[] + skipDuplicates?: boolean +} + +export type MesoCycleExerciseUpsertWithWhereUniqueWithoutMesoCycleDayInput = { + where: Prisma.MesoCycleExerciseWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type MesoCycleExerciseUpdateWithWhereUniqueWithoutMesoCycleDayInput = { + where: Prisma.MesoCycleExerciseWhereUniqueInput + data: Prisma.XOR +} + +export type MesoCycleExerciseUpdateManyWithWhereWithoutMesoCycleDayInput = { + where: Prisma.MesoCycleExerciseScalarWhereInput + data: Prisma.XOR +} + +export type MesoCycleExerciseCreateWithoutExerciseLogsInput = { + startingSets: number + orderIndex: number + mesoCycleDay: Prisma.MesoCycleDayCreateNestedOneWithoutMesoCycleExercisesInput + exercise: Prisma.ExerciseCreateNestedOneWithoutMesoCycleExercisesInput +} + +export type MesoCycleExerciseUncheckedCreateWithoutExerciseLogsInput = { + id?: number + startingSets: number + orderIndex: number + mesoCycleDayId: number + exerciseId: number +} + +export type MesoCycleExerciseCreateOrConnectWithoutExerciseLogsInput = { + where: Prisma.MesoCycleExerciseWhereUniqueInput + create: Prisma.XOR +} + +export type MesoCycleExerciseUpsertWithoutExerciseLogsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.MesoCycleExerciseWhereInput +} + +export type MesoCycleExerciseUpdateToOneWithWhereWithoutExerciseLogsInput = { + where?: Prisma.MesoCycleExerciseWhereInput + data: Prisma.XOR +} + +export type MesoCycleExerciseUpdateWithoutExerciseLogsInput = { + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutMesoCycleExercisesNestedInput + exercise?: Prisma.ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput +} + +export type MesoCycleExerciseUncheckedUpdateWithoutExerciseLogsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number + exerciseId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type MesoCycleExerciseCreateManyExerciseInput = { + id?: number + startingSets: number + orderIndex: number + mesoCycleDayId: number +} + +export type MesoCycleExerciseUpdateWithoutExerciseInput = { + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleDay?: Prisma.MesoCycleDayUpdateOneRequiredWithoutMesoCycleExercisesNestedInput + exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutMesoCycleExerciseNestedInput +} + +export type MesoCycleExerciseUncheckedUpdateWithoutExerciseInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number + exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseNestedInput +} + +export type MesoCycleExerciseUncheckedUpdateManyWithoutExerciseInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + mesoCycleDayId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type MesoCycleExerciseCreateManyMesoCycleDayInput = { + id?: number + startingSets: number + orderIndex: number + exerciseId: number +} + +export type MesoCycleExerciseUpdateWithoutMesoCycleDayInput = { + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + exercise?: Prisma.ExerciseUpdateOneRequiredWithoutMesoCycleExercisesNestedInput + exerciseLogs?: Prisma.ExerciseLogUpdateManyWithoutMesoCycleExerciseNestedInput +} + +export type MesoCycleExerciseUncheckedUpdateWithoutMesoCycleDayInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + exerciseId?: Prisma.IntFieldUpdateOperationsInput | number + exerciseLogs?: Prisma.ExerciseLogUncheckedUpdateManyWithoutMesoCycleExerciseNestedInput +} + +export type MesoCycleExerciseUncheckedUpdateManyWithoutMesoCycleDayInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + startingSets?: Prisma.IntFieldUpdateOperationsInput | number + orderIndex?: Prisma.IntFieldUpdateOperationsInput | number + exerciseId?: Prisma.IntFieldUpdateOperationsInput | number +} + + +/** + * Count Type MesoCycleExerciseCountOutputType + */ + +export type MesoCycleExerciseCountOutputType = { + exerciseLogs: number +} + +export type MesoCycleExerciseCountOutputTypeSelect = { + exerciseLogs?: boolean | MesoCycleExerciseCountOutputTypeCountExerciseLogsArgs +} + +/** + * MesoCycleExerciseCountOutputType without action + */ +export type MesoCycleExerciseCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the MesoCycleExerciseCountOutputType + */ + select?: Prisma.MesoCycleExerciseCountOutputTypeSelect | null +} + +/** + * MesoCycleExerciseCountOutputType without action + */ +export type MesoCycleExerciseCountOutputTypeCountExerciseLogsArgs = { + where?: Prisma.ExerciseLogWhereInput +} + + +export type MesoCycleExerciseSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + startingSets?: boolean + orderIndex?: boolean + mesoCycleDayId?: boolean + exerciseId?: boolean + mesoCycleDay?: boolean | Prisma.MesoCycleDayDefaultArgs + exercise?: boolean | Prisma.ExerciseDefaultArgs + exerciseLogs?: boolean | Prisma.MesoCycleExercise$exerciseLogsArgs + _count?: boolean | Prisma.MesoCycleExerciseCountOutputTypeDefaultArgs +}, ExtArgs["result"]["mesoCycleExercise"]> + + + +export type MesoCycleExerciseSelectScalar = { + id?: boolean + startingSets?: boolean + orderIndex?: boolean + mesoCycleDayId?: boolean + exerciseId?: boolean +} + +export type MesoCycleExerciseOmit = runtime.Types.Extensions.GetOmit<"id" | "startingSets" | "orderIndex" | "mesoCycleDayId" | "exerciseId", ExtArgs["result"]["mesoCycleExercise"]> +export type MesoCycleExerciseInclude = { + mesoCycleDay?: boolean | Prisma.MesoCycleDayDefaultArgs + exercise?: boolean | Prisma.ExerciseDefaultArgs + exerciseLogs?: boolean | Prisma.MesoCycleExercise$exerciseLogsArgs + _count?: boolean | Prisma.MesoCycleExerciseCountOutputTypeDefaultArgs +} + +export type $MesoCycleExercisePayload = { + name: "MesoCycleExercise" + objects: { + mesoCycleDay: Prisma.$MesoCycleDayPayload + exercise: Prisma.$ExercisePayload + exerciseLogs: Prisma.$ExerciseLogPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + startingSets: number + orderIndex: number + mesoCycleDayId: number + exerciseId: number + }, ExtArgs["result"]["mesoCycleExercise"]> + composites: {} +} + +export type MesoCycleExerciseGetPayload = runtime.Types.Result.GetResult + +export type MesoCycleExerciseCountArgs = + Omit & { + select?: MesoCycleExerciseCountAggregateInputType | true + } + +export interface MesoCycleExerciseDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['MesoCycleExercise'], meta: { name: 'MesoCycleExercise' } } + /** + * Find zero or one MesoCycleExercise that matches the filter. + * @param {MesoCycleExerciseFindUniqueArgs} args - Arguments to find a MesoCycleExercise + * @example + * // Get one MesoCycleExercise + * const mesoCycleExercise = await prisma.mesoCycleExercise.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleExerciseClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one MesoCycleExercise that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {MesoCycleExerciseFindUniqueOrThrowArgs} args - Arguments to find a MesoCycleExercise + * @example + * // Get one MesoCycleExercise + * const mesoCycleExercise = await prisma.mesoCycleExercise.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleExerciseClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first MesoCycleExercise 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 {MesoCycleExerciseFindFirstArgs} args - Arguments to find a MesoCycleExercise + * @example + * // Get one MesoCycleExercise + * const mesoCycleExercise = await prisma.mesoCycleExercise.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleExerciseClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first MesoCycleExercise 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 {MesoCycleExerciseFindFirstOrThrowArgs} args - Arguments to find a MesoCycleExercise + * @example + * // Get one MesoCycleExercise + * const mesoCycleExercise = await prisma.mesoCycleExercise.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleExerciseClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more MesoCycleExercises 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 {MesoCycleExerciseFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all MesoCycleExercises + * const mesoCycleExercises = await prisma.mesoCycleExercise.findMany() + * + * // Get first 10 MesoCycleExercises + * const mesoCycleExercises = await prisma.mesoCycleExercise.findMany({ take: 10 }) + * + * // Only select the `id` + * const mesoCycleExerciseWithIdOnly = await prisma.mesoCycleExercise.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a MesoCycleExercise. + * @param {MesoCycleExerciseCreateArgs} args - Arguments to create a MesoCycleExercise. + * @example + * // Create one MesoCycleExercise + * const MesoCycleExercise = await prisma.mesoCycleExercise.create({ + * data: { + * // ... data to create a MesoCycleExercise + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleExerciseClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many MesoCycleExercises. + * @param {MesoCycleExerciseCreateManyArgs} args - Arguments to create many MesoCycleExercises. + * @example + * // Create many MesoCycleExercises + * const mesoCycleExercise = await prisma.mesoCycleExercise.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a MesoCycleExercise. + * @param {MesoCycleExerciseDeleteArgs} args - Arguments to delete one MesoCycleExercise. + * @example + * // Delete one MesoCycleExercise + * const MesoCycleExercise = await prisma.mesoCycleExercise.delete({ + * where: { + * // ... filter to delete one MesoCycleExercise + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleExerciseClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one MesoCycleExercise. + * @param {MesoCycleExerciseUpdateArgs} args - Arguments to update one MesoCycleExercise. + * @example + * // Update one MesoCycleExercise + * const mesoCycleExercise = await prisma.mesoCycleExercise.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleExerciseClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more MesoCycleExercises. + * @param {MesoCycleExerciseDeleteManyArgs} args - Arguments to filter MesoCycleExercises to delete. + * @example + * // Delete a few MesoCycleExercises + * const { count } = await prisma.mesoCycleExercise.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more MesoCycleExercises. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MesoCycleExerciseUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many MesoCycleExercises + * const mesoCycleExercise = await prisma.mesoCycleExercise.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one MesoCycleExercise. + * @param {MesoCycleExerciseUpsertArgs} args - Arguments to update or create a MesoCycleExercise. + * @example + * // Update or create a MesoCycleExercise + * const mesoCycleExercise = await prisma.mesoCycleExercise.upsert({ + * create: { + * // ... data to create a MesoCycleExercise + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the MesoCycleExercise we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__MesoCycleExerciseClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of MesoCycleExercises. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MesoCycleExerciseCountArgs} args - Arguments to filter MesoCycleExercises to count. + * @example + * // Count the number of MesoCycleExercises + * const count = await prisma.mesoCycleExercise.count({ + * where: { + * // ... the filter for the MesoCycleExercises 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 MesoCycleExercise. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MesoCycleExerciseAggregateArgs} 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 MesoCycleExercise. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MesoCycleExerciseGroupByArgs} 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 MesoCycleExerciseGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: MesoCycleExerciseGroupByArgs['orderBy'] } + : { orderBy?: MesoCycleExerciseGroupByArgs['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 ? GetMesoCycleExerciseGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the MesoCycleExercise model + */ +readonly fields: MesoCycleExerciseFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for MesoCycleExercise. + * 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__MesoCycleExerciseClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + mesoCycleDay = {}>(args?: Prisma.Subset>): Prisma.Prisma__MesoCycleDayClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + exercise = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExerciseClient, 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 MesoCycleExercise model + */ +export interface MesoCycleExerciseFieldRefs { + readonly id: Prisma.FieldRef<"MesoCycleExercise", 'Int'> + readonly startingSets: Prisma.FieldRef<"MesoCycleExercise", 'Int'> + readonly orderIndex: Prisma.FieldRef<"MesoCycleExercise", 'Int'> + readonly mesoCycleDayId: Prisma.FieldRef<"MesoCycleExercise", 'Int'> + readonly exerciseId: Prisma.FieldRef<"MesoCycleExercise", 'Int'> +} + + +// Custom InputTypes +/** + * MesoCycleExercise findUnique + */ +export type MesoCycleExerciseFindUniqueArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * Filter, which MesoCycleExercise to fetch. + */ + where: Prisma.MesoCycleExerciseWhereUniqueInput +} + +/** + * MesoCycleExercise findUniqueOrThrow + */ +export type MesoCycleExerciseFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * Filter, which MesoCycleExercise to fetch. + */ + where: Prisma.MesoCycleExerciseWhereUniqueInput +} + +/** + * MesoCycleExercise findFirst + */ +export type MesoCycleExerciseFindFirstArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * Filter, which MesoCycleExercise to fetch. + */ + where?: Prisma.MesoCycleExerciseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MesoCycleExercises to fetch. + */ + orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for MesoCycleExercises. + */ + cursor?: Prisma.MesoCycleExerciseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MesoCycleExercises 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` MesoCycleExercises. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MesoCycleExercises. + */ + distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[] +} + +/** + * MesoCycleExercise findFirstOrThrow + */ +export type MesoCycleExerciseFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * Filter, which MesoCycleExercise to fetch. + */ + where?: Prisma.MesoCycleExerciseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MesoCycleExercises to fetch. + */ + orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for MesoCycleExercises. + */ + cursor?: Prisma.MesoCycleExerciseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MesoCycleExercises 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` MesoCycleExercises. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MesoCycleExercises. + */ + distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[] +} + +/** + * MesoCycleExercise findMany + */ +export type MesoCycleExerciseFindManyArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * Filter, which MesoCycleExercises to fetch. + */ + where?: Prisma.MesoCycleExerciseWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MesoCycleExercises to fetch. + */ + orderBy?: Prisma.MesoCycleExerciseOrderByWithRelationInput | Prisma.MesoCycleExerciseOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing MesoCycleExercises. + */ + cursor?: Prisma.MesoCycleExerciseWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MesoCycleExercises 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` MesoCycleExercises. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MesoCycleExercises. + */ + distinct?: Prisma.MesoCycleExerciseScalarFieldEnum | Prisma.MesoCycleExerciseScalarFieldEnum[] +} + +/** + * MesoCycleExercise create + */ +export type MesoCycleExerciseCreateArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * The data needed to create a MesoCycleExercise. + */ + data: Prisma.XOR +} + +/** + * MesoCycleExercise createMany + */ +export type MesoCycleExerciseCreateManyArgs = { + /** + * The data used to create many MesoCycleExercises. + */ + data: Prisma.MesoCycleExerciseCreateManyInput | Prisma.MesoCycleExerciseCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * MesoCycleExercise update + */ +export type MesoCycleExerciseUpdateArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * The data needed to update a MesoCycleExercise. + */ + data: Prisma.XOR + /** + * Choose, which MesoCycleExercise to update. + */ + where: Prisma.MesoCycleExerciseWhereUniqueInput +} + +/** + * MesoCycleExercise updateMany + */ +export type MesoCycleExerciseUpdateManyArgs = { + /** + * The data used to update MesoCycleExercises. + */ + data: Prisma.XOR + /** + * Filter which MesoCycleExercises to update + */ + where?: Prisma.MesoCycleExerciseWhereInput + /** + * Limit how many MesoCycleExercises to update. + */ + limit?: number +} + +/** + * MesoCycleExercise upsert + */ +export type MesoCycleExerciseUpsertArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * The filter to search for the MesoCycleExercise to update in case it exists. + */ + where: Prisma.MesoCycleExerciseWhereUniqueInput + /** + * In case the MesoCycleExercise found by the `where` argument doesn't exist, create a new MesoCycleExercise with this data. + */ + create: Prisma.XOR + /** + * In case the MesoCycleExercise was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * MesoCycleExercise delete + */ +export type MesoCycleExerciseDeleteArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null + /** + * Filter which MesoCycleExercise to delete. + */ + where: Prisma.MesoCycleExerciseWhereUniqueInput +} + +/** + * MesoCycleExercise deleteMany + */ +export type MesoCycleExerciseDeleteManyArgs = { + /** + * Filter which MesoCycleExercises to delete + */ + where?: Prisma.MesoCycleExerciseWhereInput + /** + * Limit how many MesoCycleExercises to delete. + */ + limit?: number +} + +/** + * MesoCycleExercise.exerciseLogs + */ +export type MesoCycleExercise$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[] +} + +/** + * MesoCycleExercise without action + */ +export type MesoCycleExerciseDefaultArgs = { + /** + * Select specific fields to fetch from the MesoCycleExercise + */ + select?: Prisma.MesoCycleExerciseSelect | null + /** + * Omit specific fields from the MesoCycleExercise + */ + omit?: Prisma.MesoCycleExerciseOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.MesoCycleExerciseInclude | null +} diff --git a/generated/prisma/models/Session.ts b/generated/prisma/models/Session.ts new file mode 100644 index 0000000..d5c5d0c --- /dev/null +++ b/generated/prisma/models/Session.ts @@ -0,0 +1,1322 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Session` 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 Session + * + */ +export type SessionModel = runtime.Types.Result.DefaultSelection + +export type AggregateSession = { + _count: SessionCountAggregateOutputType | null + _min: SessionMinAggregateOutputType | null + _max: SessionMaxAggregateOutputType | null +} + +export type SessionMinAggregateOutputType = { + id: string | null + expiresAt: Date | null + token: string | null + createdAt: Date | null + updatedAt: Date | null + ipAddress: string | null + userAgent: string | null + userId: string | null +} + +export type SessionMaxAggregateOutputType = { + id: string | null + expiresAt: Date | null + token: string | null + createdAt: Date | null + updatedAt: Date | null + ipAddress: string | null + userAgent: string | null + userId: string | null +} + +export type SessionCountAggregateOutputType = { + id: number + expiresAt: number + token: number + createdAt: number + updatedAt: number + ipAddress: number + userAgent: number + userId: number + _all: number +} + + +export type SessionMinAggregateInputType = { + id?: true + expiresAt?: true + token?: true + createdAt?: true + updatedAt?: true + ipAddress?: true + userAgent?: true + userId?: true +} + +export type SessionMaxAggregateInputType = { + id?: true + expiresAt?: true + token?: true + createdAt?: true + updatedAt?: true + ipAddress?: true + userAgent?: true + userId?: true +} + +export type SessionCountAggregateInputType = { + id?: true + expiresAt?: true + token?: true + createdAt?: true + updatedAt?: true + ipAddress?: true + userAgent?: true + userId?: true + _all?: true +} + +export type SessionAggregateArgs = { + /** + * Filter which Session to aggregate. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions 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` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Sessions + **/ + _count?: true | SessionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SessionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SessionMaxAggregateInputType +} + +export type GetSessionAggregateType = { + [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type SessionGroupByArgs = { + where?: Prisma.SessionWhereInput + orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[] + by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum + having?: Prisma.SessionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SessionCountAggregateInputType | true + _min?: SessionMinAggregateInputType + _max?: SessionMaxAggregateInputType +} + +export type SessionGroupByOutputType = { + id: string + expiresAt: Date + token: string + createdAt: Date + updatedAt: Date + ipAddress: string | null + userAgent: string | null + userId: string + _count: SessionCountAggregateOutputType | null + _min: SessionMinAggregateOutputType | null + _max: SessionMaxAggregateOutputType | null +} + +type GetSessionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type SessionWhereInput = { + AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + OR?: Prisma.SessionWhereInput[] + NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + id?: Prisma.StringFilter<"Session"> | string + expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string + token?: Prisma.StringFilter<"Session"> | string + createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string + ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null + userAgent?: Prisma.StringNullableFilter<"Session"> | string | null + userId?: Prisma.StringFilter<"Session"> | string + user?: Prisma.XOR +} + +export type SessionOrderByWithRelationInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder + userAgent?: Prisma.SortOrderInput | Prisma.SortOrder + userId?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput + _relevance?: Prisma.SessionOrderByRelevanceInput +} + +export type SessionWhereUniqueInput = Prisma.AtLeast<{ + id?: string + token?: string + AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + OR?: Prisma.SessionWhereInput[] + NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] + expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string + createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string + ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null + userAgent?: Prisma.StringNullableFilter<"Session"> | string | null + userId?: Prisma.StringFilter<"Session"> | string + user?: Prisma.XOR +}, "id" | "token"> + +export type SessionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder + userAgent?: Prisma.SortOrderInput | Prisma.SortOrder + userId?: Prisma.SortOrder + _count?: Prisma.SessionCountOrderByAggregateInput + _max?: Prisma.SessionMaxOrderByAggregateInput + _min?: Prisma.SessionMinOrderByAggregateInput +} + +export type SessionScalarWhereWithAggregatesInput = { + AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] + OR?: Prisma.SessionScalarWhereWithAggregatesInput[] + NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Session"> | string + expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string + token?: Prisma.StringWithAggregatesFilter<"Session"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string + ipAddress?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null + userAgent?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null + userId?: Prisma.StringWithAggregatesFilter<"Session"> | string +} + +export type SessionCreateInput = { + id: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null + user: Prisma.UserCreateNestedOneWithoutSessionsInput +} + +export type SessionUncheckedCreateInput = { + id: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null + userId: string +} + +export type SessionUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput +} + +export type SessionUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SessionCreateManyInput = { + id: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null + userId: string +} + +export type SessionUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type SessionUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userId?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SessionListRelationFilter = { + every?: Prisma.SessionWhereInput + some?: Prisma.SessionWhereInput + none?: Prisma.SessionWhereInput +} + +export type SessionOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type SessionOrderByRelevanceInput = { + fields: Prisma.SessionOrderByRelevanceFieldEnum | Prisma.SessionOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type SessionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type SessionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type SessionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + token?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + ipAddress?: Prisma.SortOrder + userAgent?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type SessionCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] +} + +export type SessionUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] +} + +export type SessionUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] + upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] +} + +export type SessionUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] + upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.SessionCreateManyUserInputEnvelope + set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] + update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] +} + +export type SessionCreateWithoutUserInput = { + id: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null +} + +export type SessionUncheckedCreateWithoutUserInput = { + id: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null +} + +export type SessionCreateOrConnectWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + create: Prisma.XOR +} + +export type SessionCreateManyUserInputEnvelope = { + data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type SessionUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type SessionUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.SessionWhereUniqueInput + data: Prisma.XOR +} + +export type SessionUpdateManyWithWhereWithoutUserInput = { + where: Prisma.SessionScalarWhereInput + data: Prisma.XOR +} + +export type SessionScalarWhereInput = { + AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] + OR?: Prisma.SessionScalarWhereInput[] + NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] + id?: Prisma.StringFilter<"Session"> | string + expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string + token?: Prisma.StringFilter<"Session"> | string + createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string + ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null + userAgent?: Prisma.StringNullableFilter<"Session"> | string | null + userId?: Prisma.StringFilter<"Session"> | string +} + +export type SessionCreateManyUserInput = { + id: string + expiresAt: Date | string + token: string + createdAt?: Date | string + updatedAt?: Date | string + ipAddress?: string | null + userAgent?: string | null +} + +export type SessionUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type SessionUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type SessionUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + token?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + + + +export type SessionSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + expiresAt?: boolean + token?: boolean + createdAt?: boolean + updatedAt?: boolean + ipAddress?: boolean + userAgent?: boolean + userId?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["session"]> + + + +export type SessionSelectScalar = { + id?: boolean + expiresAt?: boolean + token?: boolean + createdAt?: boolean + updatedAt?: boolean + ipAddress?: boolean + userAgent?: boolean + userId?: boolean +} + +export type SessionOmit = runtime.Types.Extensions.GetOmit<"id" | "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId", ExtArgs["result"]["session"]> +export type SessionInclude = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $SessionPayload = { + name: "Session" + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + expiresAt: Date + token: string + createdAt: Date + updatedAt: Date + ipAddress: string | null + userAgent: string | null + userId: string + }, ExtArgs["result"]["session"]> + composites: {} +} + +export type SessionGetPayload = runtime.Types.Result.GetResult + +export type SessionCountArgs = + Omit & { + select?: SessionCountAggregateInputType | true + } + +export interface SessionDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } + /** + * Find zero or one Session that matches the filter. + * @param {SessionFindUniqueArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Session that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Session 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 {SessionFindFirstArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Session 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 {SessionFindFirstOrThrowArgs} args - Arguments to find a Session + * @example + * // Get one Session + * const session = await prisma.session.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Sessions 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 {SessionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Sessions + * const sessions = await prisma.session.findMany() + * + * // Get first 10 Sessions + * const sessions = await prisma.session.findMany({ take: 10 }) + * + * // Only select the `id` + * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Session. + * @param {SessionCreateArgs} args - Arguments to create a Session. + * @example + * // Create one Session + * const Session = await prisma.session.create({ + * data: { + * // ... data to create a Session + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Sessions. + * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. + * @example + * // Create many Sessions + * const session = await prisma.session.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Session. + * @param {SessionDeleteArgs} args - Arguments to delete one Session. + * @example + * // Delete one Session + * const Session = await prisma.session.delete({ + * where: { + * // ... filter to delete one Session + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Session. + * @param {SessionUpdateArgs} args - Arguments to update one Session. + * @example + * // Update one Session + * const session = await prisma.session.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Sessions. + * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. + * @example + * // Delete a few Sessions + * const { count } = await prisma.session.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Sessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Sessions + * const session = await prisma.session.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Session. + * @param {SessionUpsertArgs} args - Arguments to update or create a Session. + * @example + * // Update or create a Session + * const session = await prisma.session.upsert({ + * create: { + * // ... data to create a Session + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Session we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Sessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionCountArgs} args - Arguments to filter Sessions to count. + * @example + * // Count the number of Sessions + * const count = await prisma.session.count({ + * where: { + * // ... the filter for the Sessions 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 Session. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionAggregateArgs} 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 Session. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionGroupByArgs} 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 SessionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SessionGroupByArgs['orderBy'] } + : { orderBy?: SessionGroupByArgs['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 ? GetSessionGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Session model + */ +readonly fields: SessionFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Session. + * 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__SessionClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + /** + * 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 Session model + */ +export interface SessionFieldRefs { + readonly id: Prisma.FieldRef<"Session", 'String'> + readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'> + readonly token: Prisma.FieldRef<"Session", 'String'> + readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Session", 'DateTime'> + readonly ipAddress: Prisma.FieldRef<"Session", 'String'> + readonly userAgent: Prisma.FieldRef<"Session", 'String'> + readonly userId: Prisma.FieldRef<"Session", 'String'> +} + + +// Custom InputTypes +/** + * Session findUnique + */ +export type SessionFindUniqueArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session findUniqueOrThrow + */ +export type SessionFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session findFirst + */ +export type SessionFindFirstArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions 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` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sessions. + */ + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session findFirstOrThrow + */ +export type SessionFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Session to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions 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` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sessions. + */ + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session findMany + */ +export type SessionFindManyArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter, which Sessions to fetch. + */ + where?: Prisma.SessionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Sessions. + */ + cursor?: Prisma.SessionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Sessions 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` Sessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Sessions. + */ + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * Session create + */ +export type SessionCreateArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The data needed to create a Session. + */ + data: Prisma.XOR +} + +/** + * Session createMany + */ +export type SessionCreateManyArgs = { + /** + * The data used to create many Sessions. + */ + data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Session update + */ +export type SessionUpdateArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The data needed to update a Session. + */ + data: Prisma.XOR + /** + * Choose, which Session to update. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session updateMany + */ +export type SessionUpdateManyArgs = { + /** + * The data used to update Sessions. + */ + data: Prisma.XOR + /** + * Filter which Sessions to update + */ + where?: Prisma.SessionWhereInput + /** + * Limit how many Sessions to update. + */ + limit?: number +} + +/** + * Session upsert + */ +export type SessionUpsertArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * The filter to search for the Session to update in case it exists. + */ + where: Prisma.SessionWhereUniqueInput + /** + * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. + */ + create: Prisma.XOR + /** + * In case the Session was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Session delete + */ +export type SessionDeleteArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + /** + * Filter which Session to delete. + */ + where: Prisma.SessionWhereUniqueInput +} + +/** + * Session deleteMany + */ +export type SessionDeleteManyArgs = { + /** + * Filter which Sessions to delete + */ + where?: Prisma.SessionWhereInput + /** + * Limit how many Sessions to delete. + */ + limit?: number +} + +/** + * Session without action + */ +export type SessionDefaultArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null +} diff --git a/generated/prisma/models/SessionFeedback.ts b/generated/prisma/models/SessionFeedback.ts new file mode 100644 index 0000000..063ccf6 --- /dev/null +++ b/generated/prisma/models/SessionFeedback.ts @@ -0,0 +1,1235 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `SessionFeedback` 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 SessionFeedback + * + */ +export type SessionFeedbackModel = runtime.Types.Result.DefaultSelection + +export type AggregateSessionFeedback = { + _count: SessionFeedbackCountAggregateOutputType | null + _avg: SessionFeedbackAvgAggregateOutputType | null + _sum: SessionFeedbackSumAggregateOutputType | null + _min: SessionFeedbackMinAggregateOutputType | null + _max: SessionFeedbackMaxAggregateOutputType | null +} + +export type SessionFeedbackAvgAggregateOutputType = { + id: number | null + exerciseLogId: number | null +} + +export type SessionFeedbackSumAggregateOutputType = { + id: number | null + exerciseLogId: number | null +} + +export type SessionFeedbackMinAggregateOutputType = { + id: number | null + question: string | null + answer: string | null + exerciseLogId: number | null +} + +export type SessionFeedbackMaxAggregateOutputType = { + id: number | null + question: string | null + answer: string | null + exerciseLogId: number | null +} + +export type SessionFeedbackCountAggregateOutputType = { + id: number + question: number + answer: number + exerciseLogId: number + _all: number +} + + +export type SessionFeedbackAvgAggregateInputType = { + id?: true + exerciseLogId?: true +} + +export type SessionFeedbackSumAggregateInputType = { + id?: true + exerciseLogId?: true +} + +export type SessionFeedbackMinAggregateInputType = { + id?: true + question?: true + answer?: true + exerciseLogId?: true +} + +export type SessionFeedbackMaxAggregateInputType = { + id?: true + question?: true + answer?: true + exerciseLogId?: true +} + +export type SessionFeedbackCountAggregateInputType = { + id?: true + question?: true + answer?: true + exerciseLogId?: true + _all?: true +} + +export type SessionFeedbackAggregateArgs = { + /** + * Filter which SessionFeedback to aggregate. + */ + where?: Prisma.SessionFeedbackWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SessionFeedbacks to fetch. + */ + orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SessionFeedbackWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` SessionFeedbacks 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` SessionFeedbacks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned SessionFeedbacks + **/ + _count?: true | SessionFeedbackCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: SessionFeedbackAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: SessionFeedbackSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SessionFeedbackMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SessionFeedbackMaxAggregateInputType +} + +export type GetSessionFeedbackAggregateType = { + [P in keyof T & keyof AggregateSessionFeedback]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type SessionFeedbackGroupByArgs = { + where?: Prisma.SessionFeedbackWhereInput + orderBy?: Prisma.SessionFeedbackOrderByWithAggregationInput | Prisma.SessionFeedbackOrderByWithAggregationInput[] + by: Prisma.SessionFeedbackScalarFieldEnum[] | Prisma.SessionFeedbackScalarFieldEnum + having?: Prisma.SessionFeedbackScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SessionFeedbackCountAggregateInputType | true + _avg?: SessionFeedbackAvgAggregateInputType + _sum?: SessionFeedbackSumAggregateInputType + _min?: SessionFeedbackMinAggregateInputType + _max?: SessionFeedbackMaxAggregateInputType +} + +export type SessionFeedbackGroupByOutputType = { + id: number + question: string + answer: string + exerciseLogId: number + _count: SessionFeedbackCountAggregateOutputType | null + _avg: SessionFeedbackAvgAggregateOutputType | null + _sum: SessionFeedbackSumAggregateOutputType | null + _min: SessionFeedbackMinAggregateOutputType | null + _max: SessionFeedbackMaxAggregateOutputType | null +} + +type GetSessionFeedbackGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof SessionFeedbackGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type SessionFeedbackWhereInput = { + AND?: Prisma.SessionFeedbackWhereInput | Prisma.SessionFeedbackWhereInput[] + OR?: Prisma.SessionFeedbackWhereInput[] + NOT?: Prisma.SessionFeedbackWhereInput | Prisma.SessionFeedbackWhereInput[] + id?: Prisma.IntFilter<"SessionFeedback"> | number + question?: Prisma.StringFilter<"SessionFeedback"> | string + answer?: Prisma.StringFilter<"SessionFeedback"> | string + exerciseLogId?: Prisma.IntFilter<"SessionFeedback"> | number + exerciseLog?: Prisma.XOR +} + +export type SessionFeedbackOrderByWithRelationInput = { + id?: Prisma.SortOrder + question?: Prisma.SortOrder + answer?: Prisma.SortOrder + exerciseLogId?: Prisma.SortOrder + exerciseLog?: Prisma.ExerciseLogOrderByWithRelationInput + _relevance?: Prisma.SessionFeedbackOrderByRelevanceInput +} + +export type SessionFeedbackWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.SessionFeedbackWhereInput | Prisma.SessionFeedbackWhereInput[] + OR?: Prisma.SessionFeedbackWhereInput[] + NOT?: Prisma.SessionFeedbackWhereInput | Prisma.SessionFeedbackWhereInput[] + question?: Prisma.StringFilter<"SessionFeedback"> | string + answer?: Prisma.StringFilter<"SessionFeedback"> | string + exerciseLogId?: Prisma.IntFilter<"SessionFeedback"> | number + exerciseLog?: Prisma.XOR +}, "id"> + +export type SessionFeedbackOrderByWithAggregationInput = { + id?: Prisma.SortOrder + question?: Prisma.SortOrder + answer?: Prisma.SortOrder + exerciseLogId?: Prisma.SortOrder + _count?: Prisma.SessionFeedbackCountOrderByAggregateInput + _avg?: Prisma.SessionFeedbackAvgOrderByAggregateInput + _max?: Prisma.SessionFeedbackMaxOrderByAggregateInput + _min?: Prisma.SessionFeedbackMinOrderByAggregateInput + _sum?: Prisma.SessionFeedbackSumOrderByAggregateInput +} + +export type SessionFeedbackScalarWhereWithAggregatesInput = { + AND?: Prisma.SessionFeedbackScalarWhereWithAggregatesInput | Prisma.SessionFeedbackScalarWhereWithAggregatesInput[] + OR?: Prisma.SessionFeedbackScalarWhereWithAggregatesInput[] + NOT?: Prisma.SessionFeedbackScalarWhereWithAggregatesInput | Prisma.SessionFeedbackScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"SessionFeedback"> | number + question?: Prisma.StringWithAggregatesFilter<"SessionFeedback"> | string + answer?: Prisma.StringWithAggregatesFilter<"SessionFeedback"> | string + exerciseLogId?: Prisma.IntWithAggregatesFilter<"SessionFeedback"> | number +} + +export type SessionFeedbackCreateInput = { + question: string + answer: string + exerciseLog: Prisma.ExerciseLogCreateNestedOneWithoutSessionFeedbacksInput +} + +export type SessionFeedbackUncheckedCreateInput = { + id?: number + question: string + answer: string + exerciseLogId: number +} + +export type SessionFeedbackUpdateInput = { + question?: Prisma.StringFieldUpdateOperationsInput | string + answer?: Prisma.StringFieldUpdateOperationsInput | string + exerciseLog?: Prisma.ExerciseLogUpdateOneRequiredWithoutSessionFeedbacksNestedInput +} + +export type SessionFeedbackUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + question?: Prisma.StringFieldUpdateOperationsInput | string + answer?: Prisma.StringFieldUpdateOperationsInput | string + exerciseLogId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type SessionFeedbackCreateManyInput = { + id?: number + question: string + answer: string + exerciseLogId: number +} + +export type SessionFeedbackUpdateManyMutationInput = { + question?: Prisma.StringFieldUpdateOperationsInput | string + answer?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SessionFeedbackUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + question?: Prisma.StringFieldUpdateOperationsInput | string + answer?: Prisma.StringFieldUpdateOperationsInput | string + exerciseLogId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type SessionFeedbackListRelationFilter = { + every?: Prisma.SessionFeedbackWhereInput + some?: Prisma.SessionFeedbackWhereInput + none?: Prisma.SessionFeedbackWhereInput +} + +export type SessionFeedbackOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type SessionFeedbackOrderByRelevanceInput = { + fields: Prisma.SessionFeedbackOrderByRelevanceFieldEnum | Prisma.SessionFeedbackOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type SessionFeedbackCountOrderByAggregateInput = { + id?: Prisma.SortOrder + question?: Prisma.SortOrder + answer?: Prisma.SortOrder + exerciseLogId?: Prisma.SortOrder +} + +export type SessionFeedbackAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + exerciseLogId?: Prisma.SortOrder +} + +export type SessionFeedbackMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + question?: Prisma.SortOrder + answer?: Prisma.SortOrder + exerciseLogId?: Prisma.SortOrder +} + +export type SessionFeedbackMinOrderByAggregateInput = { + id?: Prisma.SortOrder + question?: Prisma.SortOrder + answer?: Prisma.SortOrder + exerciseLogId?: Prisma.SortOrder +} + +export type SessionFeedbackSumOrderByAggregateInput = { + id?: Prisma.SortOrder + exerciseLogId?: Prisma.SortOrder +} + +export type SessionFeedbackCreateNestedManyWithoutExerciseLogInput = { + create?: Prisma.XOR | Prisma.SessionFeedbackCreateWithoutExerciseLogInput[] | Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput[] + connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[] + createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope + connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] +} + +export type SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput = { + create?: Prisma.XOR | Prisma.SessionFeedbackCreateWithoutExerciseLogInput[] | Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput[] + connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[] + createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope + connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] +} + +export type SessionFeedbackUpdateManyWithoutExerciseLogNestedInput = { + create?: Prisma.XOR | Prisma.SessionFeedbackCreateWithoutExerciseLogInput[] | Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput[] + connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[] + upsert?: Prisma.SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput | Prisma.SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput[] + createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope + set?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] + disconnect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] + delete?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] + connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] + update?: Prisma.SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput | Prisma.SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput[] + updateMany?: Prisma.SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput | Prisma.SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput[] + deleteMany?: Prisma.SessionFeedbackScalarWhereInput | Prisma.SessionFeedbackScalarWhereInput[] +} + +export type SessionFeedbackUncheckedUpdateManyWithoutExerciseLogNestedInput = { + create?: Prisma.XOR | Prisma.SessionFeedbackCreateWithoutExerciseLogInput[] | Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput[] + connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[] + upsert?: Prisma.SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput | Prisma.SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput[] + createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope + set?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] + disconnect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] + delete?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] + connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] + update?: Prisma.SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput | Prisma.SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput[] + updateMany?: Prisma.SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput | Prisma.SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput[] + deleteMany?: Prisma.SessionFeedbackScalarWhereInput | Prisma.SessionFeedbackScalarWhereInput[] +} + +export type SessionFeedbackCreateWithoutExerciseLogInput = { + question: string + answer: string +} + +export type SessionFeedbackUncheckedCreateWithoutExerciseLogInput = { + id?: number + question: string + answer: string +} + +export type SessionFeedbackCreateOrConnectWithoutExerciseLogInput = { + where: Prisma.SessionFeedbackWhereUniqueInput + create: Prisma.XOR +} + +export type SessionFeedbackCreateManyExerciseLogInputEnvelope = { + data: Prisma.SessionFeedbackCreateManyExerciseLogInput | Prisma.SessionFeedbackCreateManyExerciseLogInput[] + skipDuplicates?: boolean +} + +export type SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput = { + where: Prisma.SessionFeedbackWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput = { + where: Prisma.SessionFeedbackWhereUniqueInput + data: Prisma.XOR +} + +export type SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput = { + where: Prisma.SessionFeedbackScalarWhereInput + data: Prisma.XOR +} + +export type SessionFeedbackScalarWhereInput = { + AND?: Prisma.SessionFeedbackScalarWhereInput | Prisma.SessionFeedbackScalarWhereInput[] + OR?: Prisma.SessionFeedbackScalarWhereInput[] + NOT?: Prisma.SessionFeedbackScalarWhereInput | Prisma.SessionFeedbackScalarWhereInput[] + id?: Prisma.IntFilter<"SessionFeedback"> | number + question?: Prisma.StringFilter<"SessionFeedback"> | string + answer?: Prisma.StringFilter<"SessionFeedback"> | string + exerciseLogId?: Prisma.IntFilter<"SessionFeedback"> | number +} + +export type SessionFeedbackCreateManyExerciseLogInput = { + id?: number + question: string + answer: string +} + +export type SessionFeedbackUpdateWithoutExerciseLogInput = { + question?: Prisma.StringFieldUpdateOperationsInput | string + answer?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SessionFeedbackUncheckedUpdateWithoutExerciseLogInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + question?: Prisma.StringFieldUpdateOperationsInput | string + answer?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type SessionFeedbackUncheckedUpdateManyWithoutExerciseLogInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + question?: Prisma.StringFieldUpdateOperationsInput | string + answer?: Prisma.StringFieldUpdateOperationsInput | string +} + + + +export type SessionFeedbackSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + question?: boolean + answer?: boolean + exerciseLogId?: boolean + exerciseLog?: boolean | Prisma.ExerciseLogDefaultArgs +}, ExtArgs["result"]["sessionFeedback"]> + + + +export type SessionFeedbackSelectScalar = { + id?: boolean + question?: boolean + answer?: boolean + exerciseLogId?: boolean +} + +export type SessionFeedbackOmit = runtime.Types.Extensions.GetOmit<"id" | "question" | "answer" | "exerciseLogId", ExtArgs["result"]["sessionFeedback"]> +export type SessionFeedbackInclude = { + exerciseLog?: boolean | Prisma.ExerciseLogDefaultArgs +} + +export type $SessionFeedbackPayload = { + name: "SessionFeedback" + objects: { + exerciseLog: Prisma.$ExerciseLogPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + question: string + answer: string + exerciseLogId: number + }, ExtArgs["result"]["sessionFeedback"]> + composites: {} +} + +export type SessionFeedbackGetPayload = runtime.Types.Result.GetResult + +export type SessionFeedbackCountArgs = + Omit & { + select?: SessionFeedbackCountAggregateInputType | true + } + +export interface SessionFeedbackDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['SessionFeedback'], meta: { name: 'SessionFeedback' } } + /** + * Find zero or one SessionFeedback that matches the filter. + * @param {SessionFeedbackFindUniqueArgs} args - Arguments to find a SessionFeedback + * @example + * // Get one SessionFeedback + * const sessionFeedback = await prisma.sessionFeedback.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one SessionFeedback that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SessionFeedbackFindUniqueOrThrowArgs} args - Arguments to find a SessionFeedback + * @example + * // Get one SessionFeedback + * const sessionFeedback = await prisma.sessionFeedback.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first SessionFeedback 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 {SessionFeedbackFindFirstArgs} args - Arguments to find a SessionFeedback + * @example + * // Get one SessionFeedback + * const sessionFeedback = await prisma.sessionFeedback.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first SessionFeedback 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 {SessionFeedbackFindFirstOrThrowArgs} args - Arguments to find a SessionFeedback + * @example + * // Get one SessionFeedback + * const sessionFeedback = await prisma.sessionFeedback.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more SessionFeedbacks 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 {SessionFeedbackFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all SessionFeedbacks + * const sessionFeedbacks = await prisma.sessionFeedback.findMany() + * + * // Get first 10 SessionFeedbacks + * const sessionFeedbacks = await prisma.sessionFeedback.findMany({ take: 10 }) + * + * // Only select the `id` + * const sessionFeedbackWithIdOnly = await prisma.sessionFeedback.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a SessionFeedback. + * @param {SessionFeedbackCreateArgs} args - Arguments to create a SessionFeedback. + * @example + * // Create one SessionFeedback + * const SessionFeedback = await prisma.sessionFeedback.create({ + * data: { + * // ... data to create a SessionFeedback + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many SessionFeedbacks. + * @param {SessionFeedbackCreateManyArgs} args - Arguments to create many SessionFeedbacks. + * @example + * // Create many SessionFeedbacks + * const sessionFeedback = await prisma.sessionFeedback.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a SessionFeedback. + * @param {SessionFeedbackDeleteArgs} args - Arguments to delete one SessionFeedback. + * @example + * // Delete one SessionFeedback + * const SessionFeedback = await prisma.sessionFeedback.delete({ + * where: { + * // ... filter to delete one SessionFeedback + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one SessionFeedback. + * @param {SessionFeedbackUpdateArgs} args - Arguments to update one SessionFeedback. + * @example + * // Update one SessionFeedback + * const sessionFeedback = await prisma.sessionFeedback.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more SessionFeedbacks. + * @param {SessionFeedbackDeleteManyArgs} args - Arguments to filter SessionFeedbacks to delete. + * @example + * // Delete a few SessionFeedbacks + * const { count } = await prisma.sessionFeedback.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more SessionFeedbacks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionFeedbackUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many SessionFeedbacks + * const sessionFeedback = await prisma.sessionFeedback.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one SessionFeedback. + * @param {SessionFeedbackUpsertArgs} args - Arguments to update or create a SessionFeedback. + * @example + * // Update or create a SessionFeedback + * const sessionFeedback = await prisma.sessionFeedback.upsert({ + * create: { + * // ... data to create a SessionFeedback + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the SessionFeedback we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of SessionFeedbacks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionFeedbackCountArgs} args - Arguments to filter SessionFeedbacks to count. + * @example + * // Count the number of SessionFeedbacks + * const count = await prisma.sessionFeedback.count({ + * where: { + * // ... the filter for the SessionFeedbacks 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 SessionFeedback. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionFeedbackAggregateArgs} 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 SessionFeedback. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionFeedbackGroupByArgs} 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 SessionFeedbackGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SessionFeedbackGroupByArgs['orderBy'] } + : { orderBy?: SessionFeedbackGroupByArgs['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 ? GetSessionFeedbackGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the SessionFeedback model + */ +readonly fields: SessionFeedbackFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for SessionFeedback. + * 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__SessionFeedbackClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + exerciseLog = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExerciseLogClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + /** + * 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 SessionFeedback model + */ +export interface SessionFeedbackFieldRefs { + readonly id: Prisma.FieldRef<"SessionFeedback", 'Int'> + readonly question: Prisma.FieldRef<"SessionFeedback", 'String'> + readonly answer: Prisma.FieldRef<"SessionFeedback", 'String'> + readonly exerciseLogId: Prisma.FieldRef<"SessionFeedback", 'Int'> +} + + +// Custom InputTypes +/** + * SessionFeedback findUnique + */ +export type SessionFeedbackFindUniqueArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * Filter, which SessionFeedback to fetch. + */ + where: Prisma.SessionFeedbackWhereUniqueInput +} + +/** + * SessionFeedback findUniqueOrThrow + */ +export type SessionFeedbackFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * Filter, which SessionFeedback to fetch. + */ + where: Prisma.SessionFeedbackWhereUniqueInput +} + +/** + * SessionFeedback findFirst + */ +export type SessionFeedbackFindFirstArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * Filter, which SessionFeedback to fetch. + */ + where?: Prisma.SessionFeedbackWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SessionFeedbacks to fetch. + */ + orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for SessionFeedbacks. + */ + cursor?: Prisma.SessionFeedbackWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` SessionFeedbacks 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` SessionFeedbacks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SessionFeedbacks. + */ + distinct?: Prisma.SessionFeedbackScalarFieldEnum | Prisma.SessionFeedbackScalarFieldEnum[] +} + +/** + * SessionFeedback findFirstOrThrow + */ +export type SessionFeedbackFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * Filter, which SessionFeedback to fetch. + */ + where?: Prisma.SessionFeedbackWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SessionFeedbacks to fetch. + */ + orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for SessionFeedbacks. + */ + cursor?: Prisma.SessionFeedbackWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` SessionFeedbacks 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` SessionFeedbacks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SessionFeedbacks. + */ + distinct?: Prisma.SessionFeedbackScalarFieldEnum | Prisma.SessionFeedbackScalarFieldEnum[] +} + +/** + * SessionFeedback findMany + */ +export type SessionFeedbackFindManyArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * Filter, which SessionFeedbacks to fetch. + */ + where?: Prisma.SessionFeedbackWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SessionFeedbacks to fetch. + */ + orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing SessionFeedbacks. + */ + cursor?: Prisma.SessionFeedbackWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` SessionFeedbacks 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` SessionFeedbacks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SessionFeedbacks. + */ + distinct?: Prisma.SessionFeedbackScalarFieldEnum | Prisma.SessionFeedbackScalarFieldEnum[] +} + +/** + * SessionFeedback create + */ +export type SessionFeedbackCreateArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * The data needed to create a SessionFeedback. + */ + data: Prisma.XOR +} + +/** + * SessionFeedback createMany + */ +export type SessionFeedbackCreateManyArgs = { + /** + * The data used to create many SessionFeedbacks. + */ + data: Prisma.SessionFeedbackCreateManyInput | Prisma.SessionFeedbackCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * SessionFeedback update + */ +export type SessionFeedbackUpdateArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * The data needed to update a SessionFeedback. + */ + data: Prisma.XOR + /** + * Choose, which SessionFeedback to update. + */ + where: Prisma.SessionFeedbackWhereUniqueInput +} + +/** + * SessionFeedback updateMany + */ +export type SessionFeedbackUpdateManyArgs = { + /** + * The data used to update SessionFeedbacks. + */ + data: Prisma.XOR + /** + * Filter which SessionFeedbacks to update + */ + where?: Prisma.SessionFeedbackWhereInput + /** + * Limit how many SessionFeedbacks to update. + */ + limit?: number +} + +/** + * SessionFeedback upsert + */ +export type SessionFeedbackUpsertArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * The filter to search for the SessionFeedback to update in case it exists. + */ + where: Prisma.SessionFeedbackWhereUniqueInput + /** + * In case the SessionFeedback found by the `where` argument doesn't exist, create a new SessionFeedback with this data. + */ + create: Prisma.XOR + /** + * In case the SessionFeedback was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * SessionFeedback delete + */ +export type SessionFeedbackDeleteArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null + /** + * Filter which SessionFeedback to delete. + */ + where: Prisma.SessionFeedbackWhereUniqueInput +} + +/** + * SessionFeedback deleteMany + */ +export type SessionFeedbackDeleteManyArgs = { + /** + * Filter which SessionFeedbacks to delete + */ + where?: Prisma.SessionFeedbackWhereInput + /** + * Limit how many SessionFeedbacks to delete. + */ + limit?: number +} + +/** + * SessionFeedback without action + */ +export type SessionFeedbackDefaultArgs = { + /** + * Select specific fields to fetch from the SessionFeedback + */ + select?: Prisma.SessionFeedbackSelect | null + /** + * Omit specific fields from the SessionFeedback + */ + omit?: Prisma.SessionFeedbackOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionFeedbackInclude | null +} diff --git a/generated/prisma/models/User.ts b/generated/prisma/models/User.ts new file mode 100644 index 0000000..51b62bc --- /dev/null +++ b/generated/prisma/models/User.ts @@ -0,0 +1,1685 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `User` 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 User + * + */ +export type UserModel = runtime.Types.Result.DefaultSelection + +export type AggregateUser = { + _count: UserCountAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +export type UserMinAggregateOutputType = { + id: string | null + name: string | null + email: string | null + emailVerified: boolean | null + image: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type UserMaxAggregateOutputType = { + id: string | null + name: string | null + email: string | null + emailVerified: boolean | null + image: string | null + createdAt: Date | null + updatedAt: Date | null +} + +export type UserCountAggregateOutputType = { + id: number + name: number + email: number + emailVerified: number + image: number + createdAt: number + updatedAt: number + _all: number +} + + +export type UserMinAggregateInputType = { + id?: true + name?: true + email?: true + emailVerified?: true + image?: true + createdAt?: true + updatedAt?: true +} + +export type UserMaxAggregateInputType = { + id?: true + name?: true + email?: true + emailVerified?: true + image?: true + createdAt?: true + updatedAt?: true +} + +export type UserCountAggregateInputType = { + id?: true + name?: true + email?: true + emailVerified?: true + image?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type UserAggregateArgs = { + /** + * Filter which User to aggregate. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users 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` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Users + **/ + _count?: true | UserCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserMaxAggregateInputType +} + +export type GetUserAggregateType = { + [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UserGroupByArgs = { + where?: Prisma.UserWhereInput + orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] + by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum + having?: Prisma.UserScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserCountAggregateInputType | true + _min?: UserMinAggregateInputType + _max?: UserMaxAggregateInputType +} + +export type UserGroupByOutputType = { + id: string + name: string + email: string + emailVerified: boolean + image: string | null + createdAt: Date + updatedAt: Date + _count: UserCountAggregateOutputType | null + _min: UserMinAggregateOutputType | null + _max: UserMaxAggregateOutputType | null +} + +type GetUserGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UserWhereInput = { + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + id?: Prisma.StringFilter<"User"> | string + name?: Prisma.StringFilter<"User"> | string + email?: Prisma.StringFilter<"User"> | string + emailVerified?: Prisma.BoolFilter<"User"> | boolean + image?: Prisma.StringNullableFilter<"User"> | string | null + createdAt?: Prisma.DateTimeFilter<"User"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string + sessions?: Prisma.SessionListRelationFilter + accounts?: Prisma.AccountListRelationFilter + mesoCycle?: Prisma.MesoCycleListRelationFilter + workoutSession?: Prisma.WorkoutSessionListRelationFilter +} + +export type UserOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + sessions?: Prisma.SessionOrderByRelationAggregateInput + accounts?: Prisma.AccountOrderByRelationAggregateInput + mesoCycle?: Prisma.MesoCycleOrderByRelationAggregateInput + workoutSession?: Prisma.WorkoutSessionOrderByRelationAggregateInput + _relevance?: Prisma.UserOrderByRelevanceInput +} + +export type UserWhereUniqueInput = Prisma.AtLeast<{ + id?: string + email?: string + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + OR?: Prisma.UserWhereInput[] + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] + name?: Prisma.StringFilter<"User"> | string + emailVerified?: Prisma.BoolFilter<"User"> | boolean + image?: Prisma.StringNullableFilter<"User"> | string | null + createdAt?: Prisma.DateTimeFilter<"User"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string + sessions?: Prisma.SessionListRelationFilter + accounts?: Prisma.AccountListRelationFilter + mesoCycle?: Prisma.MesoCycleListRelationFilter + workoutSession?: Prisma.WorkoutSessionListRelationFilter +}, "id" | "email"> + +export type UserOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrderInput | Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.UserCountOrderByAggregateInput + _max?: Prisma.UserMaxOrderByAggregateInput + _min?: Prisma.UserMinOrderByAggregateInput +} + +export type UserScalarWhereWithAggregatesInput = { + AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + OR?: Prisma.UserScalarWhereWithAggregatesInput[] + NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"User"> | string + name?: Prisma.StringWithAggregatesFilter<"User"> | string + email?: Prisma.StringWithAggregatesFilter<"User"> | string + emailVerified?: Prisma.BoolWithAggregatesFilter<"User"> | boolean + image?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null + createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string +} + +export type UserCreateInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + mesoCycle?: Prisma.MesoCycleCreateNestedManyWithoutUserInput + workoutSession?: Prisma.WorkoutSessionCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + mesoCycle?: Prisma.MesoCycleUncheckedCreateNestedManyWithoutUserInput + workoutSession?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutUserInput +} + +export type UserUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + mesoCycle?: Prisma.MesoCycleUpdateManyWithoutUserNestedInput + workoutSession?: Prisma.WorkoutSessionUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + mesoCycle?: Prisma.MesoCycleUncheckedUpdateManyWithoutUserNestedInput + workoutSession?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateManyInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string +} + +export type UserUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type UserOrderByRelevanceInput = { + fields: Prisma.UserOrderByRelevanceFieldEnum | Prisma.UserOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type UserCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + email?: Prisma.SortOrder + emailVerified?: Prisma.SortOrder + image?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type UserScalarRelationFilter = { + is?: Prisma.UserWhereInput + isNot?: Prisma.UserWhereInput +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + +export type BoolFieldUpdateOperationsInput = { + set?: boolean +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type DateTimeFieldUpdateOperationsInput = { + set?: Date | string +} + +export type UserCreateNestedOneWithoutSessionsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutSessionsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput + upsert?: Prisma.UserUpsertWithoutSessionsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutSessionsInput> +} + +export type UserCreateNestedOneWithoutAccountsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutAccountsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput + upsert?: Prisma.UserUpsertWithoutAccountsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutAccountsInput> +} + +export type UserCreateNestedOneWithoutMesoCycleInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutMesoCycleInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutMesoCycleNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutMesoCycleInput + upsert?: Prisma.UserUpsertWithoutMesoCycleInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutMesoCycleInput> +} + +export type UserCreateNestedOneWithoutWorkoutSessionInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutWorkoutSessionInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutWorkoutSessionNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutWorkoutSessionInput + upsert?: Prisma.UserUpsertWithoutWorkoutSessionInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutWorkoutSessionInput> +} + +export type UserCreateWithoutSessionsInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + mesoCycle?: Prisma.MesoCycleCreateNestedManyWithoutUserInput + workoutSession?: Prisma.WorkoutSessionCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutSessionsInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + mesoCycle?: Prisma.MesoCycleUncheckedCreateNestedManyWithoutUserInput + workoutSession?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutSessionsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutSessionsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutSessionsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + mesoCycle?: Prisma.MesoCycleUpdateManyWithoutUserNestedInput + workoutSession?: Prisma.WorkoutSessionUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutSessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + mesoCycle?: Prisma.MesoCycleUncheckedUpdateManyWithoutUserNestedInput + workoutSession?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutAccountsInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + mesoCycle?: Prisma.MesoCycleCreateNestedManyWithoutUserInput + workoutSession?: Prisma.WorkoutSessionCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutAccountsInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + mesoCycle?: Prisma.MesoCycleUncheckedCreateNestedManyWithoutUserInput + workoutSession?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutAccountsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutAccountsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutAccountsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutAccountsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + mesoCycle?: Prisma.MesoCycleUpdateManyWithoutUserNestedInput + workoutSession?: Prisma.WorkoutSessionUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutAccountsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + mesoCycle?: Prisma.MesoCycleUncheckedUpdateManyWithoutUserNestedInput + workoutSession?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutMesoCycleInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + workoutSession?: Prisma.WorkoutSessionCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutMesoCycleInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + workoutSession?: Prisma.WorkoutSessionUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutMesoCycleInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutMesoCycleInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutMesoCycleInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutMesoCycleInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + workoutSession?: Prisma.WorkoutSessionUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutMesoCycleInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + workoutSession?: Prisma.WorkoutSessionUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutWorkoutSessionInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + sessions?: Prisma.SessionCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountCreateNestedManyWithoutUserInput + mesoCycle?: Prisma.MesoCycleCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutWorkoutSessionInput = { + id: string + name: string + email: string + emailVerified?: boolean + image?: string | null + createdAt?: Date | string + updatedAt?: Date | string + sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput + accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput + mesoCycle?: Prisma.MesoCycleUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutWorkoutSessionInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutWorkoutSessionInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutWorkoutSessionInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutWorkoutSessionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput + mesoCycle?: Prisma.MesoCycleUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutWorkoutSessionInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean + image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput + accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput + mesoCycle?: Prisma.MesoCycleUncheckedUpdateManyWithoutUserNestedInput +} + + +/** + * Count Type UserCountOutputType + */ + +export type UserCountOutputType = { + sessions: number + accounts: number + mesoCycle: number + workoutSession: number +} + +export type UserCountOutputTypeSelect = { + sessions?: boolean | UserCountOutputTypeCountSessionsArgs + accounts?: boolean | UserCountOutputTypeCountAccountsArgs + mesoCycle?: boolean | UserCountOutputTypeCountMesoCycleArgs + workoutSession?: boolean | UserCountOutputTypeCountWorkoutSessionArgs +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the UserCountOutputType + */ + select?: Prisma.UserCountOutputTypeSelect | null +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountSessionsArgs = { + where?: Prisma.SessionWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountAccountsArgs = { + where?: Prisma.AccountWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountMesoCycleArgs = { + where?: Prisma.MesoCycleWhereInput +} + +/** + * UserCountOutputType without action + */ +export type UserCountOutputTypeCountWorkoutSessionArgs = { + where?: Prisma.WorkoutSessionWhereInput +} + + +export type UserSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + email?: boolean + emailVerified?: boolean + image?: boolean + createdAt?: boolean + updatedAt?: boolean + sessions?: boolean | Prisma.User$sessionsArgs + accounts?: boolean | Prisma.User$accountsArgs + mesoCycle?: boolean | Prisma.User$mesoCycleArgs + workoutSession?: boolean | Prisma.User$workoutSessionArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +}, ExtArgs["result"]["user"]> + + + +export type UserSelectScalar = { + id?: boolean + name?: boolean + email?: boolean + emailVerified?: boolean + image?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> +export type UserInclude = { + sessions?: boolean | Prisma.User$sessionsArgs + accounts?: boolean | Prisma.User$accountsArgs + mesoCycle?: boolean | Prisma.User$mesoCycleArgs + workoutSession?: boolean | Prisma.User$workoutSessionArgs + _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs +} + +export type $UserPayload = { + name: "User" + objects: { + sessions: Prisma.$SessionPayload[] + accounts: Prisma.$AccountPayload[] + mesoCycle: Prisma.$MesoCyclePayload[] + workoutSession: Prisma.$WorkoutSessionPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + name: string + email: string + emailVerified: boolean + image: string | null + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["user"]> + composites: {} +} + +export type UserGetPayload = runtime.Types.Result.GetResult + +export type UserCountArgs = + Omit & { + select?: UserCountAggregateInputType | true + } + +export interface UserDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } + /** + * Find zero or one User that matches the filter. + * @param {UserFindUniqueArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one User that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first User 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 {UserFindFirstArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first User 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 {UserFindFirstOrThrowArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Users 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 {UserFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Users + * const users = await prisma.user.findMany() + * + * // Get first 10 Users + * const users = await prisma.user.findMany({ take: 10 }) + * + * // Only select the `id` + * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a User. + * @param {UserCreateArgs} args - Arguments to create a User. + * @example + * // Create one User + * const User = await prisma.user.create({ + * data: { + * // ... data to create a User + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Users. + * @param {UserCreateManyArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const user = await prisma.user.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a User. + * @param {UserDeleteArgs} args - Arguments to delete one User. + * @example + * // Delete one User + * const User = await prisma.user.delete({ + * where: { + * // ... filter to delete one User + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one User. + * @param {UserUpdateArgs} args - Arguments to update one User. + * @example + * // Update one User + * const user = await prisma.user.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Users. + * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. + * @example + * // Delete a few Users + * const { count } = await prisma.user.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Users + * const user = await prisma.user.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one User. + * @param {UserUpsertArgs} args - Arguments to update or create a User. + * @example + * // Update or create a User + * const user = await prisma.user.upsert({ + * create: { + * // ... data to create a User + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the User we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserCountArgs} args - Arguments to filter Users to count. + * @example + * // Count the number of Users + * const count = await prisma.user.count({ + * where: { + * // ... the filter for the Users 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 User. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserAggregateArgs} 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 User. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserGroupByArgs} 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 UserGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserGroupByArgs['orderBy'] } + : { orderBy?: UserGroupByArgs['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 ? GetUserGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the User model + */ +readonly fields: UserFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for User. + * 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__UserClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + sessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + accounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + mesoCycle = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + workoutSession = {}>(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 User model + */ +export interface UserFieldRefs { + readonly id: Prisma.FieldRef<"User", 'String'> + readonly name: Prisma.FieldRef<"User", 'String'> + readonly email: Prisma.FieldRef<"User", 'String'> + readonly emailVerified: Prisma.FieldRef<"User", 'Boolean'> + readonly image: Prisma.FieldRef<"User", 'String'> + readonly createdAt: Prisma.FieldRef<"User", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'> +} + + +// Custom InputTypes +/** + * User findUnique + */ +export type UserFindUniqueArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findUniqueOrThrow + */ +export type UserFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findFirst + */ +export type UserFindFirstArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users 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` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Users. + */ + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User findFirstOrThrow + */ +export type UserFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which User to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users 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` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Users. + */ + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User findMany + */ +export type UserFindManyArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter, which Users to fetch. + */ + where?: Prisma.UserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Users. + */ + cursor?: Prisma.UserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users 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` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Users. + */ + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User create + */ +export type UserCreateArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The data needed to create a User. + */ + data: Prisma.XOR +} + +/** + * User createMany + */ +export type UserCreateManyArgs = { + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * User update + */ +export type UserUpdateArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The data needed to update a User. + */ + data: Prisma.XOR + /** + * Choose, which User to update. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User updateMany + */ +export type UserUpdateManyArgs = { + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User upsert + */ +export type UserUpsertArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * The filter to search for the User to update in case it exists. + */ + where: Prisma.UserWhereUniqueInput + /** + * In case the User found by the `where` argument doesn't exist, create a new User with this data. + */ + create: Prisma.XOR + /** + * In case the User was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * User delete + */ +export type UserDeleteArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null + /** + * Filter which User to delete. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User deleteMany + */ +export type UserDeleteManyArgs = { + /** + * Filter which Users to delete + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to delete. + */ + limit?: number +} + +/** + * User.sessions + */ +export type User$sessionsArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: Prisma.SessionSelect | null + /** + * Omit specific fields from the Session + */ + omit?: Prisma.SessionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SessionInclude | null + where?: Prisma.SessionWhereInput + orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] + cursor?: Prisma.SessionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] +} + +/** + * User.accounts + */ +export type User$accountsArgs = { + /** + * Select specific fields to fetch from the Account + */ + select?: Prisma.AccountSelect | null + /** + * Omit specific fields from the Account + */ + omit?: Prisma.AccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AccountInclude | null + where?: Prisma.AccountWhereInput + orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] + cursor?: Prisma.AccountWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] +} + +/** + * User.mesoCycle + */ +export type User$mesoCycleArgs = { + /** + * 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 + where?: Prisma.MesoCycleWhereInput + orderBy?: Prisma.MesoCycleOrderByWithRelationInput | Prisma.MesoCycleOrderByWithRelationInput[] + cursor?: Prisma.MesoCycleWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.MesoCycleScalarFieldEnum | Prisma.MesoCycleScalarFieldEnum[] +} + +/** + * User.workoutSession + */ +export type User$workoutSessionArgs = { + /** + * 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 + where?: Prisma.WorkoutSessionWhereInput + orderBy?: Prisma.WorkoutSessionOrderByWithRelationInput | Prisma.WorkoutSessionOrderByWithRelationInput[] + cursor?: Prisma.WorkoutSessionWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.WorkoutSessionScalarFieldEnum | Prisma.WorkoutSessionScalarFieldEnum[] +} + +/** + * User without action + */ +export type UserDefaultArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UserInclude | null +} diff --git a/generated/prisma/models/Verification.ts b/generated/prisma/models/Verification.ts new file mode 100644 index 0000000..7c1bc78 --- /dev/null +++ b/generated/prisma/models/Verification.ts @@ -0,0 +1,1069 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Verification` 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 Verification + * + */ +export type VerificationModel = runtime.Types.Result.DefaultSelection + +export type AggregateVerification = { + _count: VerificationCountAggregateOutputType | null + _min: VerificationMinAggregateOutputType | null + _max: VerificationMaxAggregateOutputType | null +} + +export type VerificationMinAggregateOutputType = { + id: string | null + identifier: string | null + value: string | null + expiresAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type VerificationMaxAggregateOutputType = { + id: string | null + identifier: string | null + value: string | null + expiresAt: Date | null + createdAt: Date | null + updatedAt: Date | null +} + +export type VerificationCountAggregateOutputType = { + id: number + identifier: number + value: number + expiresAt: number + createdAt: number + updatedAt: number + _all: number +} + + +export type VerificationMinAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true +} + +export type VerificationMaxAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true +} + +export type VerificationCountAggregateInputType = { + id?: true + identifier?: true + value?: true + expiresAt?: true + createdAt?: true + updatedAt?: true + _all?: true +} + +export type VerificationAggregateArgs = { + /** + * Filter which Verification to aggregate. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: Prisma.VerificationOrderByWithRelationInput | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications 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` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Verifications + **/ + _count?: true | VerificationCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: VerificationMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: VerificationMaxAggregateInputType +} + +export type GetVerificationAggregateType = { + [P in keyof T & keyof AggregateVerification]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type VerificationGroupByArgs = { + where?: Prisma.VerificationWhereInput + orderBy?: Prisma.VerificationOrderByWithAggregationInput | Prisma.VerificationOrderByWithAggregationInput[] + by: Prisma.VerificationScalarFieldEnum[] | Prisma.VerificationScalarFieldEnum + having?: Prisma.VerificationScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: VerificationCountAggregateInputType | true + _min?: VerificationMinAggregateInputType + _max?: VerificationMaxAggregateInputType +} + +export type VerificationGroupByOutputType = { + id: string + identifier: string + value: string + expiresAt: Date + createdAt: Date + updatedAt: Date + _count: VerificationCountAggregateOutputType | null + _min: VerificationMinAggregateOutputType | null + _max: VerificationMaxAggregateOutputType | null +} + +type GetVerificationGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof VerificationGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type VerificationWhereInput = { + AND?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + OR?: Prisma.VerificationWhereInput[] + NOT?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + id?: Prisma.StringFilter<"Verification"> | string + identifier?: Prisma.StringFilter<"Verification"> | string + value?: Prisma.StringFilter<"Verification"> | string + expiresAt?: Prisma.DateTimeFilter<"Verification"> | Date | string + createdAt?: Prisma.DateTimeFilter<"Verification"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Verification"> | Date | string +} + +export type VerificationOrderByWithRelationInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _relevance?: Prisma.VerificationOrderByRelevanceInput +} + +export type VerificationWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + OR?: Prisma.VerificationWhereInput[] + NOT?: Prisma.VerificationWhereInput | Prisma.VerificationWhereInput[] + identifier?: Prisma.StringFilter<"Verification"> | string + value?: Prisma.StringFilter<"Verification"> | string + expiresAt?: Prisma.DateTimeFilter<"Verification"> | Date | string + createdAt?: Prisma.DateTimeFilter<"Verification"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Verification"> | Date | string +}, "id"> + +export type VerificationOrderByWithAggregationInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + _count?: Prisma.VerificationCountOrderByAggregateInput + _max?: Prisma.VerificationMaxOrderByAggregateInput + _min?: Prisma.VerificationMinOrderByAggregateInput +} + +export type VerificationScalarWhereWithAggregatesInput = { + AND?: Prisma.VerificationScalarWhereWithAggregatesInput | Prisma.VerificationScalarWhereWithAggregatesInput[] + OR?: Prisma.VerificationScalarWhereWithAggregatesInput[] + NOT?: Prisma.VerificationScalarWhereWithAggregatesInput | Prisma.VerificationScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Verification"> | string + identifier?: Prisma.StringWithAggregatesFilter<"Verification"> | string + value?: Prisma.StringWithAggregatesFilter<"Verification"> | string + expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Verification"> | Date | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Verification"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Verification"> | Date | string +} + +export type VerificationCreateInput = { + id: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type VerificationUncheckedCreateInput = { + id: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type VerificationUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VerificationUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VerificationCreateManyInput = { + id: string + identifier: string + value: string + expiresAt: Date | string + createdAt?: Date | string + updatedAt?: Date | string +} + +export type VerificationUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VerificationUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + identifier?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type VerificationOrderByRelevanceInput = { + fields: Prisma.VerificationOrderByRelevanceFieldEnum | Prisma.VerificationOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type VerificationCountOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type VerificationMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + +export type VerificationMinOrderByAggregateInput = { + id?: Prisma.SortOrder + identifier?: Prisma.SortOrder + value?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder +} + + + +export type VerificationSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean +}, ExtArgs["result"]["verification"]> + + + +export type VerificationSelectScalar = { + id?: boolean + identifier?: boolean + value?: boolean + expiresAt?: boolean + createdAt?: boolean + updatedAt?: boolean +} + +export type VerificationOmit = runtime.Types.Extensions.GetOmit<"id" | "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["verification"]> + +export type $VerificationPayload = { + name: "Verification" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + identifier: string + value: string + expiresAt: Date + createdAt: Date + updatedAt: Date + }, ExtArgs["result"]["verification"]> + composites: {} +} + +export type VerificationGetPayload = runtime.Types.Result.GetResult + +export type VerificationCountArgs = + Omit & { + select?: VerificationCountAggregateInputType | true + } + +export interface VerificationDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Verification'], meta: { name: 'Verification' } } + /** + * Find zero or one Verification that matches the filter. + * @param {VerificationFindUniqueArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Verification that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {VerificationFindUniqueOrThrowArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Verification 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 {VerificationFindFirstArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Verification 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 {VerificationFindFirstOrThrowArgs} args - Arguments to find a Verification + * @example + * // Get one Verification + * const verification = await prisma.verification.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Verifications 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 {VerificationFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Verifications + * const verifications = await prisma.verification.findMany() + * + * // Get first 10 Verifications + * const verifications = await prisma.verification.findMany({ take: 10 }) + * + * // Only select the `id` + * const verificationWithIdOnly = await prisma.verification.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Verification. + * @param {VerificationCreateArgs} args - Arguments to create a Verification. + * @example + * // Create one Verification + * const Verification = await prisma.verification.create({ + * data: { + * // ... data to create a Verification + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Verifications. + * @param {VerificationCreateManyArgs} args - Arguments to create many Verifications. + * @example + * // Create many Verifications + * const verification = await prisma.verification.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Verification. + * @param {VerificationDeleteArgs} args - Arguments to delete one Verification. + * @example + * // Delete one Verification + * const Verification = await prisma.verification.delete({ + * where: { + * // ... filter to delete one Verification + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Verification. + * @param {VerificationUpdateArgs} args - Arguments to update one Verification. + * @example + * // Update one Verification + * const verification = await prisma.verification.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Verifications. + * @param {VerificationDeleteManyArgs} args - Arguments to filter Verifications to delete. + * @example + * // Delete a few Verifications + * const { count } = await prisma.verification.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Verifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Verifications + * const verification = await prisma.verification.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Verification. + * @param {VerificationUpsertArgs} args - Arguments to update or create a Verification. + * @example + * // Update or create a Verification + * const verification = await prisma.verification.upsert({ + * create: { + * // ... data to create a Verification + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Verification we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Verifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationCountArgs} args - Arguments to filter Verifications to count. + * @example + * // Count the number of Verifications + * const count = await prisma.verification.count({ + * where: { + * // ... the filter for the Verifications 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 Verification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationAggregateArgs} 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 Verification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VerificationGroupByArgs} 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 VerificationGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: VerificationGroupByArgs['orderBy'] } + : { orderBy?: VerificationGroupByArgs['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 ? GetVerificationGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Verification model + */ +readonly fields: VerificationFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Verification. + * 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__VerificationClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + /** + * 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 Verification model + */ +export interface VerificationFieldRefs { + readonly id: Prisma.FieldRef<"Verification", 'String'> + readonly identifier: Prisma.FieldRef<"Verification", 'String'> + readonly value: Prisma.FieldRef<"Verification", 'String'> + readonly expiresAt: Prisma.FieldRef<"Verification", 'DateTime'> + readonly createdAt: Prisma.FieldRef<"Verification", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Verification", 'DateTime'> +} + + +// Custom InputTypes +/** + * Verification findUnique + */ +export type VerificationFindUniqueArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification findUniqueOrThrow + */ +export type VerificationFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification findFirst + */ +export type VerificationFindFirstArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: Prisma.VerificationOrderByWithRelationInput | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications 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` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Verifications. + */ + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification findFirstOrThrow + */ +export type VerificationFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verification to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: Prisma.VerificationOrderByWithRelationInput | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications 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` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Verifications. + */ + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification findMany + */ +export type VerificationFindManyArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter, which Verifications to fetch. + */ + where?: Prisma.VerificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Verifications to fetch. + */ + orderBy?: Prisma.VerificationOrderByWithRelationInput | Prisma.VerificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Verifications. + */ + cursor?: Prisma.VerificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Verifications 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` Verifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Verifications. + */ + distinct?: Prisma.VerificationScalarFieldEnum | Prisma.VerificationScalarFieldEnum[] +} + +/** + * Verification create + */ +export type VerificationCreateArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data needed to create a Verification. + */ + data: Prisma.XOR +} + +/** + * Verification createMany + */ +export type VerificationCreateManyArgs = { + /** + * The data used to create many Verifications. + */ + data: Prisma.VerificationCreateManyInput | Prisma.VerificationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Verification update + */ +export type VerificationUpdateArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The data needed to update a Verification. + */ + data: Prisma.XOR + /** + * Choose, which Verification to update. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification updateMany + */ +export type VerificationUpdateManyArgs = { + /** + * The data used to update Verifications. + */ + data: Prisma.XOR + /** + * Filter which Verifications to update + */ + where?: Prisma.VerificationWhereInput + /** + * Limit how many Verifications to update. + */ + limit?: number +} + +/** + * Verification upsert + */ +export type VerificationUpsertArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * The filter to search for the Verification to update in case it exists. + */ + where: Prisma.VerificationWhereUniqueInput + /** + * In case the Verification found by the `where` argument doesn't exist, create a new Verification with this data. + */ + create: Prisma.XOR + /** + * In case the Verification was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Verification delete + */ +export type VerificationDeleteArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null + /** + * Filter which Verification to delete. + */ + where: Prisma.VerificationWhereUniqueInput +} + +/** + * Verification deleteMany + */ +export type VerificationDeleteManyArgs = { + /** + * Filter which Verifications to delete + */ + where?: Prisma.VerificationWhereInput + /** + * Limit how many Verifications to delete. + */ + limit?: number +} + +/** + * Verification without action + */ +export type VerificationDefaultArgs = { + /** + * Select specific fields to fetch from the Verification + */ + select?: Prisma.VerificationSelect | null + /** + * Omit specific fields from the Verification + */ + omit?: Prisma.VerificationOmit | null +} diff --git a/generated/prisma/models/WorkoutSession.ts b/generated/prisma/models/WorkoutSession.ts new file mode 100644 index 0000000..38b7375 --- /dev/null +++ b/generated/prisma/models/WorkoutSession.ts @@ -0,0 +1,1570 @@ + +/* !!! 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 +} diff --git a/src/routes/auth.ts b/src/routes/auth.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/dashboard.ts b/src/routes/dashboard.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/exercises.ts b/src/routes/exercises.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/mesocycle.ts b/src/routes/mesocycle.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/workout.ts b/src/routes/workout.ts new file mode 100644 index 0000000..e69de29