/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateMessageAttachment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type MessageAttachmentGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof MessageAttachmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 attachment?: Prisma.XOR } 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 attachment?: Prisma.XOR }, "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[] connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput | Prisma.MessageAttachmentCreateOrConnectWithoutAttachmentInput[] createMany?: Prisma.MessageAttachmentCreateManyAttachmentInputEnvelope connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[] } export type MessageAttachmentUncheckedCreateNestedManyWithoutAttachmentInput = { create?: Prisma.XOR | 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[] 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[] 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[] connectOrCreate?: Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput | Prisma.MessageAttachmentCreateOrConnectWithoutMessageInput[] createMany?: Prisma.MessageAttachmentCreateManyMessageInputEnvelope connect?: Prisma.MessageAttachmentWhereUniqueInput | Prisma.MessageAttachmentWhereUniqueInput[] } export type MessageAttachmentUncheckedCreateNestedManyWithoutMessageInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type MessageAttachmentCreateManyAttachmentInputEnvelope = { data: Prisma.MessageAttachmentCreateManyAttachmentInput | Prisma.MessageAttachmentCreateManyAttachmentInput[] } export type MessageAttachmentUpsertWithWhereUniqueWithoutAttachmentInput = { where: Prisma.MessageAttachmentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type MessageAttachmentUpdateWithWhereUniqueWithoutAttachmentInput = { where: Prisma.MessageAttachmentWhereUniqueInput data: Prisma.XOR } export type MessageAttachmentUpdateManyWithWhereWithoutAttachmentInput = { where: Prisma.MessageAttachmentScalarWhereInput data: Prisma.XOR } 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 } export type MessageAttachmentCreateManyMessageInputEnvelope = { data: Prisma.MessageAttachmentCreateManyMessageInput | Prisma.MessageAttachmentCreateManyMessageInput[] } export type MessageAttachmentUpsertWithWhereUniqueWithoutMessageInput = { where: Prisma.MessageAttachmentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type MessageAttachmentUpdateWithWhereUniqueWithoutMessageInput = { where: Prisma.MessageAttachmentWhereUniqueInput data: Prisma.XOR } export type MessageAttachmentUpdateManyWithWhereWithoutMessageInput = { where: Prisma.MessageAttachmentScalarWhereInput data: Prisma.XOR } 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 = runtime.Types.Extensions.GetSelect<{ messageId?: boolean attachmentId?: boolean message?: boolean | Prisma.MessageDefaultArgs attachment?: boolean | Prisma.AttachmentDefaultArgs }, ExtArgs["result"]["messageAttachment"]> export type MessageAttachmentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ messageId?: boolean attachmentId?: boolean message?: boolean | Prisma.MessageDefaultArgs attachment?: boolean | Prisma.AttachmentDefaultArgs }, ExtArgs["result"]["messageAttachment"]> export type MessageAttachmentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ messageId?: boolean attachmentId?: boolean message?: boolean | Prisma.MessageDefaultArgs attachment?: boolean | Prisma.AttachmentDefaultArgs }, ExtArgs["result"]["messageAttachment"]> export type MessageAttachmentSelectScalar = { messageId?: boolean attachmentId?: boolean } export type MessageAttachmentOmit = runtime.Types.Extensions.GetOmit<"messageId" | "attachmentId", ExtArgs["result"]["messageAttachment"]> export type MessageAttachmentInclude = { message?: boolean | Prisma.MessageDefaultArgs attachment?: boolean | Prisma.AttachmentDefaultArgs } export type MessageAttachmentIncludeCreateManyAndReturn = { message?: boolean | Prisma.MessageDefaultArgs attachment?: boolean | Prisma.AttachmentDefaultArgs } export type MessageAttachmentIncludeUpdateManyAndReturn = { message?: boolean | Prisma.MessageDefaultArgs attachment?: boolean | Prisma.AttachmentDefaultArgs } export type $MessageAttachmentPayload = { name: "MessageAttachment" objects: { message: Prisma.$MessagePayload attachment: Prisma.$AttachmentPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ messageId: string attachmentId: string }, ExtArgs["result"]["messageAttachment"]> composites: {} } export type MessageAttachmentGetPayload = runtime.Types.Result.GetResult export type MessageAttachmentCountArgs = Omit & { select?: MessageAttachmentCountAggregateInputType | true } export interface MessageAttachmentDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__MessageAttachmentClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MessageAttachmentClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__MessageAttachmentClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__MessageAttachmentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MessageAttachmentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MessageAttachmentClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MessageAttachmentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__MessageAttachmentClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: MessageAttachmentGroupByArgs['orderBy'] } : { orderBy?: MessageAttachmentGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetMessageAttachmentGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" message = {}>(args?: Prisma.Subset>): Prisma.Prisma__MessageClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> attachment = {}>(args?: Prisma.Subset>): Prisma.Prisma__AttachmentClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the MessageAttachment model */ export interface MessageAttachmentFieldRefs { readonly messageId: Prisma.FieldRef<"MessageAttachment", 'String'> readonly attachmentId: Prisma.FieldRef<"MessageAttachment", 'String'> } // Custom InputTypes /** * MessageAttachment findUnique */ export type MessageAttachmentFindUniqueArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | null /** * Filter, which MessageAttachment to fetch. */ where: Prisma.MessageAttachmentWhereUniqueInput } /** * MessageAttachment findUniqueOrThrow */ export type MessageAttachmentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | null /** * Filter, which MessageAttachment to fetch. */ where: Prisma.MessageAttachmentWhereUniqueInput } /** * MessageAttachment findFirst */ export type MessageAttachmentFindFirstArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | 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 = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | 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 = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | 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 = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | null /** * The data needed to create a MessageAttachment. */ data: Prisma.XOR } /** * MessageAttachment createMany */ export type MessageAttachmentCreateManyArgs = { /** * The data used to create many MessageAttachments. */ data: Prisma.MessageAttachmentCreateManyInput | Prisma.MessageAttachmentCreateManyInput[] } /** * MessageAttachment createManyAndReturn */ export type MessageAttachmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelectCreateManyAndReturn | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * The data used to create many MessageAttachments. */ data: Prisma.MessageAttachmentCreateManyInput | Prisma.MessageAttachmentCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentIncludeCreateManyAndReturn | null } /** * MessageAttachment update */ export type MessageAttachmentUpdateArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | null /** * The data needed to update a MessageAttachment. */ data: Prisma.XOR /** * Choose, which MessageAttachment to update. */ where: Prisma.MessageAttachmentWhereUniqueInput } /** * MessageAttachment updateMany */ export type MessageAttachmentUpdateManyArgs = { /** * The data used to update MessageAttachments. */ data: Prisma.XOR /** * Filter which MessageAttachments to update */ where?: Prisma.MessageAttachmentWhereInput /** * Limit how many MessageAttachments to update. */ limit?: number } /** * MessageAttachment updateManyAndReturn */ export type MessageAttachmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelectUpdateManyAndReturn | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * The data used to update MessageAttachments. */ data: Prisma.XOR /** * 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 | null } /** * MessageAttachment upsert */ export type MessageAttachmentUpsertArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | 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 /** * In case the MessageAttachment was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * MessageAttachment delete */ export type MessageAttachmentDeleteArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | null /** * Filter which MessageAttachment to delete. */ where: Prisma.MessageAttachmentWhereUniqueInput } /** * MessageAttachment deleteMany */ export type MessageAttachmentDeleteManyArgs = { /** * Filter which MessageAttachments to delete */ where?: Prisma.MessageAttachmentWhereInput /** * Limit how many MessageAttachments to delete. */ limit?: number } /** * MessageAttachment without action */ export type MessageAttachmentDefaultArgs = { /** * Select specific fields to fetch from the MessageAttachment */ select?: Prisma.MessageAttachmentSelect | null /** * Omit specific fields from the MessageAttachment */ omit?: Prisma.MessageAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageAttachmentInclude | null }