1346 lines
57 KiB
TypeScript
1346 lines
57 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `MessageAttachment` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model MessageAttachment
|
|
*
|
|
*/
|
|
export type MessageAttachmentModel = runtime.Types.Result.DefaultSelection<Prisma.$MessageAttachmentPayload>
|
|
|
|
export type AggregateMessageAttachment = {
|
|
_count: MessageAttachmentCountAggregateOutputType | null
|
|
_min: MessageAttachmentMinAggregateOutputType | null
|
|
_max: MessageAttachmentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MessageAttachmentMinAggregateOutputType = {
|
|
messageId: string | null
|
|
attachmentId: string | null
|
|
}
|
|
|
|
export type MessageAttachmentMaxAggregateOutputType = {
|
|
messageId: string | null
|
|
attachmentId: string | null
|
|
}
|
|
|
|
export type MessageAttachmentCountAggregateOutputType = {
|
|
messageId: number
|
|
attachmentId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MessageAttachmentMinAggregateInputType = {
|
|
messageId?: true
|
|
attachmentId?: true
|
|
}
|
|
|
|
export type MessageAttachmentMaxAggregateInputType = {
|
|
messageId?: true
|
|
attachmentId?: true
|
|
}
|
|
|
|
export type MessageAttachmentCountAggregateInputType = {
|
|
messageId?: true
|
|
attachmentId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MessageAttachmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MessageAttachment to aggregate.
|
|
*/
|
|
where?: Prisma.MessageAttachmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MessageAttachments to fetch.
|
|
*/
|
|
orderBy?: Prisma.MessageAttachmentOrderByWithRelationInput | Prisma.MessageAttachmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.MessageAttachmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MessageAttachments 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` MessageAttachments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MessageAttachments
|
|
**/
|
|
_count?: true | MessageAttachmentCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MessageAttachmentMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MessageAttachmentMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMessageAttachmentAggregateType<T extends MessageAttachmentAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMessageAttachment]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMessageAttachment[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMessageAttachment[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MessageAttachmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MessageAttachmentWhereInput
|
|
orderBy?: Prisma.MessageAttachmentOrderByWithAggregationInput | Prisma.MessageAttachmentOrderByWithAggregationInput[]
|
|
by: Prisma.MessageAttachmentScalarFieldEnum[] | Prisma.MessageAttachmentScalarFieldEnum
|
|
having?: Prisma.MessageAttachmentScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MessageAttachmentCountAggregateInputType | true
|
|
_min?: MessageAttachmentMinAggregateInputType
|
|
_max?: MessageAttachmentMaxAggregateInputType
|
|
}
|
|
|
|
export type MessageAttachmentGroupByOutputType = {
|
|
messageId: string
|
|
attachmentId: string
|
|
_count: MessageAttachmentCountAggregateOutputType | null
|
|
_min: MessageAttachmentMinAggregateOutputType | null
|
|
_max: MessageAttachmentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetMessageAttachmentGroupByPayload<T extends MessageAttachmentGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<MessageAttachmentGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MessageAttachmentGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], MessageAttachmentGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], MessageAttachmentGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type MessageAttachmentWhereInput = {
|
|
AND?: Prisma.MessageAttachmentWhereInput | Prisma.MessageAttachmentWhereInput[]
|
|
OR?: Prisma.MessageAttachmentWhereInput[]
|
|
NOT?: Prisma.MessageAttachmentWhereInput | Prisma.MessageAttachmentWhereInput[]
|
|
messageId?: Prisma.StringFilter<"MessageAttachment"> | string
|
|
attachmentId?: Prisma.StringFilter<"MessageAttachment"> | string
|
|
message?: Prisma.XOR<Prisma.MessageScalarRelationFilter, Prisma.MessageWhereInput>
|
|
attachment?: Prisma.XOR<Prisma.AttachmentScalarRelationFilter, Prisma.AttachmentWhereInput>
|
|
}
|
|
|
|
export type MessageAttachmentOrderByWithRelationInput = {
|
|
messageId?: Prisma.SortOrder
|
|
attachmentId?: Prisma.SortOrder
|
|
message?: Prisma.MessageOrderByWithRelationInput
|
|
attachment?: Prisma.AttachmentOrderByWithRelationInput
|
|
}
|
|
|
|
export type MessageAttachmentWhereUniqueInput = Prisma.AtLeast<{
|
|
messageId_attachmentId?: Prisma.MessageAttachmentMessageIdAttachmentIdCompoundUniqueInput
|
|
AND?: Prisma.MessageAttachmentWhereInput | Prisma.MessageAttachmentWhereInput[]
|
|
OR?: Prisma.MessageAttachmentWhereInput[]
|
|
NOT?: Prisma.MessageAttachmentWhereInput | Prisma.MessageAttachmentWhereInput[]
|
|
messageId?: Prisma.StringFilter<"MessageAttachment"> | string
|
|
attachmentId?: Prisma.StringFilter<"MessageAttachment"> | string
|
|
message?: Prisma.XOR<Prisma.MessageScalarRelationFilter, Prisma.MessageWhereInput>
|
|
attachment?: Prisma.XOR<Prisma.AttachmentScalarRelationFilter, Prisma.AttachmentWhereInput>
|
|
}, "messageId_attachmentId">
|
|
|
|
export type MessageAttachmentOrderByWithAggregationInput = {
|
|
messageId?: Prisma.SortOrder
|
|
attachmentId?: Prisma.SortOrder
|
|
_count?: Prisma.MessageAttachmentCountOrderByAggregateInput
|
|
_max?: Prisma.MessageAttachmentMaxOrderByAggregateInput
|
|
_min?: Prisma.MessageAttachmentMinOrderByAggregateInput
|
|
}
|
|
|
|
export type MessageAttachmentScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.MessageAttachmentScalarWhereWithAggregatesInput | Prisma.MessageAttachmentScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.MessageAttachmentScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.MessageAttachmentScalarWhereWithAggregatesInput | Prisma.MessageAttachmentScalarWhereWithAggregatesInput[]
|
|
messageId?: Prisma.StringWithAggregatesFilter<"MessageAttachment"> | string
|
|
attachmentId?: Prisma.StringWithAggregatesFilter<"MessageAttachment"> | string
|
|
}
|
|
|
|
export type MessageAttachmentCreateInput = {
|
|
message: Prisma.MessageCreateNestedOneWithoutAttachmentsInput
|
|
attachment: Prisma.AttachmentCreateNestedOneWithoutMessageInput
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedCreateInput = {
|
|
messageId: string
|
|
attachmentId: string
|
|
}
|
|
|
|
export type MessageAttachmentUpdateInput = {
|
|
message?: Prisma.MessageUpdateOneRequiredWithoutAttachmentsNestedInput
|
|
attachment?: Prisma.AttachmentUpdateOneRequiredWithoutMessageNestedInput
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedUpdateInput = {
|
|
messageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
attachmentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type MessageAttachmentCreateManyInput = {
|
|
messageId: string
|
|
attachmentId: string
|
|
}
|
|
|
|
export type MessageAttachmentUpdateManyMutationInput = {
|
|
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedUpdateManyInput = {
|
|
messageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
attachmentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type MessageAttachmentListRelationFilter = {
|
|
every?: Prisma.MessageAttachmentWhereInput
|
|
some?: Prisma.MessageAttachmentWhereInput
|
|
none?: Prisma.MessageAttachmentWhereInput
|
|
}
|
|
|
|
export type MessageAttachmentOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MessageAttachmentMessageIdAttachmentIdCompoundUniqueInput = {
|
|
messageId: string
|
|
attachmentId: string
|
|
}
|
|
|
|
export type MessageAttachmentCountOrderByAggregateInput = {
|
|
messageId?: Prisma.SortOrder
|
|
attachmentId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MessageAttachmentMaxOrderByAggregateInput = {
|
|
messageId?: Prisma.SortOrder
|
|
attachmentId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MessageAttachmentMinOrderByAggregateInput = {
|
|
messageId?: Prisma.SortOrder
|
|
attachmentId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MessageAttachmentCreateNestedManyWithoutAttachmentInput = {
|
|
create?: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutAttachmentInput, Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput> | Prisma.MessageAttachmentCreateWithoutAttachmentInput[] | Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput[]
|
|
connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput | Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput[]
|
|
createMany?: Prisma.MessageAttachmentCreateManyAttachmentInputEnvelope
|
|
connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedCreateNestedManyWithoutAttachmentInput = {
|
|
create?: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutAttachmentInput, Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput> | Prisma.MessageAttachmentCreateWithoutAttachmentInput[] | Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput[]
|
|
connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput | Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput[]
|
|
createMany?: Prisma.MessageAttachmentCreateManyAttachmentInputEnvelope
|
|
connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
}
|
|
|
|
export type MessageAttachmentUpdateManyWithoutAttachmentNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutAttachmentInput, Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput> | Prisma.MessageAttachmentCreateWithoutAttachmentInput[] | Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput[]
|
|
connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput | Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput[]
|
|
upsert?: Prisma.MessageAttachmentUpsertWithWhereUniqueWithoutAttachmentInput | Prisma.MessageAttachmentUpsertWithWhereUniqueWithoutAttachmentInput[]
|
|
createMany?: Prisma.MessageAttachmentCreateManyAttachmentInputEnvelope
|
|
set?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
disconnect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
delete?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
update?: Prisma.MessageAttachmentUpdateWithWhereUniqueWithoutAttachmentInput | Prisma.MessageAttachmentUpdateWithWhereUniqueWithoutAttachmentInput[]
|
|
updateMany?: Prisma.MessageAttachmentUpdateManyWithWhereWithoutAttachmentInput | Prisma.MessageAttachmentUpdateManyWithWhereWithoutAttachmentInput[]
|
|
deleteMany?: Prisma.MessageAttachmentScalarWhereInput | Prisma.MessageAttachmentScalarWhereInput[]
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedUpdateManyWithoutAttachmentNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutAttachmentInput, Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput> | Prisma.MessageAttachmentCreateWithoutAttachmentInput[] | Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput[]
|
|
connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput | Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput[]
|
|
upsert?: Prisma.MessageAttachmentUpsertWithWhereUniqueWithoutAttachmentInput | Prisma.MessageAttachmentUpsertWithWhereUniqueWithoutAttachmentInput[]
|
|
createMany?: Prisma.MessageAttachmentCreateManyAttachmentInputEnvelope
|
|
set?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
disconnect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
delete?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
update?: Prisma.MessageAttachmentUpdateWithWhereUniqueWithoutAttachmentInput | Prisma.MessageAttachmentUpdateWithWhereUniqueWithoutAttachmentInput[]
|
|
updateMany?: Prisma.MessageAttachmentUpdateManyWithWhereWithoutAttachmentInput | Prisma.MessageAttachmentUpdateManyWithWhereWithoutAttachmentInput[]
|
|
deleteMany?: Prisma.MessageAttachmentScalarWhereInput | Prisma.MessageAttachmentScalarWhereInput[]
|
|
}
|
|
|
|
export type MessageAttachmentCreateNestedManyWithoutMessageInput = {
|
|
create?: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutMessageInput, Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput> | Prisma.MessageAttachmentCreateWithoutMessageInput[] | Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput[]
|
|
connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput | Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput[]
|
|
createMany?: Prisma.MessageAttachmentCreateManyMessageInputEnvelope
|
|
connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedCreateNestedManyWithoutMessageInput = {
|
|
create?: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutMessageInput, Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput> | Prisma.MessageAttachmentCreateWithoutMessageInput[] | Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput[]
|
|
connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput | Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput[]
|
|
createMany?: Prisma.MessageAttachmentCreateManyMessageInputEnvelope
|
|
connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
}
|
|
|
|
export type MessageAttachmentUpdateManyWithoutMessageNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutMessageInput, Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput> | Prisma.MessageAttachmentCreateWithoutMessageInput[] | Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput[]
|
|
connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput | Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput[]
|
|
upsert?: Prisma.MessageAttachmentUpsertWithWhereUniqueWithoutMessageInput | Prisma.MessageAttachmentUpsertWithWhereUniqueWithoutMessageInput[]
|
|
createMany?: Prisma.MessageAttachmentCreateManyMessageInputEnvelope
|
|
set?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
disconnect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
delete?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
update?: Prisma.MessageAttachmentUpdateWithWhereUniqueWithoutMessageInput | Prisma.MessageAttachmentUpdateWithWhereUniqueWithoutMessageInput[]
|
|
updateMany?: Prisma.MessageAttachmentUpdateManyWithWhereWithoutMessageInput | Prisma.MessageAttachmentUpdateManyWithWhereWithoutMessageInput[]
|
|
deleteMany?: Prisma.MessageAttachmentScalarWhereInput | Prisma.MessageAttachmentScalarWhereInput[]
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedUpdateManyWithoutMessageNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutMessageInput, Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput> | Prisma.MessageAttachmentCreateWithoutMessageInput[] | Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput[]
|
|
connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput | Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput[]
|
|
upsert?: Prisma.MessageAttachmentUpsertWithWhereUniqueWithoutMessageInput | Prisma.MessageAttachmentUpsertWithWhereUniqueWithoutMessageInput[]
|
|
createMany?: Prisma.MessageAttachmentCreateManyMessageInputEnvelope
|
|
set?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
disconnect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
delete?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[]
|
|
update?: Prisma.MessageAttachmentUpdateWithWhereUniqueWithoutMessageInput | Prisma.MessageAttachmentUpdateWithWhereUniqueWithoutMessageInput[]
|
|
updateMany?: Prisma.MessageAttachmentUpdateManyWithWhereWithoutMessageInput | Prisma.MessageAttachmentUpdateManyWithWhereWithoutMessageInput[]
|
|
deleteMany?: Prisma.MessageAttachmentScalarWhereInput | Prisma.MessageAttachmentScalarWhereInput[]
|
|
}
|
|
|
|
export type MessageAttachmentCreateWithoutAttachmentInput = {
|
|
message: Prisma.MessageCreateNestedOneWithoutAttachmentsInput
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedCreateWithoutAttachmentInput = {
|
|
messageId: string
|
|
}
|
|
|
|
export type MessageAttachmentCreateOrConnectWithoutAttachmentInput = {
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutAttachmentInput, Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput>
|
|
}
|
|
|
|
export type MessageAttachmentCreateManyAttachmentInputEnvelope = {
|
|
data: Prisma.MessageAttachmentCreateManyAttachmentInput | Prisma.MessageAttachmentCreateManyAttachmentInput[]
|
|
}
|
|
|
|
export type MessageAttachmentUpsertWithWhereUniqueWithoutAttachmentInput = {
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MessageAttachmentUpdateWithoutAttachmentInput, Prisma.MessageAttachmentUncheckedUpdateWithoutAttachmentInput>
|
|
create: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutAttachmentInput, Prisma.MessageAttachmentUncheckedCreateWithoutAttachmentInput>
|
|
}
|
|
|
|
export type MessageAttachmentUpdateWithWhereUniqueWithoutAttachmentInput = {
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MessageAttachmentUpdateWithoutAttachmentInput, Prisma.MessageAttachmentUncheckedUpdateWithoutAttachmentInput>
|
|
}
|
|
|
|
export type MessageAttachmentUpdateManyWithWhereWithoutAttachmentInput = {
|
|
where: Prisma.MessageAttachmentScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MessageAttachmentUpdateManyMutationInput, Prisma.MessageAttachmentUncheckedUpdateManyWithoutAttachmentInput>
|
|
}
|
|
|
|
export type MessageAttachmentScalarWhereInput = {
|
|
AND?: Prisma.MessageAttachmentScalarWhereInput | Prisma.MessageAttachmentScalarWhereInput[]
|
|
OR?: Prisma.MessageAttachmentScalarWhereInput[]
|
|
NOT?: Prisma.MessageAttachmentScalarWhereInput | Prisma.MessageAttachmentScalarWhereInput[]
|
|
messageId?: Prisma.StringFilter<"MessageAttachment"> | string
|
|
attachmentId?: Prisma.StringFilter<"MessageAttachment"> | string
|
|
}
|
|
|
|
export type MessageAttachmentCreateWithoutMessageInput = {
|
|
attachment: Prisma.AttachmentCreateNestedOneWithoutMessageInput
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedCreateWithoutMessageInput = {
|
|
attachmentId: string
|
|
}
|
|
|
|
export type MessageAttachmentCreateOrConnectWithoutMessageInput = {
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutMessageInput, Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput>
|
|
}
|
|
|
|
export type MessageAttachmentCreateManyMessageInputEnvelope = {
|
|
data: Prisma.MessageAttachmentCreateManyMessageInput | Prisma.MessageAttachmentCreateManyMessageInput[]
|
|
}
|
|
|
|
export type MessageAttachmentUpsertWithWhereUniqueWithoutMessageInput = {
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MessageAttachmentUpdateWithoutMessageInput, Prisma.MessageAttachmentUncheckedUpdateWithoutMessageInput>
|
|
create: Prisma.XOR<Prisma.MessageAttachmentCreateWithoutMessageInput, Prisma.MessageAttachmentUncheckedCreateWithoutMessageInput>
|
|
}
|
|
|
|
export type MessageAttachmentUpdateWithWhereUniqueWithoutMessageInput = {
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MessageAttachmentUpdateWithoutMessageInput, Prisma.MessageAttachmentUncheckedUpdateWithoutMessageInput>
|
|
}
|
|
|
|
export type MessageAttachmentUpdateManyWithWhereWithoutMessageInput = {
|
|
where: Prisma.MessageAttachmentScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MessageAttachmentUpdateManyMutationInput, Prisma.MessageAttachmentUncheckedUpdateManyWithoutMessageInput>
|
|
}
|
|
|
|
export type MessageAttachmentCreateManyAttachmentInput = {
|
|
messageId: string
|
|
}
|
|
|
|
export type MessageAttachmentUpdateWithoutAttachmentInput = {
|
|
message?: Prisma.MessageUpdateOneRequiredWithoutAttachmentsNestedInput
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedUpdateWithoutAttachmentInput = {
|
|
messageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedUpdateManyWithoutAttachmentInput = {
|
|
messageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type MessageAttachmentCreateManyMessageInput = {
|
|
attachmentId: string
|
|
}
|
|
|
|
export type MessageAttachmentUpdateWithoutMessageInput = {
|
|
attachment?: Prisma.AttachmentUpdateOneRequiredWithoutMessageNestedInput
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedUpdateWithoutMessageInput = {
|
|
attachmentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type MessageAttachmentUncheckedUpdateManyWithoutMessageInput = {
|
|
attachmentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type MessageAttachmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
messageId?: boolean
|
|
attachmentId?: boolean
|
|
message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
|
|
attachment?: boolean | Prisma.AttachmentDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["messageAttachment"]>
|
|
|
|
export type MessageAttachmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
messageId?: boolean
|
|
attachmentId?: boolean
|
|
message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
|
|
attachment?: boolean | Prisma.AttachmentDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["messageAttachment"]>
|
|
|
|
export type MessageAttachmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
messageId?: boolean
|
|
attachmentId?: boolean
|
|
message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
|
|
attachment?: boolean | Prisma.AttachmentDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["messageAttachment"]>
|
|
|
|
export type MessageAttachmentSelectScalar = {
|
|
messageId?: boolean
|
|
attachmentId?: boolean
|
|
}
|
|
|
|
export type MessageAttachmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"messageId" | "attachmentId", ExtArgs["result"]["messageAttachment"]>
|
|
export type MessageAttachmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
|
|
attachment?: boolean | Prisma.AttachmentDefaultArgs<ExtArgs>
|
|
}
|
|
export type MessageAttachmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
|
|
attachment?: boolean | Prisma.AttachmentDefaultArgs<ExtArgs>
|
|
}
|
|
export type MessageAttachmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
message?: boolean | Prisma.MessageDefaultArgs<ExtArgs>
|
|
attachment?: boolean | Prisma.AttachmentDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MessageAttachmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "MessageAttachment"
|
|
objects: {
|
|
message: Prisma.$MessagePayload<ExtArgs>
|
|
attachment: Prisma.$AttachmentPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
messageId: string
|
|
attachmentId: string
|
|
}, ExtArgs["result"]["messageAttachment"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type MessageAttachmentGetPayload<S extends boolean | null | undefined | MessageAttachmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload, S>
|
|
|
|
export type MessageAttachmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<MessageAttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: MessageAttachmentCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MessageAttachmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MessageAttachment'], meta: { name: 'MessageAttachment' } }
|
|
/**
|
|
* Find zero or one MessageAttachment that matches the filter.
|
|
* @param {MessageAttachmentFindUniqueArgs} args - Arguments to find a MessageAttachment
|
|
* @example
|
|
* // Get one MessageAttachment
|
|
* const messageAttachment = await prisma.messageAttachment.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MessageAttachmentFindUniqueArgs>(args: Prisma.SelectSubset<T, MessageAttachmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MessageAttachmentClient<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one MessageAttachment that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MessageAttachmentFindUniqueOrThrowArgs} args - Arguments to find a MessageAttachment
|
|
* @example
|
|
* // Get one MessageAttachment
|
|
* const messageAttachment = await prisma.messageAttachment.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MessageAttachmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MessageAttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MessageAttachmentClient<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MessageAttachment 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 {MessageAttachmentFindFirstArgs} args - Arguments to find a MessageAttachment
|
|
* @example
|
|
* // Get one MessageAttachment
|
|
* const messageAttachment = await prisma.messageAttachment.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MessageAttachmentFindFirstArgs>(args?: Prisma.SelectSubset<T, MessageAttachmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__MessageAttachmentClient<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MessageAttachment 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 {MessageAttachmentFindFirstOrThrowArgs} args - Arguments to find a MessageAttachment
|
|
* @example
|
|
* // Get one MessageAttachment
|
|
* const messageAttachment = await prisma.messageAttachment.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MessageAttachmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MessageAttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MessageAttachmentClient<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more MessageAttachments 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 {MessageAttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MessageAttachments
|
|
* const messageAttachments = await prisma.messageAttachment.findMany()
|
|
*
|
|
* // Get first 10 MessageAttachments
|
|
* const messageAttachments = await prisma.messageAttachment.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `messageId`
|
|
* const messageAttachmentWithMessageIdOnly = await prisma.messageAttachment.findMany({ select: { messageId: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MessageAttachmentFindManyArgs>(args?: Prisma.SelectSubset<T, MessageAttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a MessageAttachment.
|
|
* @param {MessageAttachmentCreateArgs} args - Arguments to create a MessageAttachment.
|
|
* @example
|
|
* // Create one MessageAttachment
|
|
* const MessageAttachment = await prisma.messageAttachment.create({
|
|
* data: {
|
|
* // ... data to create a MessageAttachment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MessageAttachmentCreateArgs>(args: Prisma.SelectSubset<T, MessageAttachmentCreateArgs<ExtArgs>>): Prisma.Prisma__MessageAttachmentClient<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many MessageAttachments.
|
|
* @param {MessageAttachmentCreateManyArgs} args - Arguments to create many MessageAttachments.
|
|
* @example
|
|
* // Create many MessageAttachments
|
|
* const messageAttachment = await prisma.messageAttachment.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MessageAttachmentCreateManyArgs>(args?: Prisma.SelectSubset<T, MessageAttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many MessageAttachments and returns the data saved in the database.
|
|
* @param {MessageAttachmentCreateManyAndReturnArgs} args - Arguments to create many MessageAttachments.
|
|
* @example
|
|
* // Create many MessageAttachments
|
|
* const messageAttachment = await prisma.messageAttachment.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many MessageAttachments and only return the `messageId`
|
|
* const messageAttachmentWithMessageIdOnly = await prisma.messageAttachment.createManyAndReturn({
|
|
* select: { messageId: 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 MessageAttachmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MessageAttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a MessageAttachment.
|
|
* @param {MessageAttachmentDeleteArgs} args - Arguments to delete one MessageAttachment.
|
|
* @example
|
|
* // Delete one MessageAttachment
|
|
* const MessageAttachment = await prisma.messageAttachment.delete({
|
|
* where: {
|
|
* // ... filter to delete one MessageAttachment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MessageAttachmentDeleteArgs>(args: Prisma.SelectSubset<T, MessageAttachmentDeleteArgs<ExtArgs>>): Prisma.Prisma__MessageAttachmentClient<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one MessageAttachment.
|
|
* @param {MessageAttachmentUpdateArgs} args - Arguments to update one MessageAttachment.
|
|
* @example
|
|
* // Update one MessageAttachment
|
|
* const messageAttachment = await prisma.messageAttachment.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MessageAttachmentUpdateArgs>(args: Prisma.SelectSubset<T, MessageAttachmentUpdateArgs<ExtArgs>>): Prisma.Prisma__MessageAttachmentClient<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more MessageAttachments.
|
|
* @param {MessageAttachmentDeleteManyArgs} args - Arguments to filter MessageAttachments to delete.
|
|
* @example
|
|
* // Delete a few MessageAttachments
|
|
* const { count } = await prisma.messageAttachment.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MessageAttachmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, MessageAttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MessageAttachments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MessageAttachmentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MessageAttachments
|
|
* const messageAttachment = await prisma.messageAttachment.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MessageAttachmentUpdateManyArgs>(args: Prisma.SelectSubset<T, MessageAttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MessageAttachments and returns the data updated in the database.
|
|
* @param {MessageAttachmentUpdateManyAndReturnArgs} args - Arguments to update many MessageAttachments.
|
|
* @example
|
|
* // Update many MessageAttachments
|
|
* const messageAttachment = await prisma.messageAttachment.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more MessageAttachments and only return the `messageId`
|
|
* const messageAttachmentWithMessageIdOnly = await prisma.messageAttachment.updateManyAndReturn({
|
|
* select: { messageId: 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 MessageAttachmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MessageAttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one MessageAttachment.
|
|
* @param {MessageAttachmentUpsertArgs} args - Arguments to update or create a MessageAttachment.
|
|
* @example
|
|
* // Update or create a MessageAttachment
|
|
* const messageAttachment = await prisma.messageAttachment.upsert({
|
|
* create: {
|
|
* // ... data to create a MessageAttachment
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MessageAttachment we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MessageAttachmentUpsertArgs>(args: Prisma.SelectSubset<T, MessageAttachmentUpsertArgs<ExtArgs>>): Prisma.Prisma__MessageAttachmentClient<runtime.Types.Result.GetResult<Prisma.$MessageAttachmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of MessageAttachments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MessageAttachmentCountArgs} args - Arguments to filter MessageAttachments to count.
|
|
* @example
|
|
* // Count the number of MessageAttachments
|
|
* const count = await prisma.messageAttachment.count({
|
|
* where: {
|
|
* // ... the filter for the MessageAttachments we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MessageAttachmentCountArgs>(
|
|
args?: Prisma.Subset<T, MessageAttachmentCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], MessageAttachmentCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MessageAttachment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MessageAttachmentAggregateArgs} 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 MessageAttachmentAggregateArgs>(args: Prisma.Subset<T, MessageAttachmentAggregateArgs>): Prisma.PrismaPromise<GetMessageAttachmentAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MessageAttachment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MessageAttachmentGroupByArgs} 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 MessageAttachmentGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: MessageAttachmentGroupByArgs['orderBy'] }
|
|
: { orderBy?: MessageAttachmentGroupByArgs['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, MessageAttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMessageAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MessageAttachment model
|
|
*/
|
|
readonly fields: MessageAttachmentFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MessageAttachment.
|
|
* 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__MessageAttachmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
message<T extends Prisma.MessageDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MessageDefaultArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
attachment<T extends Prisma.AttachmentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AttachmentDefaultArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the MessageAttachment model
|
|
*/
|
|
export interface MessageAttachmentFieldRefs {
|
|
readonly messageId: Prisma.FieldRef<"MessageAttachment", 'String'>
|
|
readonly attachmentId: Prisma.FieldRef<"MessageAttachment", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MessageAttachment findUnique
|
|
*/
|
|
export type MessageAttachmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MessageAttachment to fetch.
|
|
*/
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment findUniqueOrThrow
|
|
*/
|
|
export type MessageAttachmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MessageAttachment to fetch.
|
|
*/
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment findFirst
|
|
*/
|
|
export type MessageAttachmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MessageAttachment to fetch.
|
|
*/
|
|
where?: Prisma.MessageAttachmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MessageAttachments to fetch.
|
|
*/
|
|
orderBy?: Prisma.MessageAttachmentOrderByWithRelationInput | Prisma.MessageAttachmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MessageAttachments.
|
|
*/
|
|
cursor?: Prisma.MessageAttachmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MessageAttachments 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` MessageAttachments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MessageAttachments.
|
|
*/
|
|
distinct?: Prisma.MessageAttachmentScalarFieldEnum | Prisma.MessageAttachmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment findFirstOrThrow
|
|
*/
|
|
export type MessageAttachmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MessageAttachment to fetch.
|
|
*/
|
|
where?: Prisma.MessageAttachmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MessageAttachments to fetch.
|
|
*/
|
|
orderBy?: Prisma.MessageAttachmentOrderByWithRelationInput | Prisma.MessageAttachmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MessageAttachments.
|
|
*/
|
|
cursor?: Prisma.MessageAttachmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MessageAttachments 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` MessageAttachments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MessageAttachments.
|
|
*/
|
|
distinct?: Prisma.MessageAttachmentScalarFieldEnum | Prisma.MessageAttachmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment findMany
|
|
*/
|
|
export type MessageAttachmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MessageAttachments to fetch.
|
|
*/
|
|
where?: Prisma.MessageAttachmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MessageAttachments to fetch.
|
|
*/
|
|
orderBy?: Prisma.MessageAttachmentOrderByWithRelationInput | Prisma.MessageAttachmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MessageAttachments.
|
|
*/
|
|
cursor?: Prisma.MessageAttachmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MessageAttachments 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` MessageAttachments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MessageAttachments.
|
|
*/
|
|
distinct?: Prisma.MessageAttachmentScalarFieldEnum | Prisma.MessageAttachmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment create
|
|
*/
|
|
export type MessageAttachmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MessageAttachment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MessageAttachmentCreateInput, Prisma.MessageAttachmentUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment createMany
|
|
*/
|
|
export type MessageAttachmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MessageAttachments.
|
|
*/
|
|
data: Prisma.MessageAttachmentCreateManyInput | Prisma.MessageAttachmentCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment createManyAndReturn
|
|
*/
|
|
export type MessageAttachmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many MessageAttachments.
|
|
*/
|
|
data: Prisma.MessageAttachmentCreateManyInput | Prisma.MessageAttachmentCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment update
|
|
*/
|
|
export type MessageAttachmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MessageAttachment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MessageAttachmentUpdateInput, Prisma.MessageAttachmentUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MessageAttachment to update.
|
|
*/
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment updateMany
|
|
*/
|
|
export type MessageAttachmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MessageAttachments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MessageAttachmentUpdateManyMutationInput, Prisma.MessageAttachmentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MessageAttachments to update
|
|
*/
|
|
where?: Prisma.MessageAttachmentWhereInput
|
|
/**
|
|
* Limit how many MessageAttachments to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment updateManyAndReturn
|
|
*/
|
|
export type MessageAttachmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update MessageAttachments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MessageAttachmentUpdateManyMutationInput, Prisma.MessageAttachmentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MessageAttachments to update
|
|
*/
|
|
where?: Prisma.MessageAttachmentWhereInput
|
|
/**
|
|
* Limit how many MessageAttachments to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment upsert
|
|
*/
|
|
export type MessageAttachmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the MessageAttachment to update in case it exists.
|
|
*/
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
/**
|
|
* In case the MessageAttachment found by the `where` argument doesn't exist, create a new MessageAttachment with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.MessageAttachmentCreateInput, Prisma.MessageAttachmentUncheckedCreateInput>
|
|
/**
|
|
* In case the MessageAttachment was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.MessageAttachmentUpdateInput, Prisma.MessageAttachmentUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment delete
|
|
*/
|
|
export type MessageAttachmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MessageAttachment to delete.
|
|
*/
|
|
where: Prisma.MessageAttachmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment deleteMany
|
|
*/
|
|
export type MessageAttachmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MessageAttachments to delete
|
|
*/
|
|
where?: Prisma.MessageAttachmentWhereInput
|
|
/**
|
|
* Limit how many MessageAttachments to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MessageAttachment without action
|
|
*/
|
|
export type MessageAttachmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MessageAttachment
|
|
*/
|
|
select?: Prisma.MessageAttachmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MessageAttachment
|
|
*/
|
|
omit?: Prisma.MessageAttachmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MessageAttachmentInclude<ExtArgs> | null
|
|
}
|