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

1902 lines
67 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 `File` 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 File
* A stored file, scoped per tenant. `storageKey` points at the original object
* in the private Hetzner bucket (AD-23); delivery is only via the auth-proxy
* route. Soft-delete via `archivedAt` (archive flag). Hard-delete is a separate
* action (files.delete).
*/
export type FileModel = runtime.Types.Result.DefaultSelection<Prisma.$FilePayload>
export type AggregateFile = {
_count: FileCountAggregateOutputType | null
_avg: FileAvgAggregateOutputType | null
_sum: FileSumAggregateOutputType | null
_min: FileMinAggregateOutputType | null
_max: FileMaxAggregateOutputType | null
}
export type FileAvgAggregateOutputType = {
sizeBytes: number | null
}
export type FileSumAggregateOutputType = {
sizeBytes: number | null
}
export type FileMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
createdByUserId: string | null
displayName: string | null
mimeType: string | null
sizeBytes: number | null
storageKey: string | null
checksumSha256: string | null
previewStatus: $Enums.FilePreviewStatus | null
previewStorageKey: string | null
thumbnailStorageKey: string | null
scanStatus: $Enums.FileScanStatus | null
assignedToUserId: string | null
notes: string | null
source: $Enums.FileSource | null
createdByPortalUserId: string | null
isDemoData: boolean | null
archivedAt: Date | null
}
export type FileMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
createdByUserId: string | null
displayName: string | null
mimeType: string | null
sizeBytes: number | null
storageKey: string | null
checksumSha256: string | null
previewStatus: $Enums.FilePreviewStatus | null
previewStorageKey: string | null
thumbnailStorageKey: string | null
scanStatus: $Enums.FileScanStatus | null
assignedToUserId: string | null
notes: string | null
source: $Enums.FileSource | null
createdByPortalUserId: string | null
isDemoData: boolean | null
archivedAt: Date | null
}
export type FileCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
createdByUserId: number
displayName: number
mimeType: number
sizeBytes: number
storageKey: number
checksumSha256: number
previewStatus: number
previewStorageKey: number
thumbnailStorageKey: number
scanStatus: number
assignedToUserId: number
tags: number
notes: number
source: number
createdByPortalUserId: number
isDemoData: number
archivedAt: number
_all: number
}
export type FileAvgAggregateInputType = {
sizeBytes?: true
}
export type FileSumAggregateInputType = {
sizeBytes?: true
}
export type FileMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
createdByUserId?: true
displayName?: true
mimeType?: true
sizeBytes?: true
storageKey?: true
checksumSha256?: true
previewStatus?: true
previewStorageKey?: true
thumbnailStorageKey?: true
scanStatus?: true
assignedToUserId?: true
notes?: true
source?: true
createdByPortalUserId?: true
isDemoData?: true
archivedAt?: true
}
export type FileMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
createdByUserId?: true
displayName?: true
mimeType?: true
sizeBytes?: true
storageKey?: true
checksumSha256?: true
previewStatus?: true
previewStorageKey?: true
thumbnailStorageKey?: true
scanStatus?: true
assignedToUserId?: true
notes?: true
source?: true
createdByPortalUserId?: true
isDemoData?: true
archivedAt?: true
}
export type FileCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
createdByUserId?: true
displayName?: true
mimeType?: true
sizeBytes?: true
storageKey?: true
checksumSha256?: true
previewStatus?: true
previewStorageKey?: true
thumbnailStorageKey?: true
scanStatus?: true
assignedToUserId?: true
tags?: true
notes?: true
source?: true
createdByPortalUserId?: true
isDemoData?: true
archivedAt?: true
_all?: true
}
export type FileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which File to aggregate.
*/
where?: Prisma.FileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Files to fetch.
*/
orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.FileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Files 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` Files.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Files
**/
_count?: true | FileCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: FileAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: FileSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: FileMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: FileMaxAggregateInputType
}
export type GetFileAggregateType<T extends FileAggregateArgs> = {
[P in keyof T & keyof AggregateFile]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateFile[P]>
: Prisma.GetScalarType<T[P], AggregateFile[P]>
}
export type FileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.FileWhereInput
orderBy?: Prisma.FileOrderByWithAggregationInput | Prisma.FileOrderByWithAggregationInput[]
by: Prisma.FileScalarFieldEnum[] | Prisma.FileScalarFieldEnum
having?: Prisma.FileScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: FileCountAggregateInputType | true
_avg?: FileAvgAggregateInputType
_sum?: FileSumAggregateInputType
_min?: FileMinAggregateInputType
_max?: FileMaxAggregateInputType
}
export type FileGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string
createdByUserId: string
displayName: string
mimeType: string
sizeBytes: number
storageKey: string
checksumSha256: string | null
previewStatus: $Enums.FilePreviewStatus
previewStorageKey: string | null
thumbnailStorageKey: string | null
scanStatus: $Enums.FileScanStatus
assignedToUserId: string | null
tags: string[]
notes: string | null
source: $Enums.FileSource
createdByPortalUserId: string | null
isDemoData: boolean
archivedAt: Date | null
_count: FileCountAggregateOutputType | null
_avg: FileAvgAggregateOutputType | null
_sum: FileSumAggregateOutputType | null
_min: FileMinAggregateOutputType | null
_max: FileMaxAggregateOutputType | null
}
export type GetFileGroupByPayload<T extends FileGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<FileGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof FileGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], FileGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], FileGroupByOutputType[P]>
}
>
>
export type FileWhereInput = {
AND?: Prisma.FileWhereInput | Prisma.FileWhereInput[]
OR?: Prisma.FileWhereInput[]
NOT?: Prisma.FileWhereInput | Prisma.FileWhereInput[]
id?: Prisma.StringFilter<"File"> | string
createdAt?: Prisma.DateTimeFilter<"File"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"File"> | Date | string
tenantId?: Prisma.StringFilter<"File"> | string
createdByUserId?: Prisma.StringFilter<"File"> | string
displayName?: Prisma.StringFilter<"File"> | string
mimeType?: Prisma.StringFilter<"File"> | string
sizeBytes?: Prisma.IntFilter<"File"> | number
storageKey?: Prisma.StringFilter<"File"> | string
checksumSha256?: Prisma.StringNullableFilter<"File"> | string | null
previewStatus?: Prisma.EnumFilePreviewStatusFilter<"File"> | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.StringNullableFilter<"File"> | string | null
thumbnailStorageKey?: Prisma.StringNullableFilter<"File"> | string | null
scanStatus?: Prisma.EnumFileScanStatusFilter<"File"> | $Enums.FileScanStatus
assignedToUserId?: Prisma.StringNullableFilter<"File"> | string | null
tags?: Prisma.StringNullableListFilter<"File">
notes?: Prisma.StringNullableFilter<"File"> | string | null
source?: Prisma.EnumFileSourceFilter<"File"> | $Enums.FileSource
createdByPortalUserId?: Prisma.StringNullableFilter<"File"> | string | null
isDemoData?: Prisma.BoolFilter<"File"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"File"> | Date | string | null
links?: Prisma.FileEntityLinkListRelationFilter
}
export type FileOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
displayName?: Prisma.SortOrder
mimeType?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrderInput | Prisma.SortOrder
previewStatus?: Prisma.SortOrder
previewStorageKey?: Prisma.SortOrderInput | Prisma.SortOrder
thumbnailStorageKey?: Prisma.SortOrderInput | Prisma.SortOrder
scanStatus?: Prisma.SortOrder
assignedToUserId?: Prisma.SortOrderInput | Prisma.SortOrder
tags?: Prisma.SortOrder
notes?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.SortOrder
createdByPortalUserId?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
links?: Prisma.FileEntityLinkOrderByRelationAggregateInput
}
export type FileWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.FileWhereInput | Prisma.FileWhereInput[]
OR?: Prisma.FileWhereInput[]
NOT?: Prisma.FileWhereInput | Prisma.FileWhereInput[]
createdAt?: Prisma.DateTimeFilter<"File"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"File"> | Date | string
tenantId?: Prisma.StringFilter<"File"> | string
createdByUserId?: Prisma.StringFilter<"File"> | string
displayName?: Prisma.StringFilter<"File"> | string
mimeType?: Prisma.StringFilter<"File"> | string
sizeBytes?: Prisma.IntFilter<"File"> | number
storageKey?: Prisma.StringFilter<"File"> | string
checksumSha256?: Prisma.StringNullableFilter<"File"> | string | null
previewStatus?: Prisma.EnumFilePreviewStatusFilter<"File"> | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.StringNullableFilter<"File"> | string | null
thumbnailStorageKey?: Prisma.StringNullableFilter<"File"> | string | null
scanStatus?: Prisma.EnumFileScanStatusFilter<"File"> | $Enums.FileScanStatus
assignedToUserId?: Prisma.StringNullableFilter<"File"> | string | null
tags?: Prisma.StringNullableListFilter<"File">
notes?: Prisma.StringNullableFilter<"File"> | string | null
source?: Prisma.EnumFileSourceFilter<"File"> | $Enums.FileSource
createdByPortalUserId?: Prisma.StringNullableFilter<"File"> | string | null
isDemoData?: Prisma.BoolFilter<"File"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"File"> | Date | string | null
links?: Prisma.FileEntityLinkListRelationFilter
}, "id">
export type FileOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
displayName?: Prisma.SortOrder
mimeType?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrderInput | Prisma.SortOrder
previewStatus?: Prisma.SortOrder
previewStorageKey?: Prisma.SortOrderInput | Prisma.SortOrder
thumbnailStorageKey?: Prisma.SortOrderInput | Prisma.SortOrder
scanStatus?: Prisma.SortOrder
assignedToUserId?: Prisma.SortOrderInput | Prisma.SortOrder
tags?: Prisma.SortOrder
notes?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.SortOrder
createdByPortalUserId?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.FileCountOrderByAggregateInput
_avg?: Prisma.FileAvgOrderByAggregateInput
_max?: Prisma.FileMaxOrderByAggregateInput
_min?: Prisma.FileMinOrderByAggregateInput
_sum?: Prisma.FileSumOrderByAggregateInput
}
export type FileScalarWhereWithAggregatesInput = {
AND?: Prisma.FileScalarWhereWithAggregatesInput | Prisma.FileScalarWhereWithAggregatesInput[]
OR?: Prisma.FileScalarWhereWithAggregatesInput[]
NOT?: Prisma.FileScalarWhereWithAggregatesInput | Prisma.FileScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"File"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"File"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"File"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"File"> | string
createdByUserId?: Prisma.StringWithAggregatesFilter<"File"> | string
displayName?: Prisma.StringWithAggregatesFilter<"File"> | string
mimeType?: Prisma.StringWithAggregatesFilter<"File"> | string
sizeBytes?: Prisma.IntWithAggregatesFilter<"File"> | number
storageKey?: Prisma.StringWithAggregatesFilter<"File"> | string
checksumSha256?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null
previewStatus?: Prisma.EnumFilePreviewStatusWithAggregatesFilter<"File"> | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null
thumbnailStorageKey?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null
scanStatus?: Prisma.EnumFileScanStatusWithAggregatesFilter<"File"> | $Enums.FileScanStatus
assignedToUserId?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null
tags?: Prisma.StringNullableListFilter<"File">
notes?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null
source?: Prisma.EnumFileSourceWithAggregatesFilter<"File"> | $Enums.FileSource
createdByPortalUserId?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null
isDemoData?: Prisma.BoolWithAggregatesFilter<"File"> | boolean
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"File"> | Date | string | null
}
export type FileCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId: string
displayName: string
mimeType: string
sizeBytes: number
storageKey: string
checksumSha256?: string | null
previewStatus?: $Enums.FilePreviewStatus
previewStorageKey?: string | null
thumbnailStorageKey?: string | null
scanStatus?: $Enums.FileScanStatus
assignedToUserId?: string | null
tags?: Prisma.FileCreatetagsInput | string[]
notes?: string | null
source?: $Enums.FileSource
createdByPortalUserId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
links?: Prisma.FileEntityLinkCreateNestedManyWithoutFileInput
}
export type FileUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId: string
displayName: string
mimeType: string
sizeBytes: number
storageKey: string
checksumSha256?: string | null
previewStatus?: $Enums.FilePreviewStatus
previewStorageKey?: string | null
thumbnailStorageKey?: string | null
scanStatus?: $Enums.FileScanStatus
assignedToUserId?: string | null
tags?: Prisma.FileCreatetagsInput | string[]
notes?: string | null
source?: $Enums.FileSource
createdByPortalUserId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
links?: Prisma.FileEntityLinkUncheckedCreateNestedManyWithoutFileInput
}
export type FileUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
displayName?: Prisma.StringFieldUpdateOperationsInput | string
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
previewStatus?: Prisma.EnumFilePreviewStatusFieldUpdateOperationsInput | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
thumbnailStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scanStatus?: Prisma.EnumFileScanStatusFieldUpdateOperationsInput | $Enums.FileScanStatus
assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tags?: Prisma.FileUpdatetagsInput | string[]
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.EnumFileSourceFieldUpdateOperationsInput | $Enums.FileSource
createdByPortalUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
links?: Prisma.FileEntityLinkUpdateManyWithoutFileNestedInput
}
export type FileUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
displayName?: Prisma.StringFieldUpdateOperationsInput | string
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
previewStatus?: Prisma.EnumFilePreviewStatusFieldUpdateOperationsInput | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
thumbnailStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scanStatus?: Prisma.EnumFileScanStatusFieldUpdateOperationsInput | $Enums.FileScanStatus
assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tags?: Prisma.FileUpdatetagsInput | string[]
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.EnumFileSourceFieldUpdateOperationsInput | $Enums.FileSource
createdByPortalUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
links?: Prisma.FileEntityLinkUncheckedUpdateManyWithoutFileNestedInput
}
export type FileCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId: string
displayName: string
mimeType: string
sizeBytes: number
storageKey: string
checksumSha256?: string | null
previewStatus?: $Enums.FilePreviewStatus
previewStorageKey?: string | null
thumbnailStorageKey?: string | null
scanStatus?: $Enums.FileScanStatus
assignedToUserId?: string | null
tags?: Prisma.FileCreatetagsInput | string[]
notes?: string | null
source?: $Enums.FileSource
createdByPortalUserId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type FileUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
displayName?: Prisma.StringFieldUpdateOperationsInput | string
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
previewStatus?: Prisma.EnumFilePreviewStatusFieldUpdateOperationsInput | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
thumbnailStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scanStatus?: Prisma.EnumFileScanStatusFieldUpdateOperationsInput | $Enums.FileScanStatus
assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tags?: Prisma.FileUpdatetagsInput | string[]
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.EnumFileSourceFieldUpdateOperationsInput | $Enums.FileSource
createdByPortalUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type FileUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
displayName?: Prisma.StringFieldUpdateOperationsInput | string
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
previewStatus?: Prisma.EnumFilePreviewStatusFieldUpdateOperationsInput | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
thumbnailStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scanStatus?: Prisma.EnumFileScanStatusFieldUpdateOperationsInput | $Enums.FileScanStatus
assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tags?: Prisma.FileUpdatetagsInput | string[]
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.EnumFileSourceFieldUpdateOperationsInput | $Enums.FileSource
createdByPortalUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type FileCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
displayName?: Prisma.SortOrder
mimeType?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrder
previewStatus?: Prisma.SortOrder
previewStorageKey?: Prisma.SortOrder
thumbnailStorageKey?: Prisma.SortOrder
scanStatus?: Prisma.SortOrder
assignedToUserId?: Prisma.SortOrder
tags?: Prisma.SortOrder
notes?: Prisma.SortOrder
source?: Prisma.SortOrder
createdByPortalUserId?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type FileAvgOrderByAggregateInput = {
sizeBytes?: Prisma.SortOrder
}
export type FileMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
displayName?: Prisma.SortOrder
mimeType?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrder
previewStatus?: Prisma.SortOrder
previewStorageKey?: Prisma.SortOrder
thumbnailStorageKey?: Prisma.SortOrder
scanStatus?: Prisma.SortOrder
assignedToUserId?: Prisma.SortOrder
notes?: Prisma.SortOrder
source?: Prisma.SortOrder
createdByPortalUserId?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type FileMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
displayName?: Prisma.SortOrder
mimeType?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrder
previewStatus?: Prisma.SortOrder
previewStorageKey?: Prisma.SortOrder
thumbnailStorageKey?: Prisma.SortOrder
scanStatus?: Prisma.SortOrder
assignedToUserId?: Prisma.SortOrder
notes?: Prisma.SortOrder
source?: Prisma.SortOrder
createdByPortalUserId?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type FileSumOrderByAggregateInput = {
sizeBytes?: Prisma.SortOrder
}
export type FileScalarRelationFilter = {
is?: Prisma.FileWhereInput
isNot?: Prisma.FileWhereInput
}
export type FileCreatetagsInput = {
set: string[]
}
export type EnumFilePreviewStatusFieldUpdateOperationsInput = {
set?: $Enums.FilePreviewStatus
}
export type EnumFileScanStatusFieldUpdateOperationsInput = {
set?: $Enums.FileScanStatus
}
export type FileUpdatetagsInput = {
set?: string[]
push?: string | string[]
}
export type EnumFileSourceFieldUpdateOperationsInput = {
set?: $Enums.FileSource
}
export type FileCreateNestedOneWithoutLinksInput = {
create?: Prisma.XOR<Prisma.FileCreateWithoutLinksInput, Prisma.FileUncheckedCreateWithoutLinksInput>
connectOrCreate?: Prisma.FileCreateOrConnectWithoutLinksInput
connect?: Prisma.FileWhereUniqueInput
}
export type FileUpdateOneRequiredWithoutLinksNestedInput = {
create?: Prisma.XOR<Prisma.FileCreateWithoutLinksInput, Prisma.FileUncheckedCreateWithoutLinksInput>
connectOrCreate?: Prisma.FileCreateOrConnectWithoutLinksInput
upsert?: Prisma.FileUpsertWithoutLinksInput
connect?: Prisma.FileWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.FileUpdateToOneWithWhereWithoutLinksInput, Prisma.FileUpdateWithoutLinksInput>, Prisma.FileUncheckedUpdateWithoutLinksInput>
}
export type FileCreateWithoutLinksInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId: string
displayName: string
mimeType: string
sizeBytes: number
storageKey: string
checksumSha256?: string | null
previewStatus?: $Enums.FilePreviewStatus
previewStorageKey?: string | null
thumbnailStorageKey?: string | null
scanStatus?: $Enums.FileScanStatus
assignedToUserId?: string | null
tags?: Prisma.FileCreatetagsInput | string[]
notes?: string | null
source?: $Enums.FileSource
createdByPortalUserId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type FileUncheckedCreateWithoutLinksInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId: string
displayName: string
mimeType: string
sizeBytes: number
storageKey: string
checksumSha256?: string | null
previewStatus?: $Enums.FilePreviewStatus
previewStorageKey?: string | null
thumbnailStorageKey?: string | null
scanStatus?: $Enums.FileScanStatus
assignedToUserId?: string | null
tags?: Prisma.FileCreatetagsInput | string[]
notes?: string | null
source?: $Enums.FileSource
createdByPortalUserId?: string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type FileCreateOrConnectWithoutLinksInput = {
where: Prisma.FileWhereUniqueInput
create: Prisma.XOR<Prisma.FileCreateWithoutLinksInput, Prisma.FileUncheckedCreateWithoutLinksInput>
}
export type FileUpsertWithoutLinksInput = {
update: Prisma.XOR<Prisma.FileUpdateWithoutLinksInput, Prisma.FileUncheckedUpdateWithoutLinksInput>
create: Prisma.XOR<Prisma.FileCreateWithoutLinksInput, Prisma.FileUncheckedCreateWithoutLinksInput>
where?: Prisma.FileWhereInput
}
export type FileUpdateToOneWithWhereWithoutLinksInput = {
where?: Prisma.FileWhereInput
data: Prisma.XOR<Prisma.FileUpdateWithoutLinksInput, Prisma.FileUncheckedUpdateWithoutLinksInput>
}
export type FileUpdateWithoutLinksInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
displayName?: Prisma.StringFieldUpdateOperationsInput | string
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
previewStatus?: Prisma.EnumFilePreviewStatusFieldUpdateOperationsInput | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
thumbnailStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scanStatus?: Prisma.EnumFileScanStatusFieldUpdateOperationsInput | $Enums.FileScanStatus
assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tags?: Prisma.FileUpdatetagsInput | string[]
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.EnumFileSourceFieldUpdateOperationsInput | $Enums.FileSource
createdByPortalUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type FileUncheckedUpdateWithoutLinksInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
displayName?: Prisma.StringFieldUpdateOperationsInput | string
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
previewStatus?: Prisma.EnumFilePreviewStatusFieldUpdateOperationsInput | $Enums.FilePreviewStatus
previewStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
thumbnailStorageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scanStatus?: Prisma.EnumFileScanStatusFieldUpdateOperationsInput | $Enums.FileScanStatus
assignedToUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tags?: Prisma.FileUpdatetagsInput | string[]
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
source?: Prisma.EnumFileSourceFieldUpdateOperationsInput | $Enums.FileSource
createdByPortalUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
/**
* Count Type FileCountOutputType
*/
export type FileCountOutputType = {
links: number
}
export type FileCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
links?: boolean | FileCountOutputTypeCountLinksArgs
}
/**
* FileCountOutputType without action
*/
export type FileCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileCountOutputType
*/
select?: Prisma.FileCountOutputTypeSelect<ExtArgs> | null
}
/**
* FileCountOutputType without action
*/
export type FileCountOutputTypeCountLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.FileEntityLinkWhereInput
}
export type FileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
displayName?: boolean
mimeType?: boolean
sizeBytes?: boolean
storageKey?: boolean
checksumSha256?: boolean
previewStatus?: boolean
previewStorageKey?: boolean
thumbnailStorageKey?: boolean
scanStatus?: boolean
assignedToUserId?: boolean
tags?: boolean
notes?: boolean
source?: boolean
createdByPortalUserId?: boolean
isDemoData?: boolean
archivedAt?: boolean
links?: boolean | Prisma.File$linksArgs<ExtArgs>
_count?: boolean | Prisma.FileCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["file"]>
export type FileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
displayName?: boolean
mimeType?: boolean
sizeBytes?: boolean
storageKey?: boolean
checksumSha256?: boolean
previewStatus?: boolean
previewStorageKey?: boolean
thumbnailStorageKey?: boolean
scanStatus?: boolean
assignedToUserId?: boolean
tags?: boolean
notes?: boolean
source?: boolean
createdByPortalUserId?: boolean
isDemoData?: boolean
archivedAt?: boolean
}, ExtArgs["result"]["file"]>
export type FileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
displayName?: boolean
mimeType?: boolean
sizeBytes?: boolean
storageKey?: boolean
checksumSha256?: boolean
previewStatus?: boolean
previewStorageKey?: boolean
thumbnailStorageKey?: boolean
scanStatus?: boolean
assignedToUserId?: boolean
tags?: boolean
notes?: boolean
source?: boolean
createdByPortalUserId?: boolean
isDemoData?: boolean
archivedAt?: boolean
}, ExtArgs["result"]["file"]>
export type FileSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
displayName?: boolean
mimeType?: boolean
sizeBytes?: boolean
storageKey?: boolean
checksumSha256?: boolean
previewStatus?: boolean
previewStorageKey?: boolean
thumbnailStorageKey?: boolean
scanStatus?: boolean
assignedToUserId?: boolean
tags?: boolean
notes?: boolean
source?: boolean
createdByPortalUserId?: boolean
isDemoData?: boolean
archivedAt?: boolean
}
export type FileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "createdByUserId" | "displayName" | "mimeType" | "sizeBytes" | "storageKey" | "checksumSha256" | "previewStatus" | "previewStorageKey" | "thumbnailStorageKey" | "scanStatus" | "assignedToUserId" | "tags" | "notes" | "source" | "createdByPortalUserId" | "isDemoData" | "archivedAt", ExtArgs["result"]["file"]>
export type FileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
links?: boolean | Prisma.File$linksArgs<ExtArgs>
_count?: boolean | Prisma.FileCountOutputTypeDefaultArgs<ExtArgs>
}
export type FileIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type FileIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $FilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "File"
objects: {
links: Prisma.$FileEntityLinkPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string
createdByUserId: string
displayName: string
mimeType: string
sizeBytes: number
storageKey: string
checksumSha256: string | null
previewStatus: $Enums.FilePreviewStatus
previewStorageKey: string | null
thumbnailStorageKey: string | null
scanStatus: $Enums.FileScanStatus
assignedToUserId: string | null
tags: string[]
notes: string | null
source: $Enums.FileSource
createdByPortalUserId: string | null
isDemoData: boolean
archivedAt: Date | null
}, ExtArgs["result"]["file"]>
composites: {}
}
export type FileGetPayload<S extends boolean | null | undefined | FileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FilePayload, S>
export type FileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<FileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: FileCountAggregateInputType | true
}
export interface FileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['File'], meta: { name: 'File' } }
/**
* Find zero or one File that matches the filter.
* @param {FileFindUniqueArgs} args - Arguments to find a File
* @example
* // Get one File
* const file = await prisma.file.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends FileFindUniqueArgs>(args: Prisma.SelectSubset<T, FileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one File that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {FileFindUniqueOrThrowArgs} args - Arguments to find a File
* @example
* // Get one File
* const file = await prisma.file.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends FileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first File 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 {FileFindFirstArgs} args - Arguments to find a File
* @example
* // Get one File
* const file = await prisma.file.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends FileFindFirstArgs>(args?: Prisma.SelectSubset<T, FileFindFirstArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first File 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 {FileFindFirstOrThrowArgs} args - Arguments to find a File
* @example
* // Get one File
* const file = await prisma.file.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends FileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Files 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 {FileFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Files
* const files = await prisma.file.findMany()
*
* // Get first 10 Files
* const files = await prisma.file.findMany({ take: 10 })
*
* // Only select the `id`
* const fileWithIdOnly = await prisma.file.findMany({ select: { id: true } })
*
*/
findMany<T extends FileFindManyArgs>(args?: Prisma.SelectSubset<T, FileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a File.
* @param {FileCreateArgs} args - Arguments to create a File.
* @example
* // Create one File
* const File = await prisma.file.create({
* data: {
* // ... data to create a File
* }
* })
*
*/
create<T extends FileCreateArgs>(args: Prisma.SelectSubset<T, FileCreateArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Files.
* @param {FileCreateManyArgs} args - Arguments to create many Files.
* @example
* // Create many Files
* const file = await prisma.file.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends FileCreateManyArgs>(args?: Prisma.SelectSubset<T, FileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Files and returns the data saved in the database.
* @param {FileCreateManyAndReturnArgs} args - Arguments to create many Files.
* @example
* // Create many Files
* const file = await prisma.file.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Files and only return the `id`
* const fileWithIdOnly = await prisma.file.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 FileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a File.
* @param {FileDeleteArgs} args - Arguments to delete one File.
* @example
* // Delete one File
* const File = await prisma.file.delete({
* where: {
* // ... filter to delete one File
* }
* })
*
*/
delete<T extends FileDeleteArgs>(args: Prisma.SelectSubset<T, FileDeleteArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one File.
* @param {FileUpdateArgs} args - Arguments to update one File.
* @example
* // Update one File
* const file = await prisma.file.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends FileUpdateArgs>(args: Prisma.SelectSubset<T, FileUpdateArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Files.
* @param {FileDeleteManyArgs} args - Arguments to filter Files to delete.
* @example
* // Delete a few Files
* const { count } = await prisma.file.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends FileDeleteManyArgs>(args?: Prisma.SelectSubset<T, FileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Files.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Files
* const file = await prisma.file.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends FileUpdateManyArgs>(args: Prisma.SelectSubset<T, FileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Files and returns the data updated in the database.
* @param {FileUpdateManyAndReturnArgs} args - Arguments to update many Files.
* @example
* // Update many Files
* const file = await prisma.file.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Files and only return the `id`
* const fileWithIdOnly = await prisma.file.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 FileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one File.
* @param {FileUpsertArgs} args - Arguments to update or create a File.
* @example
* // Update or create a File
* const file = await prisma.file.upsert({
* create: {
* // ... data to create a File
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the File we want to update
* }
* })
*/
upsert<T extends FileUpsertArgs>(args: Prisma.SelectSubset<T, FileUpsertArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Files.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileCountArgs} args - Arguments to filter Files to count.
* @example
* // Count the number of Files
* const count = await prisma.file.count({
* where: {
* // ... the filter for the Files we want to count
* }
* })
**/
count<T extends FileCountArgs>(
args?: Prisma.Subset<T, FileCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], FileCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a File.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileAggregateArgs} 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 FileAggregateArgs>(args: Prisma.Subset<T, FileAggregateArgs>): Prisma.PrismaPromise<GetFileAggregateType<T>>
/**
* Group by File.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileGroupByArgs} 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 FileGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: FileGroupByArgs['orderBy'] }
: { orderBy?: FileGroupByArgs['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, FileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the File model
*/
readonly fields: FileFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for File.
* 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__FileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
links<T extends Prisma.File$linksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.File$linksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<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 File model
*/
export interface FileFieldRefs {
readonly id: Prisma.FieldRef<"File", 'String'>
readonly createdAt: Prisma.FieldRef<"File", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"File", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"File", 'String'>
readonly createdByUserId: Prisma.FieldRef<"File", 'String'>
readonly displayName: Prisma.FieldRef<"File", 'String'>
readonly mimeType: Prisma.FieldRef<"File", 'String'>
readonly sizeBytes: Prisma.FieldRef<"File", 'Int'>
readonly storageKey: Prisma.FieldRef<"File", 'String'>
readonly checksumSha256: Prisma.FieldRef<"File", 'String'>
readonly previewStatus: Prisma.FieldRef<"File", 'FilePreviewStatus'>
readonly previewStorageKey: Prisma.FieldRef<"File", 'String'>
readonly thumbnailStorageKey: Prisma.FieldRef<"File", 'String'>
readonly scanStatus: Prisma.FieldRef<"File", 'FileScanStatus'>
readonly assignedToUserId: Prisma.FieldRef<"File", 'String'>
readonly tags: Prisma.FieldRef<"File", 'String[]'>
readonly notes: Prisma.FieldRef<"File", 'String'>
readonly source: Prisma.FieldRef<"File", 'FileSource'>
readonly createdByPortalUserId: Prisma.FieldRef<"File", 'String'>
readonly isDemoData: Prisma.FieldRef<"File", 'Boolean'>
readonly archivedAt: Prisma.FieldRef<"File", 'DateTime'>
}
// Custom InputTypes
/**
* File findUnique
*/
export type FileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* Filter, which File to fetch.
*/
where: Prisma.FileWhereUniqueInput
}
/**
* File findUniqueOrThrow
*/
export type FileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* Filter, which File to fetch.
*/
where: Prisma.FileWhereUniqueInput
}
/**
* File findFirst
*/
export type FileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* Filter, which File to fetch.
*/
where?: Prisma.FileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Files to fetch.
*/
orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Files.
*/
cursor?: Prisma.FileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Files 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` Files.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Files.
*/
distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[]
}
/**
* File findFirstOrThrow
*/
export type FileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* Filter, which File to fetch.
*/
where?: Prisma.FileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Files to fetch.
*/
orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Files.
*/
cursor?: Prisma.FileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Files 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` Files.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Files.
*/
distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[]
}
/**
* File findMany
*/
export type FileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* Filter, which Files to fetch.
*/
where?: Prisma.FileWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Files to fetch.
*/
orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Files.
*/
cursor?: Prisma.FileWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Files 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` Files.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Files.
*/
distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[]
}
/**
* File create
*/
export type FileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* The data needed to create a File.
*/
data: Prisma.XOR<Prisma.FileCreateInput, Prisma.FileUncheckedCreateInput>
}
/**
* File createMany
*/
export type FileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Files.
*/
data: Prisma.FileCreateManyInput | Prisma.FileCreateManyInput[]
skipDuplicates?: boolean
}
/**
* File createManyAndReturn
*/
export type FileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* The data used to create many Files.
*/
data: Prisma.FileCreateManyInput | Prisma.FileCreateManyInput[]
skipDuplicates?: boolean
}
/**
* File update
*/
export type FileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* The data needed to update a File.
*/
data: Prisma.XOR<Prisma.FileUpdateInput, Prisma.FileUncheckedUpdateInput>
/**
* Choose, which File to update.
*/
where: Prisma.FileWhereUniqueInput
}
/**
* File updateMany
*/
export type FileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Files.
*/
data: Prisma.XOR<Prisma.FileUpdateManyMutationInput, Prisma.FileUncheckedUpdateManyInput>
/**
* Filter which Files to update
*/
where?: Prisma.FileWhereInput
/**
* Limit how many Files to update.
*/
limit?: number
}
/**
* File updateManyAndReturn
*/
export type FileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* The data used to update Files.
*/
data: Prisma.XOR<Prisma.FileUpdateManyMutationInput, Prisma.FileUncheckedUpdateManyInput>
/**
* Filter which Files to update
*/
where?: Prisma.FileWhereInput
/**
* Limit how many Files to update.
*/
limit?: number
}
/**
* File upsert
*/
export type FileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* The filter to search for the File to update in case it exists.
*/
where: Prisma.FileWhereUniqueInput
/**
* In case the File found by the `where` argument doesn't exist, create a new File with this data.
*/
create: Prisma.XOR<Prisma.FileCreateInput, Prisma.FileUncheckedCreateInput>
/**
* In case the File was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.FileUpdateInput, Prisma.FileUncheckedUpdateInput>
}
/**
* File delete
*/
export type FileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
/**
* Filter which File to delete.
*/
where: Prisma.FileWhereUniqueInput
}
/**
* File deleteMany
*/
export type FileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Files to delete
*/
where?: Prisma.FileWhereInput
/**
* Limit how many Files to delete.
*/
limit?: number
}
/**
* File.links
*/
export type File$linksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileEntityLink
*/
select?: Prisma.FileEntityLinkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileEntityLink
*/
omit?: Prisma.FileEntityLinkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileEntityLinkInclude<ExtArgs> | null
where?: Prisma.FileEntityLinkWhereInput
orderBy?: Prisma.FileEntityLinkOrderByWithRelationInput | Prisma.FileEntityLinkOrderByWithRelationInput[]
cursor?: Prisma.FileEntityLinkWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.FileEntityLinkScalarFieldEnum | Prisma.FileEntityLinkScalarFieldEnum[]
}
/**
* File without action
*/
export type FileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the File
*/
select?: Prisma.FileSelect<ExtArgs> | null
/**
* Omit specific fields from the File
*/
omit?: Prisma.FileOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileInclude<ExtArgs> | null
}