/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Collection` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model Collection * */ export type CollectionModel = runtime.Types.Result.DefaultSelection export type AggregateCollection = { _count: CollectionCountAggregateOutputType | null _min: CollectionMinAggregateOutputType | null _max: CollectionMaxAggregateOutputType | null } export type CollectionMinAggregateOutputType = { id: string | null name: string | null createdAt: Date | null updatedAt: Date | null } export type CollectionMaxAggregateOutputType = { id: string | null name: string | null createdAt: Date | null updatedAt: Date | null } export type CollectionCountAggregateOutputType = { id: number name: number createdAt: number updatedAt: number _all: number } export type CollectionMinAggregateInputType = { id?: true name?: true createdAt?: true updatedAt?: true } export type CollectionMaxAggregateInputType = { id?: true name?: true createdAt?: true updatedAt?: true } export type CollectionCountAggregateInputType = { id?: true name?: true createdAt?: true updatedAt?: true _all?: true } export type CollectionAggregateArgs = { /** * Filter which Collection to aggregate. */ where?: Prisma.CollectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Collections to fetch. */ orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.CollectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Collections 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` Collections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Collections **/ _count?: true | CollectionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CollectionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CollectionMaxAggregateInputType } export type GetCollectionAggregateType = { [P in keyof T & keyof AggregateCollection]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CollectionGroupByArgs = { where?: Prisma.CollectionWhereInput orderBy?: Prisma.CollectionOrderByWithAggregationInput | Prisma.CollectionOrderByWithAggregationInput[] by: Prisma.CollectionScalarFieldEnum[] | Prisma.CollectionScalarFieldEnum having?: Prisma.CollectionScalarWhereWithAggregatesInput take?: number skip?: number _count?: CollectionCountAggregateInputType | true _min?: CollectionMinAggregateInputType _max?: CollectionMaxAggregateInputType } export type CollectionGroupByOutputType = { id: string name: string createdAt: Date updatedAt: Date _count: CollectionCountAggregateOutputType | null _min: CollectionMinAggregateOutputType | null _max: CollectionMaxAggregateOutputType | null } type GetCollectionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CollectionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type CollectionWhereInput = { AND?: Prisma.CollectionWhereInput | Prisma.CollectionWhereInput[] OR?: Prisma.CollectionWhereInput[] NOT?: Prisma.CollectionWhereInput | Prisma.CollectionWhereInput[] id?: Prisma.StringFilter<"Collection"> | string name?: Prisma.StringFilter<"Collection"> | string createdAt?: Prisma.DateTimeFilter<"Collection"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Collection"> | Date | string drawings?: Prisma.DrawingListRelationFilter } export type CollectionOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder drawings?: Prisma.DrawingOrderByRelationAggregateInput } export type CollectionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.CollectionWhereInput | Prisma.CollectionWhereInput[] OR?: Prisma.CollectionWhereInput[] NOT?: Prisma.CollectionWhereInput | Prisma.CollectionWhereInput[] name?: Prisma.StringFilter<"Collection"> | string createdAt?: Prisma.DateTimeFilter<"Collection"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Collection"> | Date | string drawings?: Prisma.DrawingListRelationFilter }, "id"> export type CollectionOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.CollectionCountOrderByAggregateInput _max?: Prisma.CollectionMaxOrderByAggregateInput _min?: Prisma.CollectionMinOrderByAggregateInput } export type CollectionScalarWhereWithAggregatesInput = { AND?: Prisma.CollectionScalarWhereWithAggregatesInput | Prisma.CollectionScalarWhereWithAggregatesInput[] OR?: Prisma.CollectionScalarWhereWithAggregatesInput[] NOT?: Prisma.CollectionScalarWhereWithAggregatesInput | Prisma.CollectionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Collection"> | string name?: Prisma.StringWithAggregatesFilter<"Collection"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Collection"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Collection"> | Date | string } export type CollectionCreateInput = { id?: string name: string createdAt?: Date | string updatedAt?: Date | string drawings?: Prisma.DrawingCreateNestedManyWithoutCollectionInput } export type CollectionUncheckedCreateInput = { id?: string name: string createdAt?: Date | string updatedAt?: Date | string drawings?: Prisma.DrawingUncheckedCreateNestedManyWithoutCollectionInput } export type CollectionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string drawings?: Prisma.DrawingUpdateManyWithoutCollectionNestedInput } export type CollectionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string drawings?: Prisma.DrawingUncheckedUpdateManyWithoutCollectionNestedInput } export type CollectionCreateManyInput = { id?: string name: string createdAt?: Date | string updatedAt?: Date | string } export type CollectionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CollectionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CollectionCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CollectionMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CollectionMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type CollectionNullableScalarRelationFilter = { is?: Prisma.CollectionWhereInput | null isNot?: Prisma.CollectionWhereInput | null } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type CollectionCreateNestedOneWithoutDrawingsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CollectionCreateOrConnectWithoutDrawingsInput connect?: Prisma.CollectionWhereUniqueInput } export type CollectionUpdateOneWithoutDrawingsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.CollectionCreateOrConnectWithoutDrawingsInput upsert?: Prisma.CollectionUpsertWithoutDrawingsInput disconnect?: Prisma.CollectionWhereInput | boolean delete?: Prisma.CollectionWhereInput | boolean connect?: Prisma.CollectionWhereUniqueInput update?: Prisma.XOR, Prisma.CollectionUncheckedUpdateWithoutDrawingsInput> } export type CollectionCreateWithoutDrawingsInput = { id?: string name: string createdAt?: Date | string updatedAt?: Date | string } export type CollectionUncheckedCreateWithoutDrawingsInput = { id?: string name: string createdAt?: Date | string updatedAt?: Date | string } export type CollectionCreateOrConnectWithoutDrawingsInput = { where: Prisma.CollectionWhereUniqueInput create: Prisma.XOR } export type CollectionUpsertWithoutDrawingsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.CollectionWhereInput } export type CollectionUpdateToOneWithWhereWithoutDrawingsInput = { where?: Prisma.CollectionWhereInput data: Prisma.XOR } export type CollectionUpdateWithoutDrawingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type CollectionUncheckedUpdateWithoutDrawingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type CollectionCountOutputType */ export type CollectionCountOutputType = { drawings: number } export type CollectionCountOutputTypeSelect = { drawings?: boolean | CollectionCountOutputTypeCountDrawingsArgs } /** * CollectionCountOutputType without action */ export type CollectionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CollectionCountOutputType */ select?: Prisma.CollectionCountOutputTypeSelect | null } /** * CollectionCountOutputType without action */ export type CollectionCountOutputTypeCountDrawingsArgs = { where?: Prisma.DrawingWhereInput } export type CollectionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean createdAt?: boolean updatedAt?: boolean drawings?: boolean | Prisma.Collection$drawingsArgs _count?: boolean | Prisma.CollectionCountOutputTypeDefaultArgs }, ExtArgs["result"]["collection"]> export type CollectionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["collection"]> export type CollectionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["collection"]> export type CollectionSelectScalar = { id?: boolean name?: boolean createdAt?: boolean updatedAt?: boolean } export type CollectionOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt", ExtArgs["result"]["collection"]> export type CollectionInclude = { drawings?: boolean | Prisma.Collection$drawingsArgs _count?: boolean | Prisma.CollectionCountOutputTypeDefaultArgs } export type CollectionIncludeCreateManyAndReturn = {} export type CollectionIncludeUpdateManyAndReturn = {} export type $CollectionPayload = { name: "Collection" objects: { drawings: Prisma.$DrawingPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["collection"]> composites: {} } export type CollectionGetPayload = runtime.Types.Result.GetResult export type CollectionCountArgs = Omit & { select?: CollectionCountAggregateInputType | true } export interface CollectionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Collection'], meta: { name: 'Collection' } } /** * Find zero or one Collection that matches the filter. * @param {CollectionFindUniqueArgs} args - Arguments to find a Collection * @example * // Get one Collection * const collection = await prisma.collection.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CollectionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Collection that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CollectionFindUniqueOrThrowArgs} args - Arguments to find a Collection * @example * // Get one Collection * const collection = await prisma.collection.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CollectionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Collection 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 {CollectionFindFirstArgs} args - Arguments to find a Collection * @example * // Get one Collection * const collection = await prisma.collection.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CollectionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Collection 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 {CollectionFindFirstOrThrowArgs} args - Arguments to find a Collection * @example * // Get one Collection * const collection = await prisma.collection.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CollectionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Collections 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 {CollectionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Collections * const collections = await prisma.collection.findMany() * * // Get first 10 Collections * const collections = await prisma.collection.findMany({ take: 10 }) * * // Only select the `id` * const collectionWithIdOnly = await prisma.collection.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Collection. * @param {CollectionCreateArgs} args - Arguments to create a Collection. * @example * // Create one Collection * const Collection = await prisma.collection.create({ * data: { * // ... data to create a Collection * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__CollectionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Collections. * @param {CollectionCreateManyArgs} args - Arguments to create many Collections. * @example * // Create many Collections * const collection = await prisma.collection.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Collections and returns the data saved in the database. * @param {CollectionCreateManyAndReturnArgs} args - Arguments to create many Collections. * @example * // Create many Collections * const collection = await prisma.collection.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Collections and only return the `id` * const collectionWithIdOnly = await prisma.collection.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Collection. * @param {CollectionDeleteArgs} args - Arguments to delete one Collection. * @example * // Delete one Collection * const Collection = await prisma.collection.delete({ * where: { * // ... filter to delete one Collection * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__CollectionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Collection. * @param {CollectionUpdateArgs} args - Arguments to update one Collection. * @example * // Update one Collection * const collection = await prisma.collection.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__CollectionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Collections. * @param {CollectionDeleteManyArgs} args - Arguments to filter Collections to delete. * @example * // Delete a few Collections * const { count } = await prisma.collection.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Collections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CollectionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Collections * const collection = await prisma.collection.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Collections and returns the data updated in the database. * @param {CollectionUpdateManyAndReturnArgs} args - Arguments to update many Collections. * @example * // Update many Collections * const collection = await prisma.collection.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Collections and only return the `id` * const collectionWithIdOnly = await prisma.collection.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Collection. * @param {CollectionUpsertArgs} args - Arguments to update or create a Collection. * @example * // Update or create a Collection * const collection = await prisma.collection.upsert({ * create: { * // ... data to create a Collection * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Collection we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CollectionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Collections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CollectionCountArgs} args - Arguments to filter Collections to count. * @example * // Count the number of Collections * const count = await prisma.collection.count({ * where: { * // ... the filter for the Collections 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 Collection. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CollectionAggregateArgs} 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 Collection. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CollectionGroupByArgs} 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 CollectionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CollectionGroupByArgs['orderBy'] } : { orderBy?: CollectionGroupByArgs['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 ? GetCollectionGroupByPayload : Prisma.PrismaPromise /** * Fields of the Collection model */ readonly fields: CollectionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Collection. * 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__CollectionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" drawings = {}>(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 Collection model */ export interface CollectionFieldRefs { readonly id: Prisma.FieldRef<"Collection", 'String'> readonly name: Prisma.FieldRef<"Collection", 'String'> readonly createdAt: Prisma.FieldRef<"Collection", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Collection", 'DateTime'> } // Custom InputTypes /** * Collection findUnique */ export type CollectionFindUniqueArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * Filter, which Collection to fetch. */ where: Prisma.CollectionWhereUniqueInput } /** * Collection findUniqueOrThrow */ export type CollectionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * Filter, which Collection to fetch. */ where: Prisma.CollectionWhereUniqueInput } /** * Collection findFirst */ export type CollectionFindFirstArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * Filter, which Collection to fetch. */ where?: Prisma.CollectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Collections to fetch. */ orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Collections. */ cursor?: Prisma.CollectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Collections 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` Collections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Collections. */ distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[] } /** * Collection findFirstOrThrow */ export type CollectionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * Filter, which Collection to fetch. */ where?: Prisma.CollectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Collections to fetch. */ orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Collections. */ cursor?: Prisma.CollectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Collections 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` Collections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Collections. */ distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[] } /** * Collection findMany */ export type CollectionFindManyArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * Filter, which Collections to fetch. */ where?: Prisma.CollectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Collections to fetch. */ orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Collections. */ cursor?: Prisma.CollectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Collections 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` Collections. */ skip?: number distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[] } /** * Collection create */ export type CollectionCreateArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * The data needed to create a Collection. */ data: Prisma.XOR } /** * Collection createMany */ export type CollectionCreateManyArgs = { /** * The data used to create many Collections. */ data: Prisma.CollectionCreateManyInput | Prisma.CollectionCreateManyInput[] } /** * Collection createManyAndReturn */ export type CollectionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelectCreateManyAndReturn | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * The data used to create many Collections. */ data: Prisma.CollectionCreateManyInput | Prisma.CollectionCreateManyInput[] } /** * Collection update */ export type CollectionUpdateArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * The data needed to update a Collection. */ data: Prisma.XOR /** * Choose, which Collection to update. */ where: Prisma.CollectionWhereUniqueInput } /** * Collection updateMany */ export type CollectionUpdateManyArgs = { /** * The data used to update Collections. */ data: Prisma.XOR /** * Filter which Collections to update */ where?: Prisma.CollectionWhereInput /** * Limit how many Collections to update. */ limit?: number } /** * Collection updateManyAndReturn */ export type CollectionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelectUpdateManyAndReturn | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * The data used to update Collections. */ data: Prisma.XOR /** * Filter which Collections to update */ where?: Prisma.CollectionWhereInput /** * Limit how many Collections to update. */ limit?: number } /** * Collection upsert */ export type CollectionUpsertArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * The filter to search for the Collection to update in case it exists. */ where: Prisma.CollectionWhereUniqueInput /** * In case the Collection found by the `where` argument doesn't exist, create a new Collection with this data. */ create: Prisma.XOR /** * In case the Collection was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Collection delete */ export type CollectionDeleteArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null /** * Filter which Collection to delete. */ where: Prisma.CollectionWhereUniqueInput } /** * Collection deleteMany */ export type CollectionDeleteManyArgs = { /** * Filter which Collections to delete */ where?: Prisma.CollectionWhereInput /** * Limit how many Collections to delete. */ limit?: number } /** * Collection.drawings */ export type Collection$drawingsArgs = { /** * Select specific fields to fetch from the Drawing */ select?: Prisma.DrawingSelect | null /** * Omit specific fields from the Drawing */ omit?: Prisma.DrawingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DrawingInclude | null where?: Prisma.DrawingWhereInput orderBy?: Prisma.DrawingOrderByWithRelationInput | Prisma.DrawingOrderByWithRelationInput[] cursor?: Prisma.DrawingWhereUniqueInput take?: number skip?: number distinct?: Prisma.DrawingScalarFieldEnum | Prisma.DrawingScalarFieldEnum[] } /** * Collection without action */ export type CollectionDefaultArgs = { /** * Select specific fields to fetch from the Collection */ select?: Prisma.CollectionSelect | null /** * Omit specific fields from the Collection */ omit?: Prisma.CollectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CollectionInclude | null }