Files
iboard/generated/prisma/models/CheckListTemplate.ts
T
cheney 004f8c262d feat(V0.2): 打卡 / 日历 / 清单模块
- 数据: Habit/CheckIn/CheckList/CheckListItem/CheckListTemplate + 迁移 + 重新生成 client
- 后端: server/checkin/period.js 周期计算(日/周/月/年, 周一起始, Asia/Shanghai)
        /api/checkin/* 打卡项CRUD/打卡/撤销/补打/某日详情/月历
        /api/checklists/* 清单与检查项CRUD/勾选/全选/复制/模板(系统预置出差·回老家)
- 前端: 底部新增「打卡」Tab -> /checkin, 页内三视图
        环形进度 RingProgress + 完成特效(粒子/光晕/触感, 可关闭)
        打卡视图: 待办列表/乐观更新/撤销/新建编辑
        日历视图: 月历网格 + 今天·昨天·明天 + 日期标记/完成率
        清单视图: 场景清单/勾选进度条/模板生成/另存模板/归档
- 文档: docs/V0.2/需求文档.md 补充实现约定(附录B)与接口清单
2026-10-22 11:37:16 +08:00

1381 lines
53 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 `CheckListTemplate` 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 CheckListTemplate
*
*/
export type CheckListTemplateModel = runtime.Types.Result.DefaultSelection<Prisma.$CheckListTemplatePayload>
export type AggregateCheckListTemplate = {
_count: CheckListTemplateCountAggregateOutputType | null
_avg: CheckListTemplateAvgAggregateOutputType | null
_sum: CheckListTemplateSumAggregateOutputType | null
_min: CheckListTemplateMinAggregateOutputType | null
_max: CheckListTemplateMaxAggregateOutputType | null
}
export type CheckListTemplateAvgAggregateOutputType = {
id: number | null
userId: number | null
}
export type CheckListTemplateSumAggregateOutputType = {
id: number | null
userId: number | null
}
export type CheckListTemplateMinAggregateOutputType = {
id: number | null
userId: number | null
name: string | null
scene: string | null
builtin: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type CheckListTemplateMaxAggregateOutputType = {
id: number | null
userId: number | null
name: string | null
scene: string | null
builtin: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type CheckListTemplateCountAggregateOutputType = {
id: number
userId: number
name: number
scene: number
items: number
builtin: number
createdAt: number
updatedAt: number
_all: number
}
export type CheckListTemplateAvgAggregateInputType = {
id?: true
userId?: true
}
export type CheckListTemplateSumAggregateInputType = {
id?: true
userId?: true
}
export type CheckListTemplateMinAggregateInputType = {
id?: true
userId?: true
name?: true
scene?: true
builtin?: true
createdAt?: true
updatedAt?: true
}
export type CheckListTemplateMaxAggregateInputType = {
id?: true
userId?: true
name?: true
scene?: true
builtin?: true
createdAt?: true
updatedAt?: true
}
export type CheckListTemplateCountAggregateInputType = {
id?: true
userId?: true
name?: true
scene?: true
items?: true
builtin?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type CheckListTemplateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CheckListTemplate to aggregate.
*/
where?: Prisma.CheckListTemplateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CheckListTemplates to fetch.
*/
orderBy?: Prisma.CheckListTemplateOrderByWithRelationInput | Prisma.CheckListTemplateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.CheckListTemplateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CheckListTemplates 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` CheckListTemplates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned CheckListTemplates
**/
_count?: true | CheckListTemplateCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: CheckListTemplateAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: CheckListTemplateSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: CheckListTemplateMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: CheckListTemplateMaxAggregateInputType
}
export type GetCheckListTemplateAggregateType<T extends CheckListTemplateAggregateArgs> = {
[P in keyof T & keyof AggregateCheckListTemplate]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCheckListTemplate[P]>
: Prisma.GetScalarType<T[P], AggregateCheckListTemplate[P]>
}
export type CheckListTemplateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CheckListTemplateWhereInput
orderBy?: Prisma.CheckListTemplateOrderByWithAggregationInput | Prisma.CheckListTemplateOrderByWithAggregationInput[]
by: Prisma.CheckListTemplateScalarFieldEnum[] | Prisma.CheckListTemplateScalarFieldEnum
having?: Prisma.CheckListTemplateScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: CheckListTemplateCountAggregateInputType | true
_avg?: CheckListTemplateAvgAggregateInputType
_sum?: CheckListTemplateSumAggregateInputType
_min?: CheckListTemplateMinAggregateInputType
_max?: CheckListTemplateMaxAggregateInputType
}
export type CheckListTemplateGroupByOutputType = {
id: number
userId: number | null
name: string
scene: string
items: runtime.JsonValue
builtin: boolean
createdAt: Date
updatedAt: Date
_count: CheckListTemplateCountAggregateOutputType | null
_avg: CheckListTemplateAvgAggregateOutputType | null
_sum: CheckListTemplateSumAggregateOutputType | null
_min: CheckListTemplateMinAggregateOutputType | null
_max: CheckListTemplateMaxAggregateOutputType | null
}
export type GetCheckListTemplateGroupByPayload<T extends CheckListTemplateGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<CheckListTemplateGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof CheckListTemplateGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], CheckListTemplateGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], CheckListTemplateGroupByOutputType[P]>
}
>
>
export type CheckListTemplateWhereInput = {
AND?: Prisma.CheckListTemplateWhereInput | Prisma.CheckListTemplateWhereInput[]
OR?: Prisma.CheckListTemplateWhereInput[]
NOT?: Prisma.CheckListTemplateWhereInput | Prisma.CheckListTemplateWhereInput[]
id?: Prisma.IntFilter<"CheckListTemplate"> | number
userId?: Prisma.IntNullableFilter<"CheckListTemplate"> | number | null
name?: Prisma.StringFilter<"CheckListTemplate"> | string
scene?: Prisma.StringFilter<"CheckListTemplate"> | string
items?: Prisma.JsonFilter<"CheckListTemplate">
builtin?: Prisma.BoolFilter<"CheckListTemplate"> | boolean
createdAt?: Prisma.DateTimeFilter<"CheckListTemplate"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CheckListTemplate"> | Date | string
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}
export type CheckListTemplateOrderByWithRelationInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrderInput | Prisma.SortOrder
name?: Prisma.SortOrder
scene?: Prisma.SortOrder
items?: Prisma.SortOrder
builtin?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
user?: Prisma.UserOrderByWithRelationInput
_relevance?: Prisma.CheckListTemplateOrderByRelevanceInput
}
export type CheckListTemplateWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.CheckListTemplateWhereInput | Prisma.CheckListTemplateWhereInput[]
OR?: Prisma.CheckListTemplateWhereInput[]
NOT?: Prisma.CheckListTemplateWhereInput | Prisma.CheckListTemplateWhereInput[]
userId?: Prisma.IntNullableFilter<"CheckListTemplate"> | number | null
name?: Prisma.StringFilter<"CheckListTemplate"> | string
scene?: Prisma.StringFilter<"CheckListTemplate"> | string
items?: Prisma.JsonFilter<"CheckListTemplate">
builtin?: Prisma.BoolFilter<"CheckListTemplate"> | boolean
createdAt?: Prisma.DateTimeFilter<"CheckListTemplate"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CheckListTemplate"> | Date | string
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}, "id">
export type CheckListTemplateOrderByWithAggregationInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrderInput | Prisma.SortOrder
name?: Prisma.SortOrder
scene?: Prisma.SortOrder
items?: Prisma.SortOrder
builtin?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.CheckListTemplateCountOrderByAggregateInput
_avg?: Prisma.CheckListTemplateAvgOrderByAggregateInput
_max?: Prisma.CheckListTemplateMaxOrderByAggregateInput
_min?: Prisma.CheckListTemplateMinOrderByAggregateInput
_sum?: Prisma.CheckListTemplateSumOrderByAggregateInput
}
export type CheckListTemplateScalarWhereWithAggregatesInput = {
AND?: Prisma.CheckListTemplateScalarWhereWithAggregatesInput | Prisma.CheckListTemplateScalarWhereWithAggregatesInput[]
OR?: Prisma.CheckListTemplateScalarWhereWithAggregatesInput[]
NOT?: Prisma.CheckListTemplateScalarWhereWithAggregatesInput | Prisma.CheckListTemplateScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"CheckListTemplate"> | number
userId?: Prisma.IntNullableWithAggregatesFilter<"CheckListTemplate"> | number | null
name?: Prisma.StringWithAggregatesFilter<"CheckListTemplate"> | string
scene?: Prisma.StringWithAggregatesFilter<"CheckListTemplate"> | string
items?: Prisma.JsonWithAggregatesFilter<"CheckListTemplate">
builtin?: Prisma.BoolWithAggregatesFilter<"CheckListTemplate"> | boolean
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CheckListTemplate"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CheckListTemplate"> | Date | string
}
export type CheckListTemplateCreateInput = {
name: string
scene?: string
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: boolean
createdAt?: Date | string
updatedAt?: Date | string
user?: Prisma.UserCreateNestedOneWithoutTemplatesInput
}
export type CheckListTemplateUncheckedCreateInput = {
id?: number
userId?: number | null
name: string
scene?: string
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CheckListTemplateUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
scene?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneWithoutTemplatesNestedInput
}
export type CheckListTemplateUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
name?: Prisma.StringFieldUpdateOperationsInput | string
scene?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckListTemplateCreateManyInput = {
id?: number
userId?: number | null
name: string
scene?: string
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CheckListTemplateUpdateManyMutationInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
scene?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckListTemplateUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
name?: Prisma.StringFieldUpdateOperationsInput | string
scene?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckListTemplateListRelationFilter = {
every?: Prisma.CheckListTemplateWhereInput
some?: Prisma.CheckListTemplateWhereInput
none?: Prisma.CheckListTemplateWhereInput
}
export type CheckListTemplateOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type CheckListTemplateOrderByRelevanceInput = {
fields: Prisma.CheckListTemplateOrderByRelevanceFieldEnum | Prisma.CheckListTemplateOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type CheckListTemplateCountOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
name?: Prisma.SortOrder
scene?: Prisma.SortOrder
items?: Prisma.SortOrder
builtin?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CheckListTemplateAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
}
export type CheckListTemplateMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
name?: Prisma.SortOrder
scene?: Prisma.SortOrder
builtin?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CheckListTemplateMinOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
name?: Prisma.SortOrder
scene?: Prisma.SortOrder
builtin?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CheckListTemplateSumOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
}
export type CheckListTemplateCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.CheckListTemplateCreateWithoutUserInput, Prisma.CheckListTemplateUncheckedCreateWithoutUserInput> | Prisma.CheckListTemplateCreateWithoutUserInput[] | Prisma.CheckListTemplateUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.CheckListTemplateCreateOrConnectWithoutUserInput | Prisma.CheckListTemplateCreateOrConnectWithoutUserInput[]
createMany?: Prisma.CheckListTemplateCreateManyUserInputEnvelope
connect?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
}
export type CheckListTemplateUncheckedCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.CheckListTemplateCreateWithoutUserInput, Prisma.CheckListTemplateUncheckedCreateWithoutUserInput> | Prisma.CheckListTemplateCreateWithoutUserInput[] | Prisma.CheckListTemplateUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.CheckListTemplateCreateOrConnectWithoutUserInput | Prisma.CheckListTemplateCreateOrConnectWithoutUserInput[]
createMany?: Prisma.CheckListTemplateCreateManyUserInputEnvelope
connect?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
}
export type CheckListTemplateUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.CheckListTemplateCreateWithoutUserInput, Prisma.CheckListTemplateUncheckedCreateWithoutUserInput> | Prisma.CheckListTemplateCreateWithoutUserInput[] | Prisma.CheckListTemplateUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.CheckListTemplateCreateOrConnectWithoutUserInput | Prisma.CheckListTemplateCreateOrConnectWithoutUserInput[]
upsert?: Prisma.CheckListTemplateUpsertWithWhereUniqueWithoutUserInput | Prisma.CheckListTemplateUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.CheckListTemplateCreateManyUserInputEnvelope
set?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
disconnect?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
delete?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
connect?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
update?: Prisma.CheckListTemplateUpdateWithWhereUniqueWithoutUserInput | Prisma.CheckListTemplateUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.CheckListTemplateUpdateManyWithWhereWithoutUserInput | Prisma.CheckListTemplateUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.CheckListTemplateScalarWhereInput | Prisma.CheckListTemplateScalarWhereInput[]
}
export type CheckListTemplateUncheckedUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.CheckListTemplateCreateWithoutUserInput, Prisma.CheckListTemplateUncheckedCreateWithoutUserInput> | Prisma.CheckListTemplateCreateWithoutUserInput[] | Prisma.CheckListTemplateUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.CheckListTemplateCreateOrConnectWithoutUserInput | Prisma.CheckListTemplateCreateOrConnectWithoutUserInput[]
upsert?: Prisma.CheckListTemplateUpsertWithWhereUniqueWithoutUserInput | Prisma.CheckListTemplateUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.CheckListTemplateCreateManyUserInputEnvelope
set?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
disconnect?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
delete?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
connect?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[]
update?: Prisma.CheckListTemplateUpdateWithWhereUniqueWithoutUserInput | Prisma.CheckListTemplateUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.CheckListTemplateUpdateManyWithWhereWithoutUserInput | Prisma.CheckListTemplateUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.CheckListTemplateScalarWhereInput | Prisma.CheckListTemplateScalarWhereInput[]
}
export type CheckListTemplateCreateWithoutUserInput = {
name: string
scene?: string
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CheckListTemplateUncheckedCreateWithoutUserInput = {
id?: number
name: string
scene?: string
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CheckListTemplateCreateOrConnectWithoutUserInput = {
where: Prisma.CheckListTemplateWhereUniqueInput
create: Prisma.XOR<Prisma.CheckListTemplateCreateWithoutUserInput, Prisma.CheckListTemplateUncheckedCreateWithoutUserInput>
}
export type CheckListTemplateCreateManyUserInputEnvelope = {
data: Prisma.CheckListTemplateCreateManyUserInput | Prisma.CheckListTemplateCreateManyUserInput[]
skipDuplicates?: boolean
}
export type CheckListTemplateUpsertWithWhereUniqueWithoutUserInput = {
where: Prisma.CheckListTemplateWhereUniqueInput
update: Prisma.XOR<Prisma.CheckListTemplateUpdateWithoutUserInput, Prisma.CheckListTemplateUncheckedUpdateWithoutUserInput>
create: Prisma.XOR<Prisma.CheckListTemplateCreateWithoutUserInput, Prisma.CheckListTemplateUncheckedCreateWithoutUserInput>
}
export type CheckListTemplateUpdateWithWhereUniqueWithoutUserInput = {
where: Prisma.CheckListTemplateWhereUniqueInput
data: Prisma.XOR<Prisma.CheckListTemplateUpdateWithoutUserInput, Prisma.CheckListTemplateUncheckedUpdateWithoutUserInput>
}
export type CheckListTemplateUpdateManyWithWhereWithoutUserInput = {
where: Prisma.CheckListTemplateScalarWhereInput
data: Prisma.XOR<Prisma.CheckListTemplateUpdateManyMutationInput, Prisma.CheckListTemplateUncheckedUpdateManyWithoutUserInput>
}
export type CheckListTemplateScalarWhereInput = {
AND?: Prisma.CheckListTemplateScalarWhereInput | Prisma.CheckListTemplateScalarWhereInput[]
OR?: Prisma.CheckListTemplateScalarWhereInput[]
NOT?: Prisma.CheckListTemplateScalarWhereInput | Prisma.CheckListTemplateScalarWhereInput[]
id?: Prisma.IntFilter<"CheckListTemplate"> | number
userId?: Prisma.IntNullableFilter<"CheckListTemplate"> | number | null
name?: Prisma.StringFilter<"CheckListTemplate"> | string
scene?: Prisma.StringFilter<"CheckListTemplate"> | string
items?: Prisma.JsonFilter<"CheckListTemplate">
builtin?: Prisma.BoolFilter<"CheckListTemplate"> | boolean
createdAt?: Prisma.DateTimeFilter<"CheckListTemplate"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CheckListTemplate"> | Date | string
}
export type CheckListTemplateCreateManyUserInput = {
id?: number
name: string
scene?: string
items: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type CheckListTemplateUpdateWithoutUserInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
scene?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckListTemplateUncheckedUpdateWithoutUserInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
scene?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckListTemplateUncheckedUpdateManyWithoutUserInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
scene?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.JsonNullValueInput | runtime.InputJsonValue
builtin?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckListTemplateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
name?: boolean
scene?: boolean
items?: boolean
builtin?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
}, ExtArgs["result"]["checkListTemplate"]>
export type CheckListTemplateSelectScalar = {
id?: boolean
userId?: boolean
name?: boolean
scene?: boolean
items?: boolean
builtin?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type CheckListTemplateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "scene" | "items" | "builtin" | "createdAt" | "updatedAt", ExtArgs["result"]["checkListTemplate"]>
export type CheckListTemplateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
}
export type $CheckListTemplatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CheckListTemplate"
objects: {
user: Prisma.$UserPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
userId: number | null
name: string
scene: string
items: runtime.JsonValue
builtin: boolean
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["checkListTemplate"]>
composites: {}
}
export type CheckListTemplateGetPayload<S extends boolean | null | undefined | CheckListTemplateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload, S>
export type CheckListTemplateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<CheckListTemplateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: CheckListTemplateCountAggregateInputType | true
}
export interface CheckListTemplateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CheckListTemplate'], meta: { name: 'CheckListTemplate' } }
/**
* Find zero or one CheckListTemplate that matches the filter.
* @param {CheckListTemplateFindUniqueArgs} args - Arguments to find a CheckListTemplate
* @example
* // Get one CheckListTemplate
* const checkListTemplate = await prisma.checkListTemplate.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends CheckListTemplateFindUniqueArgs>(args: Prisma.SelectSubset<T, CheckListTemplateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CheckListTemplateClient<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one CheckListTemplate that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {CheckListTemplateFindUniqueOrThrowArgs} args - Arguments to find a CheckListTemplate
* @example
* // Get one CheckListTemplate
* const checkListTemplate = await prisma.checkListTemplate.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends CheckListTemplateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CheckListTemplateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CheckListTemplateClient<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first CheckListTemplate 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 {CheckListTemplateFindFirstArgs} args - Arguments to find a CheckListTemplate
* @example
* // Get one CheckListTemplate
* const checkListTemplate = await prisma.checkListTemplate.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends CheckListTemplateFindFirstArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateFindFirstArgs<ExtArgs>>): Prisma.Prisma__CheckListTemplateClient<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first CheckListTemplate 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 {CheckListTemplateFindFirstOrThrowArgs} args - Arguments to find a CheckListTemplate
* @example
* // Get one CheckListTemplate
* const checkListTemplate = await prisma.checkListTemplate.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends CheckListTemplateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CheckListTemplateClient<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more CheckListTemplates 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 {CheckListTemplateFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all CheckListTemplates
* const checkListTemplates = await prisma.checkListTemplate.findMany()
*
* // Get first 10 CheckListTemplates
* const checkListTemplates = await prisma.checkListTemplate.findMany({ take: 10 })
*
* // Only select the `id`
* const checkListTemplateWithIdOnly = await prisma.checkListTemplate.findMany({ select: { id: true } })
*
*/
findMany<T extends CheckListTemplateFindManyArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a CheckListTemplate.
* @param {CheckListTemplateCreateArgs} args - Arguments to create a CheckListTemplate.
* @example
* // Create one CheckListTemplate
* const CheckListTemplate = await prisma.checkListTemplate.create({
* data: {
* // ... data to create a CheckListTemplate
* }
* })
*
*/
create<T extends CheckListTemplateCreateArgs>(args: Prisma.SelectSubset<T, CheckListTemplateCreateArgs<ExtArgs>>): Prisma.Prisma__CheckListTemplateClient<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many CheckListTemplates.
* @param {CheckListTemplateCreateManyArgs} args - Arguments to create many CheckListTemplates.
* @example
* // Create many CheckListTemplates
* const checkListTemplate = await prisma.checkListTemplate.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends CheckListTemplateCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a CheckListTemplate.
* @param {CheckListTemplateDeleteArgs} args - Arguments to delete one CheckListTemplate.
* @example
* // Delete one CheckListTemplate
* const CheckListTemplate = await prisma.checkListTemplate.delete({
* where: {
* // ... filter to delete one CheckListTemplate
* }
* })
*
*/
delete<T extends CheckListTemplateDeleteArgs>(args: Prisma.SelectSubset<T, CheckListTemplateDeleteArgs<ExtArgs>>): Prisma.Prisma__CheckListTemplateClient<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one CheckListTemplate.
* @param {CheckListTemplateUpdateArgs} args - Arguments to update one CheckListTemplate.
* @example
* // Update one CheckListTemplate
* const checkListTemplate = await prisma.checkListTemplate.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends CheckListTemplateUpdateArgs>(args: Prisma.SelectSubset<T, CheckListTemplateUpdateArgs<ExtArgs>>): Prisma.Prisma__CheckListTemplateClient<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more CheckListTemplates.
* @param {CheckListTemplateDeleteManyArgs} args - Arguments to filter CheckListTemplates to delete.
* @example
* // Delete a few CheckListTemplates
* const { count } = await prisma.checkListTemplate.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends CheckListTemplateDeleteManyArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CheckListTemplates.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckListTemplateUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many CheckListTemplates
* const checkListTemplate = await prisma.checkListTemplate.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends CheckListTemplateUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one CheckListTemplate.
* @param {CheckListTemplateUpsertArgs} args - Arguments to update or create a CheckListTemplate.
* @example
* // Update or create a CheckListTemplate
* const checkListTemplate = await prisma.checkListTemplate.upsert({
* create: {
* // ... data to create a CheckListTemplate
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the CheckListTemplate we want to update
* }
* })
*/
upsert<T extends CheckListTemplateUpsertArgs>(args: Prisma.SelectSubset<T, CheckListTemplateUpsertArgs<ExtArgs>>): Prisma.Prisma__CheckListTemplateClient<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of CheckListTemplates.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckListTemplateCountArgs} args - Arguments to filter CheckListTemplates to count.
* @example
* // Count the number of CheckListTemplates
* const count = await prisma.checkListTemplate.count({
* where: {
* // ... the filter for the CheckListTemplates we want to count
* }
* })
**/
count<T extends CheckListTemplateCountArgs>(
args?: Prisma.Subset<T, CheckListTemplateCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], CheckListTemplateCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a CheckListTemplate.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckListTemplateAggregateArgs} 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 CheckListTemplateAggregateArgs>(args: Prisma.Subset<T, CheckListTemplateAggregateArgs>): Prisma.PrismaPromise<GetCheckListTemplateAggregateType<T>>
/**
* Group by CheckListTemplate.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckListTemplateGroupByArgs} 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 CheckListTemplateGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: CheckListTemplateGroupByArgs['orderBy'] }
: { orderBy?: CheckListTemplateGroupByArgs['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, CheckListTemplateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCheckListTemplateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the CheckListTemplate model
*/
readonly fields: CheckListTemplateFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for CheckListTemplate.
* 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__CheckListTemplateClient<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.CheckListTemplate$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CheckListTemplate$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, 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<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 CheckListTemplate model
*/
export interface CheckListTemplateFieldRefs {
readonly id: Prisma.FieldRef<"CheckListTemplate", 'Int'>
readonly userId: Prisma.FieldRef<"CheckListTemplate", 'Int'>
readonly name: Prisma.FieldRef<"CheckListTemplate", 'String'>
readonly scene: Prisma.FieldRef<"CheckListTemplate", 'String'>
readonly items: Prisma.FieldRef<"CheckListTemplate", 'Json'>
readonly builtin: Prisma.FieldRef<"CheckListTemplate", 'Boolean'>
readonly createdAt: Prisma.FieldRef<"CheckListTemplate", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"CheckListTemplate", 'DateTime'>
}
// Custom InputTypes
/**
* CheckListTemplate findUnique
*/
export type CheckListTemplateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* Filter, which CheckListTemplate to fetch.
*/
where: Prisma.CheckListTemplateWhereUniqueInput
}
/**
* CheckListTemplate findUniqueOrThrow
*/
export type CheckListTemplateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* Filter, which CheckListTemplate to fetch.
*/
where: Prisma.CheckListTemplateWhereUniqueInput
}
/**
* CheckListTemplate findFirst
*/
export type CheckListTemplateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* Filter, which CheckListTemplate to fetch.
*/
where?: Prisma.CheckListTemplateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CheckListTemplates to fetch.
*/
orderBy?: Prisma.CheckListTemplateOrderByWithRelationInput | Prisma.CheckListTemplateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CheckListTemplates.
*/
cursor?: Prisma.CheckListTemplateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CheckListTemplates 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` CheckListTemplates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CheckListTemplates.
*/
distinct?: Prisma.CheckListTemplateScalarFieldEnum | Prisma.CheckListTemplateScalarFieldEnum[]
}
/**
* CheckListTemplate findFirstOrThrow
*/
export type CheckListTemplateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* Filter, which CheckListTemplate to fetch.
*/
where?: Prisma.CheckListTemplateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CheckListTemplates to fetch.
*/
orderBy?: Prisma.CheckListTemplateOrderByWithRelationInput | Prisma.CheckListTemplateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CheckListTemplates.
*/
cursor?: Prisma.CheckListTemplateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CheckListTemplates 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` CheckListTemplates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CheckListTemplates.
*/
distinct?: Prisma.CheckListTemplateScalarFieldEnum | Prisma.CheckListTemplateScalarFieldEnum[]
}
/**
* CheckListTemplate findMany
*/
export type CheckListTemplateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* Filter, which CheckListTemplates to fetch.
*/
where?: Prisma.CheckListTemplateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CheckListTemplates to fetch.
*/
orderBy?: Prisma.CheckListTemplateOrderByWithRelationInput | Prisma.CheckListTemplateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing CheckListTemplates.
*/
cursor?: Prisma.CheckListTemplateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CheckListTemplates 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` CheckListTemplates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CheckListTemplates.
*/
distinct?: Prisma.CheckListTemplateScalarFieldEnum | Prisma.CheckListTemplateScalarFieldEnum[]
}
/**
* CheckListTemplate create
*/
export type CheckListTemplateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* The data needed to create a CheckListTemplate.
*/
data: Prisma.XOR<Prisma.CheckListTemplateCreateInput, Prisma.CheckListTemplateUncheckedCreateInput>
}
/**
* CheckListTemplate createMany
*/
export type CheckListTemplateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many CheckListTemplates.
*/
data: Prisma.CheckListTemplateCreateManyInput | Prisma.CheckListTemplateCreateManyInput[]
skipDuplicates?: boolean
}
/**
* CheckListTemplate update
*/
export type CheckListTemplateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* The data needed to update a CheckListTemplate.
*/
data: Prisma.XOR<Prisma.CheckListTemplateUpdateInput, Prisma.CheckListTemplateUncheckedUpdateInput>
/**
* Choose, which CheckListTemplate to update.
*/
where: Prisma.CheckListTemplateWhereUniqueInput
}
/**
* CheckListTemplate updateMany
*/
export type CheckListTemplateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update CheckListTemplates.
*/
data: Prisma.XOR<Prisma.CheckListTemplateUpdateManyMutationInput, Prisma.CheckListTemplateUncheckedUpdateManyInput>
/**
* Filter which CheckListTemplates to update
*/
where?: Prisma.CheckListTemplateWhereInput
/**
* Limit how many CheckListTemplates to update.
*/
limit?: number
}
/**
* CheckListTemplate upsert
*/
export type CheckListTemplateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* The filter to search for the CheckListTemplate to update in case it exists.
*/
where: Prisma.CheckListTemplateWhereUniqueInput
/**
* In case the CheckListTemplate found by the `where` argument doesn't exist, create a new CheckListTemplate with this data.
*/
create: Prisma.XOR<Prisma.CheckListTemplateCreateInput, Prisma.CheckListTemplateUncheckedCreateInput>
/**
* In case the CheckListTemplate was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.CheckListTemplateUpdateInput, Prisma.CheckListTemplateUncheckedUpdateInput>
}
/**
* CheckListTemplate delete
*/
export type CheckListTemplateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
/**
* Filter which CheckListTemplate to delete.
*/
where: Prisma.CheckListTemplateWhereUniqueInput
}
/**
* CheckListTemplate deleteMany
*/
export type CheckListTemplateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CheckListTemplates to delete
*/
where?: Prisma.CheckListTemplateWhereInput
/**
* Limit how many CheckListTemplates to delete.
*/
limit?: number
}
/**
* CheckListTemplate.user
*/
export type CheckListTemplate$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* CheckListTemplate without action
*/
export type CheckListTemplateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckListTemplate
*/
select?: Prisma.CheckListTemplateSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckListTemplate
*/
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckListTemplateInclude<ExtArgs> | null
}