Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/FileChunk.ts
T

1356 lines
49 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 `FileChunk` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model FileChunk
*
*/
export type FileChunkModel = runtime.Types.Result.DefaultSelection<Prisma.$FileChunkPayload>
export type AggregateFileChunk = {
_count: FileChunkCountAggregateOutputType | null
_avg: FileChunkAvgAggregateOutputType | null
_sum: FileChunkSumAggregateOutputType | null
_min: FileChunkMinAggregateOutputType | null
_max: FileChunkMaxAggregateOutputType | null
}
export type FileChunkAvgAggregateOutputType = {
id: number | null
index: number | null
}
export type FileChunkSumAggregateOutputType = {
id: number | null
index: number | null
}
export type FileChunkMinAggregateOutputType = {
id: number | null
fileUploadId: string | null
index: number | null
data: runtime.Bytes | null
}
export type FileChunkMaxAggregateOutputType = {
id: number | null
fileUploadId: string | null
index: number | null
data: runtime.Bytes | null
}
export type FileChunkCountAggregateOutputType = {
id: number
fileUploadId: number
index: number
data: number
_all: number
}
export type FileChunkAvgAggregateInputType = {
id?: true
index?: true
}
export type FileChunkSumAggregateInputType = {
id?: true
index?: true
}
export type FileChunkMinAggregateInputType = {
id?: true
fileUploadId?: true
index?: true
data?: true
}
export type FileChunkMaxAggregateInputType = {
id?: true
fileUploadId?: true
index?: true
data?: true
}
export type FileChunkCountAggregateInputType = {
id?: true
fileUploadId?: true
index?: true
data?: true
_all?: true
}
export type FileChunkAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which FileChunk to aggregate.
*/
where?: Prisma.FileChunkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileChunks to fetch.
*/
orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.FileChunkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileChunks 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` FileChunks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned FileChunks
**/
_count?: true | FileChunkCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: FileChunkAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: FileChunkSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: FileChunkMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: FileChunkMaxAggregateInputType
}
export type GetFileChunkAggregateType<T extends FileChunkAggregateArgs> = {
[P in keyof T & keyof AggregateFileChunk]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateFileChunk[P]>
: Prisma.GetScalarType<T[P], AggregateFileChunk[P]>
}
export type FileChunkGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.FileChunkWhereInput
orderBy?: Prisma.FileChunkOrderByWithAggregationInput | Prisma.FileChunkOrderByWithAggregationInput[]
by: Prisma.FileChunkScalarFieldEnum[] | Prisma.FileChunkScalarFieldEnum
having?: Prisma.FileChunkScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: FileChunkCountAggregateInputType | true
_avg?: FileChunkAvgAggregateInputType
_sum?: FileChunkSumAggregateInputType
_min?: FileChunkMinAggregateInputType
_max?: FileChunkMaxAggregateInputType
}
export type FileChunkGroupByOutputType = {
id: number
fileUploadId: string
index: number
data: runtime.Bytes
_count: FileChunkCountAggregateOutputType | null
_avg: FileChunkAvgAggregateOutputType | null
_sum: FileChunkSumAggregateOutputType | null
_min: FileChunkMinAggregateOutputType | null
_max: FileChunkMaxAggregateOutputType | null
}
export type GetFileChunkGroupByPayload<T extends FileChunkGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<FileChunkGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof FileChunkGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], FileChunkGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], FileChunkGroupByOutputType[P]>
}
>
>
export type FileChunkWhereInput = {
AND?: Prisma.FileChunkWhereInput | Prisma.FileChunkWhereInput[]
OR?: Prisma.FileChunkWhereInput[]
NOT?: Prisma.FileChunkWhereInput | Prisma.FileChunkWhereInput[]
id?: Prisma.IntFilter<"FileChunk"> | number
fileUploadId?: Prisma.StringFilter<"FileChunk"> | string
index?: Prisma.IntFilter<"FileChunk"> | number
data?: Prisma.BytesFilter<"FileChunk"> | runtime.Bytes
fileUpload?: Prisma.XOR<Prisma.FileUploadProgressScalarRelationFilter, Prisma.FileUploadProgressWhereInput>
}
export type FileChunkOrderByWithRelationInput = {
id?: Prisma.SortOrder
fileUploadId?: Prisma.SortOrder
index?: Prisma.SortOrder
data?: Prisma.SortOrder
fileUpload?: Prisma.FileUploadProgressOrderByWithRelationInput
}
export type FileChunkWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.FileChunkWhereInput | Prisma.FileChunkWhereInput[]
OR?: Prisma.FileChunkWhereInput[]
NOT?: Prisma.FileChunkWhereInput | Prisma.FileChunkWhereInput[]
fileUploadId?: Prisma.StringFilter<"FileChunk"> | string
index?: Prisma.IntFilter<"FileChunk"> | number
data?: Prisma.BytesFilter<"FileChunk"> | runtime.Bytes
fileUpload?: Prisma.XOR<Prisma.FileUploadProgressScalarRelationFilter, Prisma.FileUploadProgressWhereInput>
}, "id">
export type FileChunkOrderByWithAggregationInput = {
id?: Prisma.SortOrder
fileUploadId?: Prisma.SortOrder
index?: Prisma.SortOrder
data?: Prisma.SortOrder
_count?: Prisma.FileChunkCountOrderByAggregateInput
_avg?: Prisma.FileChunkAvgOrderByAggregateInput
_max?: Prisma.FileChunkMaxOrderByAggregateInput
_min?: Prisma.FileChunkMinOrderByAggregateInput
_sum?: Prisma.FileChunkSumOrderByAggregateInput
}
export type FileChunkScalarWhereWithAggregatesInput = {
AND?: Prisma.FileChunkScalarWhereWithAggregatesInput | Prisma.FileChunkScalarWhereWithAggregatesInput[]
OR?: Prisma.FileChunkScalarWhereWithAggregatesInput[]
NOT?: Prisma.FileChunkScalarWhereWithAggregatesInput | Prisma.FileChunkScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"FileChunk"> | number
fileUploadId?: Prisma.StringWithAggregatesFilter<"FileChunk"> | string
index?: Prisma.IntWithAggregatesFilter<"FileChunk"> | number
data?: Prisma.BytesWithAggregatesFilter<"FileChunk"> | runtime.Bytes
}
export type FileChunkCreateInput = {
index: number
data: runtime.Bytes
fileUpload: Prisma.FileUploadProgressCreateNestedOneWithoutChunksInput
}
export type FileChunkUncheckedCreateInput = {
id?: number
fileUploadId: string
index: number
data: runtime.Bytes
}
export type FileChunkUpdateInput = {
index?: Prisma.IntFieldUpdateOperationsInput | number
data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
fileUpload?: Prisma.FileUploadProgressUpdateOneRequiredWithoutChunksNestedInput
}
export type FileChunkUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
fileUploadId?: Prisma.StringFieldUpdateOperationsInput | string
index?: Prisma.IntFieldUpdateOperationsInput | number
data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
}
export type FileChunkCreateManyInput = {
id?: number
fileUploadId: string
index: number
data: runtime.Bytes
}
export type FileChunkUpdateManyMutationInput = {
index?: Prisma.IntFieldUpdateOperationsInput | number
data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
}
export type FileChunkUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
fileUploadId?: Prisma.StringFieldUpdateOperationsInput | string
index?: Prisma.IntFieldUpdateOperationsInput | number
data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
}
export type FileChunkListRelationFilter = {
every?: Prisma.FileChunkWhereInput
some?: Prisma.FileChunkWhereInput
none?: Prisma.FileChunkWhereInput
}
export type FileChunkOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type FileChunkCountOrderByAggregateInput = {
id?: Prisma.SortOrder
fileUploadId?: Prisma.SortOrder
index?: Prisma.SortOrder
data?: Prisma.SortOrder
}
export type FileChunkAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
index?: Prisma.SortOrder
}
export type FileChunkMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
fileUploadId?: Prisma.SortOrder
index?: Prisma.SortOrder
data?: Prisma.SortOrder
}
export type FileChunkMinOrderByAggregateInput = {
id?: Prisma.SortOrder
fileUploadId?: Prisma.SortOrder
index?: Prisma.SortOrder
data?: Prisma.SortOrder
}
export type FileChunkSumOrderByAggregateInput = {
id?: Prisma.SortOrder
index?: Prisma.SortOrder
}
export type FileChunkCreateNestedManyWithoutFileUploadInput = {
create?: Prisma.XOR<Prisma.FileChunkCreateWithoutFileUploadInput, Prisma.FileChunkUncheckedCreateWithoutFileUploadInput> | Prisma.FileChunkCreateWithoutFileUploadInput[] | Prisma.FileChunkUncheckedCreateWithoutFileUploadInput[]
connectOrCreate?: Prisma.FileChunkCreateOrConnectWithoutFileUploadInput | Prisma.FileChunkCreateOrConnectWithoutFileUploadInput[]
createMany?: Prisma.FileChunkCreateManyFileUploadInputEnvelope
connect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
}
export type FileChunkUncheckedCreateNestedManyWithoutFileUploadInput = {
create?: Prisma.XOR<Prisma.FileChunkCreateWithoutFileUploadInput, Prisma.FileChunkUncheckedCreateWithoutFileUploadInput> | Prisma.FileChunkCreateWithoutFileUploadInput[] | Prisma.FileChunkUncheckedCreateWithoutFileUploadInput[]
connectOrCreate?: Prisma.FileChunkCreateOrConnectWithoutFileUploadInput | Prisma.FileChunkCreateOrConnectWithoutFileUploadInput[]
createMany?: Prisma.FileChunkCreateManyFileUploadInputEnvelope
connect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
}
export type FileChunkUpdateManyWithoutFileUploadNestedInput = {
create?: Prisma.XOR<Prisma.FileChunkCreateWithoutFileUploadInput, Prisma.FileChunkUncheckedCreateWithoutFileUploadInput> | Prisma.FileChunkCreateWithoutFileUploadInput[] | Prisma.FileChunkUncheckedCreateWithoutFileUploadInput[]
connectOrCreate?: Prisma.FileChunkCreateOrConnectWithoutFileUploadInput | Prisma.FileChunkCreateOrConnectWithoutFileUploadInput[]
upsert?: Prisma.FileChunkUpsertWithWhereUniqueWithoutFileUploadInput | Prisma.FileChunkUpsertWithWhereUniqueWithoutFileUploadInput[]
createMany?: Prisma.FileChunkCreateManyFileUploadInputEnvelope
set?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
disconnect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
delete?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
connect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
update?: Prisma.FileChunkUpdateWithWhereUniqueWithoutFileUploadInput | Prisma.FileChunkUpdateWithWhereUniqueWithoutFileUploadInput[]
updateMany?: Prisma.FileChunkUpdateManyWithWhereWithoutFileUploadInput | Prisma.FileChunkUpdateManyWithWhereWithoutFileUploadInput[]
deleteMany?: Prisma.FileChunkScalarWhereInput | Prisma.FileChunkScalarWhereInput[]
}
export type FileChunkUncheckedUpdateManyWithoutFileUploadNestedInput = {
create?: Prisma.XOR<Prisma.FileChunkCreateWithoutFileUploadInput, Prisma.FileChunkUncheckedCreateWithoutFileUploadInput> | Prisma.FileChunkCreateWithoutFileUploadInput[] | Prisma.FileChunkUncheckedCreateWithoutFileUploadInput[]
connectOrCreate?: Prisma.FileChunkCreateOrConnectWithoutFileUploadInput | Prisma.FileChunkCreateOrConnectWithoutFileUploadInput[]
upsert?: Prisma.FileChunkUpsertWithWhereUniqueWithoutFileUploadInput | Prisma.FileChunkUpsertWithWhereUniqueWithoutFileUploadInput[]
createMany?: Prisma.FileChunkCreateManyFileUploadInputEnvelope
set?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
disconnect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
delete?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
connect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[]
update?: Prisma.FileChunkUpdateWithWhereUniqueWithoutFileUploadInput | Prisma.FileChunkUpdateWithWhereUniqueWithoutFileUploadInput[]
updateMany?: Prisma.FileChunkUpdateManyWithWhereWithoutFileUploadInput | Prisma.FileChunkUpdateManyWithWhereWithoutFileUploadInput[]
deleteMany?: Prisma.FileChunkScalarWhereInput | Prisma.FileChunkScalarWhereInput[]
}
export type FileChunkCreateWithoutFileUploadInput = {
index: number
data: runtime.Bytes
}
export type FileChunkUncheckedCreateWithoutFileUploadInput = {
id?: number
index: number
data: runtime.Bytes
}
export type FileChunkCreateOrConnectWithoutFileUploadInput = {
where: Prisma.FileChunkWhereUniqueInput
create: Prisma.XOR<Prisma.FileChunkCreateWithoutFileUploadInput, Prisma.FileChunkUncheckedCreateWithoutFileUploadInput>
}
export type FileChunkCreateManyFileUploadInputEnvelope = {
data: Prisma.FileChunkCreateManyFileUploadInput | Prisma.FileChunkCreateManyFileUploadInput[]
skipDuplicates?: boolean
}
export type FileChunkUpsertWithWhereUniqueWithoutFileUploadInput = {
where: Prisma.FileChunkWhereUniqueInput
update: Prisma.XOR<Prisma.FileChunkUpdateWithoutFileUploadInput, Prisma.FileChunkUncheckedUpdateWithoutFileUploadInput>
create: Prisma.XOR<Prisma.FileChunkCreateWithoutFileUploadInput, Prisma.FileChunkUncheckedCreateWithoutFileUploadInput>
}
export type FileChunkUpdateWithWhereUniqueWithoutFileUploadInput = {
where: Prisma.FileChunkWhereUniqueInput
data: Prisma.XOR<Prisma.FileChunkUpdateWithoutFileUploadInput, Prisma.FileChunkUncheckedUpdateWithoutFileUploadInput>
}
export type FileChunkUpdateManyWithWhereWithoutFileUploadInput = {
where: Prisma.FileChunkScalarWhereInput
data: Prisma.XOR<Prisma.FileChunkUpdateManyMutationInput, Prisma.FileChunkUncheckedUpdateManyWithoutFileUploadInput>
}
export type FileChunkScalarWhereInput = {
AND?: Prisma.FileChunkScalarWhereInput | Prisma.FileChunkScalarWhereInput[]
OR?: Prisma.FileChunkScalarWhereInput[]
NOT?: Prisma.FileChunkScalarWhereInput | Prisma.FileChunkScalarWhereInput[]
id?: Prisma.IntFilter<"FileChunk"> | number
fileUploadId?: Prisma.StringFilter<"FileChunk"> | string
index?: Prisma.IntFilter<"FileChunk"> | number
data?: Prisma.BytesFilter<"FileChunk"> | runtime.Bytes
}
export type FileChunkCreateManyFileUploadInput = {
id?: number
index: number
data: runtime.Bytes
}
export type FileChunkUpdateWithoutFileUploadInput = {
index?: Prisma.IntFieldUpdateOperationsInput | number
data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
}
export type FileChunkUncheckedUpdateWithoutFileUploadInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
index?: Prisma.IntFieldUpdateOperationsInput | number
data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
}
export type FileChunkUncheckedUpdateManyWithoutFileUploadInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
index?: Prisma.IntFieldUpdateOperationsInput | number
data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
}
export type FileChunkSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
fileUploadId?: boolean
index?: boolean
data?: boolean
fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileChunk"]>
export type FileChunkSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
fileUploadId?: boolean
index?: boolean
data?: boolean
fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileChunk"]>
export type FileChunkSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
fileUploadId?: boolean
index?: boolean
data?: boolean
fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileChunk"]>
export type FileChunkSelectScalar = {
id?: boolean
fileUploadId?: boolean
index?: boolean
data?: boolean
}
export type FileChunkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fileUploadId" | "index" | "data", ExtArgs["result"]["fileChunk"]>
export type FileChunkInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs<ExtArgs>
}
export type FileChunkIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs<ExtArgs>
}
export type FileChunkIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs<ExtArgs>
}
export type $FileChunkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "FileChunk"
objects: {
fileUpload: Prisma.$FileUploadProgressPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
fileUploadId: string
index: number
data: runtime.Bytes
}, ExtArgs["result"]["fileChunk"]>
composites: {}
}
export type FileChunkGetPayload<S extends boolean | null | undefined | FileChunkDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FileChunkPayload, S>
export type FileChunkCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<FileChunkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: FileChunkCountAggregateInputType | true
}
export interface FileChunkDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FileChunk'], meta: { name: 'FileChunk' } }
/**
* Find zero or one FileChunk that matches the filter.
* @param {FileChunkFindUniqueArgs} args - Arguments to find a FileChunk
* @example
* // Get one FileChunk
* const fileChunk = await prisma.fileChunk.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends FileChunkFindUniqueArgs>(args: Prisma.SelectSubset<T, FileChunkFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FileChunkClient<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one FileChunk that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {FileChunkFindUniqueOrThrowArgs} args - Arguments to find a FileChunk
* @example
* // Get one FileChunk
* const fileChunk = await prisma.fileChunk.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends FileChunkFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FileChunkFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileChunkClient<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first FileChunk 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 {FileChunkFindFirstArgs} args - Arguments to find a FileChunk
* @example
* // Get one FileChunk
* const fileChunk = await prisma.fileChunk.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends FileChunkFindFirstArgs>(args?: Prisma.SelectSubset<T, FileChunkFindFirstArgs<ExtArgs>>): Prisma.Prisma__FileChunkClient<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first FileChunk 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 {FileChunkFindFirstOrThrowArgs} args - Arguments to find a FileChunk
* @example
* // Get one FileChunk
* const fileChunk = await prisma.fileChunk.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends FileChunkFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FileChunkFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileChunkClient<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more FileChunks 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 {FileChunkFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all FileChunks
* const fileChunks = await prisma.fileChunk.findMany()
*
* // Get first 10 FileChunks
* const fileChunks = await prisma.fileChunk.findMany({ take: 10 })
*
* // Only select the `id`
* const fileChunkWithIdOnly = await prisma.fileChunk.findMany({ select: { id: true } })
*
*/
findMany<T extends FileChunkFindManyArgs>(args?: Prisma.SelectSubset<T, FileChunkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a FileChunk.
* @param {FileChunkCreateArgs} args - Arguments to create a FileChunk.
* @example
* // Create one FileChunk
* const FileChunk = await prisma.fileChunk.create({
* data: {
* // ... data to create a FileChunk
* }
* })
*
*/
create<T extends FileChunkCreateArgs>(args: Prisma.SelectSubset<T, FileChunkCreateArgs<ExtArgs>>): Prisma.Prisma__FileChunkClient<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many FileChunks.
* @param {FileChunkCreateManyArgs} args - Arguments to create many FileChunks.
* @example
* // Create many FileChunks
* const fileChunk = await prisma.fileChunk.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends FileChunkCreateManyArgs>(args?: Prisma.SelectSubset<T, FileChunkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many FileChunks and returns the data saved in the database.
* @param {FileChunkCreateManyAndReturnArgs} args - Arguments to create many FileChunks.
* @example
* // Create many FileChunks
* const fileChunk = await prisma.fileChunk.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many FileChunks and only return the `id`
* const fileChunkWithIdOnly = await prisma.fileChunk.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<T extends FileChunkCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FileChunkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a FileChunk.
* @param {FileChunkDeleteArgs} args - Arguments to delete one FileChunk.
* @example
* // Delete one FileChunk
* const FileChunk = await prisma.fileChunk.delete({
* where: {
* // ... filter to delete one FileChunk
* }
* })
*
*/
delete<T extends FileChunkDeleteArgs>(args: Prisma.SelectSubset<T, FileChunkDeleteArgs<ExtArgs>>): Prisma.Prisma__FileChunkClient<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one FileChunk.
* @param {FileChunkUpdateArgs} args - Arguments to update one FileChunk.
* @example
* // Update one FileChunk
* const fileChunk = await prisma.fileChunk.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends FileChunkUpdateArgs>(args: Prisma.SelectSubset<T, FileChunkUpdateArgs<ExtArgs>>): Prisma.Prisma__FileChunkClient<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more FileChunks.
* @param {FileChunkDeleteManyArgs} args - Arguments to filter FileChunks to delete.
* @example
* // Delete a few FileChunks
* const { count } = await prisma.fileChunk.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends FileChunkDeleteManyArgs>(args?: Prisma.SelectSubset<T, FileChunkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more FileChunks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileChunkUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many FileChunks
* const fileChunk = await prisma.fileChunk.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends FileChunkUpdateManyArgs>(args: Prisma.SelectSubset<T, FileChunkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more FileChunks and returns the data updated in the database.
* @param {FileChunkUpdateManyAndReturnArgs} args - Arguments to update many FileChunks.
* @example
* // Update many FileChunks
* const fileChunk = await prisma.fileChunk.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more FileChunks and only return the `id`
* const fileChunkWithIdOnly = await prisma.fileChunk.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<T extends FileChunkUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FileChunkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one FileChunk.
* @param {FileChunkUpsertArgs} args - Arguments to update or create a FileChunk.
* @example
* // Update or create a FileChunk
* const fileChunk = await prisma.fileChunk.upsert({
* create: {
* // ... data to create a FileChunk
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the FileChunk we want to update
* }
* })
*/
upsert<T extends FileChunkUpsertArgs>(args: Prisma.SelectSubset<T, FileChunkUpsertArgs<ExtArgs>>): Prisma.Prisma__FileChunkClient<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of FileChunks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileChunkCountArgs} args - Arguments to filter FileChunks to count.
* @example
* // Count the number of FileChunks
* const count = await prisma.fileChunk.count({
* where: {
* // ... the filter for the FileChunks we want to count
* }
* })
**/
count<T extends FileChunkCountArgs>(
args?: Prisma.Subset<T, FileChunkCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], FileChunkCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a FileChunk.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileChunkAggregateArgs} 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 FileChunkAggregateArgs>(args: Prisma.Subset<T, FileChunkAggregateArgs>): Prisma.PrismaPromise<GetFileChunkAggregateType<T>>
/**
* Group by FileChunk.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileChunkGroupByArgs} 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 FileChunkGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: FileChunkGroupByArgs['orderBy'] }
: { orderBy?: FileChunkGroupByArgs['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, FileChunkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileChunkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the FileChunk model
*/
readonly fields: FileChunkFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for FileChunk.
* 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__FileChunkClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
fileUpload<T extends Prisma.FileUploadProgressDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FileUploadProgressDefaultArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<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 FileChunk model
*/
export interface FileChunkFieldRefs {
readonly id: Prisma.FieldRef<"FileChunk", 'Int'>
readonly fileUploadId: Prisma.FieldRef<"FileChunk", 'String'>
readonly index: Prisma.FieldRef<"FileChunk", 'Int'>
readonly data: Prisma.FieldRef<"FileChunk", 'Bytes'>
}
// Custom InputTypes
/**
* FileChunk findUnique
*/
export type FileChunkFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* Filter, which FileChunk to fetch.
*/
where: Prisma.FileChunkWhereUniqueInput
}
/**
* FileChunk findUniqueOrThrow
*/
export type FileChunkFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* Filter, which FileChunk to fetch.
*/
where: Prisma.FileChunkWhereUniqueInput
}
/**
* FileChunk findFirst
*/
export type FileChunkFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* Filter, which FileChunk to fetch.
*/
where?: Prisma.FileChunkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileChunks to fetch.
*/
orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for FileChunks.
*/
cursor?: Prisma.FileChunkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileChunks 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` FileChunks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileChunks.
*/
distinct?: Prisma.FileChunkScalarFieldEnum | Prisma.FileChunkScalarFieldEnum[]
}
/**
* FileChunk findFirstOrThrow
*/
export type FileChunkFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* Filter, which FileChunk to fetch.
*/
where?: Prisma.FileChunkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileChunks to fetch.
*/
orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for FileChunks.
*/
cursor?: Prisma.FileChunkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileChunks 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` FileChunks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileChunks.
*/
distinct?: Prisma.FileChunkScalarFieldEnum | Prisma.FileChunkScalarFieldEnum[]
}
/**
* FileChunk findMany
*/
export type FileChunkFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* Filter, which FileChunks to fetch.
*/
where?: Prisma.FileChunkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileChunks to fetch.
*/
orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing FileChunks.
*/
cursor?: Prisma.FileChunkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileChunks 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` FileChunks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileChunks.
*/
distinct?: Prisma.FileChunkScalarFieldEnum | Prisma.FileChunkScalarFieldEnum[]
}
/**
* FileChunk create
*/
export type FileChunkCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* The data needed to create a FileChunk.
*/
data: Prisma.XOR<Prisma.FileChunkCreateInput, Prisma.FileChunkUncheckedCreateInput>
}
/**
* FileChunk createMany
*/
export type FileChunkCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many FileChunks.
*/
data: Prisma.FileChunkCreateManyInput | Prisma.FileChunkCreateManyInput[]
skipDuplicates?: boolean
}
/**
* FileChunk createManyAndReturn
*/
export type FileChunkCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* The data used to create many FileChunks.
*/
data: Prisma.FileChunkCreateManyInput | Prisma.FileChunkCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* FileChunk update
*/
export type FileChunkUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* The data needed to update a FileChunk.
*/
data: Prisma.XOR<Prisma.FileChunkUpdateInput, Prisma.FileChunkUncheckedUpdateInput>
/**
* Choose, which FileChunk to update.
*/
where: Prisma.FileChunkWhereUniqueInput
}
/**
* FileChunk updateMany
*/
export type FileChunkUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update FileChunks.
*/
data: Prisma.XOR<Prisma.FileChunkUpdateManyMutationInput, Prisma.FileChunkUncheckedUpdateManyInput>
/**
* Filter which FileChunks to update
*/
where?: Prisma.FileChunkWhereInput
/**
* Limit how many FileChunks to update.
*/
limit?: number
}
/**
* FileChunk updateManyAndReturn
*/
export type FileChunkUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* The data used to update FileChunks.
*/
data: Prisma.XOR<Prisma.FileChunkUpdateManyMutationInput, Prisma.FileChunkUncheckedUpdateManyInput>
/**
* Filter which FileChunks to update
*/
where?: Prisma.FileChunkWhereInput
/**
* Limit how many FileChunks to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* FileChunk upsert
*/
export type FileChunkUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* The filter to search for the FileChunk to update in case it exists.
*/
where: Prisma.FileChunkWhereUniqueInput
/**
* In case the FileChunk found by the `where` argument doesn't exist, create a new FileChunk with this data.
*/
create: Prisma.XOR<Prisma.FileChunkCreateInput, Prisma.FileChunkUncheckedCreateInput>
/**
* In case the FileChunk was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.FileChunkUpdateInput, Prisma.FileChunkUncheckedUpdateInput>
}
/**
* FileChunk delete
*/
export type FileChunkDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
/**
* Filter which FileChunk to delete.
*/
where: Prisma.FileChunkWhereUniqueInput
}
/**
* FileChunk deleteMany
*/
export type FileChunkDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which FileChunks to delete
*/
where?: Prisma.FileChunkWhereInput
/**
* Limit how many FileChunks to delete.
*/
limit?: number
}
/**
* FileChunk without action
*/
export type FileChunkDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileChunk
*/
select?: Prisma.FileChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileChunk
*/
omit?: Prisma.FileChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileChunkInclude<ExtArgs> | null
}