/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `CheckList` 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 CheckList * */ export type CheckListModel = runtime.Types.Result.DefaultSelection export type AggregateCheckList = { _count: CheckListCountAggregateOutputType | null _avg: CheckListAvgAggregateOutputType | null _sum: CheckListSumAggregateOutputType | null _min: CheckListMinAggregateOutputType | null _max: CheckListMaxAggregateOutputType | null } export type CheckListAvgAggregateOutputType = { id: number | null userId: number | null } export type CheckListSumAggregateOutputType = { id: number | null userId: number | null } export type CheckListMinAggregateOutputType = { id: number | null userId: number | null title: string | null scene: string | null note: string | null archived: boolean | null createdAt: Date | null updatedAt: Date | null } export type CheckListMaxAggregateOutputType = { id: number | null userId: number | null title: string | null scene: string | null note: string | null archived: boolean | null createdAt: Date | null updatedAt: Date | null } export type CheckListCountAggregateOutputType = { id: number userId: number title: number scene: number note: number archived: number createdAt: number updatedAt: number _all: number } export type CheckListAvgAggregateInputType = { id?: true userId?: true } export type CheckListSumAggregateInputType = { id?: true userId?: true } export type CheckListMinAggregateInputType = { id?: true userId?: true title?: true scene?: true note?: true archived?: true createdAt?: true updatedAt?: true } export type CheckListMaxAggregateInputType = { id?: true userId?: true title?: true scene?: true note?: true archived?: true createdAt?: true updatedAt?: true } export type CheckListCountAggregateInputType = { id?: true userId?: true title?: true scene?: true note?: true archived?: true createdAt?: true updatedAt?: true _all?: true } export type CheckListAggregateArgs = { /** * Filter which CheckList to aggregate. */ where?: Prisma.CheckListWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CheckLists to fetch. */ orderBy?: Prisma.CheckListOrderByWithRelationInput | Prisma.CheckListOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.CheckListWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CheckLists 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` CheckLists. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CheckLists **/ _count?: true | CheckListCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CheckListAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CheckListSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CheckListMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CheckListMaxAggregateInputType } export type GetCheckListAggregateType = { [P in keyof T & keyof AggregateCheckList]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CheckListGroupByArgs = { where?: Prisma.CheckListWhereInput orderBy?: Prisma.CheckListOrderByWithAggregationInput | Prisma.CheckListOrderByWithAggregationInput[] by: Prisma.CheckListScalarFieldEnum[] | Prisma.CheckListScalarFieldEnum having?: Prisma.CheckListScalarWhereWithAggregatesInput take?: number skip?: number _count?: CheckListCountAggregateInputType | true _avg?: CheckListAvgAggregateInputType _sum?: CheckListSumAggregateInputType _min?: CheckListMinAggregateInputType _max?: CheckListMaxAggregateInputType } export type CheckListGroupByOutputType = { id: number userId: number title: string scene: string note: string archived: boolean createdAt: Date updatedAt: Date _count: CheckListCountAggregateOutputType | null _avg: CheckListAvgAggregateOutputType | null _sum: CheckListSumAggregateOutputType | null _min: CheckListMinAggregateOutputType | null _max: CheckListMaxAggregateOutputType | null } export type GetCheckListGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CheckListGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type CheckListWhereInput = { AND?: Prisma.CheckListWhereInput | Prisma.CheckListWhereInput[] OR?: Prisma.CheckListWhereInput[] NOT?: Prisma.CheckListWhereInput | Prisma.CheckListWhereInput[] id?: Prisma.IntFilter<"CheckList"> | number userId?: Prisma.IntFilter<"CheckList"> | number title?: Prisma.StringFilter<"CheckList"> | string scene?: Prisma.StringFilter<"CheckList"> | string note?: Prisma.StringFilter<"CheckList"> | string archived?: Prisma.BoolFilter<"CheckList"> | boolean createdAt?: Prisma.DateTimeFilter<"CheckList"> | Date | string updatedAt?: Prisma.DateTimeFilter<"CheckList"> | Date | string user?: Prisma.XOR items?: Prisma.CheckListItemListRelationFilter } export type CheckListOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder scene?: Prisma.SortOrder note?: Prisma.SortOrder archived?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput items?: Prisma.CheckListItemOrderByRelationAggregateInput _relevance?: Prisma.CheckListOrderByRelevanceInput } export type CheckListWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.CheckListWhereInput | Prisma.CheckListWhereInput[] OR?: Prisma.CheckListWhereInput[] NOT?: Prisma.CheckListWhereInput | Prisma.CheckListWhereInput[] userId?: Prisma.IntFilter<"CheckList"> | number title?: Prisma.StringFilter<"CheckList"> | string scene?: Prisma.StringFilter<"CheckList"> | string note?: Prisma.StringFilter<"CheckList"> | string archived?: Prisma.BoolFilter<"CheckList"> | boolean createdAt?: Prisma.DateTimeFilter<"CheckList"> | Date | string updatedAt?: Prisma.DateTimeFilter<"CheckList"> | Date | string user?: Prisma.XOR items?: Prisma.CheckListItemListRelationFilter }, "id"> export type CheckListOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder scene?: Prisma.SortOrder note?: Prisma.SortOrder archived?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.CheckListCountOrderByAggregateInput _avg?: Prisma.CheckListAvgOrderByAggregateInput _max?: Prisma.CheckListMaxOrderByAggregateInput _min?: Prisma.CheckListMinOrderByAggregateInput _sum?: Prisma.CheckListSumOrderByAggregateInput } export type CheckListScalarWhereWithAggregatesInput = { AND?: Prisma.CheckListScalarWhereWithAggregatesInput | Prisma.CheckListScalarWhereWithAggregatesInput[] OR?: Prisma.CheckListScalarWhereWithAggregatesInput[] NOT?: Prisma.CheckListScalarWhereWithAggregatesInput | Prisma.CheckListScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"CheckList"> | number userId?: Prisma.IntWithAggregatesFilter<"CheckList"> | number title?: Prisma.StringWithAggregatesFilter<"CheckList"> | string scene?: Prisma.StringWithAggregatesFilter<"CheckList"> | string note?: Prisma.StringWithAggregatesFilter<"CheckList"> | string archived?: Prisma.BoolWithAggregatesFilter<"CheckList"> | boolean createdAt?: Prisma.DateTimeWithAggregatesFilter<"CheckList"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CheckList"> | Date | string } export type CheckListCreateInput = { title: string scene?: string note?: string archived?: boolean createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutCheckListsInput items?: Prisma.CheckListItemCreateNestedManyWithoutListInput } export type CheckListUncheckedCreateInput = { id?: number userId: number title: string scene?: string note?: string archived?: boolean createdAt?: Date | string updatedAt?: Date | string items?: Prisma.CheckListItemUncheckedCreateNestedManyWithoutListInput } export type CheckListUpdateInput = { title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutCheckListsNestedInput items?: Prisma.CheckListItemUpdateManyWithoutListNestedInput } export type CheckListUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string items?: Prisma.CheckListItemUncheckedUpdateManyWithoutListNestedInput } export type CheckListCreateManyInput = { id?: number userId: number title: string scene?: string note?: string archived?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CheckListUpdateManyMutationInput = { title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckListUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckListListRelationFilter = { every?: Prisma.CheckListWhereInput some?: Prisma.CheckListWhereInput none?: Prisma.CheckListWhereInput } export type CheckListOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type CheckListOrderByRelevanceInput = { fields: Prisma.CheckListOrderByRelevanceFieldEnum | Prisma.CheckListOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type CheckListCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder scene?: Prisma.SortOrder note?: Prisma.SortOrder archived?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CheckListAvgOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder } export type CheckListMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder scene?: Prisma.SortOrder note?: Prisma.SortOrder archived?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CheckListMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder scene?: Prisma.SortOrder note?: Prisma.SortOrder archived?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CheckListSumOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder } export type CheckListScalarRelationFilter = { is?: Prisma.CheckListWhereInput isNot?: Prisma.CheckListWhereInput } export type CheckListCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.CheckListCreateWithoutUserInput[] | Prisma.CheckListUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.CheckListCreateOrConnectWithoutUserInput | Prisma.CheckListCreateOrConnectWithoutUserInput[] createMany?: Prisma.CheckListCreateManyUserInputEnvelope connect?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] } export type CheckListUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.CheckListCreateWithoutUserInput[] | Prisma.CheckListUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.CheckListCreateOrConnectWithoutUserInput | Prisma.CheckListCreateOrConnectWithoutUserInput[] createMany?: Prisma.CheckListCreateManyUserInputEnvelope connect?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] } export type CheckListUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.CheckListCreateWithoutUserInput[] | Prisma.CheckListUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.CheckListCreateOrConnectWithoutUserInput | Prisma.CheckListCreateOrConnectWithoutUserInput[] upsert?: Prisma.CheckListUpsertWithWhereUniqueWithoutUserInput | Prisma.CheckListUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.CheckListCreateManyUserInputEnvelope set?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] disconnect?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] delete?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] connect?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] update?: Prisma.CheckListUpdateWithWhereUniqueWithoutUserInput | Prisma.CheckListUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.CheckListUpdateManyWithWhereWithoutUserInput | Prisma.CheckListUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.CheckListScalarWhereInput | Prisma.CheckListScalarWhereInput[] } export type CheckListUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.CheckListCreateWithoutUserInput[] | Prisma.CheckListUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.CheckListCreateOrConnectWithoutUserInput | Prisma.CheckListCreateOrConnectWithoutUserInput[] upsert?: Prisma.CheckListUpsertWithWhereUniqueWithoutUserInput | Prisma.CheckListUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.CheckListCreateManyUserInputEnvelope set?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] disconnect?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] delete?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] connect?: Prisma.CheckListWhereUniqueInput | Prisma.CheckListWhereUniqueInput[] update?: Prisma.CheckListUpdateWithWhereUniqueWithoutUserInput | Prisma.CheckListUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.CheckListUpdateManyWithWhereWithoutUserInput | Prisma.CheckListUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.CheckListScalarWhereInput | Prisma.CheckListScalarWhereInput[] } export type CheckListCreateNestedOneWithoutItemsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CheckListCreateOrConnectWithoutItemsInput connect?: Prisma.CheckListWhereUniqueInput } export type CheckListUpdateOneRequiredWithoutItemsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CheckListCreateOrConnectWithoutItemsInput upsert?: Prisma.CheckListUpsertWithoutItemsInput connect?: Prisma.CheckListWhereUniqueInput update?: Prisma.XOR, Prisma.CheckListUncheckedUpdateWithoutItemsInput> } export type CheckListCreateWithoutUserInput = { title: string scene?: string note?: string archived?: boolean createdAt?: Date | string updatedAt?: Date | string items?: Prisma.CheckListItemCreateNestedManyWithoutListInput } export type CheckListUncheckedCreateWithoutUserInput = { id?: number title: string scene?: string note?: string archived?: boolean createdAt?: Date | string updatedAt?: Date | string items?: Prisma.CheckListItemUncheckedCreateNestedManyWithoutListInput } export type CheckListCreateOrConnectWithoutUserInput = { where: Prisma.CheckListWhereUniqueInput create: Prisma.XOR } export type CheckListCreateManyUserInputEnvelope = { data: Prisma.CheckListCreateManyUserInput | Prisma.CheckListCreateManyUserInput[] skipDuplicates?: boolean } export type CheckListUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.CheckListWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type CheckListUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.CheckListWhereUniqueInput data: Prisma.XOR } export type CheckListUpdateManyWithWhereWithoutUserInput = { where: Prisma.CheckListScalarWhereInput data: Prisma.XOR } export type CheckListScalarWhereInput = { AND?: Prisma.CheckListScalarWhereInput | Prisma.CheckListScalarWhereInput[] OR?: Prisma.CheckListScalarWhereInput[] NOT?: Prisma.CheckListScalarWhereInput | Prisma.CheckListScalarWhereInput[] id?: Prisma.IntFilter<"CheckList"> | number userId?: Prisma.IntFilter<"CheckList"> | number title?: Prisma.StringFilter<"CheckList"> | string scene?: Prisma.StringFilter<"CheckList"> | string note?: Prisma.StringFilter<"CheckList"> | string archived?: Prisma.BoolFilter<"CheckList"> | boolean createdAt?: Prisma.DateTimeFilter<"CheckList"> | Date | string updatedAt?: Prisma.DateTimeFilter<"CheckList"> | Date | string } export type CheckListCreateWithoutItemsInput = { title: string scene?: string note?: string archived?: boolean createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutCheckListsInput } export type CheckListUncheckedCreateWithoutItemsInput = { id?: number userId: number title: string scene?: string note?: string archived?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CheckListCreateOrConnectWithoutItemsInput = { where: Prisma.CheckListWhereUniqueInput create: Prisma.XOR } export type CheckListUpsertWithoutItemsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CheckListWhereInput } export type CheckListUpdateToOneWithWhereWithoutItemsInput = { where?: Prisma.CheckListWhereInput data: Prisma.XOR } export type CheckListUpdateWithoutItemsInput = { title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutCheckListsNestedInput } export type CheckListUncheckedUpdateWithoutItemsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CheckListCreateManyUserInput = { id?: number title: string scene?: string note?: string archived?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CheckListUpdateWithoutUserInput = { title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string items?: Prisma.CheckListItemUpdateManyWithoutListNestedInput } export type CheckListUncheckedUpdateWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string items?: Prisma.CheckListItemUncheckedUpdateManyWithoutListNestedInput } export type CheckListUncheckedUpdateManyWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number title?: Prisma.StringFieldUpdateOperationsInput | string scene?: Prisma.StringFieldUpdateOperationsInput | string note?: Prisma.StringFieldUpdateOperationsInput | string archived?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type CheckListCountOutputType */ export type CheckListCountOutputType = { items: number } export type CheckListCountOutputTypeSelect = { items?: boolean | CheckListCountOutputTypeCountItemsArgs } /** * CheckListCountOutputType without action */ export type CheckListCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CheckListCountOutputType */ select?: Prisma.CheckListCountOutputTypeSelect | null } /** * CheckListCountOutputType without action */ export type CheckListCountOutputTypeCountItemsArgs = { where?: Prisma.CheckListItemWhereInput } export type CheckListSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean title?: boolean scene?: boolean note?: boolean archived?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs items?: boolean | Prisma.CheckList$itemsArgs _count?: boolean | Prisma.CheckListCountOutputTypeDefaultArgs }, ExtArgs["result"]["checkList"]> export type CheckListSelectScalar = { id?: boolean userId?: boolean title?: boolean scene?: boolean note?: boolean archived?: boolean createdAt?: boolean updatedAt?: boolean } export type CheckListOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "title" | "scene" | "note" | "archived" | "createdAt" | "updatedAt", ExtArgs["result"]["checkList"]> export type CheckListInclude = { user?: boolean | Prisma.UserDefaultArgs items?: boolean | Prisma.CheckList$itemsArgs _count?: boolean | Prisma.CheckListCountOutputTypeDefaultArgs } export type $CheckListPayload = { name: "CheckList" objects: { user: Prisma.$UserPayload items: Prisma.$CheckListItemPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number userId: number title: string scene: string note: string archived: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["checkList"]> composites: {} } export type CheckListGetPayload = runtime.Types.Result.GetResult export type CheckListCountArgs = Omit & { select?: CheckListCountAggregateInputType | true } export interface CheckListDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CheckList'], meta: { name: 'CheckList' } } /** * Find zero or one CheckList that matches the filter. * @param {CheckListFindUniqueArgs} args - Arguments to find a CheckList * @example * // Get one CheckList * const checkList = await prisma.checkList.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CheckList that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CheckListFindUniqueOrThrowArgs} args - Arguments to find a CheckList * @example * // Get one CheckList * const checkList = await prisma.checkList.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CheckList 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 {CheckListFindFirstArgs} args - Arguments to find a CheckList * @example * // Get one CheckList * const checkList = await prisma.checkList.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CheckListClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CheckList 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 {CheckListFindFirstOrThrowArgs} args - Arguments to find a CheckList * @example * // Get one CheckList * const checkList = await prisma.checkList.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CheckListClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CheckLists 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 {CheckListFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CheckLists * const checkLists = await prisma.checkList.findMany() * * // Get first 10 CheckLists * const checkLists = await prisma.checkList.findMany({ take: 10 }) * * // Only select the `id` * const checkListWithIdOnly = await prisma.checkList.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a CheckList. * @param {CheckListCreateArgs} args - Arguments to create a CheckList. * @example * // Create one CheckList * const CheckList = await prisma.checkList.create({ * data: { * // ... data to create a CheckList * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CheckLists. * @param {CheckListCreateManyArgs} args - Arguments to create many CheckLists. * @example * // Create many CheckLists * const checkList = await prisma.checkList.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a CheckList. * @param {CheckListDeleteArgs} args - Arguments to delete one CheckList. * @example * // Delete one CheckList * const CheckList = await prisma.checkList.delete({ * where: { * // ... filter to delete one CheckList * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CheckList. * @param {CheckListUpdateArgs} args - Arguments to update one CheckList. * @example * // Update one CheckList * const checkList = await prisma.checkList.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CheckLists. * @param {CheckListDeleteManyArgs} args - Arguments to filter CheckLists to delete. * @example * // Delete a few CheckLists * const { count } = await prisma.checkList.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CheckLists. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CheckListUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CheckLists * const checkList = await prisma.checkList.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one CheckList. * @param {CheckListUpsertArgs} args - Arguments to update or create a CheckList. * @example * // Update or create a CheckList * const checkList = await prisma.checkList.upsert({ * create: { * // ... data to create a CheckList * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CheckList we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CheckListClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CheckLists. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CheckListCountArgs} args - Arguments to filter CheckLists to count. * @example * // Count the number of CheckLists * const count = await prisma.checkList.count({ * where: { * // ... the filter for the CheckLists 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 CheckList. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CheckListAggregateArgs} 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 CheckList. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CheckListGroupByArgs} 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 CheckListGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CheckListGroupByArgs['orderBy'] } : { orderBy?: CheckListGroupByArgs['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 ? GetCheckListGroupByPayload : Prisma.PrismaPromise /** * Fields of the CheckList model */ readonly fields: CheckListFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CheckList. * 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__CheckListClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> items = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the CheckList model */ export interface CheckListFieldRefs { readonly id: Prisma.FieldRef<"CheckList", 'Int'> readonly userId: Prisma.FieldRef<"CheckList", 'Int'> readonly title: Prisma.FieldRef<"CheckList", 'String'> readonly scene: Prisma.FieldRef<"CheckList", 'String'> readonly note: Prisma.FieldRef<"CheckList", 'String'> readonly archived: Prisma.FieldRef<"CheckList", 'Boolean'> readonly createdAt: Prisma.FieldRef<"CheckList", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"CheckList", 'DateTime'> } // Custom InputTypes /** * CheckList findUnique */ export type CheckListFindUniqueArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * Filter, which CheckList to fetch. */ where: Prisma.CheckListWhereUniqueInput } /** * CheckList findUniqueOrThrow */ export type CheckListFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * Filter, which CheckList to fetch. */ where: Prisma.CheckListWhereUniqueInput } /** * CheckList findFirst */ export type CheckListFindFirstArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * Filter, which CheckList to fetch. */ where?: Prisma.CheckListWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CheckLists to fetch. */ orderBy?: Prisma.CheckListOrderByWithRelationInput | Prisma.CheckListOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CheckLists. */ cursor?: Prisma.CheckListWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CheckLists 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` CheckLists. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CheckLists. */ distinct?: Prisma.CheckListScalarFieldEnum | Prisma.CheckListScalarFieldEnum[] } /** * CheckList findFirstOrThrow */ export type CheckListFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * Filter, which CheckList to fetch. */ where?: Prisma.CheckListWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CheckLists to fetch. */ orderBy?: Prisma.CheckListOrderByWithRelationInput | Prisma.CheckListOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CheckLists. */ cursor?: Prisma.CheckListWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CheckLists 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` CheckLists. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CheckLists. */ distinct?: Prisma.CheckListScalarFieldEnum | Prisma.CheckListScalarFieldEnum[] } /** * CheckList findMany */ export type CheckListFindManyArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * Filter, which CheckLists to fetch. */ where?: Prisma.CheckListWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CheckLists to fetch. */ orderBy?: Prisma.CheckListOrderByWithRelationInput | Prisma.CheckListOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CheckLists. */ cursor?: Prisma.CheckListWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CheckLists 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` CheckLists. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CheckLists. */ distinct?: Prisma.CheckListScalarFieldEnum | Prisma.CheckListScalarFieldEnum[] } /** * CheckList create */ export type CheckListCreateArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * The data needed to create a CheckList. */ data: Prisma.XOR } /** * CheckList createMany */ export type CheckListCreateManyArgs = { /** * The data used to create many CheckLists. */ data: Prisma.CheckListCreateManyInput | Prisma.CheckListCreateManyInput[] skipDuplicates?: boolean } /** * CheckList update */ export type CheckListUpdateArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * The data needed to update a CheckList. */ data: Prisma.XOR /** * Choose, which CheckList to update. */ where: Prisma.CheckListWhereUniqueInput } /** * CheckList updateMany */ export type CheckListUpdateManyArgs = { /** * The data used to update CheckLists. */ data: Prisma.XOR /** * Filter which CheckLists to update */ where?: Prisma.CheckListWhereInput /** * Limit how many CheckLists to update. */ limit?: number } /** * CheckList upsert */ export type CheckListUpsertArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * The filter to search for the CheckList to update in case it exists. */ where: Prisma.CheckListWhereUniqueInput /** * In case the CheckList found by the `where` argument doesn't exist, create a new CheckList with this data. */ create: Prisma.XOR /** * In case the CheckList was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * CheckList delete */ export type CheckListDeleteArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null /** * Filter which CheckList to delete. */ where: Prisma.CheckListWhereUniqueInput } /** * CheckList deleteMany */ export type CheckListDeleteManyArgs = { /** * Filter which CheckLists to delete */ where?: Prisma.CheckListWhereInput /** * Limit how many CheckLists to delete. */ limit?: number } /** * CheckList.items */ export type CheckList$itemsArgs = { /** * Select specific fields to fetch from the CheckListItem */ select?: Prisma.CheckListItemSelect | null /** * Omit specific fields from the CheckListItem */ omit?: Prisma.CheckListItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListItemInclude | null where?: Prisma.CheckListItemWhereInput orderBy?: Prisma.CheckListItemOrderByWithRelationInput | Prisma.CheckListItemOrderByWithRelationInput[] cursor?: Prisma.CheckListItemWhereUniqueInput take?: number skip?: number distinct?: Prisma.CheckListItemScalarFieldEnum | Prisma.CheckListItemScalarFieldEnum[] } /** * CheckList without action */ export type CheckListDefaultArgs = { /** * Select specific fields to fetch from the CheckList */ select?: Prisma.CheckListSelect | null /** * Omit specific fields from the CheckList */ omit?: Prisma.CheckListOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CheckListInclude | null }