/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Blobs` 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 Blobs * */ export type BlobsModel = runtime.Types.Result.DefaultSelection export type AggregateBlobs = { _count: BlobsCountAggregateOutputType | null _avg: BlobsAvgAggregateOutputType | null _sum: BlobsSumAggregateOutputType | null _min: BlobsMinAggregateOutputType | null _max: BlobsMaxAggregateOutputType | null } export type BlobsAvgAggregateOutputType = { size: number | null refcount: number | null } export type BlobsSumAggregateOutputType = { size: number | null refcount: number | null } export type BlobsMinAggregateOutputType = { sha256: string | null size: number | null mime: string | null storage_path: string | null refcount: number | null created_at: Date | null } export type BlobsMaxAggregateOutputType = { sha256: string | null size: number | null mime: string | null storage_path: string | null refcount: number | null created_at: Date | null } export type BlobsCountAggregateOutputType = { sha256: number size: number mime: number storage_path: number refcount: number created_at: number _all: number } export type BlobsAvgAggregateInputType = { size?: true refcount?: true } export type BlobsSumAggregateInputType = { size?: true refcount?: true } export type BlobsMinAggregateInputType = { sha256?: true size?: true mime?: true storage_path?: true refcount?: true created_at?: true } export type BlobsMaxAggregateInputType = { sha256?: true size?: true mime?: true storage_path?: true refcount?: true created_at?: true } export type BlobsCountAggregateInputType = { sha256?: true size?: true mime?: true storage_path?: true refcount?: true created_at?: true _all?: true } export type BlobsAggregateArgs = { /** * Filter which Blobs to aggregate. */ where?: Prisma.BlobsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Blobs to fetch. */ orderBy?: Prisma.BlobsOrderByWithRelationInput | Prisma.BlobsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.BlobsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Blobs 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` Blobs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Blobs **/ _count?: true | BlobsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: BlobsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: BlobsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: BlobsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: BlobsMaxAggregateInputType } export type GetBlobsAggregateType = { [P in keyof T & keyof AggregateBlobs]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type BlobsGroupByArgs = { where?: Prisma.BlobsWhereInput orderBy?: Prisma.BlobsOrderByWithAggregationInput | Prisma.BlobsOrderByWithAggregationInput[] by: Prisma.BlobsScalarFieldEnum[] | Prisma.BlobsScalarFieldEnum having?: Prisma.BlobsScalarWhereWithAggregatesInput take?: number skip?: number _count?: BlobsCountAggregateInputType | true _avg?: BlobsAvgAggregateInputType _sum?: BlobsSumAggregateInputType _min?: BlobsMinAggregateInputType _max?: BlobsMaxAggregateInputType } export type BlobsGroupByOutputType = { sha256: string size: number mime: string storage_path: string refcount: number created_at: Date _count: BlobsCountAggregateOutputType | null _avg: BlobsAvgAggregateOutputType | null _sum: BlobsSumAggregateOutputType | null _min: BlobsMinAggregateOutputType | null _max: BlobsMaxAggregateOutputType | null } type GetBlobsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof BlobsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type BlobsWhereInput = { AND?: Prisma.BlobsWhereInput | Prisma.BlobsWhereInput[] OR?: Prisma.BlobsWhereInput[] NOT?: Prisma.BlobsWhereInput | Prisma.BlobsWhereInput[] sha256?: Prisma.StringFilter<"Blobs"> | string size?: Prisma.IntFilter<"Blobs"> | number mime?: Prisma.StringFilter<"Blobs"> | string storage_path?: Prisma.StringFilter<"Blobs"> | string refcount?: Prisma.IntFilter<"Blobs"> | number created_at?: Prisma.DateTimeFilter<"Blobs"> | Date | string attachments?: Prisma.AttachmentsListRelationFilter } export type BlobsOrderByWithRelationInput = { sha256?: Prisma.SortOrder size?: Prisma.SortOrder mime?: Prisma.SortOrder storage_path?: Prisma.SortOrder refcount?: Prisma.SortOrder created_at?: Prisma.SortOrder attachments?: Prisma.AttachmentsOrderByRelationAggregateInput } export type BlobsWhereUniqueInput = Prisma.AtLeast<{ sha256?: string AND?: Prisma.BlobsWhereInput | Prisma.BlobsWhereInput[] OR?: Prisma.BlobsWhereInput[] NOT?: Prisma.BlobsWhereInput | Prisma.BlobsWhereInput[] size?: Prisma.IntFilter<"Blobs"> | number mime?: Prisma.StringFilter<"Blobs"> | string storage_path?: Prisma.StringFilter<"Blobs"> | string refcount?: Prisma.IntFilter<"Blobs"> | number created_at?: Prisma.DateTimeFilter<"Blobs"> | Date | string attachments?: Prisma.AttachmentsListRelationFilter }, "sha256"> export type BlobsOrderByWithAggregationInput = { sha256?: Prisma.SortOrder size?: Prisma.SortOrder mime?: Prisma.SortOrder storage_path?: Prisma.SortOrder refcount?: Prisma.SortOrder created_at?: Prisma.SortOrder _count?: Prisma.BlobsCountOrderByAggregateInput _avg?: Prisma.BlobsAvgOrderByAggregateInput _max?: Prisma.BlobsMaxOrderByAggregateInput _min?: Prisma.BlobsMinOrderByAggregateInput _sum?: Prisma.BlobsSumOrderByAggregateInput } export type BlobsScalarWhereWithAggregatesInput = { AND?: Prisma.BlobsScalarWhereWithAggregatesInput | Prisma.BlobsScalarWhereWithAggregatesInput[] OR?: Prisma.BlobsScalarWhereWithAggregatesInput[] NOT?: Prisma.BlobsScalarWhereWithAggregatesInput | Prisma.BlobsScalarWhereWithAggregatesInput[] sha256?: Prisma.StringWithAggregatesFilter<"Blobs"> | string size?: Prisma.IntWithAggregatesFilter<"Blobs"> | number mime?: Prisma.StringWithAggregatesFilter<"Blobs"> | string storage_path?: Prisma.StringWithAggregatesFilter<"Blobs"> | string refcount?: Prisma.IntWithAggregatesFilter<"Blobs"> | number created_at?: Prisma.DateTimeWithAggregatesFilter<"Blobs"> | Date | string } export type BlobsCreateInput = { sha256: string size: number mime: string storage_path: string refcount?: number created_at?: Date | string attachments?: Prisma.AttachmentsCreateNestedManyWithoutBlobInput } export type BlobsUncheckedCreateInput = { sha256: string size: number mime: string storage_path: string refcount?: number created_at?: Date | string attachments?: Prisma.AttachmentsUncheckedCreateNestedManyWithoutBlobInput } export type BlobsUpdateInput = { sha256?: Prisma.StringFieldUpdateOperationsInput | string size?: Prisma.IntFieldUpdateOperationsInput | number mime?: Prisma.StringFieldUpdateOperationsInput | string storage_path?: Prisma.StringFieldUpdateOperationsInput | string refcount?: Prisma.IntFieldUpdateOperationsInput | number created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string attachments?: Prisma.AttachmentsUpdateManyWithoutBlobNestedInput } export type BlobsUncheckedUpdateInput = { sha256?: Prisma.StringFieldUpdateOperationsInput | string size?: Prisma.IntFieldUpdateOperationsInput | number mime?: Prisma.StringFieldUpdateOperationsInput | string storage_path?: Prisma.StringFieldUpdateOperationsInput | string refcount?: Prisma.IntFieldUpdateOperationsInput | number created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string attachments?: Prisma.AttachmentsUncheckedUpdateManyWithoutBlobNestedInput } export type BlobsCreateManyInput = { sha256: string size: number mime: string storage_path: string refcount?: number created_at?: Date | string } export type BlobsUpdateManyMutationInput = { sha256?: Prisma.StringFieldUpdateOperationsInput | string size?: Prisma.IntFieldUpdateOperationsInput | number mime?: Prisma.StringFieldUpdateOperationsInput | string storage_path?: Prisma.StringFieldUpdateOperationsInput | string refcount?: Prisma.IntFieldUpdateOperationsInput | number created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type BlobsUncheckedUpdateManyInput = { sha256?: Prisma.StringFieldUpdateOperationsInput | string size?: Prisma.IntFieldUpdateOperationsInput | number mime?: Prisma.StringFieldUpdateOperationsInput | string storage_path?: Prisma.StringFieldUpdateOperationsInput | string refcount?: Prisma.IntFieldUpdateOperationsInput | number created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type BlobsCountOrderByAggregateInput = { sha256?: Prisma.SortOrder size?: Prisma.SortOrder mime?: Prisma.SortOrder storage_path?: Prisma.SortOrder refcount?: Prisma.SortOrder created_at?: Prisma.SortOrder } export type BlobsAvgOrderByAggregateInput = { size?: Prisma.SortOrder refcount?: Prisma.SortOrder } export type BlobsMaxOrderByAggregateInput = { sha256?: Prisma.SortOrder size?: Prisma.SortOrder mime?: Prisma.SortOrder storage_path?: Prisma.SortOrder refcount?: Prisma.SortOrder created_at?: Prisma.SortOrder } export type BlobsMinOrderByAggregateInput = { sha256?: Prisma.SortOrder size?: Prisma.SortOrder mime?: Prisma.SortOrder storage_path?: Prisma.SortOrder refcount?: Prisma.SortOrder created_at?: Prisma.SortOrder } export type BlobsSumOrderByAggregateInput = { size?: Prisma.SortOrder refcount?: Prisma.SortOrder } export type BlobsScalarRelationFilter = { is?: Prisma.BlobsWhereInput isNot?: Prisma.BlobsWhereInput } export type BlobsCreateNestedOneWithoutAttachmentsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.BlobsCreateOrConnectWithoutAttachmentsInput connect?: Prisma.BlobsWhereUniqueInput } export type BlobsUpdateOneRequiredWithoutAttachmentsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.BlobsCreateOrConnectWithoutAttachmentsInput upsert?: Prisma.BlobsUpsertWithoutAttachmentsInput connect?: Prisma.BlobsWhereUniqueInput update?: Prisma.XOR, Prisma.BlobsUncheckedUpdateWithoutAttachmentsInput> } export type BlobsCreateWithoutAttachmentsInput = { sha256: string size: number mime: string storage_path: string refcount?: number created_at?: Date | string } export type BlobsUncheckedCreateWithoutAttachmentsInput = { sha256: string size: number mime: string storage_path: string refcount?: number created_at?: Date | string } export type BlobsCreateOrConnectWithoutAttachmentsInput = { where: Prisma.BlobsWhereUniqueInput create: Prisma.XOR } export type BlobsUpsertWithoutAttachmentsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.BlobsWhereInput } export type BlobsUpdateToOneWithWhereWithoutAttachmentsInput = { where?: Prisma.BlobsWhereInput data: Prisma.XOR } export type BlobsUpdateWithoutAttachmentsInput = { sha256?: Prisma.StringFieldUpdateOperationsInput | string size?: Prisma.IntFieldUpdateOperationsInput | number mime?: Prisma.StringFieldUpdateOperationsInput | string storage_path?: Prisma.StringFieldUpdateOperationsInput | string refcount?: Prisma.IntFieldUpdateOperationsInput | number created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type BlobsUncheckedUpdateWithoutAttachmentsInput = { sha256?: Prisma.StringFieldUpdateOperationsInput | string size?: Prisma.IntFieldUpdateOperationsInput | number mime?: Prisma.StringFieldUpdateOperationsInput | string storage_path?: Prisma.StringFieldUpdateOperationsInput | string refcount?: Prisma.IntFieldUpdateOperationsInput | number created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type BlobsCountOutputType */ export type BlobsCountOutputType = { attachments: number } export type BlobsCountOutputTypeSelect = { attachments?: boolean | BlobsCountOutputTypeCountAttachmentsArgs } /** * BlobsCountOutputType without action */ export type BlobsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the BlobsCountOutputType */ select?: Prisma.BlobsCountOutputTypeSelect | null } /** * BlobsCountOutputType without action */ export type BlobsCountOutputTypeCountAttachmentsArgs = { where?: Prisma.AttachmentsWhereInput } export type BlobsSelect = runtime.Types.Extensions.GetSelect<{ sha256?: boolean size?: boolean mime?: boolean storage_path?: boolean refcount?: boolean created_at?: boolean attachments?: boolean | Prisma.Blobs$attachmentsArgs _count?: boolean | Prisma.BlobsCountOutputTypeDefaultArgs }, ExtArgs["result"]["blobs"]> export type BlobsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ sha256?: boolean size?: boolean mime?: boolean storage_path?: boolean refcount?: boolean created_at?: boolean }, ExtArgs["result"]["blobs"]> export type BlobsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ sha256?: boolean size?: boolean mime?: boolean storage_path?: boolean refcount?: boolean created_at?: boolean }, ExtArgs["result"]["blobs"]> export type BlobsSelectScalar = { sha256?: boolean size?: boolean mime?: boolean storage_path?: boolean refcount?: boolean created_at?: boolean } export type BlobsOmit = runtime.Types.Extensions.GetOmit<"sha256" | "size" | "mime" | "storage_path" | "refcount" | "created_at", ExtArgs["result"]["blobs"]> export type BlobsInclude = { attachments?: boolean | Prisma.Blobs$attachmentsArgs _count?: boolean | Prisma.BlobsCountOutputTypeDefaultArgs } export type BlobsIncludeCreateManyAndReturn = {} export type BlobsIncludeUpdateManyAndReturn = {} export type $BlobsPayload = { name: "Blobs" objects: { attachments: Prisma.$AttachmentsPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ sha256: string size: number mime: string storage_path: string refcount: number created_at: Date }, ExtArgs["result"]["blobs"]> composites: {} } export type BlobsGetPayload = runtime.Types.Result.GetResult export type BlobsCountArgs = Omit & { select?: BlobsCountAggregateInputType | true } export interface BlobsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Blobs'], meta: { name: 'Blobs' } } /** * Find zero or one Blobs that matches the filter. * @param {BlobsFindUniqueArgs} args - Arguments to find a Blobs * @example * // Get one Blobs * const blobs = await prisma.blobs.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Blobs that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {BlobsFindUniqueOrThrowArgs} args - Arguments to find a Blobs * @example * // Get one Blobs * const blobs = await prisma.blobs.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Blobs 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 {BlobsFindFirstArgs} args - Arguments to find a Blobs * @example * // Get one Blobs * const blobs = await prisma.blobs.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Blobs 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 {BlobsFindFirstOrThrowArgs} args - Arguments to find a Blobs * @example * // Get one Blobs * const blobs = await prisma.blobs.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Blobs 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 {BlobsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Blobs * const blobs = await prisma.blobs.findMany() * * // Get first 10 Blobs * const blobs = await prisma.blobs.findMany({ take: 10 }) * * // Only select the `sha256` * const blobsWithSha256Only = await prisma.blobs.findMany({ select: { sha256: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Blobs. * @param {BlobsCreateArgs} args - Arguments to create a Blobs. * @example * // Create one Blobs * const Blobs = await prisma.blobs.create({ * data: { * // ... data to create a Blobs * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Blobs. * @param {BlobsCreateManyArgs} args - Arguments to create many Blobs. * @example * // Create many Blobs * const blobs = await prisma.blobs.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Blobs and returns the data saved in the database. * @param {BlobsCreateManyAndReturnArgs} args - Arguments to create many Blobs. * @example * // Create many Blobs * const blobs = await prisma.blobs.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Blobs and only return the `sha256` * const blobsWithSha256Only = await prisma.blobs.createManyAndReturn({ * select: { sha256: 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 Blobs. * @param {BlobsDeleteArgs} args - Arguments to delete one Blobs. * @example * // Delete one Blobs * const Blobs = await prisma.blobs.delete({ * where: { * // ... filter to delete one Blobs * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Blobs. * @param {BlobsUpdateArgs} args - Arguments to update one Blobs. * @example * // Update one Blobs * const blobs = await prisma.blobs.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Blobs. * @param {BlobsDeleteManyArgs} args - Arguments to filter Blobs to delete. * @example * // Delete a few Blobs * const { count } = await prisma.blobs.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Blobs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BlobsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Blobs * const blobs = await prisma.blobs.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Blobs and returns the data updated in the database. * @param {BlobsUpdateManyAndReturnArgs} args - Arguments to update many Blobs. * @example * // Update many Blobs * const blobs = await prisma.blobs.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Blobs and only return the `sha256` * const blobsWithSha256Only = await prisma.blobs.updateManyAndReturn({ * select: { sha256: 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 Blobs. * @param {BlobsUpsertArgs} args - Arguments to update or create a Blobs. * @example * // Update or create a Blobs * const blobs = await prisma.blobs.upsert({ * create: { * // ... data to create a Blobs * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Blobs we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Blobs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BlobsCountArgs} args - Arguments to filter Blobs to count. * @example * // Count the number of Blobs * const count = await prisma.blobs.count({ * where: { * // ... the filter for the Blobs 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 Blobs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BlobsAggregateArgs} 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 Blobs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BlobsGroupByArgs} 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 BlobsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: BlobsGroupByArgs['orderBy'] } : { orderBy?: BlobsGroupByArgs['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 ? GetBlobsGroupByPayload : Prisma.PrismaPromise /** * Fields of the Blobs model */ readonly fields: BlobsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Blobs. * 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__BlobsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" attachments = {}>(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 Blobs model */ export interface BlobsFieldRefs { readonly sha256: Prisma.FieldRef<"Blobs", 'String'> readonly size: Prisma.FieldRef<"Blobs", 'Int'> readonly mime: Prisma.FieldRef<"Blobs", 'String'> readonly storage_path: Prisma.FieldRef<"Blobs", 'String'> readonly refcount: Prisma.FieldRef<"Blobs", 'Int'> readonly created_at: Prisma.FieldRef<"Blobs", 'DateTime'> } // Custom InputTypes /** * Blobs findUnique */ export type BlobsFindUniqueArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * Filter, which Blobs to fetch. */ where: Prisma.BlobsWhereUniqueInput } /** * Blobs findUniqueOrThrow */ export type BlobsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * Filter, which Blobs to fetch. */ where: Prisma.BlobsWhereUniqueInput } /** * Blobs findFirst */ export type BlobsFindFirstArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * Filter, which Blobs to fetch. */ where?: Prisma.BlobsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Blobs to fetch. */ orderBy?: Prisma.BlobsOrderByWithRelationInput | Prisma.BlobsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Blobs. */ cursor?: Prisma.BlobsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Blobs 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` Blobs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Blobs. */ distinct?: Prisma.BlobsScalarFieldEnum | Prisma.BlobsScalarFieldEnum[] } /** * Blobs findFirstOrThrow */ export type BlobsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * Filter, which Blobs to fetch. */ where?: Prisma.BlobsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Blobs to fetch. */ orderBy?: Prisma.BlobsOrderByWithRelationInput | Prisma.BlobsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Blobs. */ cursor?: Prisma.BlobsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Blobs 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` Blobs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Blobs. */ distinct?: Prisma.BlobsScalarFieldEnum | Prisma.BlobsScalarFieldEnum[] } /** * Blobs findMany */ export type BlobsFindManyArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * Filter, which Blobs to fetch. */ where?: Prisma.BlobsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Blobs to fetch. */ orderBy?: Prisma.BlobsOrderByWithRelationInput | Prisma.BlobsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Blobs. */ cursor?: Prisma.BlobsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Blobs 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` Blobs. */ skip?: number distinct?: Prisma.BlobsScalarFieldEnum | Prisma.BlobsScalarFieldEnum[] } /** * Blobs create */ export type BlobsCreateArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * The data needed to create a Blobs. */ data: Prisma.XOR } /** * Blobs createMany */ export type BlobsCreateManyArgs = { /** * The data used to create many Blobs. */ data: Prisma.BlobsCreateManyInput | Prisma.BlobsCreateManyInput[] skipDuplicates?: boolean } /** * Blobs createManyAndReturn */ export type BlobsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelectCreateManyAndReturn | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * The data used to create many Blobs. */ data: Prisma.BlobsCreateManyInput | Prisma.BlobsCreateManyInput[] skipDuplicates?: boolean } /** * Blobs update */ export type BlobsUpdateArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * The data needed to update a Blobs. */ data: Prisma.XOR /** * Choose, which Blobs to update. */ where: Prisma.BlobsWhereUniqueInput } /** * Blobs updateMany */ export type BlobsUpdateManyArgs = { /** * The data used to update Blobs. */ data: Prisma.XOR /** * Filter which Blobs to update */ where?: Prisma.BlobsWhereInput /** * Limit how many Blobs to update. */ limit?: number } /** * Blobs updateManyAndReturn */ export type BlobsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelectUpdateManyAndReturn | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * The data used to update Blobs. */ data: Prisma.XOR /** * Filter which Blobs to update */ where?: Prisma.BlobsWhereInput /** * Limit how many Blobs to update. */ limit?: number } /** * Blobs upsert */ export type BlobsUpsertArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * The filter to search for the Blobs to update in case it exists. */ where: Prisma.BlobsWhereUniqueInput /** * In case the Blobs found by the `where` argument doesn't exist, create a new Blobs with this data. */ create: Prisma.XOR /** * In case the Blobs was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Blobs delete */ export type BlobsDeleteArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null /** * Filter which Blobs to delete. */ where: Prisma.BlobsWhereUniqueInput } /** * Blobs deleteMany */ export type BlobsDeleteManyArgs = { /** * Filter which Blobs to delete */ where?: Prisma.BlobsWhereInput /** * Limit how many Blobs to delete. */ limit?: number } /** * Blobs.attachments */ export type Blobs$attachmentsArgs = { /** * Select specific fields to fetch from the Attachments */ select?: Prisma.AttachmentsSelect | null /** * Omit specific fields from the Attachments */ omit?: Prisma.AttachmentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AttachmentsInclude | null where?: Prisma.AttachmentsWhereInput orderBy?: Prisma.AttachmentsOrderByWithRelationInput | Prisma.AttachmentsOrderByWithRelationInput[] cursor?: Prisma.AttachmentsWhereUniqueInput take?: number skip?: number distinct?: Prisma.AttachmentsScalarFieldEnum | Prisma.AttachmentsScalarFieldEnum[] } /** * Blobs without action */ export type BlobsDefaultArgs = { /** * Select specific fields to fetch from the Blobs */ select?: Prisma.BlobsSelect | null /** * Omit specific fields from the Blobs */ omit?: Prisma.BlobsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BlobsInclude | null }