/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateFile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type FileGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof FileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 connectOrCreate?: Prisma.FileCreateOrConnectWithoutLinksInput connect?: Prisma.FileWhereUniqueInput } export type FileUpdateOneRequiredWithoutLinksNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FileCreateOrConnectWithoutLinksInput upsert?: Prisma.FileUpsertWithoutLinksInput connect?: Prisma.FileWhereUniqueInput update?: Prisma.XOR, 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 } export type FileUpsertWithoutLinksInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.FileWhereInput } export type FileUpdateToOneWithWhereWithoutLinksInput = { where?: Prisma.FileWhereInput data: Prisma.XOR } 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 = { links?: boolean | FileCountOutputTypeCountLinksArgs } /** * FileCountOutputType without action */ export type FileCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the FileCountOutputType */ select?: Prisma.FileCountOutputTypeSelect | null } /** * FileCountOutputType without action */ export type FileCountOutputTypeCountLinksArgs = { where?: Prisma.FileEntityLinkWhereInput } export type FileSelect = 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 _count?: boolean | Prisma.FileCountOutputTypeDefaultArgs }, ExtArgs["result"]["file"]> export type FileSelectCreateManyAndReturn = 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 = 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 = 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 = { links?: boolean | Prisma.File$linksArgs _count?: boolean | Prisma.FileCountOutputTypeDefaultArgs } export type FileIncludeCreateManyAndReturn = {} export type FileIncludeUpdateManyAndReturn = {} export type $FilePayload = { name: "File" objects: { links: Prisma.$FileEntityLinkPayload[] } 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 = runtime.Types.Result.GetResult export type FileCountArgs = Omit & { select?: FileCountAggregateInputType | true } export interface FileDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__FileClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FileClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__FileClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__FileClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FileClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FileClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FileClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FileClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: FileGroupByArgs['orderBy'] } : { orderBy?: FileGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetFileGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" links = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | null /** * Filter, which File to fetch. */ where: Prisma.FileWhereUniqueInput } /** * File findUniqueOrThrow */ export type FileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | null /** * Filter, which File to fetch. */ where: Prisma.FileWhereUniqueInput } /** * File findFirst */ export type FileFindFirstArgs = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | 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 = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | 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 = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | 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 = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | null /** * The data needed to create a File. */ data: Prisma.XOR } /** * File createMany */ export type FileCreateManyArgs = { /** * The data used to create many Files. */ data: Prisma.FileCreateManyInput | Prisma.FileCreateManyInput[] skipDuplicates?: boolean } /** * File createManyAndReturn */ export type FileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelectCreateManyAndReturn | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * The data used to create many Files. */ data: Prisma.FileCreateManyInput | Prisma.FileCreateManyInput[] skipDuplicates?: boolean } /** * File update */ export type FileUpdateArgs = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | null /** * The data needed to update a File. */ data: Prisma.XOR /** * Choose, which File to update. */ where: Prisma.FileWhereUniqueInput } /** * File updateMany */ export type FileUpdateManyArgs = { /** * The data used to update Files. */ data: Prisma.XOR /** * Filter which Files to update */ where?: Prisma.FileWhereInput /** * Limit how many Files to update. */ limit?: number } /** * File updateManyAndReturn */ export type FileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelectUpdateManyAndReturn | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * The data used to update Files. */ data: Prisma.XOR /** * Filter which Files to update */ where?: Prisma.FileWhereInput /** * Limit how many Files to update. */ limit?: number } /** * File upsert */ export type FileUpsertArgs = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | 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 /** * In case the File was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * File delete */ export type FileDeleteArgs = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | null /** * Filter which File to delete. */ where: Prisma.FileWhereUniqueInput } /** * File deleteMany */ export type FileDeleteManyArgs = { /** * Filter which Files to delete */ where?: Prisma.FileWhereInput /** * Limit how many Files to delete. */ limit?: number } /** * File.links */ export type File$linksArgs = { /** * Select specific fields to fetch from the FileEntityLink */ select?: Prisma.FileEntityLinkSelect | null /** * Omit specific fields from the FileEntityLink */ omit?: Prisma.FileEntityLinkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileEntityLinkInclude | 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 = { /** * Select specific fields to fetch from the File */ select?: Prisma.FileSelect | null /** * Omit specific fields from the File */ omit?: Prisma.FileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileInclude | null }