targo-backend/prisma/generated/postgres/models/Blobs.ts

1405 lines
46 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `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<Prisma.$BlobsPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends BlobsAggregateArgs> = {
[P in keyof T & keyof AggregateBlobs]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateBlobs[P]>
: Prisma.GetScalarType<T[P], AggregateBlobs[P]>
}
export type BlobsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends BlobsGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<BlobsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof BlobsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], BlobsGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], BlobsGroupByOutputType[P]>
}
>
>
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<Prisma.BlobsCreateWithoutAttachmentsInput, Prisma.BlobsUncheckedCreateWithoutAttachmentsInput>
connectOrCreate?: Prisma.BlobsCreateOrConnectWithoutAttachmentsInput
connect?: Prisma.BlobsWhereUniqueInput
}
export type BlobsUpdateOneRequiredWithoutAttachmentsNestedInput = {
create?: Prisma.XOR<Prisma.BlobsCreateWithoutAttachmentsInput, Prisma.BlobsUncheckedCreateWithoutAttachmentsInput>
connectOrCreate?: Prisma.BlobsCreateOrConnectWithoutAttachmentsInput
upsert?: Prisma.BlobsUpsertWithoutAttachmentsInput
connect?: Prisma.BlobsWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.BlobsUpdateToOneWithWhereWithoutAttachmentsInput, Prisma.BlobsUpdateWithoutAttachmentsInput>, 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<Prisma.BlobsCreateWithoutAttachmentsInput, Prisma.BlobsUncheckedCreateWithoutAttachmentsInput>
}
export type BlobsUpsertWithoutAttachmentsInput = {
update: Prisma.XOR<Prisma.BlobsUpdateWithoutAttachmentsInput, Prisma.BlobsUncheckedUpdateWithoutAttachmentsInput>
create: Prisma.XOR<Prisma.BlobsCreateWithoutAttachmentsInput, Prisma.BlobsUncheckedCreateWithoutAttachmentsInput>
where?: Prisma.BlobsWhereInput
}
export type BlobsUpdateToOneWithWhereWithoutAttachmentsInput = {
where?: Prisma.BlobsWhereInput
data: Prisma.XOR<Prisma.BlobsUpdateWithoutAttachmentsInput, Prisma.BlobsUncheckedUpdateWithoutAttachmentsInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
attachments?: boolean | BlobsCountOutputTypeCountAttachmentsArgs
}
/**
* BlobsCountOutputType without action
*/
export type BlobsCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BlobsCountOutputType
*/
select?: Prisma.BlobsCountOutputTypeSelect<ExtArgs> | null
}
/**
* BlobsCountOutputType without action
*/
export type BlobsCountOutputTypeCountAttachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AttachmentsWhereInput
}
export type BlobsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
sha256?: boolean
size?: boolean
mime?: boolean
storage_path?: boolean
refcount?: boolean
created_at?: boolean
attachments?: boolean | Prisma.Blobs$attachmentsArgs<ExtArgs>
_count?: boolean | Prisma.BlobsCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["blobs"]>
export type BlobsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
sha256?: boolean
size?: boolean
mime?: boolean
storage_path?: boolean
refcount?: boolean
created_at?: boolean
}, ExtArgs["result"]["blobs"]>
export type BlobsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"sha256" | "size" | "mime" | "storage_path" | "refcount" | "created_at", ExtArgs["result"]["blobs"]>
export type BlobsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
attachments?: boolean | Prisma.Blobs$attachmentsArgs<ExtArgs>
_count?: boolean | Prisma.BlobsCountOutputTypeDefaultArgs<ExtArgs>
}
export type BlobsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type BlobsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $BlobsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Blobs"
objects: {
attachments: Prisma.$AttachmentsPayload<ExtArgs>[]
}
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<S extends boolean | null | undefined | BlobsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BlobsPayload, S>
export type BlobsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<BlobsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: BlobsCountAggregateInputType | true
}
export interface BlobsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends BlobsFindUniqueArgs>(args: Prisma.SelectSubset<T, BlobsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__BlobsClient<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, BlobsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__BlobsClient<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsFindFirstArgs>(args?: Prisma.SelectSubset<T, BlobsFindFirstArgs<ExtArgs>>): Prisma.Prisma__BlobsClient<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, BlobsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__BlobsClient<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsFindManyArgs>(args?: Prisma.SelectSubset<T, BlobsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsCreateArgs>(args: Prisma.SelectSubset<T, BlobsCreateArgs<ExtArgs>>): Prisma.Prisma__BlobsClient<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsCreateManyArgs>(args?: Prisma.SelectSubset<T, BlobsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends BlobsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, BlobsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsDeleteArgs>(args: Prisma.SelectSubset<T, BlobsDeleteArgs<ExtArgs>>): Prisma.Prisma__BlobsClient<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsUpdateArgs>(args: Prisma.SelectSubset<T, BlobsUpdateArgs<ExtArgs>>): Prisma.Prisma__BlobsClient<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsDeleteManyArgs>(args?: Prisma.SelectSubset<T, BlobsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends BlobsUpdateManyArgs>(args: Prisma.SelectSubset<T, BlobsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends BlobsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, BlobsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsUpsertArgs>(args: Prisma.SelectSubset<T, BlobsUpsertArgs<ExtArgs>>): Prisma.Prisma__BlobsClient<runtime.Types.Result.GetResult<Prisma.$BlobsPayload<ExtArgs>, 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<T extends BlobsCountArgs>(
args?: Prisma.Subset<T, BlobsCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], BlobsCountAggregateOutputType>
: 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<T extends BlobsAggregateArgs>(args: Prisma.Subset<T, BlobsAggregateArgs>): Prisma.PrismaPromise<GetBlobsAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: BlobsGroupByArgs['orderBy'] }
: { orderBy?: BlobsGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, BlobsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBlobsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
attachments<T extends Prisma.Blobs$attachmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Blobs$attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AttachmentsPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | null
/**
* Filter, which Blobs to fetch.
*/
where: Prisma.BlobsWhereUniqueInput
}
/**
* Blobs findUniqueOrThrow
*/
export type BlobsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | null
/**
* Filter, which Blobs to fetch.
*/
where: Prisma.BlobsWhereUniqueInput
}
/**
* Blobs findFirst
*/
export type BlobsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | null
/**
* The data needed to create a Blobs.
*/
data: Prisma.XOR<Prisma.BlobsCreateInput, Prisma.BlobsUncheckedCreateInput>
}
/**
* Blobs createMany
*/
export type BlobsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Blobs.
*/
data: Prisma.BlobsCreateManyInput | Prisma.BlobsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Blobs createManyAndReturn
*/
export type BlobsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* The data used to create many Blobs.
*/
data: Prisma.BlobsCreateManyInput | Prisma.BlobsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Blobs update
*/
export type BlobsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | null
/**
* The data needed to update a Blobs.
*/
data: Prisma.XOR<Prisma.BlobsUpdateInput, Prisma.BlobsUncheckedUpdateInput>
/**
* Choose, which Blobs to update.
*/
where: Prisma.BlobsWhereUniqueInput
}
/**
* Blobs updateMany
*/
export type BlobsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Blobs.
*/
data: Prisma.XOR<Prisma.BlobsUpdateManyMutationInput, Prisma.BlobsUncheckedUpdateManyInput>
/**
* Filter which Blobs to update
*/
where?: Prisma.BlobsWhereInput
/**
* Limit how many Blobs to update.
*/
limit?: number
}
/**
* Blobs updateManyAndReturn
*/
export type BlobsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* The data used to update Blobs.
*/
data: Prisma.XOR<Prisma.BlobsUpdateManyMutationInput, Prisma.BlobsUncheckedUpdateManyInput>
/**
* Filter which Blobs to update
*/
where?: Prisma.BlobsWhereInput
/**
* Limit how many Blobs to update.
*/
limit?: number
}
/**
* Blobs upsert
*/
export type BlobsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | 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<Prisma.BlobsCreateInput, Prisma.BlobsUncheckedCreateInput>
/**
* In case the Blobs was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.BlobsUpdateInput, Prisma.BlobsUncheckedUpdateInput>
}
/**
* Blobs delete
*/
export type BlobsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | null
/**
* Filter which Blobs to delete.
*/
where: Prisma.BlobsWhereUniqueInput
}
/**
* Blobs deleteMany
*/
export type BlobsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Blobs to delete
*/
where?: Prisma.BlobsWhereInput
/**
* Limit how many Blobs to delete.
*/
limit?: number
}
/**
* Blobs.attachments
*/
export type Blobs$attachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachments
*/
select?: Prisma.AttachmentsSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachments
*/
omit?: Prisma.AttachmentsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Blobs
*/
select?: Prisma.BlobsSelect<ExtArgs> | null
/**
* Omit specific fields from the Blobs
*/
omit?: Prisma.BlobsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlobsInclude<ExtArgs> | null
}