1447 lines
52 KiB
TypeScript
1447 lines
52 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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<Prisma.$MesoCyclePayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends MesoCycleAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMesoCycle]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMesoCycle[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMesoCycle[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MesoCycleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends MesoCycleGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<MesoCycleGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MesoCycleGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], MesoCycleGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], MesoCycleGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
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<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
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> | 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> | 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> | 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> | 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<Prisma.MesoCycleCreateWithoutMesoCycleDaysInput, Prisma.MesoCycleUncheckedCreateWithoutMesoCycleDaysInput>
|
|
connectOrCreate?: Prisma.MesoCycleCreateOrConnectWithoutMesoCycleDaysInput
|
|
connect?: Prisma.MesoCycleWhereUniqueInput
|
|
}
|
|
|
|
export type MesoCycleUpdateOneRequiredWithoutMesoCycleDaysNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MesoCycleCreateWithoutMesoCycleDaysInput, Prisma.MesoCycleUncheckedCreateWithoutMesoCycleDaysInput>
|
|
connectOrCreate?: Prisma.MesoCycleCreateOrConnectWithoutMesoCycleDaysInput
|
|
upsert?: Prisma.MesoCycleUpsertWithoutMesoCycleDaysInput
|
|
connect?: Prisma.MesoCycleWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.MesoCycleUpdateToOneWithWhereWithoutMesoCycleDaysInput, Prisma.MesoCycleUpdateWithoutMesoCycleDaysInput>, 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<Prisma.MesoCycleCreateWithoutUserInput, Prisma.MesoCycleUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type MesoCycleCreateManyUserInputEnvelope = {
|
|
data: Prisma.MesoCycleCreateManyUserInput | Prisma.MesoCycleCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MesoCycleUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.MesoCycleWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MesoCycleUpdateWithoutUserInput, Prisma.MesoCycleUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.MesoCycleCreateWithoutUserInput, Prisma.MesoCycleUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type MesoCycleUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.MesoCycleWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MesoCycleUpdateWithoutUserInput, Prisma.MesoCycleUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type MesoCycleUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.MesoCycleScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MesoCycleUpdateManyMutationInput, Prisma.MesoCycleUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
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<Prisma.MesoCycleCreateWithoutMesoCycleDaysInput, Prisma.MesoCycleUncheckedCreateWithoutMesoCycleDaysInput>
|
|
}
|
|
|
|
export type MesoCycleUpsertWithoutMesoCycleDaysInput = {
|
|
update: Prisma.XOR<Prisma.MesoCycleUpdateWithoutMesoCycleDaysInput, Prisma.MesoCycleUncheckedUpdateWithoutMesoCycleDaysInput>
|
|
create: Prisma.XOR<Prisma.MesoCycleCreateWithoutMesoCycleDaysInput, Prisma.MesoCycleUncheckedCreateWithoutMesoCycleDaysInput>
|
|
where?: Prisma.MesoCycleWhereInput
|
|
}
|
|
|
|
export type MesoCycleUpdateToOneWithWhereWithoutMesoCycleDaysInput = {
|
|
where?: Prisma.MesoCycleWhereInput
|
|
data: Prisma.XOR<Prisma.MesoCycleUpdateWithoutMesoCycleDaysInput, Prisma.MesoCycleUncheckedUpdateWithoutMesoCycleDaysInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mesoCycleDays?: boolean | MesoCycleCountOutputTypeCountMesoCycleDaysArgs
|
|
}
|
|
|
|
/**
|
|
* MesoCycleCountOutputType without action
|
|
*/
|
|
export type MesoCycleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleCountOutputType
|
|
*/
|
|
select?: Prisma.MesoCycleCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MesoCycleCountOutputType without action
|
|
*/
|
|
export type MesoCycleCountOutputTypeCountMesoCycleDaysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MesoCycleDayWhereInput
|
|
}
|
|
|
|
|
|
export type MesoCycleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
totalWeeks?: boolean
|
|
currentWeek?: boolean
|
|
isAsync?: boolean
|
|
userId?: boolean
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
mesoCycleDays?: boolean | Prisma.MesoCycle$mesoCycleDaysArgs<ExtArgs>
|
|
_count?: boolean | Prisma.MesoCycleCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mesoCycle"]>
|
|
|
|
|
|
|
|
export type MesoCycleSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
totalWeeks?: boolean
|
|
currentWeek?: boolean
|
|
isAsync?: boolean
|
|
userId?: boolean
|
|
}
|
|
|
|
export type MesoCycleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "totalWeeks" | "currentWeek" | "isAsync" | "userId", ExtArgs["result"]["mesoCycle"]>
|
|
export type MesoCycleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
mesoCycleDays?: boolean | Prisma.MesoCycle$mesoCycleDaysArgs<ExtArgs>
|
|
_count?: boolean | Prisma.MesoCycleCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MesoCyclePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "MesoCycle"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
mesoCycleDays: Prisma.$MesoCycleDayPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
totalWeeks: number
|
|
currentWeek: number
|
|
isAsync: boolean
|
|
userId: string
|
|
}, ExtArgs["result"]["mesoCycle"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type MesoCycleGetPayload<S extends boolean | null | undefined | MesoCycleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload, S>
|
|
|
|
export type MesoCycleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<MesoCycleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: MesoCycleCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MesoCycleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends MesoCycleFindUniqueArgs>(args: Prisma.SelectSubset<T, MesoCycleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MesoCycleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleFindFirstArgs>(args?: Prisma.SelectSubset<T, MesoCycleFindFirstArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MesoCycleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleFindManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleCreateArgs>(args: Prisma.SelectSubset<T, MesoCycleCreateArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleCreateManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends MesoCycleDeleteArgs>(args: Prisma.SelectSubset<T, MesoCycleDeleteArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleUpdateArgs>(args: Prisma.SelectSubset<T, MesoCycleUpdateArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleDeleteManyArgs>(args?: Prisma.SelectSubset<T, MesoCycleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends MesoCycleUpdateManyArgs>(args: Prisma.SelectSubset<T, MesoCycleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends MesoCycleUpsertArgs>(args: Prisma.SelectSubset<T, MesoCycleUpsertArgs<ExtArgs>>): Prisma.Prisma__MesoCycleClient<runtime.Types.Result.GetResult<Prisma.$MesoCyclePayload<ExtArgs>, 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<T extends MesoCycleCountArgs>(
|
|
args?: Prisma.Subset<T, MesoCycleCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], MesoCycleCountAggregateOutputType>
|
|
: 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<T extends MesoCycleAggregateArgs>(args: Prisma.Subset<T, MesoCycleAggregateArgs>): Prisma.PrismaPromise<GetMesoCycleAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: MesoCycleGroupByArgs['orderBy'] }
|
|
: { orderBy?: MesoCycleGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, MesoCycleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMesoCycleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
mesoCycleDays<T extends Prisma.MesoCycle$mesoCycleDaysArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MesoCycle$mesoCycleDaysArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MesoCycleDayPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MesoCycle to fetch.
|
|
*/
|
|
where: Prisma.MesoCycleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycle findUniqueOrThrow
|
|
*/
|
|
export type MesoCycleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MesoCycle to fetch.
|
|
*/
|
|
where: Prisma.MesoCycleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycle findFirst
|
|
*/
|
|
export type MesoCycleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MesoCycle.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleCreateInput, Prisma.MesoCycleUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MesoCycle createMany
|
|
*/
|
|
export type MesoCycleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MesoCycles.
|
|
*/
|
|
data: Prisma.MesoCycleCreateManyInput | Prisma.MesoCycleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MesoCycle update
|
|
*/
|
|
export type MesoCycleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MesoCycle.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleUpdateInput, Prisma.MesoCycleUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MesoCycle to update.
|
|
*/
|
|
where: Prisma.MesoCycleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycle updateMany
|
|
*/
|
|
export type MesoCycleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MesoCycles.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MesoCycleUpdateManyMutationInput, Prisma.MesoCycleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MesoCycles to update
|
|
*/
|
|
where?: Prisma.MesoCycleWhereInput
|
|
/**
|
|
* Limit how many MesoCycles to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MesoCycle upsert
|
|
*/
|
|
export type MesoCycleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | 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<Prisma.MesoCycleCreateInput, Prisma.MesoCycleUncheckedCreateInput>
|
|
/**
|
|
* In case the MesoCycle was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.MesoCycleUpdateInput, Prisma.MesoCycleUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MesoCycle delete
|
|
*/
|
|
export type MesoCycleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MesoCycle to delete.
|
|
*/
|
|
where: Prisma.MesoCycleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MesoCycle deleteMany
|
|
*/
|
|
export type MesoCycleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MesoCycles to delete
|
|
*/
|
|
where?: Prisma.MesoCycleWhereInput
|
|
/**
|
|
* Limit how many MesoCycles to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MesoCycle.mesoCycleDays
|
|
*/
|
|
export type MesoCycle$mesoCycleDaysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycleDay
|
|
*/
|
|
select?: Prisma.MesoCycleDaySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycleDay
|
|
*/
|
|
omit?: Prisma.MesoCycleDayOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleDayInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MesoCycle
|
|
*/
|
|
select?: Prisma.MesoCycleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MesoCycle
|
|
*/
|
|
omit?: Prisma.MesoCycleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MesoCycleInclude<ExtArgs> | null
|
|
}
|