Files
shumai/packages/db/src/generated/prisma/models/AssetComment.ts
T

2397 lines
105 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 `AssetComment` 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 AssetComment
*
*/
export type AssetCommentModel = runtime.Types.Result.DefaultSelection<Prisma.$AssetCommentPayload>
export type AggregateAssetComment = {
_count: AssetCommentCountAggregateOutputType | null
_avg: AssetCommentAvgAggregateOutputType | null
_sum: AssetCommentSumAggregateOutputType | null
_min: AssetCommentMinAggregateOutputType | null
_max: AssetCommentMaxAggregateOutputType | null
}
export type AssetCommentAvgAggregateOutputType = {
second: number | null
}
export type AssetCommentSumAggregateOutputType = {
second: number | null
}
export type AssetCommentMinAggregateOutputType = {
id: string | null
message: string | null
second: number | null
sessionId: string | null
createdAt: Date | null
updatedAt: Date | null
assetId: string | null
creatorId: string | null
replyToId: string | null
}
export type AssetCommentMaxAggregateOutputType = {
id: string | null
message: string | null
second: number | null
sessionId: string | null
createdAt: Date | null
updatedAt: Date | null
assetId: string | null
creatorId: string | null
replyToId: string | null
}
export type AssetCommentCountAggregateOutputType = {
id: number
message: number
annotation:PrismaJson.AnnotationList
second: number
sessionId: number
createdAt: number
updatedAt: number
assetId: number
creatorId: number
replyToId: number
_all: number
}
export type AssetCommentAvgAggregateInputType = {
second?: true
}
export type AssetCommentSumAggregateInputType = {
second?: true
}
export type AssetCommentMinAggregateInputType = {
id?: true
message?: true
second?: true
sessionId?: true
createdAt?: true
updatedAt?: true
assetId?: true
creatorId?: true
replyToId?: true
}
export type AssetCommentMaxAggregateInputType = {
id?: true
message?: true
second?: true
sessionId?: true
createdAt?: true
updatedAt?: true
assetId?: true
creatorId?: true
replyToId?: true
}
export type AssetCommentCountAggregateInputType = {
id?: true
message?: true
annotation?: true
second?: true
sessionId?: true
createdAt?: true
updatedAt?: true
assetId?: true
creatorId?: true
replyToId?: true
_all?: true
}
export type AssetCommentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AssetComment to aggregate.
*/
where?: Prisma.AssetCommentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AssetComments to fetch.
*/
orderBy?: Prisma.AssetCommentOrderByWithRelationInput | Prisma.AssetCommentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AssetCommentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AssetComments 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` AssetComments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AssetComments
**/
_count?: true | AssetCommentCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: AssetCommentAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: AssetCommentSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AssetCommentMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AssetCommentMaxAggregateInputType
}
export type GetAssetCommentAggregateType<T extends AssetCommentAggregateArgs> = {
[P in keyof T & keyof AggregateAssetComment]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAssetComment[P]>
: Prisma.GetScalarType<T[P], AggregateAssetComment[P]>
}
export type AssetCommentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AssetCommentWhereInput
orderBy?: Prisma.AssetCommentOrderByWithAggregationInput | Prisma.AssetCommentOrderByWithAggregationInput[]
by: Prisma.AssetCommentScalarFieldEnum[] | Prisma.AssetCommentScalarFieldEnum
having?: Prisma.AssetCommentScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AssetCommentCountAggregateInputType | true
_avg?: AssetCommentAvgAggregateInputType
_sum?: AssetCommentSumAggregateInputType
_min?: AssetCommentMinAggregateInputType
_max?: AssetCommentMaxAggregateInputType
}
export type AssetCommentGroupByOutputType = {
id: string
message: string | null
annotation:PrismaJson.AnnotationList | null
second: number | null
sessionId: string | null
createdAt: Date
updatedAt: Date
assetId: string
creatorId: string | null
replyToId: string | null
_count: AssetCommentCountAggregateOutputType | null
_avg: AssetCommentAvgAggregateOutputType | null
_sum: AssetCommentSumAggregateOutputType | null
_min: AssetCommentMinAggregateOutputType | null
_max: AssetCommentMaxAggregateOutputType | null
}
export type GetAssetCommentGroupByPayload<T extends AssetCommentGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AssetCommentGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AssetCommentGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AssetCommentGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AssetCommentGroupByOutputType[P]>
}
>
>
export type AssetCommentWhereInput = {
AND?: Prisma.AssetCommentWhereInput | Prisma.AssetCommentWhereInput[]
OR?: Prisma.AssetCommentWhereInput[]
NOT?: Prisma.AssetCommentWhereInput | Prisma.AssetCommentWhereInput[]
id?: Prisma.StringFilter<"AssetComment"> | string
message?: Prisma.StringNullableFilter<"AssetComment"> | string | null
annotation?: Prisma.JsonNullableFilter<"AssetComment">
second?: Prisma.FloatNullableFilter<"AssetComment"> | number | null
sessionId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
createdAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
assetId?: Prisma.StringFilter<"AssetComment"> | string
creatorId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
replyToId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
session?: Prisma.XOR<Prisma.AgentSessionNullableScalarRelationFilter, Prisma.AgentSessionWhereInput> | null
asset?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
replyTo?: Prisma.XOR<Prisma.AssetCommentNullableScalarRelationFilter, Prisma.AssetCommentWhereInput> | null
replies?: Prisma.AssetCommentListRelationFilter
attachments?: Prisma.AssetCommentAttachmentListRelationFilter
}
export type AssetCommentOrderByWithRelationInput = {
id?: Prisma.SortOrder
message?: Prisma.SortOrderInput | Prisma.SortOrder
annotation?: Prisma.SortOrderInput | Prisma.SortOrder
second?: Prisma.SortOrderInput | Prisma.SortOrder
sessionId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
replyToId?: Prisma.SortOrderInput | Prisma.SortOrder
session?: Prisma.AgentSessionOrderByWithRelationInput
asset?: Prisma.AssetOrderByWithRelationInput
creator?: Prisma.UserOrderByWithRelationInput
replyTo?: Prisma.AssetCommentOrderByWithRelationInput
replies?: Prisma.AssetCommentOrderByRelationAggregateInput
attachments?: Prisma.AssetCommentAttachmentOrderByRelationAggregateInput
}
export type AssetCommentWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.AssetCommentWhereInput | Prisma.AssetCommentWhereInput[]
OR?: Prisma.AssetCommentWhereInput[]
NOT?: Prisma.AssetCommentWhereInput | Prisma.AssetCommentWhereInput[]
message?: Prisma.StringNullableFilter<"AssetComment"> | string | null
annotation?: Prisma.JsonNullableFilter<"AssetComment">
second?: Prisma.FloatNullableFilter<"AssetComment"> | number | null
sessionId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
createdAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
assetId?: Prisma.StringFilter<"AssetComment"> | string
creatorId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
replyToId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
session?: Prisma.XOR<Prisma.AgentSessionNullableScalarRelationFilter, Prisma.AgentSessionWhereInput> | null
asset?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
replyTo?: Prisma.XOR<Prisma.AssetCommentNullableScalarRelationFilter, Prisma.AssetCommentWhereInput> | null
replies?: Prisma.AssetCommentListRelationFilter
attachments?: Prisma.AssetCommentAttachmentListRelationFilter
}, "id">
export type AssetCommentOrderByWithAggregationInput = {
id?: Prisma.SortOrder
message?: Prisma.SortOrderInput | Prisma.SortOrder
annotation?: Prisma.SortOrderInput | Prisma.SortOrder
second?: Prisma.SortOrderInput | Prisma.SortOrder
sessionId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
replyToId?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.AssetCommentCountOrderByAggregateInput
_avg?: Prisma.AssetCommentAvgOrderByAggregateInput
_max?: Prisma.AssetCommentMaxOrderByAggregateInput
_min?: Prisma.AssetCommentMinOrderByAggregateInput
_sum?: Prisma.AssetCommentSumOrderByAggregateInput
}
export type AssetCommentScalarWhereWithAggregatesInput = {
AND?: Prisma.AssetCommentScalarWhereWithAggregatesInput | Prisma.AssetCommentScalarWhereWithAggregatesInput[]
OR?: Prisma.AssetCommentScalarWhereWithAggregatesInput[]
NOT?: Prisma.AssetCommentScalarWhereWithAggregatesInput | Prisma.AssetCommentScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"AssetComment"> | string
message?: Prisma.StringNullableWithAggregatesFilter<"AssetComment"> | string | null
annotation?: Prisma.JsonNullableWithAggregatesFilter<"AssetComment">
second?: Prisma.FloatNullableWithAggregatesFilter<"AssetComment"> | number | null
sessionId?: Prisma.StringNullableWithAggregatesFilter<"AssetComment"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AssetComment"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AssetComment"> | Date | string
assetId?: Prisma.StringWithAggregatesFilter<"AssetComment"> | string
creatorId?: Prisma.StringNullableWithAggregatesFilter<"AssetComment"> | string | null
replyToId?: Prisma.StringNullableWithAggregatesFilter<"AssetComment"> | string | null
}
export type AssetCommentCreateInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput
}
export type AssetCommentUncheckedCreateInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replyToId?: string | null
replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput
}
export type AssetCommentUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput
}
export type AssetCommentCreateManyInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replyToId?: string | null
}
export type AssetCommentUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AssetCommentUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AssetCommentListRelationFilter = {
every?: Prisma.AssetCommentWhereInput
some?: Prisma.AssetCommentWhereInput
none?: Prisma.AssetCommentWhereInput
}
export type AssetCommentOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AssetCommentNullableScalarRelationFilter = {
is?: Prisma.AssetCommentWhereInput | null
isNot?: Prisma.AssetCommentWhereInput | null
}
export type AssetCommentCountOrderByAggregateInput = {
id?: Prisma.SortOrder
message?: Prisma.SortOrder
annotation?: Prisma.SortOrder
second?: Prisma.SortOrder
sessionId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
replyToId?: Prisma.SortOrder
}
export type AssetCommentAvgOrderByAggregateInput = {
second?: Prisma.SortOrder
}
export type AssetCommentMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
message?: Prisma.SortOrder
second?: Prisma.SortOrder
sessionId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
replyToId?: Prisma.SortOrder
}
export type AssetCommentMinOrderByAggregateInput = {
id?: Prisma.SortOrder
message?: Prisma.SortOrder
second?: Prisma.SortOrder
sessionId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
replyToId?: Prisma.SortOrder
}
export type AssetCommentSumOrderByAggregateInput = {
second?: Prisma.SortOrder
}
export type AssetCommentScalarRelationFilter = {
is?: Prisma.AssetCommentWhereInput
isNot?: Prisma.AssetCommentWhereInput
}
export type AssetCommentCreateNestedManyWithoutCreatorInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutCreatorInput, Prisma.AssetCommentUncheckedCreateWithoutCreatorInput> | Prisma.AssetCommentCreateWithoutCreatorInput[] | Prisma.AssetCommentUncheckedCreateWithoutCreatorInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutCreatorInput | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput[]
createMany?: Prisma.AssetCommentCreateManyCreatorInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUncheckedCreateNestedManyWithoutCreatorInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutCreatorInput, Prisma.AssetCommentUncheckedCreateWithoutCreatorInput> | Prisma.AssetCommentCreateWithoutCreatorInput[] | Prisma.AssetCommentUncheckedCreateWithoutCreatorInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutCreatorInput | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput[]
createMany?: Prisma.AssetCommentCreateManyCreatorInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUpdateManyWithoutCreatorNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutCreatorInput, Prisma.AssetCommentUncheckedCreateWithoutCreatorInput> | Prisma.AssetCommentCreateWithoutCreatorInput[] | Prisma.AssetCommentUncheckedCreateWithoutCreatorInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutCreatorInput | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutCreatorInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutCreatorInput[]
createMany?: Prisma.AssetCommentCreateManyCreatorInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutCreatorInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutCreatorInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutCreatorInput | Prisma.AssetCommentUpdateManyWithWhereWithoutCreatorInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutCreatorInput, Prisma.AssetCommentUncheckedCreateWithoutCreatorInput> | Prisma.AssetCommentCreateWithoutCreatorInput[] | Prisma.AssetCommentUncheckedCreateWithoutCreatorInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutCreatorInput | Prisma.AssetCommentCreateOrConnectWithoutCreatorInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutCreatorInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutCreatorInput[]
createMany?: Prisma.AssetCommentCreateManyCreatorInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutCreatorInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutCreatorInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutCreatorInput | Prisma.AssetCommentUpdateManyWithWhereWithoutCreatorInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentCreateNestedManyWithoutAssetInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutAssetInput, Prisma.AssetCommentUncheckedCreateWithoutAssetInput> | Prisma.AssetCommentCreateWithoutAssetInput[] | Prisma.AssetCommentUncheckedCreateWithoutAssetInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutAssetInput | Prisma.AssetCommentCreateOrConnectWithoutAssetInput[]
createMany?: Prisma.AssetCommentCreateManyAssetInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUncheckedCreateNestedManyWithoutAssetInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutAssetInput, Prisma.AssetCommentUncheckedCreateWithoutAssetInput> | Prisma.AssetCommentCreateWithoutAssetInput[] | Prisma.AssetCommentUncheckedCreateWithoutAssetInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutAssetInput | Prisma.AssetCommentCreateOrConnectWithoutAssetInput[]
createMany?: Prisma.AssetCommentCreateManyAssetInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUpdateManyWithoutAssetNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutAssetInput, Prisma.AssetCommentUncheckedCreateWithoutAssetInput> | Prisma.AssetCommentCreateWithoutAssetInput[] | Prisma.AssetCommentUncheckedCreateWithoutAssetInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutAssetInput | Prisma.AssetCommentCreateOrConnectWithoutAssetInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutAssetInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutAssetInput[]
createMany?: Prisma.AssetCommentCreateManyAssetInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutAssetInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutAssetInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutAssetInput | Prisma.AssetCommentUpdateManyWithWhereWithoutAssetInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentUncheckedUpdateManyWithoutAssetNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutAssetInput, Prisma.AssetCommentUncheckedCreateWithoutAssetInput> | Prisma.AssetCommentCreateWithoutAssetInput[] | Prisma.AssetCommentUncheckedCreateWithoutAssetInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutAssetInput | Prisma.AssetCommentCreateOrConnectWithoutAssetInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutAssetInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutAssetInput[]
createMany?: Prisma.AssetCommentCreateManyAssetInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutAssetInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutAssetInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutAssetInput | Prisma.AssetCommentUpdateManyWithWhereWithoutAssetInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentCreateNestedOneWithoutRepliesInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutRepliesInput, Prisma.AssetCommentUncheckedCreateWithoutRepliesInput>
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutRepliesInput
connect?: Prisma.AssetCommentWhereUniqueInput
}
export type AssetCommentCreateNestedManyWithoutReplyToInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutReplyToInput, Prisma.AssetCommentUncheckedCreateWithoutReplyToInput> | Prisma.AssetCommentCreateWithoutReplyToInput[] | Prisma.AssetCommentUncheckedCreateWithoutReplyToInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutReplyToInput | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput[]
createMany?: Prisma.AssetCommentCreateManyReplyToInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUncheckedCreateNestedManyWithoutReplyToInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutReplyToInput, Prisma.AssetCommentUncheckedCreateWithoutReplyToInput> | Prisma.AssetCommentCreateWithoutReplyToInput[] | Prisma.AssetCommentUncheckedCreateWithoutReplyToInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutReplyToInput | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput[]
createMany?: Prisma.AssetCommentCreateManyReplyToInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUpdateOneWithoutRepliesNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutRepliesInput, Prisma.AssetCommentUncheckedCreateWithoutRepliesInput>
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutRepliesInput
upsert?: Prisma.AssetCommentUpsertWithoutRepliesInput
disconnect?: Prisma.AssetCommentWhereInput | boolean
delete?: Prisma.AssetCommentWhereInput | boolean
connect?: Prisma.AssetCommentWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AssetCommentUpdateToOneWithWhereWithoutRepliesInput, Prisma.AssetCommentUpdateWithoutRepliesInput>, Prisma.AssetCommentUncheckedUpdateWithoutRepliesInput>
}
export type AssetCommentUpdateManyWithoutReplyToNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutReplyToInput, Prisma.AssetCommentUncheckedCreateWithoutReplyToInput> | Prisma.AssetCommentCreateWithoutReplyToInput[] | Prisma.AssetCommentUncheckedCreateWithoutReplyToInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutReplyToInput | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutReplyToInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutReplyToInput[]
createMany?: Prisma.AssetCommentCreateManyReplyToInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutReplyToInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutReplyToInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutReplyToInput | Prisma.AssetCommentUpdateManyWithWhereWithoutReplyToInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutReplyToInput, Prisma.AssetCommentUncheckedCreateWithoutReplyToInput> | Prisma.AssetCommentCreateWithoutReplyToInput[] | Prisma.AssetCommentUncheckedCreateWithoutReplyToInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutReplyToInput | Prisma.AssetCommentCreateOrConnectWithoutReplyToInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutReplyToInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutReplyToInput[]
createMany?: Prisma.AssetCommentCreateManyReplyToInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutReplyToInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutReplyToInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutReplyToInput | Prisma.AssetCommentUpdateManyWithWhereWithoutReplyToInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentCreateNestedOneWithoutAttachmentsInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutAttachmentsInput, Prisma.AssetCommentUncheckedCreateWithoutAttachmentsInput>
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutAttachmentsInput
connect?: Prisma.AssetCommentWhereUniqueInput
}
export type AssetCommentUpdateOneRequiredWithoutAttachmentsNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutAttachmentsInput, Prisma.AssetCommentUncheckedCreateWithoutAttachmentsInput>
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutAttachmentsInput
upsert?: Prisma.AssetCommentUpsertWithoutAttachmentsInput
connect?: Prisma.AssetCommentWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AssetCommentUpdateToOneWithWhereWithoutAttachmentsInput, Prisma.AssetCommentUpdateWithoutAttachmentsInput>, Prisma.AssetCommentUncheckedUpdateWithoutAttachmentsInput>
}
export type AssetCommentCreateNestedManyWithoutSessionInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput> | Prisma.AssetCommentCreateWithoutSessionInput[] | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutSessionInput | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[]
createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUncheckedCreateNestedManyWithoutSessionInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput> | Prisma.AssetCommentCreateWithoutSessionInput[] | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutSessionInput | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[]
createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUpdateManyWithoutSessionNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput> | Prisma.AssetCommentCreateWithoutSessionInput[] | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutSessionInput | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput[]
createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput | Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentUncheckedUpdateManyWithoutSessionNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput> | Prisma.AssetCommentCreateWithoutSessionInput[] | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutSessionInput | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput[]
createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput | Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentCreateWithoutCreatorInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput
}
export type AssetCommentUncheckedCreateWithoutCreatorInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
replyToId?: string | null
replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput
}
export type AssetCommentCreateOrConnectWithoutCreatorInput = {
where: Prisma.AssetCommentWhereUniqueInput
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutCreatorInput, Prisma.AssetCommentUncheckedCreateWithoutCreatorInput>
}
export type AssetCommentCreateManyCreatorInputEnvelope = {
data: Prisma.AssetCommentCreateManyCreatorInput | Prisma.AssetCommentCreateManyCreatorInput[]
skipDuplicates?: boolean
}
export type AssetCommentUpsertWithWhereUniqueWithoutCreatorInput = {
where: Prisma.AssetCommentWhereUniqueInput
update: Prisma.XOR<Prisma.AssetCommentUpdateWithoutCreatorInput, Prisma.AssetCommentUncheckedUpdateWithoutCreatorInput>
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutCreatorInput, Prisma.AssetCommentUncheckedCreateWithoutCreatorInput>
}
export type AssetCommentUpdateWithWhereUniqueWithoutCreatorInput = {
where: Prisma.AssetCommentWhereUniqueInput
data: Prisma.XOR<Prisma.AssetCommentUpdateWithoutCreatorInput, Prisma.AssetCommentUncheckedUpdateWithoutCreatorInput>
}
export type AssetCommentUpdateManyWithWhereWithoutCreatorInput = {
where: Prisma.AssetCommentScalarWhereInput
data: Prisma.XOR<Prisma.AssetCommentUpdateManyMutationInput, Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorInput>
}
export type AssetCommentScalarWhereInput = {
AND?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
OR?: Prisma.AssetCommentScalarWhereInput[]
NOT?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
id?: Prisma.StringFilter<"AssetComment"> | string
message?: Prisma.StringNullableFilter<"AssetComment"> | string | null
annotation?: Prisma.JsonNullableFilter<"AssetComment">
second?: Prisma.FloatNullableFilter<"AssetComment"> | number | null
sessionId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
createdAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
assetId?: Prisma.StringFilter<"AssetComment"> | string
creatorId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
replyToId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
}
export type AssetCommentCreateWithoutAssetInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput
}
export type AssetCommentUncheckedCreateWithoutAssetInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
creatorId?: string | null
replyToId?: string | null
replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput
}
export type AssetCommentCreateOrConnectWithoutAssetInput = {
where: Prisma.AssetCommentWhereUniqueInput
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutAssetInput, Prisma.AssetCommentUncheckedCreateWithoutAssetInput>
}
export type AssetCommentCreateManyAssetInputEnvelope = {
data: Prisma.AssetCommentCreateManyAssetInput | Prisma.AssetCommentCreateManyAssetInput[]
skipDuplicates?: boolean
}
export type AssetCommentUpsertWithWhereUniqueWithoutAssetInput = {
where: Prisma.AssetCommentWhereUniqueInput
update: Prisma.XOR<Prisma.AssetCommentUpdateWithoutAssetInput, Prisma.AssetCommentUncheckedUpdateWithoutAssetInput>
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutAssetInput, Prisma.AssetCommentUncheckedCreateWithoutAssetInput>
}
export type AssetCommentUpdateWithWhereUniqueWithoutAssetInput = {
where: Prisma.AssetCommentWhereUniqueInput
data: Prisma.XOR<Prisma.AssetCommentUpdateWithoutAssetInput, Prisma.AssetCommentUncheckedUpdateWithoutAssetInput>
}
export type AssetCommentUpdateManyWithWhereWithoutAssetInput = {
where: Prisma.AssetCommentScalarWhereInput
data: Prisma.XOR<Prisma.AssetCommentUpdateManyMutationInput, Prisma.AssetCommentUncheckedUpdateManyWithoutAssetInput>
}
export type AssetCommentCreateWithoutRepliesInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput
}
export type AssetCommentUncheckedCreateWithoutRepliesInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replyToId?: string | null
attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput
}
export type AssetCommentCreateOrConnectWithoutRepliesInput = {
where: Prisma.AssetCommentWhereUniqueInput
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutRepliesInput, Prisma.AssetCommentUncheckedCreateWithoutRepliesInput>
}
export type AssetCommentCreateWithoutReplyToInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput
}
export type AssetCommentUncheckedCreateWithoutReplyToInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput
}
export type AssetCommentCreateOrConnectWithoutReplyToInput = {
where: Prisma.AssetCommentWhereUniqueInput
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutReplyToInput, Prisma.AssetCommentUncheckedCreateWithoutReplyToInput>
}
export type AssetCommentCreateManyReplyToInputEnvelope = {
data: Prisma.AssetCommentCreateManyReplyToInput | Prisma.AssetCommentCreateManyReplyToInput[]
skipDuplicates?: boolean
}
export type AssetCommentUpsertWithoutRepliesInput = {
update: Prisma.XOR<Prisma.AssetCommentUpdateWithoutRepliesInput, Prisma.AssetCommentUncheckedUpdateWithoutRepliesInput>
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutRepliesInput, Prisma.AssetCommentUncheckedCreateWithoutRepliesInput>
where?: Prisma.AssetCommentWhereInput
}
export type AssetCommentUpdateToOneWithWhereWithoutRepliesInput = {
where?: Prisma.AssetCommentWhereInput
data: Prisma.XOR<Prisma.AssetCommentUpdateWithoutRepliesInput, Prisma.AssetCommentUncheckedUpdateWithoutRepliesInput>
}
export type AssetCommentUpdateWithoutRepliesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateWithoutRepliesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUpsertWithWhereUniqueWithoutReplyToInput = {
where: Prisma.AssetCommentWhereUniqueInput
update: Prisma.XOR<Prisma.AssetCommentUpdateWithoutReplyToInput, Prisma.AssetCommentUncheckedUpdateWithoutReplyToInput>
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutReplyToInput, Prisma.AssetCommentUncheckedCreateWithoutReplyToInput>
}
export type AssetCommentUpdateWithWhereUniqueWithoutReplyToInput = {
where: Prisma.AssetCommentWhereUniqueInput
data: Prisma.XOR<Prisma.AssetCommentUpdateWithoutReplyToInput, Prisma.AssetCommentUncheckedUpdateWithoutReplyToInput>
}
export type AssetCommentUpdateManyWithWhereWithoutReplyToInput = {
where: Prisma.AssetCommentScalarWhereInput
data: Prisma.XOR<Prisma.AssetCommentUpdateManyMutationInput, Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToInput>
}
export type AssetCommentCreateWithoutAttachmentsInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
}
export type AssetCommentUncheckedCreateWithoutAttachmentsInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replyToId?: string | null
replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput
}
export type AssetCommentCreateOrConnectWithoutAttachmentsInput = {
where: Prisma.AssetCommentWhereUniqueInput
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutAttachmentsInput, Prisma.AssetCommentUncheckedCreateWithoutAttachmentsInput>
}
export type AssetCommentUpsertWithoutAttachmentsInput = {
update: Prisma.XOR<Prisma.AssetCommentUpdateWithoutAttachmentsInput, Prisma.AssetCommentUncheckedUpdateWithoutAttachmentsInput>
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutAttachmentsInput, Prisma.AssetCommentUncheckedCreateWithoutAttachmentsInput>
where?: Prisma.AssetCommentWhereInput
}
export type AssetCommentUpdateToOneWithWhereWithoutAttachmentsInput = {
where?: Prisma.AssetCommentWhereInput
data: Prisma.XOR<Prisma.AssetCommentUpdateWithoutAttachmentsInput, Prisma.AssetCommentUncheckedUpdateWithoutAttachmentsInput>
}
export type AssetCommentUpdateWithoutAttachmentsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
}
export type AssetCommentUncheckedUpdateWithoutAttachmentsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput
}
export type AssetCommentCreateWithoutSessionInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput
}
export type AssetCommentUncheckedCreateWithoutSessionInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replyToId?: string | null
replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput
}
export type AssetCommentCreateOrConnectWithoutSessionInput = {
where: Prisma.AssetCommentWhereUniqueInput
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput>
}
export type AssetCommentCreateManySessionInputEnvelope = {
data: Prisma.AssetCommentCreateManySessionInput | Prisma.AssetCommentCreateManySessionInput[]
skipDuplicates?: boolean
}
export type AssetCommentUpsertWithWhereUniqueWithoutSessionInput = {
where: Prisma.AssetCommentWhereUniqueInput
update: Prisma.XOR<Prisma.AssetCommentUpdateWithoutSessionInput, Prisma.AssetCommentUncheckedUpdateWithoutSessionInput>
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput>
}
export type AssetCommentUpdateWithWhereUniqueWithoutSessionInput = {
where: Prisma.AssetCommentWhereUniqueInput
data: Prisma.XOR<Prisma.AssetCommentUpdateWithoutSessionInput, Prisma.AssetCommentUncheckedUpdateWithoutSessionInput>
}
export type AssetCommentUpdateManyWithWhereWithoutSessionInput = {
where: Prisma.AssetCommentScalarWhereInput
data: Prisma.XOR<Prisma.AssetCommentUpdateManyMutationInput, Prisma.AssetCommentUncheckedUpdateManyWithoutSessionInput>
}
export type AssetCommentCreateManyCreatorInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
replyToId?: string | null
}
export type AssetCommentUpdateWithoutCreatorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateWithoutCreatorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateManyWithoutCreatorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AssetCommentCreateManyAssetInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
creatorId?: string | null
replyToId?: string | null
}
export type AssetCommentUpdateWithoutAssetInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateWithoutAssetInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateManyWithoutAssetInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AssetCommentCreateManyReplyToInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
}
export type AssetCommentUpdateWithoutReplyToInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateWithoutReplyToInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateManyWithoutReplyToInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AssetCommentCreateManySessionInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replyToId?: string | null
}
export type AssetCommentUpdateWithoutSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateWithoutSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateManyWithoutSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
/**
* Count Type AssetCommentCountOutputType
*/
export type AssetCommentCountOutputType = {
replies: number
attachments: number
}
export type AssetCommentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
replies?: boolean | AssetCommentCountOutputTypeCountRepliesArgs
attachments?: boolean | AssetCommentCountOutputTypeCountAttachmentsArgs
}
/**
* AssetCommentCountOutputType without action
*/
export type AssetCommentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetCommentCountOutputType
*/
select?: Prisma.AssetCommentCountOutputTypeSelect<ExtArgs> | null
}
/**
* AssetCommentCountOutputType without action
*/
export type AssetCommentCountOutputTypeCountRepliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AssetCommentWhereInput
}
/**
* AssetCommentCountOutputType without action
*/
export type AssetCommentCountOutputTypeCountAttachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AssetCommentAttachmentWhereInput
}
export type AssetCommentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
message?: boolean
annotation?: boolean
second?: boolean
sessionId?: boolean
createdAt?: boolean
updatedAt?: boolean
assetId?: boolean
creatorId?: boolean
replyToId?: boolean
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
replies?: boolean | Prisma.AssetComment$repliesArgs<ExtArgs>
attachments?: boolean | Prisma.AssetComment$attachmentsArgs<ExtArgs>
_count?: boolean | Prisma.AssetCommentCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["assetComment"]>
export type AssetCommentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
message?: boolean
annotation?: boolean
second?: boolean
sessionId?: boolean
createdAt?: boolean
updatedAt?: boolean
assetId?: boolean
creatorId?: boolean
replyToId?: boolean
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
}, ExtArgs["result"]["assetComment"]>
export type AssetCommentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
message?: boolean
annotation?: boolean
second?: boolean
sessionId?: boolean
createdAt?: boolean
updatedAt?: boolean
assetId?: boolean
creatorId?: boolean
replyToId?: boolean
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
}, ExtArgs["result"]["assetComment"]>
export type AssetCommentSelectScalar = {
id?: boolean
message?: boolean
annotation?: boolean
second?: boolean
sessionId?: boolean
createdAt?: boolean
updatedAt?: boolean
assetId?: boolean
creatorId?: boolean
replyToId?: boolean
}
export type AssetCommentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "message" | "annotation" | "second" | "sessionId" | "createdAt" | "updatedAt" | "assetId" | "creatorId" | "replyToId", ExtArgs["result"]["assetComment"]>
export type AssetCommentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
replies?: boolean | Prisma.AssetComment$repliesArgs<ExtArgs>
attachments?: boolean | Prisma.AssetComment$attachmentsArgs<ExtArgs>
_count?: boolean | Prisma.AssetCommentCountOutputTypeDefaultArgs<ExtArgs>
}
export type AssetCommentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
}
export type AssetCommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
}
export type $AssetCommentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AssetComment"
objects: {
session: Prisma.$AgentSessionPayload<ExtArgs> | null
asset: Prisma.$AssetPayload<ExtArgs>
creator: Prisma.$UserPayload<ExtArgs> | null
replyTo: Prisma.$AssetCommentPayload<ExtArgs> | null
replies: Prisma.$AssetCommentPayload<ExtArgs>[]
attachments: Prisma.$AssetCommentAttachmentPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
message: string | null
/**
* [AnnotationList]
*/
annotation:PrismaJson.AnnotationList | null
second: number | null
sessionId: string | null
createdAt: Date
updatedAt: Date
assetId: string
creatorId: string | null
replyToId: string | null
}, ExtArgs["result"]["assetComment"]>
composites: {}
}
export type AssetCommentGetPayload<S extends boolean | null | undefined | AssetCommentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload, S>
export type AssetCommentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AssetCommentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AssetCommentCountAggregateInputType | true
}
export interface AssetCommentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AssetComment'], meta: { name: 'AssetComment' } }
/**
* Find zero or one AssetComment that matches the filter.
* @param {AssetCommentFindUniqueArgs} args - Arguments to find a AssetComment
* @example
* // Get one AssetComment
* const assetComment = await prisma.assetComment.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AssetCommentFindUniqueArgs>(args: Prisma.SelectSubset<T, AssetCommentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AssetComment that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AssetCommentFindUniqueOrThrowArgs} args - Arguments to find a AssetComment
* @example
* // Get one AssetComment
* const assetComment = await prisma.assetComment.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AssetCommentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AssetCommentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AssetComment 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 {AssetCommentFindFirstArgs} args - Arguments to find a AssetComment
* @example
* // Get one AssetComment
* const assetComment = await prisma.assetComment.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AssetCommentFindFirstArgs>(args?: Prisma.SelectSubset<T, AssetCommentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AssetComment 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 {AssetCommentFindFirstOrThrowArgs} args - Arguments to find a AssetComment
* @example
* // Get one AssetComment
* const assetComment = await prisma.assetComment.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AssetCommentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AssetCommentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AssetComments 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 {AssetCommentFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AssetComments
* const assetComments = await prisma.assetComment.findMany()
*
* // Get first 10 AssetComments
* const assetComments = await prisma.assetComment.findMany({ take: 10 })
*
* // Only select the `id`
* const assetCommentWithIdOnly = await prisma.assetComment.findMany({ select: { id: true } })
*
*/
findMany<T extends AssetCommentFindManyArgs>(args?: Prisma.SelectSubset<T, AssetCommentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AssetComment.
* @param {AssetCommentCreateArgs} args - Arguments to create a AssetComment.
* @example
* // Create one AssetComment
* const AssetComment = await prisma.assetComment.create({
* data: {
* // ... data to create a AssetComment
* }
* })
*
*/
create<T extends AssetCommentCreateArgs>(args: Prisma.SelectSubset<T, AssetCommentCreateArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AssetComments.
* @param {AssetCommentCreateManyArgs} args - Arguments to create many AssetComments.
* @example
* // Create many AssetComments
* const assetComment = await prisma.assetComment.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AssetCommentCreateManyArgs>(args?: Prisma.SelectSubset<T, AssetCommentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AssetComments and returns the data saved in the database.
* @param {AssetCommentCreateManyAndReturnArgs} args - Arguments to create many AssetComments.
* @example
* // Create many AssetComments
* const assetComment = await prisma.assetComment.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AssetComments and only return the `id`
* const assetCommentWithIdOnly = await prisma.assetComment.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 AssetCommentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AssetCommentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AssetComment.
* @param {AssetCommentDeleteArgs} args - Arguments to delete one AssetComment.
* @example
* // Delete one AssetComment
* const AssetComment = await prisma.assetComment.delete({
* where: {
* // ... filter to delete one AssetComment
* }
* })
*
*/
delete<T extends AssetCommentDeleteArgs>(args: Prisma.SelectSubset<T, AssetCommentDeleteArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AssetComment.
* @param {AssetCommentUpdateArgs} args - Arguments to update one AssetComment.
* @example
* // Update one AssetComment
* const assetComment = await prisma.assetComment.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AssetCommentUpdateArgs>(args: Prisma.SelectSubset<T, AssetCommentUpdateArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AssetComments.
* @param {AssetCommentDeleteManyArgs} args - Arguments to filter AssetComments to delete.
* @example
* // Delete a few AssetComments
* const { count } = await prisma.assetComment.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AssetCommentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AssetCommentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AssetComments.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AssetCommentUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AssetComments
* const assetComment = await prisma.assetComment.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AssetCommentUpdateManyArgs>(args: Prisma.SelectSubset<T, AssetCommentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AssetComments and returns the data updated in the database.
* @param {AssetCommentUpdateManyAndReturnArgs} args - Arguments to update many AssetComments.
* @example
* // Update many AssetComments
* const assetComment = await prisma.assetComment.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AssetComments and only return the `id`
* const assetCommentWithIdOnly = await prisma.assetComment.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 AssetCommentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AssetCommentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AssetComment.
* @param {AssetCommentUpsertArgs} args - Arguments to update or create a AssetComment.
* @example
* // Update or create a AssetComment
* const assetComment = await prisma.assetComment.upsert({
* create: {
* // ... data to create a AssetComment
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AssetComment we want to update
* }
* })
*/
upsert<T extends AssetCommentUpsertArgs>(args: Prisma.SelectSubset<T, AssetCommentUpsertArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AssetComments.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AssetCommentCountArgs} args - Arguments to filter AssetComments to count.
* @example
* // Count the number of AssetComments
* const count = await prisma.assetComment.count({
* where: {
* // ... the filter for the AssetComments we want to count
* }
* })
**/
count<T extends AssetCommentCountArgs>(
args?: Prisma.Subset<T, AssetCommentCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AssetCommentCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AssetComment.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AssetCommentAggregateArgs} 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 AssetCommentAggregateArgs>(args: Prisma.Subset<T, AssetCommentAggregateArgs>): Prisma.PrismaPromise<GetAssetCommentAggregateType<T>>
/**
* Group by AssetComment.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AssetCommentGroupByArgs} 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 AssetCommentGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AssetCommentGroupByArgs['orderBy'] }
: { orderBy?: AssetCommentGroupByArgs['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, AssetCommentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAssetCommentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AssetComment model
*/
readonly fields: AssetCommentFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AssetComment.
* 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__AssetCommentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
session<T extends Prisma.AssetComment$sessionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetComment$sessionArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<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>
creator<T extends Prisma.AssetComment$creatorArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetComment$creatorArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
replyTo<T extends Prisma.AssetComment$replyToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetComment$replyToArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
replies<T extends Prisma.AssetComment$repliesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetComment$repliesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
attachments<T extends Prisma.AssetComment$attachmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetComment$attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetCommentAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the AssetComment model
*/
export interface AssetCommentFieldRefs {
readonly id: Prisma.FieldRef<"AssetComment", 'String'>
readonly message: Prisma.FieldRef<"AssetComment", 'String'>
readonly annotation: Prisma.FieldRef<"AssetComment", 'Json'>
readonly second: Prisma.FieldRef<"AssetComment", 'Float'>
readonly sessionId: Prisma.FieldRef<"AssetComment", 'String'>
readonly createdAt: Prisma.FieldRef<"AssetComment", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"AssetComment", 'DateTime'>
readonly assetId: Prisma.FieldRef<"AssetComment", 'String'>
readonly creatorId: Prisma.FieldRef<"AssetComment", 'String'>
readonly replyToId: Prisma.FieldRef<"AssetComment", 'String'>
}
// Custom InputTypes
/**
* AssetComment findUnique
*/
export type AssetCommentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* Filter, which AssetComment to fetch.
*/
where: Prisma.AssetCommentWhereUniqueInput
}
/**
* AssetComment findUniqueOrThrow
*/
export type AssetCommentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* Filter, which AssetComment to fetch.
*/
where: Prisma.AssetCommentWhereUniqueInput
}
/**
* AssetComment findFirst
*/
export type AssetCommentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* Filter, which AssetComment to fetch.
*/
where?: Prisma.AssetCommentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AssetComments to fetch.
*/
orderBy?: Prisma.AssetCommentOrderByWithRelationInput | Prisma.AssetCommentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AssetComments.
*/
cursor?: Prisma.AssetCommentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AssetComments 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` AssetComments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AssetComments.
*/
distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[]
}
/**
* AssetComment findFirstOrThrow
*/
export type AssetCommentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* Filter, which AssetComment to fetch.
*/
where?: Prisma.AssetCommentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AssetComments to fetch.
*/
orderBy?: Prisma.AssetCommentOrderByWithRelationInput | Prisma.AssetCommentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AssetComments.
*/
cursor?: Prisma.AssetCommentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AssetComments 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` AssetComments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AssetComments.
*/
distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[]
}
/**
* AssetComment findMany
*/
export type AssetCommentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* Filter, which AssetComments to fetch.
*/
where?: Prisma.AssetCommentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AssetComments to fetch.
*/
orderBy?: Prisma.AssetCommentOrderByWithRelationInput | Prisma.AssetCommentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AssetComments.
*/
cursor?: Prisma.AssetCommentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AssetComments 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` AssetComments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AssetComments.
*/
distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[]
}
/**
* AssetComment create
*/
export type AssetCommentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* The data needed to create a AssetComment.
*/
data: Prisma.XOR<Prisma.AssetCommentCreateInput, Prisma.AssetCommentUncheckedCreateInput>
}
/**
* AssetComment createMany
*/
export type AssetCommentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AssetComments.
*/
data: Prisma.AssetCommentCreateManyInput | Prisma.AssetCommentCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AssetComment createManyAndReturn
*/
export type AssetCommentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* The data used to create many AssetComments.
*/
data: Prisma.AssetCommentCreateManyInput | Prisma.AssetCommentCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AssetComment update
*/
export type AssetCommentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* The data needed to update a AssetComment.
*/
data: Prisma.XOR<Prisma.AssetCommentUpdateInput, Prisma.AssetCommentUncheckedUpdateInput>
/**
* Choose, which AssetComment to update.
*/
where: Prisma.AssetCommentWhereUniqueInput
}
/**
* AssetComment updateMany
*/
export type AssetCommentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AssetComments.
*/
data: Prisma.XOR<Prisma.AssetCommentUpdateManyMutationInput, Prisma.AssetCommentUncheckedUpdateManyInput>
/**
* Filter which AssetComments to update
*/
where?: Prisma.AssetCommentWhereInput
/**
* Limit how many AssetComments to update.
*/
limit?: number
}
/**
* AssetComment updateManyAndReturn
*/
export type AssetCommentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* The data used to update AssetComments.
*/
data: Prisma.XOR<Prisma.AssetCommentUpdateManyMutationInput, Prisma.AssetCommentUncheckedUpdateManyInput>
/**
* Filter which AssetComments to update
*/
where?: Prisma.AssetCommentWhereInput
/**
* Limit how many AssetComments to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AssetComment upsert
*/
export type AssetCommentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* The filter to search for the AssetComment to update in case it exists.
*/
where: Prisma.AssetCommentWhereUniqueInput
/**
* In case the AssetComment found by the `where` argument doesn't exist, create a new AssetComment with this data.
*/
create: Prisma.XOR<Prisma.AssetCommentCreateInput, Prisma.AssetCommentUncheckedCreateInput>
/**
* In case the AssetComment was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AssetCommentUpdateInput, Prisma.AssetCommentUncheckedUpdateInput>
}
/**
* AssetComment delete
*/
export type AssetCommentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
/**
* Filter which AssetComment to delete.
*/
where: Prisma.AssetCommentWhereUniqueInput
}
/**
* AssetComment deleteMany
*/
export type AssetCommentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AssetComments to delete
*/
where?: Prisma.AssetCommentWhereInput
/**
* Limit how many AssetComments to delete.
*/
limit?: number
}
/**
* AssetComment.session
*/
export type AssetComment$sessionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | null
where?: Prisma.AgentSessionWhereInput
}
/**
* AssetComment.creator
*/
export type AssetComment$creatorArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* AssetComment.replyTo
*/
export type AssetComment$replyToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
where?: Prisma.AssetCommentWhereInput
}
/**
* AssetComment.replies
*/
export type AssetComment$repliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
where?: Prisma.AssetCommentWhereInput
orderBy?: Prisma.AssetCommentOrderByWithRelationInput | Prisma.AssetCommentOrderByWithRelationInput[]
cursor?: Prisma.AssetCommentWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[]
}
/**
* AssetComment.attachments
*/
export type AssetComment$attachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetCommentAttachment
*/
select?: Prisma.AssetCommentAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetCommentAttachment
*/
omit?: Prisma.AssetCommentAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentAttachmentInclude<ExtArgs> | null
where?: Prisma.AssetCommentAttachmentWhereInput
orderBy?: Prisma.AssetCommentAttachmentOrderByWithRelationInput | Prisma.AssetCommentAttachmentOrderByWithRelationInput[]
cursor?: Prisma.AssetCommentAttachmentWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AssetCommentAttachmentScalarFieldEnum | Prisma.AssetCommentAttachmentScalarFieldEnum[]
}
/**
* AssetComment without action
*/
export type AssetCommentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
}