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

1464 lines
56 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 `FileEntityLink` 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 FileEntityLink
* Polymorphic link of a file to any entity (cross-cutting). `entityType` +
* `entityId` address the target entity, `linkRole` is an optional role label
* (e.g. "contract", "photo").
*/
export type FileEntityLinkModel = runtime.Types.Result.DefaultSelection<Prisma.$FileEntityLinkPayload>
export type AggregateFileEntityLink = {
_count: FileEntityLinkCountAggregateOutputType | null
_min: FileEntityLinkMinAggregateOutputType | null
_max: FileEntityLinkMaxAggregateOutputType | null
}
export type FileEntityLinkMinAggregateOutputType = {
id: string | null
createdAt: Date | null
tenantId: string | null
createdByUserId: string | null
fileId: string | null
entityType: $Enums.FileEntityType | null
entityId: string | null
linkRole: string | null
}
export type FileEntityLinkMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
tenantId: string | null
createdByUserId: string | null
fileId: string | null
entityType: $Enums.FileEntityType | null
entityId: string | null
linkRole: string | null
}
export type FileEntityLinkCountAggregateOutputType = {
id: number
createdAt: number
tenantId: number
createdByUserId: number
fileId: number
entityType: number
entityId: number
linkRole: number
_all: number
}
export type FileEntityLinkMinAggregateInputType = {
id?: true
createdAt?: true
tenantId?: true
createdByUserId?: true
fileId?: true
entityType?: true
entityId?: true
linkRole?: true
}
export type FileEntityLinkMaxAggregateInputType = {
id?: true
createdAt?: true
tenantId?: true
createdByUserId?: true
fileId?: true
entityType?: true
entityId?: true
linkRole?: true
}
export type FileEntityLinkCountAggregateInputType = {
id?: true
createdAt?: true
tenantId?: true
createdByUserId?: true
fileId?: true
entityType?: true
entityId?: true
linkRole?: true
_all?: true
}
export type FileEntityLinkAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which FileEntityLink to aggregate.
*/
where?: Prisma.FileEntityLinkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileEntityLinks to fetch.
*/
orderBy?: Prisma.FileEntityLinkOrderByWithRelationInput | Prisma.FileEntityLinkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.FileEntityLinkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileEntityLinks 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` FileEntityLinks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned FileEntityLinks
**/
_count?: true | FileEntityLinkCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: FileEntityLinkMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: FileEntityLinkMaxAggregateInputType
}
export type GetFileEntityLinkAggregateType<T extends FileEntityLinkAggregateArgs> = {
[P in keyof T & keyof AggregateFileEntityLink]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateFileEntityLink[P]>
: Prisma.GetScalarType<T[P], AggregateFileEntityLink[P]>
}
export type FileEntityLinkGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.FileEntityLinkWhereInput
orderBy?: Prisma.FileEntityLinkOrderByWithAggregationInput | Prisma.FileEntityLinkOrderByWithAggregationInput[]
by: Prisma.FileEntityLinkScalarFieldEnum[] | Prisma.FileEntityLinkScalarFieldEnum
having?: Prisma.FileEntityLinkScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: FileEntityLinkCountAggregateInputType | true
_min?: FileEntityLinkMinAggregateInputType
_max?: FileEntityLinkMaxAggregateInputType
}
export type FileEntityLinkGroupByOutputType = {
id: string
createdAt: Date
tenantId: string
createdByUserId: string
fileId: string
entityType: $Enums.FileEntityType
entityId: string
linkRole: string | null
_count: FileEntityLinkCountAggregateOutputType | null
_min: FileEntityLinkMinAggregateOutputType | null
_max: FileEntityLinkMaxAggregateOutputType | null
}
export type GetFileEntityLinkGroupByPayload<T extends FileEntityLinkGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<FileEntityLinkGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof FileEntityLinkGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], FileEntityLinkGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], FileEntityLinkGroupByOutputType[P]>
}
>
>
export type FileEntityLinkWhereInput = {
AND?: Prisma.FileEntityLinkWhereInput | Prisma.FileEntityLinkWhereInput[]
OR?: Prisma.FileEntityLinkWhereInput[]
NOT?: Prisma.FileEntityLinkWhereInput | Prisma.FileEntityLinkWhereInput[]
id?: Prisma.StringFilter<"FileEntityLink"> | string
createdAt?: Prisma.DateTimeFilter<"FileEntityLink"> | Date | string
tenantId?: Prisma.StringFilter<"FileEntityLink"> | string
createdByUserId?: Prisma.StringFilter<"FileEntityLink"> | string
fileId?: Prisma.StringFilter<"FileEntityLink"> | string
entityType?: Prisma.EnumFileEntityTypeFilter<"FileEntityLink"> | $Enums.FileEntityType
entityId?: Prisma.StringFilter<"FileEntityLink"> | string
linkRole?: Prisma.StringNullableFilter<"FileEntityLink"> | string | null
file?: Prisma.XOR<Prisma.FileScalarRelationFilter, Prisma.FileWhereInput>
}
export type FileEntityLinkOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
fileId?: Prisma.SortOrder
entityType?: Prisma.SortOrder
entityId?: Prisma.SortOrder
linkRole?: Prisma.SortOrderInput | Prisma.SortOrder
file?: Prisma.FileOrderByWithRelationInput
}
export type FileEntityLinkWhereUniqueInput = Prisma.AtLeast<{
id?: string
fileId_entityType_entityId?: Prisma.FileEntityLinkFileIdEntityTypeEntityIdCompoundUniqueInput
AND?: Prisma.FileEntityLinkWhereInput | Prisma.FileEntityLinkWhereInput[]
OR?: Prisma.FileEntityLinkWhereInput[]
NOT?: Prisma.FileEntityLinkWhereInput | Prisma.FileEntityLinkWhereInput[]
createdAt?: Prisma.DateTimeFilter<"FileEntityLink"> | Date | string
tenantId?: Prisma.StringFilter<"FileEntityLink"> | string
createdByUserId?: Prisma.StringFilter<"FileEntityLink"> | string
fileId?: Prisma.StringFilter<"FileEntityLink"> | string
entityType?: Prisma.EnumFileEntityTypeFilter<"FileEntityLink"> | $Enums.FileEntityType
entityId?: Prisma.StringFilter<"FileEntityLink"> | string
linkRole?: Prisma.StringNullableFilter<"FileEntityLink"> | string | null
file?: Prisma.XOR<Prisma.FileScalarRelationFilter, Prisma.FileWhereInput>
}, "id" | "fileId_entityType_entityId">
export type FileEntityLinkOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
fileId?: Prisma.SortOrder
entityType?: Prisma.SortOrder
entityId?: Prisma.SortOrder
linkRole?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.FileEntityLinkCountOrderByAggregateInput
_max?: Prisma.FileEntityLinkMaxOrderByAggregateInput
_min?: Prisma.FileEntityLinkMinOrderByAggregateInput
}
export type FileEntityLinkScalarWhereWithAggregatesInput = {
AND?: Prisma.FileEntityLinkScalarWhereWithAggregatesInput | Prisma.FileEntityLinkScalarWhereWithAggregatesInput[]
OR?: Prisma.FileEntityLinkScalarWhereWithAggregatesInput[]
NOT?: Prisma.FileEntityLinkScalarWhereWithAggregatesInput | Prisma.FileEntityLinkScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"FileEntityLink"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"FileEntityLink"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"FileEntityLink"> | string
createdByUserId?: Prisma.StringWithAggregatesFilter<"FileEntityLink"> | string
fileId?: Prisma.StringWithAggregatesFilter<"FileEntityLink"> | string
entityType?: Prisma.EnumFileEntityTypeWithAggregatesFilter<"FileEntityLink"> | $Enums.FileEntityType
entityId?: Prisma.StringWithAggregatesFilter<"FileEntityLink"> | string
linkRole?: Prisma.StringNullableWithAggregatesFilter<"FileEntityLink"> | string | null
}
export type FileEntityLinkCreateInput = {
id?: string
createdAt?: Date | string
tenantId: string
createdByUserId: string
entityType: $Enums.FileEntityType
entityId: string
linkRole?: string | null
file: Prisma.FileCreateNestedOneWithoutLinksInput
}
export type FileEntityLinkUncheckedCreateInput = {
id?: string
createdAt?: Date | string
tenantId: string
createdByUserId: string
fileId: string
entityType: $Enums.FileEntityType
entityId: string
linkRole?: string | null
}
export type FileEntityLinkUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
entityType?: Prisma.EnumFileEntityTypeFieldUpdateOperationsInput | $Enums.FileEntityType
entityId?: Prisma.StringFieldUpdateOperationsInput | string
linkRole?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
file?: Prisma.FileUpdateOneRequiredWithoutLinksNestedInput
}
export type FileEntityLinkUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
fileId?: Prisma.StringFieldUpdateOperationsInput | string
entityType?: Prisma.EnumFileEntityTypeFieldUpdateOperationsInput | $Enums.FileEntityType
entityId?: Prisma.StringFieldUpdateOperationsInput | string
linkRole?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type FileEntityLinkCreateManyInput = {
id?: string
createdAt?: Date | string
tenantId: string
createdByUserId: string
fileId: string
entityType: $Enums.FileEntityType
entityId: string
linkRole?: string | null
}
export type FileEntityLinkUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
entityType?: Prisma.EnumFileEntityTypeFieldUpdateOperationsInput | $Enums.FileEntityType
entityId?: Prisma.StringFieldUpdateOperationsInput | string
linkRole?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type FileEntityLinkUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
fileId?: Prisma.StringFieldUpdateOperationsInput | string
entityType?: Prisma.EnumFileEntityTypeFieldUpdateOperationsInput | $Enums.FileEntityType
entityId?: Prisma.StringFieldUpdateOperationsInput | string
linkRole?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type FileEntityLinkListRelationFilter = {
every?: Prisma.FileEntityLinkWhereInput
some?: Prisma.FileEntityLinkWhereInput
none?: Prisma.FileEntityLinkWhereInput
}
export type FileEntityLinkOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type FileEntityLinkFileIdEntityTypeEntityIdCompoundUniqueInput = {
fileId: string
entityType: $Enums.FileEntityType
entityId: string
}
export type FileEntityLinkCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
fileId?: Prisma.SortOrder
entityType?: Prisma.SortOrder
entityId?: Prisma.SortOrder
linkRole?: Prisma.SortOrder
}
export type FileEntityLinkMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
fileId?: Prisma.SortOrder
entityType?: Prisma.SortOrder
entityId?: Prisma.SortOrder
linkRole?: Prisma.SortOrder
}
export type FileEntityLinkMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
fileId?: Prisma.SortOrder
entityType?: Prisma.SortOrder
entityId?: Prisma.SortOrder
linkRole?: Prisma.SortOrder
}
export type FileEntityLinkCreateNestedManyWithoutFileInput = {
create?: Prisma.XOR<Prisma.FileEntityLinkCreateWithoutFileInput, Prisma.FileEntityLinkUncheckedCreateWithoutFileInput> | Prisma.FileEntityLinkCreateWithoutFileInput[] | Prisma.FileEntityLinkUncheckedCreateWithoutFileInput[]
connectOrCreate?: Prisma.FileEntityLinkCreateOrConnectWithoutFileInput | Prisma.FileEntityLinkCreateOrConnectWithoutFileInput[]
createMany?: Prisma.FileEntityLinkCreateManyFileInputEnvelope
connect?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
}
export type FileEntityLinkUncheckedCreateNestedManyWithoutFileInput = {
create?: Prisma.XOR<Prisma.FileEntityLinkCreateWithoutFileInput, Prisma.FileEntityLinkUncheckedCreateWithoutFileInput> | Prisma.FileEntityLinkCreateWithoutFileInput[] | Prisma.FileEntityLinkUncheckedCreateWithoutFileInput[]
connectOrCreate?: Prisma.FileEntityLinkCreateOrConnectWithoutFileInput | Prisma.FileEntityLinkCreateOrConnectWithoutFileInput[]
createMany?: Prisma.FileEntityLinkCreateManyFileInputEnvelope
connect?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
}
export type FileEntityLinkUpdateManyWithoutFileNestedInput = {
create?: Prisma.XOR<Prisma.FileEntityLinkCreateWithoutFileInput, Prisma.FileEntityLinkUncheckedCreateWithoutFileInput> | Prisma.FileEntityLinkCreateWithoutFileInput[] | Prisma.FileEntityLinkUncheckedCreateWithoutFileInput[]
connectOrCreate?: Prisma.FileEntityLinkCreateOrConnectWithoutFileInput | Prisma.FileEntityLinkCreateOrConnectWithoutFileInput[]
upsert?: Prisma.FileEntityLinkUpsertWithWhereUniqueWithoutFileInput | Prisma.FileEntityLinkUpsertWithWhereUniqueWithoutFileInput[]
createMany?: Prisma.FileEntityLinkCreateManyFileInputEnvelope
set?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
disconnect?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
delete?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
connect?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
update?: Prisma.FileEntityLinkUpdateWithWhereUniqueWithoutFileInput | Prisma.FileEntityLinkUpdateWithWhereUniqueWithoutFileInput[]
updateMany?: Prisma.FileEntityLinkUpdateManyWithWhereWithoutFileInput | Prisma.FileEntityLinkUpdateManyWithWhereWithoutFileInput[]
deleteMany?: Prisma.FileEntityLinkScalarWhereInput | Prisma.FileEntityLinkScalarWhereInput[]
}
export type FileEntityLinkUncheckedUpdateManyWithoutFileNestedInput = {
create?: Prisma.XOR<Prisma.FileEntityLinkCreateWithoutFileInput, Prisma.FileEntityLinkUncheckedCreateWithoutFileInput> | Prisma.FileEntityLinkCreateWithoutFileInput[] | Prisma.FileEntityLinkUncheckedCreateWithoutFileInput[]
connectOrCreate?: Prisma.FileEntityLinkCreateOrConnectWithoutFileInput | Prisma.FileEntityLinkCreateOrConnectWithoutFileInput[]
upsert?: Prisma.FileEntityLinkUpsertWithWhereUniqueWithoutFileInput | Prisma.FileEntityLinkUpsertWithWhereUniqueWithoutFileInput[]
createMany?: Prisma.FileEntityLinkCreateManyFileInputEnvelope
set?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
disconnect?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
delete?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
connect?: Prisma.FileEntityLinkWhereUniqueInput | Prisma.FileEntityLinkWhereUniqueInput[]
update?: Prisma.FileEntityLinkUpdateWithWhereUniqueWithoutFileInput | Prisma.FileEntityLinkUpdateWithWhereUniqueWithoutFileInput[]
updateMany?: Prisma.FileEntityLinkUpdateManyWithWhereWithoutFileInput | Prisma.FileEntityLinkUpdateManyWithWhereWithoutFileInput[]
deleteMany?: Prisma.FileEntityLinkScalarWhereInput | Prisma.FileEntityLinkScalarWhereInput[]
}
export type EnumFileEntityTypeFieldUpdateOperationsInput = {
set?: $Enums.FileEntityType
}
export type FileEntityLinkCreateWithoutFileInput = {
id?: string
createdAt?: Date | string
tenantId: string
createdByUserId: string
entityType: $Enums.FileEntityType
entityId: string
linkRole?: string | null
}
export type FileEntityLinkUncheckedCreateWithoutFileInput = {
id?: string
createdAt?: Date | string
tenantId: string
createdByUserId: string
entityType: $Enums.FileEntityType
entityId: string
linkRole?: string | null
}
export type FileEntityLinkCreateOrConnectWithoutFileInput = {
where: Prisma.FileEntityLinkWhereUniqueInput
create: Prisma.XOR<Prisma.FileEntityLinkCreateWithoutFileInput, Prisma.FileEntityLinkUncheckedCreateWithoutFileInput>
}
export type FileEntityLinkCreateManyFileInputEnvelope = {
data: Prisma.FileEntityLinkCreateManyFileInput | Prisma.FileEntityLinkCreateManyFileInput[]
skipDuplicates?: boolean
}
export type FileEntityLinkUpsertWithWhereUniqueWithoutFileInput = {
where: Prisma.FileEntityLinkWhereUniqueInput
update: Prisma.XOR<Prisma.FileEntityLinkUpdateWithoutFileInput, Prisma.FileEntityLinkUncheckedUpdateWithoutFileInput>
create: Prisma.XOR<Prisma.FileEntityLinkCreateWithoutFileInput, Prisma.FileEntityLinkUncheckedCreateWithoutFileInput>
}
export type FileEntityLinkUpdateWithWhereUniqueWithoutFileInput = {
where: Prisma.FileEntityLinkWhereUniqueInput
data: Prisma.XOR<Prisma.FileEntityLinkUpdateWithoutFileInput, Prisma.FileEntityLinkUncheckedUpdateWithoutFileInput>
}
export type FileEntityLinkUpdateManyWithWhereWithoutFileInput = {
where: Prisma.FileEntityLinkScalarWhereInput
data: Prisma.XOR<Prisma.FileEntityLinkUpdateManyMutationInput, Prisma.FileEntityLinkUncheckedUpdateManyWithoutFileInput>
}
export type FileEntityLinkScalarWhereInput = {
AND?: Prisma.FileEntityLinkScalarWhereInput | Prisma.FileEntityLinkScalarWhereInput[]
OR?: Prisma.FileEntityLinkScalarWhereInput[]
NOT?: Prisma.FileEntityLinkScalarWhereInput | Prisma.FileEntityLinkScalarWhereInput[]
id?: Prisma.StringFilter<"FileEntityLink"> | string
createdAt?: Prisma.DateTimeFilter<"FileEntityLink"> | Date | string
tenantId?: Prisma.StringFilter<"FileEntityLink"> | string
createdByUserId?: Prisma.StringFilter<"FileEntityLink"> | string
fileId?: Prisma.StringFilter<"FileEntityLink"> | string
entityType?: Prisma.EnumFileEntityTypeFilter<"FileEntityLink"> | $Enums.FileEntityType
entityId?: Prisma.StringFilter<"FileEntityLink"> | string
linkRole?: Prisma.StringNullableFilter<"FileEntityLink"> | string | null
}
export type FileEntityLinkCreateManyFileInput = {
id?: string
createdAt?: Date | string
tenantId: string
createdByUserId: string
entityType: $Enums.FileEntityType
entityId: string
linkRole?: string | null
}
export type FileEntityLinkUpdateWithoutFileInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
entityType?: Prisma.EnumFileEntityTypeFieldUpdateOperationsInput | $Enums.FileEntityType
entityId?: Prisma.StringFieldUpdateOperationsInput | string
linkRole?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type FileEntityLinkUncheckedUpdateWithoutFileInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
entityType?: Prisma.EnumFileEntityTypeFieldUpdateOperationsInput | $Enums.FileEntityType
entityId?: Prisma.StringFieldUpdateOperationsInput | string
linkRole?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type FileEntityLinkUncheckedUpdateManyWithoutFileInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
entityType?: Prisma.EnumFileEntityTypeFieldUpdateOperationsInput | $Enums.FileEntityType
entityId?: Prisma.StringFieldUpdateOperationsInput | string
linkRole?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type FileEntityLinkSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
fileId?: boolean
entityType?: boolean
entityId?: boolean
linkRole?: boolean
file?: boolean | Prisma.FileDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileEntityLink"]>
export type FileEntityLinkSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
fileId?: boolean
entityType?: boolean
entityId?: boolean
linkRole?: boolean
file?: boolean | Prisma.FileDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileEntityLink"]>
export type FileEntityLinkSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
fileId?: boolean
entityType?: boolean
entityId?: boolean
linkRole?: boolean
file?: boolean | Prisma.FileDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileEntityLink"]>
export type FileEntityLinkSelectScalar = {
id?: boolean
createdAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
fileId?: boolean
entityType?: boolean
entityId?: boolean
linkRole?: boolean
}
export type FileEntityLinkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "createdByUserId" | "fileId" | "entityType" | "entityId" | "linkRole", ExtArgs["result"]["fileEntityLink"]>
export type FileEntityLinkInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
file?: boolean | Prisma.FileDefaultArgs<ExtArgs>
}
export type FileEntityLinkIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
file?: boolean | Prisma.FileDefaultArgs<ExtArgs>
}
export type FileEntityLinkIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
file?: boolean | Prisma.FileDefaultArgs<ExtArgs>
}
export type $FileEntityLinkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "FileEntityLink"
objects: {
file: Prisma.$FilePayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
tenantId: string
createdByUserId: string
fileId: string
entityType: $Enums.FileEntityType
entityId: string
linkRole: string | null
}, ExtArgs["result"]["fileEntityLink"]>
composites: {}
}
export type FileEntityLinkGetPayload<S extends boolean | null | undefined | FileEntityLinkDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload, S>
export type FileEntityLinkCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<FileEntityLinkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: FileEntityLinkCountAggregateInputType | true
}
export interface FileEntityLinkDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FileEntityLink'], meta: { name: 'FileEntityLink' } }
/**
* Find zero or one FileEntityLink that matches the filter.
* @param {FileEntityLinkFindUniqueArgs} args - Arguments to find a FileEntityLink
* @example
* // Get one FileEntityLink
* const fileEntityLink = await prisma.fileEntityLink.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends FileEntityLinkFindUniqueArgs>(args: Prisma.SelectSubset<T, FileEntityLinkFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FileEntityLinkClient<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one FileEntityLink that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {FileEntityLinkFindUniqueOrThrowArgs} args - Arguments to find a FileEntityLink
* @example
* // Get one FileEntityLink
* const fileEntityLink = await prisma.fileEntityLink.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends FileEntityLinkFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FileEntityLinkFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileEntityLinkClient<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first FileEntityLink 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 {FileEntityLinkFindFirstArgs} args - Arguments to find a FileEntityLink
* @example
* // Get one FileEntityLink
* const fileEntityLink = await prisma.fileEntityLink.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends FileEntityLinkFindFirstArgs>(args?: Prisma.SelectSubset<T, FileEntityLinkFindFirstArgs<ExtArgs>>): Prisma.Prisma__FileEntityLinkClient<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first FileEntityLink 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 {FileEntityLinkFindFirstOrThrowArgs} args - Arguments to find a FileEntityLink
* @example
* // Get one FileEntityLink
* const fileEntityLink = await prisma.fileEntityLink.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends FileEntityLinkFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FileEntityLinkFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileEntityLinkClient<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more FileEntityLinks 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 {FileEntityLinkFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all FileEntityLinks
* const fileEntityLinks = await prisma.fileEntityLink.findMany()
*
* // Get first 10 FileEntityLinks
* const fileEntityLinks = await prisma.fileEntityLink.findMany({ take: 10 })
*
* // Only select the `id`
* const fileEntityLinkWithIdOnly = await prisma.fileEntityLink.findMany({ select: { id: true } })
*
*/
findMany<T extends FileEntityLinkFindManyArgs>(args?: Prisma.SelectSubset<T, FileEntityLinkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a FileEntityLink.
* @param {FileEntityLinkCreateArgs} args - Arguments to create a FileEntityLink.
* @example
* // Create one FileEntityLink
* const FileEntityLink = await prisma.fileEntityLink.create({
* data: {
* // ... data to create a FileEntityLink
* }
* })
*
*/
create<T extends FileEntityLinkCreateArgs>(args: Prisma.SelectSubset<T, FileEntityLinkCreateArgs<ExtArgs>>): Prisma.Prisma__FileEntityLinkClient<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many FileEntityLinks.
* @param {FileEntityLinkCreateManyArgs} args - Arguments to create many FileEntityLinks.
* @example
* // Create many FileEntityLinks
* const fileEntityLink = await prisma.fileEntityLink.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends FileEntityLinkCreateManyArgs>(args?: Prisma.SelectSubset<T, FileEntityLinkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many FileEntityLinks and returns the data saved in the database.
* @param {FileEntityLinkCreateManyAndReturnArgs} args - Arguments to create many FileEntityLinks.
* @example
* // Create many FileEntityLinks
* const fileEntityLink = await prisma.fileEntityLink.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many FileEntityLinks and only return the `id`
* const fileEntityLinkWithIdOnly = await prisma.fileEntityLink.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 FileEntityLinkCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FileEntityLinkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a FileEntityLink.
* @param {FileEntityLinkDeleteArgs} args - Arguments to delete one FileEntityLink.
* @example
* // Delete one FileEntityLink
* const FileEntityLink = await prisma.fileEntityLink.delete({
* where: {
* // ... filter to delete one FileEntityLink
* }
* })
*
*/
delete<T extends FileEntityLinkDeleteArgs>(args: Prisma.SelectSubset<T, FileEntityLinkDeleteArgs<ExtArgs>>): Prisma.Prisma__FileEntityLinkClient<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one FileEntityLink.
* @param {FileEntityLinkUpdateArgs} args - Arguments to update one FileEntityLink.
* @example
* // Update one FileEntityLink
* const fileEntityLink = await prisma.fileEntityLink.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends FileEntityLinkUpdateArgs>(args: Prisma.SelectSubset<T, FileEntityLinkUpdateArgs<ExtArgs>>): Prisma.Prisma__FileEntityLinkClient<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more FileEntityLinks.
* @param {FileEntityLinkDeleteManyArgs} args - Arguments to filter FileEntityLinks to delete.
* @example
* // Delete a few FileEntityLinks
* const { count } = await prisma.fileEntityLink.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends FileEntityLinkDeleteManyArgs>(args?: Prisma.SelectSubset<T, FileEntityLinkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more FileEntityLinks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileEntityLinkUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many FileEntityLinks
* const fileEntityLink = await prisma.fileEntityLink.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends FileEntityLinkUpdateManyArgs>(args: Prisma.SelectSubset<T, FileEntityLinkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more FileEntityLinks and returns the data updated in the database.
* @param {FileEntityLinkUpdateManyAndReturnArgs} args - Arguments to update many FileEntityLinks.
* @example
* // Update many FileEntityLinks
* const fileEntityLink = await prisma.fileEntityLink.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more FileEntityLinks and only return the `id`
* const fileEntityLinkWithIdOnly = await prisma.fileEntityLink.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 FileEntityLinkUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FileEntityLinkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one FileEntityLink.
* @param {FileEntityLinkUpsertArgs} args - Arguments to update or create a FileEntityLink.
* @example
* // Update or create a FileEntityLink
* const fileEntityLink = await prisma.fileEntityLink.upsert({
* create: {
* // ... data to create a FileEntityLink
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the FileEntityLink we want to update
* }
* })
*/
upsert<T extends FileEntityLinkUpsertArgs>(args: Prisma.SelectSubset<T, FileEntityLinkUpsertArgs<ExtArgs>>): Prisma.Prisma__FileEntityLinkClient<runtime.Types.Result.GetResult<Prisma.$FileEntityLinkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of FileEntityLinks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileEntityLinkCountArgs} args - Arguments to filter FileEntityLinks to count.
* @example
* // Count the number of FileEntityLinks
* const count = await prisma.fileEntityLink.count({
* where: {
* // ... the filter for the FileEntityLinks we want to count
* }
* })
**/
count<T extends FileEntityLinkCountArgs>(
args?: Prisma.Subset<T, FileEntityLinkCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], FileEntityLinkCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a FileEntityLink.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileEntityLinkAggregateArgs} 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 FileEntityLinkAggregateArgs>(args: Prisma.Subset<T, FileEntityLinkAggregateArgs>): Prisma.PrismaPromise<GetFileEntityLinkAggregateType<T>>
/**
* Group by FileEntityLink.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileEntityLinkGroupByArgs} 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 FileEntityLinkGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: FileEntityLinkGroupByArgs['orderBy'] }
: { orderBy?: FileEntityLinkGroupByArgs['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, FileEntityLinkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileEntityLinkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the FileEntityLink model
*/
readonly fields: FileEntityLinkFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for FileEntityLink.
* 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__FileEntityLinkClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
file<T extends Prisma.FileDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FileDefaultArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the FileEntityLink model
*/
export interface FileEntityLinkFieldRefs {
readonly id: Prisma.FieldRef<"FileEntityLink", 'String'>
readonly createdAt: Prisma.FieldRef<"FileEntityLink", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"FileEntityLink", 'String'>
readonly createdByUserId: Prisma.FieldRef<"FileEntityLink", 'String'>
readonly fileId: Prisma.FieldRef<"FileEntityLink", 'String'>
readonly entityType: Prisma.FieldRef<"FileEntityLink", 'FileEntityType'>
readonly entityId: Prisma.FieldRef<"FileEntityLink", 'String'>
readonly linkRole: Prisma.FieldRef<"FileEntityLink", 'String'>
}
// Custom InputTypes
/**
* FileEntityLink findUnique
*/
export type FileEntityLinkFindUniqueArgs<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
/**
* Filter, which FileEntityLink to fetch.
*/
where: Prisma.FileEntityLinkWhereUniqueInput
}
/**
* FileEntityLink findUniqueOrThrow
*/
export type FileEntityLinkFindUniqueOrThrowArgs<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
/**
* Filter, which FileEntityLink to fetch.
*/
where: Prisma.FileEntityLinkWhereUniqueInput
}
/**
* FileEntityLink findFirst
*/
export type FileEntityLinkFindFirstArgs<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
/**
* Filter, which FileEntityLink to fetch.
*/
where?: Prisma.FileEntityLinkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileEntityLinks to fetch.
*/
orderBy?: Prisma.FileEntityLinkOrderByWithRelationInput | Prisma.FileEntityLinkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for FileEntityLinks.
*/
cursor?: Prisma.FileEntityLinkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileEntityLinks 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` FileEntityLinks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileEntityLinks.
*/
distinct?: Prisma.FileEntityLinkScalarFieldEnum | Prisma.FileEntityLinkScalarFieldEnum[]
}
/**
* FileEntityLink findFirstOrThrow
*/
export type FileEntityLinkFindFirstOrThrowArgs<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
/**
* Filter, which FileEntityLink to fetch.
*/
where?: Prisma.FileEntityLinkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileEntityLinks to fetch.
*/
orderBy?: Prisma.FileEntityLinkOrderByWithRelationInput | Prisma.FileEntityLinkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for FileEntityLinks.
*/
cursor?: Prisma.FileEntityLinkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileEntityLinks 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` FileEntityLinks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileEntityLinks.
*/
distinct?: Prisma.FileEntityLinkScalarFieldEnum | Prisma.FileEntityLinkScalarFieldEnum[]
}
/**
* FileEntityLink findMany
*/
export type FileEntityLinkFindManyArgs<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
/**
* Filter, which FileEntityLinks to fetch.
*/
where?: Prisma.FileEntityLinkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileEntityLinks to fetch.
*/
orderBy?: Prisma.FileEntityLinkOrderByWithRelationInput | Prisma.FileEntityLinkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing FileEntityLinks.
*/
cursor?: Prisma.FileEntityLinkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileEntityLinks 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` FileEntityLinks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileEntityLinks.
*/
distinct?: Prisma.FileEntityLinkScalarFieldEnum | Prisma.FileEntityLinkScalarFieldEnum[]
}
/**
* FileEntityLink create
*/
export type FileEntityLinkCreateArgs<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
/**
* The data needed to create a FileEntityLink.
*/
data: Prisma.XOR<Prisma.FileEntityLinkCreateInput, Prisma.FileEntityLinkUncheckedCreateInput>
}
/**
* FileEntityLink createMany
*/
export type FileEntityLinkCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many FileEntityLinks.
*/
data: Prisma.FileEntityLinkCreateManyInput | Prisma.FileEntityLinkCreateManyInput[]
skipDuplicates?: boolean
}
/**
* FileEntityLink createManyAndReturn
*/
export type FileEntityLinkCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileEntityLink
*/
select?: Prisma.FileEntityLinkSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the FileEntityLink
*/
omit?: Prisma.FileEntityLinkOmit<ExtArgs> | null
/**
* The data used to create many FileEntityLinks.
*/
data: Prisma.FileEntityLinkCreateManyInput | Prisma.FileEntityLinkCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileEntityLinkIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* FileEntityLink update
*/
export type FileEntityLinkUpdateArgs<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
/**
* The data needed to update a FileEntityLink.
*/
data: Prisma.XOR<Prisma.FileEntityLinkUpdateInput, Prisma.FileEntityLinkUncheckedUpdateInput>
/**
* Choose, which FileEntityLink to update.
*/
where: Prisma.FileEntityLinkWhereUniqueInput
}
/**
* FileEntityLink updateMany
*/
export type FileEntityLinkUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update FileEntityLinks.
*/
data: Prisma.XOR<Prisma.FileEntityLinkUpdateManyMutationInput, Prisma.FileEntityLinkUncheckedUpdateManyInput>
/**
* Filter which FileEntityLinks to update
*/
where?: Prisma.FileEntityLinkWhereInput
/**
* Limit how many FileEntityLinks to update.
*/
limit?: number
}
/**
* FileEntityLink updateManyAndReturn
*/
export type FileEntityLinkUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileEntityLink
*/
select?: Prisma.FileEntityLinkSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the FileEntityLink
*/
omit?: Prisma.FileEntityLinkOmit<ExtArgs> | null
/**
* The data used to update FileEntityLinks.
*/
data: Prisma.XOR<Prisma.FileEntityLinkUpdateManyMutationInput, Prisma.FileEntityLinkUncheckedUpdateManyInput>
/**
* Filter which FileEntityLinks to update
*/
where?: Prisma.FileEntityLinkWhereInput
/**
* Limit how many FileEntityLinks to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileEntityLinkIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* FileEntityLink upsert
*/
export type FileEntityLinkUpsertArgs<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
/**
* The filter to search for the FileEntityLink to update in case it exists.
*/
where: Prisma.FileEntityLinkWhereUniqueInput
/**
* In case the FileEntityLink found by the `where` argument doesn't exist, create a new FileEntityLink with this data.
*/
create: Prisma.XOR<Prisma.FileEntityLinkCreateInput, Prisma.FileEntityLinkUncheckedCreateInput>
/**
* In case the FileEntityLink was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.FileEntityLinkUpdateInput, Prisma.FileEntityLinkUncheckedUpdateInput>
}
/**
* FileEntityLink delete
*/
export type FileEntityLinkDeleteArgs<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
/**
* Filter which FileEntityLink to delete.
*/
where: Prisma.FileEntityLinkWhereUniqueInput
}
/**
* FileEntityLink deleteMany
*/
export type FileEntityLinkDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which FileEntityLinks to delete
*/
where?: Prisma.FileEntityLinkWhereInput
/**
* Limit how many FileEntityLinks to delete.
*/
limit?: number
}
/**
* FileEntityLink without action
*/
export type FileEntityLinkDefaultArgs<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
}