/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateCheckListTemplate]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CheckListTemplateGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CheckListTemplateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 | 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 | 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[] connectOrCreate?: Prisma.CheckListTemplateCreateOrConnectWithoutUserInput | Prisma.CheckListTemplateCreateOrConnectWithoutUserInput[] createMany?: Prisma.CheckListTemplateCreateManyUserInputEnvelope connect?: Prisma.CheckListTemplateWhereUniqueInput | Prisma.CheckListTemplateWhereUniqueInput[] } export type CheckListTemplateUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type CheckListTemplateCreateManyUserInputEnvelope = { data: Prisma.CheckListTemplateCreateManyUserInput | Prisma.CheckListTemplateCreateManyUserInput[] skipDuplicates?: boolean } export type CheckListTemplateUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.CheckListTemplateWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type CheckListTemplateUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.CheckListTemplateWhereUniqueInput data: Prisma.XOR } export type CheckListTemplateUpdateManyWithWhereWithoutUserInput = { where: Prisma.CheckListTemplateScalarWhereInput data: Prisma.XOR } 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 = 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["result"]["checkListTemplate"]> export type CheckListTemplateSelectScalar = { id?: boolean userId?: boolean name?: boolean scene?: boolean items?: boolean builtin?: boolean createdAt?: boolean updatedAt?: boolean } export type CheckListTemplateOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "scene" | "items" | "builtin" | "createdAt" | "updatedAt", ExtArgs["result"]["checkListTemplate"]> export type CheckListTemplateInclude = { user?: boolean | Prisma.CheckListTemplate$userArgs } export type $CheckListTemplatePayload = { name: "CheckListTemplate" objects: { user: Prisma.$UserPayload | 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 = runtime.Types.Result.GetResult export type CheckListTemplateCountArgs = Omit & { select?: CheckListTemplateCountAggregateInputType | true } export interface CheckListTemplateDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListTemplateClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListTemplateClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__CheckListTemplateClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__CheckListTemplateClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListTemplateClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListTemplateClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListTemplateClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListTemplateClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CheckListTemplateGroupByArgs['orderBy'] } : { orderBy?: CheckListTemplateGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetCheckListTemplateGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | null /** * Filter, which CheckListTemplate to fetch. */ where: Prisma.CheckListTemplateWhereUniqueInput } /** * CheckListTemplate findUniqueOrThrow */ export type CheckListTemplateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | null /** * Filter, which CheckListTemplate to fetch. */ where: Prisma.CheckListTemplateWhereUniqueInput } /** * CheckListTemplate findFirst */ export type CheckListTemplateFindFirstArgs = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | 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 = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | 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 = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | 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 = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | null /** * The data needed to create a CheckListTemplate. */ data: Prisma.XOR } /** * CheckListTemplate createMany */ export type CheckListTemplateCreateManyArgs = { /** * The data used to create many CheckListTemplates. */ data: Prisma.CheckListTemplateCreateManyInput | Prisma.CheckListTemplateCreateManyInput[] skipDuplicates?: boolean } /** * CheckListTemplate update */ export type CheckListTemplateUpdateArgs = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | null /** * The data needed to update a CheckListTemplate. */ data: Prisma.XOR /** * Choose, which CheckListTemplate to update. */ where: Prisma.CheckListTemplateWhereUniqueInput } /** * CheckListTemplate updateMany */ export type CheckListTemplateUpdateManyArgs = { /** * The data used to update CheckListTemplates. */ data: Prisma.XOR /** * Filter which CheckListTemplates to update */ where?: Prisma.CheckListTemplateWhereInput /** * Limit how many CheckListTemplates to update. */ limit?: number } /** * CheckListTemplate upsert */ export type CheckListTemplateUpsertArgs = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | 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 /** * In case the CheckListTemplate was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * CheckListTemplate delete */ export type CheckListTemplateDeleteArgs = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | null /** * Filter which CheckListTemplate to delete. */ where: Prisma.CheckListTemplateWhereUniqueInput } /** * CheckListTemplate deleteMany */ export type CheckListTemplateDeleteManyArgs = { /** * Filter which CheckListTemplates to delete */ where?: Prisma.CheckListTemplateWhereInput /** * Limit how many CheckListTemplates to delete. */ limit?: number } /** * CheckListTemplate.user */ export type CheckListTemplate$userArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * CheckListTemplate without action */ export type CheckListTemplateDefaultArgs = { /** * Select specific fields to fetch from the CheckListTemplate */ select?: Prisma.CheckListTemplateSelect | null /** * Omit specific fields from the CheckListTemplate */ omit?: Prisma.CheckListTemplateOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListTemplateInclude | null }