mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 19:08:40 +00:00
* feat(project): add recent viewed files section to project folder tree * feat(webui): disable toolbar buttons and context menu in recents page * test(core): optimize recents cap test execution time * feat(webui): show hint text in recents page top toolbar * feat(webui): rename recents section to Recently Viewed * refactor(core): consolidate recents methods into AssetService * fix(api): forward pagination parameters in folder children endpoint (#349) * fix(project-recents): scope views and disable recents mutations * fix(api): allow recent views in demo mode * fix(api): limit demo recent view exception to post
1595 lines
66 KiB
TypeScript
Generated
1595 lines
66 KiB
TypeScript
Generated
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `RecentFileItem` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import type * as PJTG from '../pjtg';
|
|
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 RecentFileItem
|
|
*
|
|
*/
|
|
export type RecentFileItemModel = runtime.Types.Result.DefaultSelection<Prisma.$RecentFileItemPayload>
|
|
|
|
export type AggregateRecentFileItem = {
|
|
_count: RecentFileItemCountAggregateOutputType | null
|
|
_min: RecentFileItemMinAggregateOutputType | null
|
|
_max: RecentFileItemMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type RecentFileItemMinAggregateOutputType = {
|
|
id: string | null
|
|
userId: string | null
|
|
projectId: string | null
|
|
assetId: string | null
|
|
viewedAt: Date | null
|
|
}
|
|
|
|
export type RecentFileItemMaxAggregateOutputType = {
|
|
id: string | null
|
|
userId: string | null
|
|
projectId: string | null
|
|
assetId: string | null
|
|
viewedAt: Date | null
|
|
}
|
|
|
|
export type RecentFileItemCountAggregateOutputType = {
|
|
id: number
|
|
userId: number
|
|
projectId: number
|
|
assetId: number
|
|
viewedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type RecentFileItemMinAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
projectId?: true
|
|
assetId?: true
|
|
viewedAt?: true
|
|
}
|
|
|
|
export type RecentFileItemMaxAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
projectId?: true
|
|
assetId?: true
|
|
viewedAt?: true
|
|
}
|
|
|
|
export type RecentFileItemCountAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
projectId?: true
|
|
assetId?: true
|
|
viewedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type RecentFileItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RecentFileItem to aggregate.
|
|
*/
|
|
where?: Prisma.RecentFileItemWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RecentFileItems to fetch.
|
|
*/
|
|
orderBy?: Prisma.RecentFileItemOrderByWithRelationInput | Prisma.RecentFileItemOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.RecentFileItemWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RecentFileItems 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` RecentFileItems.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned RecentFileItems
|
|
**/
|
|
_count?: true | RecentFileItemCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: RecentFileItemMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: RecentFileItemMaxAggregateInputType
|
|
}
|
|
|
|
export type GetRecentFileItemAggregateType<T extends RecentFileItemAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateRecentFileItem]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateRecentFileItem[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateRecentFileItem[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type RecentFileItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.RecentFileItemWhereInput
|
|
orderBy?: Prisma.RecentFileItemOrderByWithAggregationInput | Prisma.RecentFileItemOrderByWithAggregationInput[]
|
|
by: Prisma.RecentFileItemScalarFieldEnum[] | Prisma.RecentFileItemScalarFieldEnum
|
|
having?: Prisma.RecentFileItemScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: RecentFileItemCountAggregateInputType | true
|
|
_min?: RecentFileItemMinAggregateInputType
|
|
_max?: RecentFileItemMaxAggregateInputType
|
|
}
|
|
|
|
export type RecentFileItemGroupByOutputType = {
|
|
id: string
|
|
userId: string
|
|
projectId: string
|
|
assetId: string
|
|
viewedAt: Date
|
|
_count: RecentFileItemCountAggregateOutputType | null
|
|
_min: RecentFileItemMinAggregateOutputType | null
|
|
_max: RecentFileItemMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetRecentFileItemGroupByPayload<T extends RecentFileItemGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<RecentFileItemGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof RecentFileItemGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], RecentFileItemGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], RecentFileItemGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type RecentFileItemWhereInput = {
|
|
AND?: Prisma.RecentFileItemWhereInput | Prisma.RecentFileItemWhereInput[]
|
|
OR?: Prisma.RecentFileItemWhereInput[]
|
|
NOT?: Prisma.RecentFileItemWhereInput | Prisma.RecentFileItemWhereInput[]
|
|
id?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
userId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
projectId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
assetId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
viewedAt?: Prisma.DateTimeFilter<"RecentFileItem"> | Date | string
|
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
|
|
asset?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
|
|
}
|
|
|
|
export type RecentFileItemOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
viewedAt?: Prisma.SortOrder
|
|
user?: Prisma.UserOrderByWithRelationInput
|
|
project?: Prisma.ProjectOrderByWithRelationInput
|
|
asset?: Prisma.AssetOrderByWithRelationInput
|
|
}
|
|
|
|
export type RecentFileItemWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
userIdProjectIdAssetId?: Prisma.RecentFileItemUserIdProjectIdAssetIdCompoundUniqueInput
|
|
AND?: Prisma.RecentFileItemWhereInput | Prisma.RecentFileItemWhereInput[]
|
|
OR?: Prisma.RecentFileItemWhereInput[]
|
|
NOT?: Prisma.RecentFileItemWhereInput | Prisma.RecentFileItemWhereInput[]
|
|
userId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
projectId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
assetId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
viewedAt?: Prisma.DateTimeFilter<"RecentFileItem"> | Date | string
|
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
|
|
asset?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
|
|
}, "id" | "userIdProjectIdAssetId">
|
|
|
|
export type RecentFileItemOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
viewedAt?: Prisma.SortOrder
|
|
_count?: Prisma.RecentFileItemCountOrderByAggregateInput
|
|
_max?: Prisma.RecentFileItemMaxOrderByAggregateInput
|
|
_min?: Prisma.RecentFileItemMinOrderByAggregateInput
|
|
}
|
|
|
|
export type RecentFileItemScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.RecentFileItemScalarWhereWithAggregatesInput | Prisma.RecentFileItemScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.RecentFileItemScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.RecentFileItemScalarWhereWithAggregatesInput | Prisma.RecentFileItemScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"RecentFileItem"> | string
|
|
userId?: Prisma.StringWithAggregatesFilter<"RecentFileItem"> | string
|
|
projectId?: Prisma.StringWithAggregatesFilter<"RecentFileItem"> | string
|
|
assetId?: Prisma.StringWithAggregatesFilter<"RecentFileItem"> | string
|
|
viewedAt?: Prisma.DateTimeWithAggregatesFilter<"RecentFileItem"> | Date | string
|
|
}
|
|
|
|
export type RecentFileItemCreateInput = {
|
|
id?: string
|
|
viewedAt?: Date | string
|
|
user: Prisma.UserCreateNestedOneWithoutRecentFilesInput
|
|
project: Prisma.ProjectCreateNestedOneWithoutRecentFilesInput
|
|
asset: Prisma.AssetCreateNestedOneWithoutRecentFilesInput
|
|
}
|
|
|
|
export type RecentFileItemUncheckedCreateInput = {
|
|
id?: string
|
|
userId: string
|
|
projectId: string
|
|
assetId: string
|
|
viewedAt?: Date | string
|
|
}
|
|
|
|
export type RecentFileItemUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: Prisma.UserUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
project?: Prisma.ProjectUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
asset?: Prisma.AssetUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RecentFileItemCreateManyInput = {
|
|
id?: string
|
|
userId: string
|
|
projectId: string
|
|
assetId: string
|
|
viewedAt?: Date | string
|
|
}
|
|
|
|
export type RecentFileItemUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RecentFileItemListRelationFilter = {
|
|
every?: Prisma.RecentFileItemWhereInput
|
|
some?: Prisma.RecentFileItemWhereInput
|
|
none?: Prisma.RecentFileItemWhereInput
|
|
}
|
|
|
|
export type RecentFileItemOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type RecentFileItemUserIdProjectIdAssetIdCompoundUniqueInput = {
|
|
userId: string
|
|
projectId: string
|
|
assetId: string
|
|
}
|
|
|
|
export type RecentFileItemCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
viewedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type RecentFileItemMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
viewedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type RecentFileItemMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
viewedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type RecentFileItemCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutUserInput, Prisma.RecentFileItemUncheckedCreateWithoutUserInput> | Prisma.RecentFileItemCreateWithoutUserInput[] | Prisma.RecentFileItemUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutUserInput | Prisma.RecentFileItemCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyUserInputEnvelope
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type RecentFileItemUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutUserInput, Prisma.RecentFileItemUncheckedCreateWithoutUserInput> | Prisma.RecentFileItemCreateWithoutUserInput[] | Prisma.RecentFileItemUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutUserInput | Prisma.RecentFileItemCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyUserInputEnvelope
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type RecentFileItemUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutUserInput, Prisma.RecentFileItemUncheckedCreateWithoutUserInput> | Prisma.RecentFileItemCreateWithoutUserInput[] | Prisma.RecentFileItemUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutUserInput | Prisma.RecentFileItemCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.RecentFileItemUpsertWithWhereUniqueWithoutUserInput | Prisma.RecentFileItemUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyUserInputEnvelope
|
|
set?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
disconnect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
delete?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
update?: Prisma.RecentFileItemUpdateWithWhereUniqueWithoutUserInput | Prisma.RecentFileItemUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.RecentFileItemUpdateManyWithWhereWithoutUserInput | Prisma.RecentFileItemUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.RecentFileItemScalarWhereInput | Prisma.RecentFileItemScalarWhereInput[]
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutUserInput, Prisma.RecentFileItemUncheckedCreateWithoutUserInput> | Prisma.RecentFileItemCreateWithoutUserInput[] | Prisma.RecentFileItemUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutUserInput | Prisma.RecentFileItemCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.RecentFileItemUpsertWithWhereUniqueWithoutUserInput | Prisma.RecentFileItemUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyUserInputEnvelope
|
|
set?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
disconnect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
delete?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
update?: Prisma.RecentFileItemUpdateWithWhereUniqueWithoutUserInput | Prisma.RecentFileItemUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.RecentFileItemUpdateManyWithWhereWithoutUserInput | Prisma.RecentFileItemUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.RecentFileItemScalarWhereInput | Prisma.RecentFileItemScalarWhereInput[]
|
|
}
|
|
|
|
export type RecentFileItemCreateNestedManyWithoutProjectInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutProjectInput, Prisma.RecentFileItemUncheckedCreateWithoutProjectInput> | Prisma.RecentFileItemCreateWithoutProjectInput[] | Prisma.RecentFileItemUncheckedCreateWithoutProjectInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutProjectInput | Prisma.RecentFileItemCreateOrConnectWithoutProjectInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyProjectInputEnvelope
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type RecentFileItemUncheckedCreateNestedManyWithoutProjectInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutProjectInput, Prisma.RecentFileItemUncheckedCreateWithoutProjectInput> | Prisma.RecentFileItemCreateWithoutProjectInput[] | Prisma.RecentFileItemUncheckedCreateWithoutProjectInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutProjectInput | Prisma.RecentFileItemCreateOrConnectWithoutProjectInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyProjectInputEnvelope
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type RecentFileItemUpdateManyWithoutProjectNestedInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutProjectInput, Prisma.RecentFileItemUncheckedCreateWithoutProjectInput> | Prisma.RecentFileItemCreateWithoutProjectInput[] | Prisma.RecentFileItemUncheckedCreateWithoutProjectInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutProjectInput | Prisma.RecentFileItemCreateOrConnectWithoutProjectInput[]
|
|
upsert?: Prisma.RecentFileItemUpsertWithWhereUniqueWithoutProjectInput | Prisma.RecentFileItemUpsertWithWhereUniqueWithoutProjectInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyProjectInputEnvelope
|
|
set?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
disconnect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
delete?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
update?: Prisma.RecentFileItemUpdateWithWhereUniqueWithoutProjectInput | Prisma.RecentFileItemUpdateWithWhereUniqueWithoutProjectInput[]
|
|
updateMany?: Prisma.RecentFileItemUpdateManyWithWhereWithoutProjectInput | Prisma.RecentFileItemUpdateManyWithWhereWithoutProjectInput[]
|
|
deleteMany?: Prisma.RecentFileItemScalarWhereInput | Prisma.RecentFileItemScalarWhereInput[]
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateManyWithoutProjectNestedInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutProjectInput, Prisma.RecentFileItemUncheckedCreateWithoutProjectInput> | Prisma.RecentFileItemCreateWithoutProjectInput[] | Prisma.RecentFileItemUncheckedCreateWithoutProjectInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutProjectInput | Prisma.RecentFileItemCreateOrConnectWithoutProjectInput[]
|
|
upsert?: Prisma.RecentFileItemUpsertWithWhereUniqueWithoutProjectInput | Prisma.RecentFileItemUpsertWithWhereUniqueWithoutProjectInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyProjectInputEnvelope
|
|
set?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
disconnect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
delete?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
update?: Prisma.RecentFileItemUpdateWithWhereUniqueWithoutProjectInput | Prisma.RecentFileItemUpdateWithWhereUniqueWithoutProjectInput[]
|
|
updateMany?: Prisma.RecentFileItemUpdateManyWithWhereWithoutProjectInput | Prisma.RecentFileItemUpdateManyWithWhereWithoutProjectInput[]
|
|
deleteMany?: Prisma.RecentFileItemScalarWhereInput | Prisma.RecentFileItemScalarWhereInput[]
|
|
}
|
|
|
|
export type RecentFileItemCreateNestedManyWithoutAssetInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutAssetInput, Prisma.RecentFileItemUncheckedCreateWithoutAssetInput> | Prisma.RecentFileItemCreateWithoutAssetInput[] | Prisma.RecentFileItemUncheckedCreateWithoutAssetInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutAssetInput | Prisma.RecentFileItemCreateOrConnectWithoutAssetInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyAssetInputEnvelope
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type RecentFileItemUncheckedCreateNestedManyWithoutAssetInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutAssetInput, Prisma.RecentFileItemUncheckedCreateWithoutAssetInput> | Prisma.RecentFileItemCreateWithoutAssetInput[] | Prisma.RecentFileItemUncheckedCreateWithoutAssetInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutAssetInput | Prisma.RecentFileItemCreateOrConnectWithoutAssetInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyAssetInputEnvelope
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type RecentFileItemUpdateManyWithoutAssetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutAssetInput, Prisma.RecentFileItemUncheckedCreateWithoutAssetInput> | Prisma.RecentFileItemCreateWithoutAssetInput[] | Prisma.RecentFileItemUncheckedCreateWithoutAssetInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutAssetInput | Prisma.RecentFileItemCreateOrConnectWithoutAssetInput[]
|
|
upsert?: Prisma.RecentFileItemUpsertWithWhereUniqueWithoutAssetInput | Prisma.RecentFileItemUpsertWithWhereUniqueWithoutAssetInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyAssetInputEnvelope
|
|
set?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
disconnect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
delete?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
update?: Prisma.RecentFileItemUpdateWithWhereUniqueWithoutAssetInput | Prisma.RecentFileItemUpdateWithWhereUniqueWithoutAssetInput[]
|
|
updateMany?: Prisma.RecentFileItemUpdateManyWithWhereWithoutAssetInput | Prisma.RecentFileItemUpdateManyWithWhereWithoutAssetInput[]
|
|
deleteMany?: Prisma.RecentFileItemScalarWhereInput | Prisma.RecentFileItemScalarWhereInput[]
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateManyWithoutAssetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.RecentFileItemCreateWithoutAssetInput, Prisma.RecentFileItemUncheckedCreateWithoutAssetInput> | Prisma.RecentFileItemCreateWithoutAssetInput[] | Prisma.RecentFileItemUncheckedCreateWithoutAssetInput[]
|
|
connectOrCreate?: Prisma.RecentFileItemCreateOrConnectWithoutAssetInput | Prisma.RecentFileItemCreateOrConnectWithoutAssetInput[]
|
|
upsert?: Prisma.RecentFileItemUpsertWithWhereUniqueWithoutAssetInput | Prisma.RecentFileItemUpsertWithWhereUniqueWithoutAssetInput[]
|
|
createMany?: Prisma.RecentFileItemCreateManyAssetInputEnvelope
|
|
set?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
disconnect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
delete?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
connect?: Prisma.RecentFileItemWhereUniqueInput | Prisma.RecentFileItemWhereUniqueInput[]
|
|
update?: Prisma.RecentFileItemUpdateWithWhereUniqueWithoutAssetInput | Prisma.RecentFileItemUpdateWithWhereUniqueWithoutAssetInput[]
|
|
updateMany?: Prisma.RecentFileItemUpdateManyWithWhereWithoutAssetInput | Prisma.RecentFileItemUpdateManyWithWhereWithoutAssetInput[]
|
|
deleteMany?: Prisma.RecentFileItemScalarWhereInput | Prisma.RecentFileItemScalarWhereInput[]
|
|
}
|
|
|
|
export type RecentFileItemCreateWithoutUserInput = {
|
|
id?: string
|
|
viewedAt?: Date | string
|
|
project: Prisma.ProjectCreateNestedOneWithoutRecentFilesInput
|
|
asset: Prisma.AssetCreateNestedOneWithoutRecentFilesInput
|
|
}
|
|
|
|
export type RecentFileItemUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
projectId: string
|
|
assetId: string
|
|
viewedAt?: Date | string
|
|
}
|
|
|
|
export type RecentFileItemCreateOrConnectWithoutUserInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.RecentFileItemCreateWithoutUserInput, Prisma.RecentFileItemUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type RecentFileItemCreateManyUserInputEnvelope = {
|
|
data: Prisma.RecentFileItemCreateManyUserInput | Prisma.RecentFileItemCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type RecentFileItemUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.RecentFileItemUpdateWithoutUserInput, Prisma.RecentFileItemUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.RecentFileItemCreateWithoutUserInput, Prisma.RecentFileItemUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type RecentFileItemUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateWithoutUserInput, Prisma.RecentFileItemUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type RecentFileItemUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.RecentFileItemScalarWhereInput
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateManyMutationInput, Prisma.RecentFileItemUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type RecentFileItemScalarWhereInput = {
|
|
AND?: Prisma.RecentFileItemScalarWhereInput | Prisma.RecentFileItemScalarWhereInput[]
|
|
OR?: Prisma.RecentFileItemScalarWhereInput[]
|
|
NOT?: Prisma.RecentFileItemScalarWhereInput | Prisma.RecentFileItemScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
userId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
projectId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
assetId?: Prisma.StringFilter<"RecentFileItem"> | string
|
|
viewedAt?: Prisma.DateTimeFilter<"RecentFileItem"> | Date | string
|
|
}
|
|
|
|
export type RecentFileItemCreateWithoutProjectInput = {
|
|
id?: string
|
|
viewedAt?: Date | string
|
|
user: Prisma.UserCreateNestedOneWithoutRecentFilesInput
|
|
asset: Prisma.AssetCreateNestedOneWithoutRecentFilesInput
|
|
}
|
|
|
|
export type RecentFileItemUncheckedCreateWithoutProjectInput = {
|
|
id?: string
|
|
userId: string
|
|
assetId: string
|
|
viewedAt?: Date | string
|
|
}
|
|
|
|
export type RecentFileItemCreateOrConnectWithoutProjectInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.RecentFileItemCreateWithoutProjectInput, Prisma.RecentFileItemUncheckedCreateWithoutProjectInput>
|
|
}
|
|
|
|
export type RecentFileItemCreateManyProjectInputEnvelope = {
|
|
data: Prisma.RecentFileItemCreateManyProjectInput | Prisma.RecentFileItemCreateManyProjectInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type RecentFileItemUpsertWithWhereUniqueWithoutProjectInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.RecentFileItemUpdateWithoutProjectInput, Prisma.RecentFileItemUncheckedUpdateWithoutProjectInput>
|
|
create: Prisma.XOR<Prisma.RecentFileItemCreateWithoutProjectInput, Prisma.RecentFileItemUncheckedCreateWithoutProjectInput>
|
|
}
|
|
|
|
export type RecentFileItemUpdateWithWhereUniqueWithoutProjectInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateWithoutProjectInput, Prisma.RecentFileItemUncheckedUpdateWithoutProjectInput>
|
|
}
|
|
|
|
export type RecentFileItemUpdateManyWithWhereWithoutProjectInput = {
|
|
where: Prisma.RecentFileItemScalarWhereInput
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateManyMutationInput, Prisma.RecentFileItemUncheckedUpdateManyWithoutProjectInput>
|
|
}
|
|
|
|
export type RecentFileItemCreateWithoutAssetInput = {
|
|
id?: string
|
|
viewedAt?: Date | string
|
|
user: Prisma.UserCreateNestedOneWithoutRecentFilesInput
|
|
project: Prisma.ProjectCreateNestedOneWithoutRecentFilesInput
|
|
}
|
|
|
|
export type RecentFileItemUncheckedCreateWithoutAssetInput = {
|
|
id?: string
|
|
userId: string
|
|
projectId: string
|
|
viewedAt?: Date | string
|
|
}
|
|
|
|
export type RecentFileItemCreateOrConnectWithoutAssetInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.RecentFileItemCreateWithoutAssetInput, Prisma.RecentFileItemUncheckedCreateWithoutAssetInput>
|
|
}
|
|
|
|
export type RecentFileItemCreateManyAssetInputEnvelope = {
|
|
data: Prisma.RecentFileItemCreateManyAssetInput | Prisma.RecentFileItemCreateManyAssetInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type RecentFileItemUpsertWithWhereUniqueWithoutAssetInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.RecentFileItemUpdateWithoutAssetInput, Prisma.RecentFileItemUncheckedUpdateWithoutAssetInput>
|
|
create: Prisma.XOR<Prisma.RecentFileItemCreateWithoutAssetInput, Prisma.RecentFileItemUncheckedCreateWithoutAssetInput>
|
|
}
|
|
|
|
export type RecentFileItemUpdateWithWhereUniqueWithoutAssetInput = {
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateWithoutAssetInput, Prisma.RecentFileItemUncheckedUpdateWithoutAssetInput>
|
|
}
|
|
|
|
export type RecentFileItemUpdateManyWithWhereWithoutAssetInput = {
|
|
where: Prisma.RecentFileItemScalarWhereInput
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateManyMutationInput, Prisma.RecentFileItemUncheckedUpdateManyWithoutAssetInput>
|
|
}
|
|
|
|
export type RecentFileItemCreateManyUserInput = {
|
|
id?: string
|
|
projectId: string
|
|
assetId: string
|
|
viewedAt?: Date | string
|
|
}
|
|
|
|
export type RecentFileItemUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
project?: Prisma.ProjectUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
asset?: Prisma.AssetUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateManyWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RecentFileItemCreateManyProjectInput = {
|
|
id?: string
|
|
userId: string
|
|
assetId: string
|
|
viewedAt?: Date | string
|
|
}
|
|
|
|
export type RecentFileItemUpdateWithoutProjectInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: Prisma.UserUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
asset?: Prisma.AssetUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateWithoutProjectInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateManyWithoutProjectInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RecentFileItemCreateManyAssetInput = {
|
|
id?: string
|
|
userId: string
|
|
projectId: string
|
|
viewedAt?: Date | string
|
|
}
|
|
|
|
export type RecentFileItemUpdateWithoutAssetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: Prisma.UserUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
project?: Prisma.ProjectUpdateOneRequiredWithoutRecentFilesNestedInput
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateWithoutAssetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type RecentFileItemUncheckedUpdateManyWithoutAssetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
viewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type RecentFileItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
projectId?: boolean
|
|
assetId?: boolean
|
|
viewedAt?: boolean
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["recentFileItem"]>
|
|
|
|
export type RecentFileItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
projectId?: boolean
|
|
assetId?: boolean
|
|
viewedAt?: boolean
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["recentFileItem"]>
|
|
|
|
export type RecentFileItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
projectId?: boolean
|
|
assetId?: boolean
|
|
viewedAt?: boolean
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["recentFileItem"]>
|
|
|
|
export type RecentFileItemSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
projectId?: boolean
|
|
assetId?: boolean
|
|
viewedAt?: boolean
|
|
}
|
|
|
|
export type RecentFileItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "projectId" | "assetId" | "viewedAt", ExtArgs["result"]["recentFileItem"]>
|
|
export type RecentFileItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
}
|
|
export type RecentFileItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
}
|
|
export type RecentFileItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $RecentFileItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "RecentFileItem"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
project: Prisma.$ProjectPayload<ExtArgs>
|
|
asset: Prisma.$AssetPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
userId: string
|
|
projectId: string
|
|
assetId: string
|
|
viewedAt: Date
|
|
}, ExtArgs["result"]["recentFileItem"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type RecentFileItemGetPayload<S extends boolean | null | undefined | RecentFileItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload, S>
|
|
|
|
export type RecentFileItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<RecentFileItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: RecentFileItemCountAggregateInputType | true
|
|
}
|
|
|
|
export interface RecentFileItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RecentFileItem'], meta: { name: 'RecentFileItem' } }
|
|
/**
|
|
* Find zero or one RecentFileItem that matches the filter.
|
|
* @param {RecentFileItemFindUniqueArgs} args - Arguments to find a RecentFileItem
|
|
* @example
|
|
* // Get one RecentFileItem
|
|
* const recentFileItem = await prisma.recentFileItem.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends RecentFileItemFindUniqueArgs>(args: Prisma.SelectSubset<T, RecentFileItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RecentFileItemClient<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one RecentFileItem that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {RecentFileItemFindUniqueOrThrowArgs} args - Arguments to find a RecentFileItem
|
|
* @example
|
|
* // Get one RecentFileItem
|
|
* const recentFileItem = await prisma.recentFileItem.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends RecentFileItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RecentFileItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RecentFileItemClient<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first RecentFileItem 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 {RecentFileItemFindFirstArgs} args - Arguments to find a RecentFileItem
|
|
* @example
|
|
* // Get one RecentFileItem
|
|
* const recentFileItem = await prisma.recentFileItem.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends RecentFileItemFindFirstArgs>(args?: Prisma.SelectSubset<T, RecentFileItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__RecentFileItemClient<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first RecentFileItem 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 {RecentFileItemFindFirstOrThrowArgs} args - Arguments to find a RecentFileItem
|
|
* @example
|
|
* // Get one RecentFileItem
|
|
* const recentFileItem = await prisma.recentFileItem.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends RecentFileItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RecentFileItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RecentFileItemClient<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more RecentFileItems 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 {RecentFileItemFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all RecentFileItems
|
|
* const recentFileItems = await prisma.recentFileItem.findMany()
|
|
*
|
|
* // Get first 10 RecentFileItems
|
|
* const recentFileItems = await prisma.recentFileItem.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const recentFileItemWithIdOnly = await prisma.recentFileItem.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends RecentFileItemFindManyArgs>(args?: Prisma.SelectSubset<T, RecentFileItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a RecentFileItem.
|
|
* @param {RecentFileItemCreateArgs} args - Arguments to create a RecentFileItem.
|
|
* @example
|
|
* // Create one RecentFileItem
|
|
* const RecentFileItem = await prisma.recentFileItem.create({
|
|
* data: {
|
|
* // ... data to create a RecentFileItem
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends RecentFileItemCreateArgs>(args: Prisma.SelectSubset<T, RecentFileItemCreateArgs<ExtArgs>>): Prisma.Prisma__RecentFileItemClient<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many RecentFileItems.
|
|
* @param {RecentFileItemCreateManyArgs} args - Arguments to create many RecentFileItems.
|
|
* @example
|
|
* // Create many RecentFileItems
|
|
* const recentFileItem = await prisma.recentFileItem.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends RecentFileItemCreateManyArgs>(args?: Prisma.SelectSubset<T, RecentFileItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many RecentFileItems and returns the data saved in the database.
|
|
* @param {RecentFileItemCreateManyAndReturnArgs} args - Arguments to create many RecentFileItems.
|
|
* @example
|
|
* // Create many RecentFileItems
|
|
* const recentFileItem = await prisma.recentFileItem.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many RecentFileItems and only return the `id`
|
|
* const recentFileItemWithIdOnly = await prisma.recentFileItem.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 RecentFileItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RecentFileItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a RecentFileItem.
|
|
* @param {RecentFileItemDeleteArgs} args - Arguments to delete one RecentFileItem.
|
|
* @example
|
|
* // Delete one RecentFileItem
|
|
* const RecentFileItem = await prisma.recentFileItem.delete({
|
|
* where: {
|
|
* // ... filter to delete one RecentFileItem
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends RecentFileItemDeleteArgs>(args: Prisma.SelectSubset<T, RecentFileItemDeleteArgs<ExtArgs>>): Prisma.Prisma__RecentFileItemClient<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one RecentFileItem.
|
|
* @param {RecentFileItemUpdateArgs} args - Arguments to update one RecentFileItem.
|
|
* @example
|
|
* // Update one RecentFileItem
|
|
* const recentFileItem = await prisma.recentFileItem.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends RecentFileItemUpdateArgs>(args: Prisma.SelectSubset<T, RecentFileItemUpdateArgs<ExtArgs>>): Prisma.Prisma__RecentFileItemClient<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more RecentFileItems.
|
|
* @param {RecentFileItemDeleteManyArgs} args - Arguments to filter RecentFileItems to delete.
|
|
* @example
|
|
* // Delete a few RecentFileItems
|
|
* const { count } = await prisma.recentFileItem.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends RecentFileItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, RecentFileItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more RecentFileItems.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RecentFileItemUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many RecentFileItems
|
|
* const recentFileItem = await prisma.recentFileItem.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends RecentFileItemUpdateManyArgs>(args: Prisma.SelectSubset<T, RecentFileItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more RecentFileItems and returns the data updated in the database.
|
|
* @param {RecentFileItemUpdateManyAndReturnArgs} args - Arguments to update many RecentFileItems.
|
|
* @example
|
|
* // Update many RecentFileItems
|
|
* const recentFileItem = await prisma.recentFileItem.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more RecentFileItems and only return the `id`
|
|
* const recentFileItemWithIdOnly = await prisma.recentFileItem.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 RecentFileItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RecentFileItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one RecentFileItem.
|
|
* @param {RecentFileItemUpsertArgs} args - Arguments to update or create a RecentFileItem.
|
|
* @example
|
|
* // Update or create a RecentFileItem
|
|
* const recentFileItem = await prisma.recentFileItem.upsert({
|
|
* create: {
|
|
* // ... data to create a RecentFileItem
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the RecentFileItem we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends RecentFileItemUpsertArgs>(args: Prisma.SelectSubset<T, RecentFileItemUpsertArgs<ExtArgs>>): Prisma.Prisma__RecentFileItemClient<runtime.Types.Result.GetResult<Prisma.$RecentFileItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of RecentFileItems.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RecentFileItemCountArgs} args - Arguments to filter RecentFileItems to count.
|
|
* @example
|
|
* // Count the number of RecentFileItems
|
|
* const count = await prisma.recentFileItem.count({
|
|
* where: {
|
|
* // ... the filter for the RecentFileItems we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends RecentFileItemCountArgs>(
|
|
args?: Prisma.Subset<T, RecentFileItemCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], RecentFileItemCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a RecentFileItem.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RecentFileItemAggregateArgs} 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 RecentFileItemAggregateArgs>(args: Prisma.Subset<T, RecentFileItemAggregateArgs>): Prisma.PrismaPromise<GetRecentFileItemAggregateType<T>>
|
|
|
|
/**
|
|
* Group by RecentFileItem.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RecentFileItemGroupByArgs} 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 RecentFileItemGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: RecentFileItemGroupByArgs['orderBy'] }
|
|
: { orderBy?: RecentFileItemGroupByArgs['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, RecentFileItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRecentFileItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the RecentFileItem model
|
|
*/
|
|
readonly fields: RecentFileItemFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for RecentFileItem.
|
|
* 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__RecentFileItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
project<T extends Prisma.ProjectDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProjectDefaultArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
asset<T extends Prisma.AssetDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetDefaultArgs<ExtArgs>>): Prisma.Prisma__AssetClient<runtime.Types.Result.GetResult<Prisma.$AssetPayload<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 RecentFileItem model
|
|
*/
|
|
export interface RecentFileItemFieldRefs {
|
|
readonly id: Prisma.FieldRef<"RecentFileItem", 'String'>
|
|
readonly userId: Prisma.FieldRef<"RecentFileItem", 'String'>
|
|
readonly projectId: Prisma.FieldRef<"RecentFileItem", 'String'>
|
|
readonly assetId: Prisma.FieldRef<"RecentFileItem", 'String'>
|
|
readonly viewedAt: Prisma.FieldRef<"RecentFileItem", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* RecentFileItem findUnique
|
|
*/
|
|
export type RecentFileItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecentFileItem to fetch.
|
|
*/
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem findUniqueOrThrow
|
|
*/
|
|
export type RecentFileItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecentFileItem to fetch.
|
|
*/
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem findFirst
|
|
*/
|
|
export type RecentFileItemFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecentFileItem to fetch.
|
|
*/
|
|
where?: Prisma.RecentFileItemWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RecentFileItems to fetch.
|
|
*/
|
|
orderBy?: Prisma.RecentFileItemOrderByWithRelationInput | Prisma.RecentFileItemOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for RecentFileItems.
|
|
*/
|
|
cursor?: Prisma.RecentFileItemWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RecentFileItems 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` RecentFileItems.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RecentFileItems.
|
|
*/
|
|
distinct?: Prisma.RecentFileItemScalarFieldEnum | Prisma.RecentFileItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem findFirstOrThrow
|
|
*/
|
|
export type RecentFileItemFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecentFileItem to fetch.
|
|
*/
|
|
where?: Prisma.RecentFileItemWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RecentFileItems to fetch.
|
|
*/
|
|
orderBy?: Prisma.RecentFileItemOrderByWithRelationInput | Prisma.RecentFileItemOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for RecentFileItems.
|
|
*/
|
|
cursor?: Prisma.RecentFileItemWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RecentFileItems 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` RecentFileItems.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RecentFileItems.
|
|
*/
|
|
distinct?: Prisma.RecentFileItemScalarFieldEnum | Prisma.RecentFileItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem findMany
|
|
*/
|
|
export type RecentFileItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecentFileItems to fetch.
|
|
*/
|
|
where?: Prisma.RecentFileItemWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RecentFileItems to fetch.
|
|
*/
|
|
orderBy?: Prisma.RecentFileItemOrderByWithRelationInput | Prisma.RecentFileItemOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing RecentFileItems.
|
|
*/
|
|
cursor?: Prisma.RecentFileItemWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RecentFileItems 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` RecentFileItems.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RecentFileItems.
|
|
*/
|
|
distinct?: Prisma.RecentFileItemScalarFieldEnum | Prisma.RecentFileItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem create
|
|
*/
|
|
export type RecentFileItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a RecentFileItem.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecentFileItemCreateInput, Prisma.RecentFileItemUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem createMany
|
|
*/
|
|
export type RecentFileItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many RecentFileItems.
|
|
*/
|
|
data: Prisma.RecentFileItemCreateManyInput | Prisma.RecentFileItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem createManyAndReturn
|
|
*/
|
|
export type RecentFileItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many RecentFileItems.
|
|
*/
|
|
data: Prisma.RecentFileItemCreateManyInput | Prisma.RecentFileItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem update
|
|
*/
|
|
export type RecentFileItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a RecentFileItem.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateInput, Prisma.RecentFileItemUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which RecentFileItem to update.
|
|
*/
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem updateMany
|
|
*/
|
|
export type RecentFileItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update RecentFileItems.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateManyMutationInput, Prisma.RecentFileItemUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RecentFileItems to update
|
|
*/
|
|
where?: Prisma.RecentFileItemWhereInput
|
|
/**
|
|
* Limit how many RecentFileItems to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem updateManyAndReturn
|
|
*/
|
|
export type RecentFileItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update RecentFileItems.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecentFileItemUpdateManyMutationInput, Prisma.RecentFileItemUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RecentFileItems to update
|
|
*/
|
|
where?: Prisma.RecentFileItemWhereInput
|
|
/**
|
|
* Limit how many RecentFileItems to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem upsert
|
|
*/
|
|
export type RecentFileItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the RecentFileItem to update in case it exists.
|
|
*/
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
/**
|
|
* In case the RecentFileItem found by the `where` argument doesn't exist, create a new RecentFileItem with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.RecentFileItemCreateInput, Prisma.RecentFileItemUncheckedCreateInput>
|
|
/**
|
|
* In case the RecentFileItem was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.RecentFileItemUpdateInput, Prisma.RecentFileItemUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem delete
|
|
*/
|
|
export type RecentFileItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which RecentFileItem to delete.
|
|
*/
|
|
where: Prisma.RecentFileItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem deleteMany
|
|
*/
|
|
export type RecentFileItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RecentFileItems to delete
|
|
*/
|
|
where?: Prisma.RecentFileItemWhereInput
|
|
/**
|
|
* Limit how many RecentFileItems to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RecentFileItem without action
|
|
*/
|
|
export type RecentFileItemDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentFileItem
|
|
*/
|
|
select?: Prisma.RecentFileItemSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentFileItem
|
|
*/
|
|
omit?: Prisma.RecentFileItemOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecentFileItemInclude<ExtArgs> | null
|
|
}
|