/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `TeamChatThread` 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 TeamChatThread * Denormalized aggregate for the one-level reply list of a parent message. */ export type TeamChatThreadModel = runtime.Types.Result.DefaultSelection export type AggregateTeamChatThread = { _count: TeamChatThreadCountAggregateOutputType | null _avg: TeamChatThreadAvgAggregateOutputType | null _sum: TeamChatThreadSumAggregateOutputType | null _min: TeamChatThreadMinAggregateOutputType | null _max: TeamChatThreadMaxAggregateOutputType | null } export type TeamChatThreadAvgAggregateOutputType = { replyCount: number | null } export type TeamChatThreadSumAggregateOutputType = { replyCount: number | null } export type TeamChatThreadMinAggregateOutputType = { id: string | null tenantId: string | null chatId: string | null parentMessageId: string | null createdAt: Date | null createdByUserId: string | null lastReplyAt: Date | null replyCount: number | null } export type TeamChatThreadMaxAggregateOutputType = { id: string | null tenantId: string | null chatId: string | null parentMessageId: string | null createdAt: Date | null createdByUserId: string | null lastReplyAt: Date | null replyCount: number | null } export type TeamChatThreadCountAggregateOutputType = { id: number tenantId: number chatId: number parentMessageId: number createdAt: number createdByUserId: number lastReplyAt: number replyCount: number participantUserIds: number _all: number } export type TeamChatThreadAvgAggregateInputType = { replyCount?: true } export type TeamChatThreadSumAggregateInputType = { replyCount?: true } export type TeamChatThreadMinAggregateInputType = { id?: true tenantId?: true chatId?: true parentMessageId?: true createdAt?: true createdByUserId?: true lastReplyAt?: true replyCount?: true } export type TeamChatThreadMaxAggregateInputType = { id?: true tenantId?: true chatId?: true parentMessageId?: true createdAt?: true createdByUserId?: true lastReplyAt?: true replyCount?: true } export type TeamChatThreadCountAggregateInputType = { id?: true tenantId?: true chatId?: true parentMessageId?: true createdAt?: true createdByUserId?: true lastReplyAt?: true replyCount?: true participantUserIds?: true _all?: true } export type TeamChatThreadAggregateArgs = { /** * Filter which TeamChatThread to aggregate. */ where?: Prisma.TeamChatThreadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TeamChatThreads to fetch. */ orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TeamChatThreadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TeamChatThreads 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` TeamChatThreads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TeamChatThreads **/ _count?: true | TeamChatThreadCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TeamChatThreadAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TeamChatThreadSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TeamChatThreadMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TeamChatThreadMaxAggregateInputType } export type GetTeamChatThreadAggregateType = { [P in keyof T & keyof AggregateTeamChatThread]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TeamChatThreadGroupByArgs = { where?: Prisma.TeamChatThreadWhereInput orderBy?: Prisma.TeamChatThreadOrderByWithAggregationInput | Prisma.TeamChatThreadOrderByWithAggregationInput[] by: Prisma.TeamChatThreadScalarFieldEnum[] | Prisma.TeamChatThreadScalarFieldEnum having?: Prisma.TeamChatThreadScalarWhereWithAggregatesInput take?: number skip?: number _count?: TeamChatThreadCountAggregateInputType | true _avg?: TeamChatThreadAvgAggregateInputType _sum?: TeamChatThreadSumAggregateInputType _min?: TeamChatThreadMinAggregateInputType _max?: TeamChatThreadMaxAggregateInputType } export type TeamChatThreadGroupByOutputType = { id: string tenantId: string chatId: string parentMessageId: string createdAt: Date createdByUserId: string lastReplyAt: Date replyCount: number participantUserIds: string[] _count: TeamChatThreadCountAggregateOutputType | null _avg: TeamChatThreadAvgAggregateOutputType | null _sum: TeamChatThreadSumAggregateOutputType | null _min: TeamChatThreadMinAggregateOutputType | null _max: TeamChatThreadMaxAggregateOutputType | null } export type GetTeamChatThreadGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TeamChatThreadGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TeamChatThreadWhereInput = { AND?: Prisma.TeamChatThreadWhereInput | Prisma.TeamChatThreadWhereInput[] OR?: Prisma.TeamChatThreadWhereInput[] NOT?: Prisma.TeamChatThreadWhereInput | Prisma.TeamChatThreadWhereInput[] id?: Prisma.StringFilter<"TeamChatThread"> | string tenantId?: Prisma.StringFilter<"TeamChatThread"> | string chatId?: Prisma.StringFilter<"TeamChatThread"> | string parentMessageId?: Prisma.StringFilter<"TeamChatThread"> | string createdAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string createdByUserId?: Prisma.StringFilter<"TeamChatThread"> | string lastReplyAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string replyCount?: Prisma.IntFilter<"TeamChatThread"> | number participantUserIds?: Prisma.StringNullableListFilter<"TeamChatThread"> chat?: Prisma.XOR parentMessage?: Prisma.XOR } export type TeamChatThreadOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder parentMessageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder lastReplyAt?: Prisma.SortOrder replyCount?: Prisma.SortOrder participantUserIds?: Prisma.SortOrder chat?: Prisma.TeamChatOrderByWithRelationInput parentMessage?: Prisma.TeamChatMessageOrderByWithRelationInput } export type TeamChatThreadWhereUniqueInput = Prisma.AtLeast<{ id?: string parentMessageId_tenantId_chatId?: Prisma.TeamChatThreadParentMessageIdTenantIdChatIdCompoundUniqueInput AND?: Prisma.TeamChatThreadWhereInput | Prisma.TeamChatThreadWhereInput[] OR?: Prisma.TeamChatThreadWhereInput[] NOT?: Prisma.TeamChatThreadWhereInput | Prisma.TeamChatThreadWhereInput[] tenantId?: Prisma.StringFilter<"TeamChatThread"> | string chatId?: Prisma.StringFilter<"TeamChatThread"> | string parentMessageId?: Prisma.StringFilter<"TeamChatThread"> | string createdAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string createdByUserId?: Prisma.StringFilter<"TeamChatThread"> | string lastReplyAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string replyCount?: Prisma.IntFilter<"TeamChatThread"> | number participantUserIds?: Prisma.StringNullableListFilter<"TeamChatThread"> chat?: Prisma.XOR parentMessage?: Prisma.XOR }, "id" | "parentMessageId_tenantId_chatId"> export type TeamChatThreadOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder parentMessageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder lastReplyAt?: Prisma.SortOrder replyCount?: Prisma.SortOrder participantUserIds?: Prisma.SortOrder _count?: Prisma.TeamChatThreadCountOrderByAggregateInput _avg?: Prisma.TeamChatThreadAvgOrderByAggregateInput _max?: Prisma.TeamChatThreadMaxOrderByAggregateInput _min?: Prisma.TeamChatThreadMinOrderByAggregateInput _sum?: Prisma.TeamChatThreadSumOrderByAggregateInput } export type TeamChatThreadScalarWhereWithAggregatesInput = { AND?: Prisma.TeamChatThreadScalarWhereWithAggregatesInput | Prisma.TeamChatThreadScalarWhereWithAggregatesInput[] OR?: Prisma.TeamChatThreadScalarWhereWithAggregatesInput[] NOT?: Prisma.TeamChatThreadScalarWhereWithAggregatesInput | Prisma.TeamChatThreadScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string tenantId?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string chatId?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string parentMessageId?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChatThread"> | Date | string createdByUserId?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string lastReplyAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChatThread"> | Date | string replyCount?: Prisma.IntWithAggregatesFilter<"TeamChatThread"> | number participantUserIds?: Prisma.StringNullableListFilter<"TeamChatThread"> } export type TeamChatThreadCreateInput = { id?: string createdAt?: Date | string createdByUserId: string lastReplyAt: Date | string replyCount?: number participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[] chat: Prisma.TeamChatCreateNestedOneWithoutThreadsInput parentMessage: Prisma.TeamChatMessageCreateNestedOneWithoutThreadInput } export type TeamChatThreadUncheckedCreateInput = { id?: string tenantId: string chatId: string parentMessageId: string createdAt?: Date | string createdByUserId: string lastReplyAt: Date | string replyCount?: number participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[] } export type TeamChatThreadUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] chat?: Prisma.TeamChatUpdateOneRequiredWithoutThreadsNestedInput parentMessage?: Prisma.TeamChatMessageUpdateOneRequiredWithoutThreadNestedInput } export type TeamChatThreadUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string chatId?: Prisma.StringFieldUpdateOperationsInput | string parentMessageId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] } export type TeamChatThreadCreateManyInput = { id?: string tenantId: string chatId: string parentMessageId: string createdAt?: Date | string createdByUserId: string lastReplyAt: Date | string replyCount?: number participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[] } export type TeamChatThreadUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] } export type TeamChatThreadUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string chatId?: Prisma.StringFieldUpdateOperationsInput | string parentMessageId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] } export type TeamChatThreadListRelationFilter = { every?: Prisma.TeamChatThreadWhereInput some?: Prisma.TeamChatThreadWhereInput none?: Prisma.TeamChatThreadWhereInput } export type TeamChatThreadOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type TeamChatThreadNullableScalarRelationFilter = { is?: Prisma.TeamChatThreadWhereInput | null isNot?: Prisma.TeamChatThreadWhereInput | null } export type TeamChatThreadParentMessageIdTenantIdChatIdCompoundUniqueInput = { parentMessageId: string tenantId: string chatId: string } export type TeamChatThreadCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder parentMessageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder lastReplyAt?: Prisma.SortOrder replyCount?: Prisma.SortOrder participantUserIds?: Prisma.SortOrder } export type TeamChatThreadAvgOrderByAggregateInput = { replyCount?: Prisma.SortOrder } export type TeamChatThreadMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder parentMessageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder lastReplyAt?: Prisma.SortOrder replyCount?: Prisma.SortOrder } export type TeamChatThreadMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder parentMessageId?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder lastReplyAt?: Prisma.SortOrder replyCount?: Prisma.SortOrder } export type TeamChatThreadSumOrderByAggregateInput = { replyCount?: Prisma.SortOrder } export type TeamChatThreadCreateNestedManyWithoutChatInput = { create?: Prisma.XOR | Prisma.TeamChatThreadCreateWithoutChatInput[] | Prisma.TeamChatThreadUncheckedCreateWithoutChatInput[] connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutChatInput | Prisma.TeamChatThreadCreateOrConnectWithoutChatInput[] createMany?: Prisma.TeamChatThreadCreateManyChatInputEnvelope connect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] } export type TeamChatThreadUncheckedCreateNestedManyWithoutChatInput = { create?: Prisma.XOR | Prisma.TeamChatThreadCreateWithoutChatInput[] | Prisma.TeamChatThreadUncheckedCreateWithoutChatInput[] connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutChatInput | Prisma.TeamChatThreadCreateOrConnectWithoutChatInput[] createMany?: Prisma.TeamChatThreadCreateManyChatInputEnvelope connect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] } export type TeamChatThreadUpdateManyWithoutChatNestedInput = { create?: Prisma.XOR | Prisma.TeamChatThreadCreateWithoutChatInput[] | Prisma.TeamChatThreadUncheckedCreateWithoutChatInput[] connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutChatInput | Prisma.TeamChatThreadCreateOrConnectWithoutChatInput[] upsert?: Prisma.TeamChatThreadUpsertWithWhereUniqueWithoutChatInput | Prisma.TeamChatThreadUpsertWithWhereUniqueWithoutChatInput[] createMany?: Prisma.TeamChatThreadCreateManyChatInputEnvelope set?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] disconnect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] delete?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] connect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] update?: Prisma.TeamChatThreadUpdateWithWhereUniqueWithoutChatInput | Prisma.TeamChatThreadUpdateWithWhereUniqueWithoutChatInput[] updateMany?: Prisma.TeamChatThreadUpdateManyWithWhereWithoutChatInput | Prisma.TeamChatThreadUpdateManyWithWhereWithoutChatInput[] deleteMany?: Prisma.TeamChatThreadScalarWhereInput | Prisma.TeamChatThreadScalarWhereInput[] } export type TeamChatThreadUncheckedUpdateManyWithoutChatNestedInput = { create?: Prisma.XOR | Prisma.TeamChatThreadCreateWithoutChatInput[] | Prisma.TeamChatThreadUncheckedCreateWithoutChatInput[] connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutChatInput | Prisma.TeamChatThreadCreateOrConnectWithoutChatInput[] upsert?: Prisma.TeamChatThreadUpsertWithWhereUniqueWithoutChatInput | Prisma.TeamChatThreadUpsertWithWhereUniqueWithoutChatInput[] createMany?: Prisma.TeamChatThreadCreateManyChatInputEnvelope set?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] disconnect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] delete?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] connect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[] update?: Prisma.TeamChatThreadUpdateWithWhereUniqueWithoutChatInput | Prisma.TeamChatThreadUpdateWithWhereUniqueWithoutChatInput[] updateMany?: Prisma.TeamChatThreadUpdateManyWithWhereWithoutChatInput | Prisma.TeamChatThreadUpdateManyWithWhereWithoutChatInput[] deleteMany?: Prisma.TeamChatThreadScalarWhereInput | Prisma.TeamChatThreadScalarWhereInput[] } export type TeamChatThreadCreateNestedOneWithoutParentMessageInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutParentMessageInput connect?: Prisma.TeamChatThreadWhereUniqueInput } export type TeamChatThreadUncheckedCreateNestedOneWithoutParentMessageInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutParentMessageInput connect?: Prisma.TeamChatThreadWhereUniqueInput } export type TeamChatThreadUpdateOneWithoutParentMessageNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutParentMessageInput upsert?: Prisma.TeamChatThreadUpsertWithoutParentMessageInput disconnect?: Prisma.TeamChatThreadWhereInput | boolean delete?: Prisma.TeamChatThreadWhereInput | boolean connect?: Prisma.TeamChatThreadWhereUniqueInput update?: Prisma.XOR, Prisma.TeamChatThreadUncheckedUpdateWithoutParentMessageInput> } export type TeamChatThreadUncheckedUpdateOneWithoutParentMessageNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutParentMessageInput upsert?: Prisma.TeamChatThreadUpsertWithoutParentMessageInput disconnect?: Prisma.TeamChatThreadWhereInput | boolean delete?: Prisma.TeamChatThreadWhereInput | boolean connect?: Prisma.TeamChatThreadWhereUniqueInput update?: Prisma.XOR, Prisma.TeamChatThreadUncheckedUpdateWithoutParentMessageInput> } export type TeamChatThreadCreateparticipantUserIdsInput = { set: string[] } export type TeamChatThreadUpdateparticipantUserIdsInput = { set?: string[] push?: string | string[] } export type TeamChatThreadCreateWithoutChatInput = { id?: string createdAt?: Date | string createdByUserId: string lastReplyAt: Date | string replyCount?: number participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[] parentMessage: Prisma.TeamChatMessageCreateNestedOneWithoutThreadInput } export type TeamChatThreadUncheckedCreateWithoutChatInput = { id?: string parentMessageId: string createdAt?: Date | string createdByUserId: string lastReplyAt: Date | string replyCount?: number participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[] } export type TeamChatThreadCreateOrConnectWithoutChatInput = { where: Prisma.TeamChatThreadWhereUniqueInput create: Prisma.XOR } export type TeamChatThreadCreateManyChatInputEnvelope = { data: Prisma.TeamChatThreadCreateManyChatInput | Prisma.TeamChatThreadCreateManyChatInput[] skipDuplicates?: boolean } export type TeamChatThreadUpsertWithWhereUniqueWithoutChatInput = { where: Prisma.TeamChatThreadWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TeamChatThreadUpdateWithWhereUniqueWithoutChatInput = { where: Prisma.TeamChatThreadWhereUniqueInput data: Prisma.XOR } export type TeamChatThreadUpdateManyWithWhereWithoutChatInput = { where: Prisma.TeamChatThreadScalarWhereInput data: Prisma.XOR } export type TeamChatThreadScalarWhereInput = { AND?: Prisma.TeamChatThreadScalarWhereInput | Prisma.TeamChatThreadScalarWhereInput[] OR?: Prisma.TeamChatThreadScalarWhereInput[] NOT?: Prisma.TeamChatThreadScalarWhereInput | Prisma.TeamChatThreadScalarWhereInput[] id?: Prisma.StringFilter<"TeamChatThread"> | string tenantId?: Prisma.StringFilter<"TeamChatThread"> | string chatId?: Prisma.StringFilter<"TeamChatThread"> | string parentMessageId?: Prisma.StringFilter<"TeamChatThread"> | string createdAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string createdByUserId?: Prisma.StringFilter<"TeamChatThread"> | string lastReplyAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string replyCount?: Prisma.IntFilter<"TeamChatThread"> | number participantUserIds?: Prisma.StringNullableListFilter<"TeamChatThread"> } export type TeamChatThreadCreateWithoutParentMessageInput = { id?: string createdAt?: Date | string createdByUserId: string lastReplyAt: Date | string replyCount?: number participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[] chat: Prisma.TeamChatCreateNestedOneWithoutThreadsInput } export type TeamChatThreadUncheckedCreateWithoutParentMessageInput = { id?: string createdAt?: Date | string createdByUserId: string lastReplyAt: Date | string replyCount?: number participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[] } export type TeamChatThreadCreateOrConnectWithoutParentMessageInput = { where: Prisma.TeamChatThreadWhereUniqueInput create: Prisma.XOR } export type TeamChatThreadUpsertWithoutParentMessageInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TeamChatThreadWhereInput } export type TeamChatThreadUpdateToOneWithWhereWithoutParentMessageInput = { where?: Prisma.TeamChatThreadWhereInput data: Prisma.XOR } export type TeamChatThreadUpdateWithoutParentMessageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] chat?: Prisma.TeamChatUpdateOneRequiredWithoutThreadsNestedInput } export type TeamChatThreadUncheckedUpdateWithoutParentMessageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] } export type TeamChatThreadCreateManyChatInput = { id?: string parentMessageId: string createdAt?: Date | string createdByUserId: string lastReplyAt: Date | string replyCount?: number participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[] } export type TeamChatThreadUpdateWithoutChatInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] parentMessage?: Prisma.TeamChatMessageUpdateOneRequiredWithoutThreadNestedInput } export type TeamChatThreadUncheckedUpdateWithoutChatInput = { id?: Prisma.StringFieldUpdateOperationsInput | string parentMessageId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] } export type TeamChatThreadUncheckedUpdateManyWithoutChatInput = { id?: Prisma.StringFieldUpdateOperationsInput | string parentMessageId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string replyCount?: Prisma.IntFieldUpdateOperationsInput | number participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[] } export type TeamChatThreadSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean chatId?: boolean parentMessageId?: boolean createdAt?: boolean createdByUserId?: boolean lastReplyAt?: boolean replyCount?: boolean participantUserIds?: boolean chat?: boolean | Prisma.TeamChatDefaultArgs parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatThread"]> export type TeamChatThreadSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean chatId?: boolean parentMessageId?: boolean createdAt?: boolean createdByUserId?: boolean lastReplyAt?: boolean replyCount?: boolean participantUserIds?: boolean chat?: boolean | Prisma.TeamChatDefaultArgs parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatThread"]> export type TeamChatThreadSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean chatId?: boolean parentMessageId?: boolean createdAt?: boolean createdByUserId?: boolean lastReplyAt?: boolean replyCount?: boolean participantUserIds?: boolean chat?: boolean | Prisma.TeamChatDefaultArgs parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatThread"]> export type TeamChatThreadSelectScalar = { id?: boolean tenantId?: boolean chatId?: boolean parentMessageId?: boolean createdAt?: boolean createdByUserId?: boolean lastReplyAt?: boolean replyCount?: boolean participantUserIds?: boolean } export type TeamChatThreadOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "chatId" | "parentMessageId" | "createdAt" | "createdByUserId" | "lastReplyAt" | "replyCount" | "participantUserIds", ExtArgs["result"]["teamChatThread"]> export type TeamChatThreadInclude = { chat?: boolean | Prisma.TeamChatDefaultArgs parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs } export type TeamChatThreadIncludeCreateManyAndReturn = { chat?: boolean | Prisma.TeamChatDefaultArgs parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs } export type TeamChatThreadIncludeUpdateManyAndReturn = { chat?: boolean | Prisma.TeamChatDefaultArgs parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs } export type $TeamChatThreadPayload = { name: "TeamChatThread" objects: { chat: Prisma.$TeamChatPayload parentMessage: Prisma.$TeamChatMessagePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string chatId: string parentMessageId: string createdAt: Date createdByUserId: string lastReplyAt: Date replyCount: number participantUserIds: string[] }, ExtArgs["result"]["teamChatThread"]> composites: {} } export type TeamChatThreadGetPayload = runtime.Types.Result.GetResult export type TeamChatThreadCountArgs = Omit & { select?: TeamChatThreadCountAggregateInputType | true } export interface TeamChatThreadDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TeamChatThread'], meta: { name: 'TeamChatThread' } } /** * Find zero or one TeamChatThread that matches the filter. * @param {TeamChatThreadFindUniqueArgs} args - Arguments to find a TeamChatThread * @example * // Get one TeamChatThread * const teamChatThread = await prisma.teamChatThread.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatThreadClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TeamChatThread that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TeamChatThreadFindUniqueOrThrowArgs} args - Arguments to find a TeamChatThread * @example * // Get one TeamChatThread * const teamChatThread = await prisma.teamChatThread.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatThreadClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TeamChatThread 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 {TeamChatThreadFindFirstArgs} args - Arguments to find a TeamChatThread * @example * // Get one TeamChatThread * const teamChatThread = await prisma.teamChatThread.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamChatThreadClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TeamChatThread 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 {TeamChatThreadFindFirstOrThrowArgs} args - Arguments to find a TeamChatThread * @example * // Get one TeamChatThread * const teamChatThread = await prisma.teamChatThread.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamChatThreadClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TeamChatThreads 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 {TeamChatThreadFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TeamChatThreads * const teamChatThreads = await prisma.teamChatThread.findMany() * * // Get first 10 TeamChatThreads * const teamChatThreads = await prisma.teamChatThread.findMany({ take: 10 }) * * // Only select the `id` * const teamChatThreadWithIdOnly = await prisma.teamChatThread.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a TeamChatThread. * @param {TeamChatThreadCreateArgs} args - Arguments to create a TeamChatThread. * @example * // Create one TeamChatThread * const TeamChatThread = await prisma.teamChatThread.create({ * data: { * // ... data to create a TeamChatThread * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatThreadClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TeamChatThreads. * @param {TeamChatThreadCreateManyArgs} args - Arguments to create many TeamChatThreads. * @example * // Create many TeamChatThreads * const teamChatThread = await prisma.teamChatThread.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many TeamChatThreads and returns the data saved in the database. * @param {TeamChatThreadCreateManyAndReturnArgs} args - Arguments to create many TeamChatThreads. * @example * // Create many TeamChatThreads * const teamChatThread = await prisma.teamChatThread.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TeamChatThreads and only return the `id` * const teamChatThreadWithIdOnly = await prisma.teamChatThread.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a TeamChatThread. * @param {TeamChatThreadDeleteArgs} args - Arguments to delete one TeamChatThread. * @example * // Delete one TeamChatThread * const TeamChatThread = await prisma.teamChatThread.delete({ * where: { * // ... filter to delete one TeamChatThread * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatThreadClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TeamChatThread. * @param {TeamChatThreadUpdateArgs} args - Arguments to update one TeamChatThread. * @example * // Update one TeamChatThread * const teamChatThread = await prisma.teamChatThread.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatThreadClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TeamChatThreads. * @param {TeamChatThreadDeleteManyArgs} args - Arguments to filter TeamChatThreads to delete. * @example * // Delete a few TeamChatThreads * const { count } = await prisma.teamChatThread.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TeamChatThreads. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TeamChatThreadUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TeamChatThreads * const teamChatThread = await prisma.teamChatThread.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TeamChatThreads and returns the data updated in the database. * @param {TeamChatThreadUpdateManyAndReturnArgs} args - Arguments to update many TeamChatThreads. * @example * // Update many TeamChatThreads * const teamChatThread = await prisma.teamChatThread.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TeamChatThreads and only return the `id` * const teamChatThreadWithIdOnly = await prisma.teamChatThread.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one TeamChatThread. * @param {TeamChatThreadUpsertArgs} args - Arguments to update or create a TeamChatThread. * @example * // Update or create a TeamChatThread * const teamChatThread = await prisma.teamChatThread.upsert({ * create: { * // ... data to create a TeamChatThread * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TeamChatThread we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatThreadClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TeamChatThreads. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TeamChatThreadCountArgs} args - Arguments to filter TeamChatThreads to count. * @example * // Count the number of TeamChatThreads * const count = await prisma.teamChatThread.count({ * where: { * // ... the filter for the TeamChatThreads 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 TeamChatThread. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TeamChatThreadAggregateArgs} 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 TeamChatThread. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TeamChatThreadGroupByArgs} 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 TeamChatThreadGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TeamChatThreadGroupByArgs['orderBy'] } : { orderBy?: TeamChatThreadGroupByArgs['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 ? GetTeamChatThreadGroupByPayload : Prisma.PrismaPromise /** * Fields of the TeamChatThread model */ readonly fields: TeamChatThreadFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TeamChatThread. * 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__TeamChatThreadClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" chat = {}>(args?: Prisma.Subset>): Prisma.Prisma__TeamChatClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> parentMessage = {}>(args?: Prisma.Subset>): Prisma.Prisma__TeamChatMessageClient, 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 TeamChatThread model */ export interface TeamChatThreadFieldRefs { readonly id: Prisma.FieldRef<"TeamChatThread", 'String'> readonly tenantId: Prisma.FieldRef<"TeamChatThread", 'String'> readonly chatId: Prisma.FieldRef<"TeamChatThread", 'String'> readonly parentMessageId: Prisma.FieldRef<"TeamChatThread", 'String'> readonly createdAt: Prisma.FieldRef<"TeamChatThread", 'DateTime'> readonly createdByUserId: Prisma.FieldRef<"TeamChatThread", 'String'> readonly lastReplyAt: Prisma.FieldRef<"TeamChatThread", 'DateTime'> readonly replyCount: Prisma.FieldRef<"TeamChatThread", 'Int'> readonly participantUserIds: Prisma.FieldRef<"TeamChatThread", 'String[]'> } // Custom InputTypes /** * TeamChatThread findUnique */ export type TeamChatThreadFindUniqueArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * Filter, which TeamChatThread to fetch. */ where: Prisma.TeamChatThreadWhereUniqueInput } /** * TeamChatThread findUniqueOrThrow */ export type TeamChatThreadFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * Filter, which TeamChatThread to fetch. */ where: Prisma.TeamChatThreadWhereUniqueInput } /** * TeamChatThread findFirst */ export type TeamChatThreadFindFirstArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * Filter, which TeamChatThread to fetch. */ where?: Prisma.TeamChatThreadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TeamChatThreads to fetch. */ orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TeamChatThreads. */ cursor?: Prisma.TeamChatThreadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TeamChatThreads 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` TeamChatThreads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TeamChatThreads. */ distinct?: Prisma.TeamChatThreadScalarFieldEnum | Prisma.TeamChatThreadScalarFieldEnum[] } /** * TeamChatThread findFirstOrThrow */ export type TeamChatThreadFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * Filter, which TeamChatThread to fetch. */ where?: Prisma.TeamChatThreadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TeamChatThreads to fetch. */ orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TeamChatThreads. */ cursor?: Prisma.TeamChatThreadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TeamChatThreads 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` TeamChatThreads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TeamChatThreads. */ distinct?: Prisma.TeamChatThreadScalarFieldEnum | Prisma.TeamChatThreadScalarFieldEnum[] } /** * TeamChatThread findMany */ export type TeamChatThreadFindManyArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * Filter, which TeamChatThreads to fetch. */ where?: Prisma.TeamChatThreadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TeamChatThreads to fetch. */ orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TeamChatThreads. */ cursor?: Prisma.TeamChatThreadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TeamChatThreads 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` TeamChatThreads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TeamChatThreads. */ distinct?: Prisma.TeamChatThreadScalarFieldEnum | Prisma.TeamChatThreadScalarFieldEnum[] } /** * TeamChatThread create */ export type TeamChatThreadCreateArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * The data needed to create a TeamChatThread. */ data: Prisma.XOR } /** * TeamChatThread createMany */ export type TeamChatThreadCreateManyArgs = { /** * The data used to create many TeamChatThreads. */ data: Prisma.TeamChatThreadCreateManyInput | Prisma.TeamChatThreadCreateManyInput[] skipDuplicates?: boolean } /** * TeamChatThread createManyAndReturn */ export type TeamChatThreadCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelectCreateManyAndReturn | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * The data used to create many TeamChatThreads. */ data: Prisma.TeamChatThreadCreateManyInput | Prisma.TeamChatThreadCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadIncludeCreateManyAndReturn | null } /** * TeamChatThread update */ export type TeamChatThreadUpdateArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * The data needed to update a TeamChatThread. */ data: Prisma.XOR /** * Choose, which TeamChatThread to update. */ where: Prisma.TeamChatThreadWhereUniqueInput } /** * TeamChatThread updateMany */ export type TeamChatThreadUpdateManyArgs = { /** * The data used to update TeamChatThreads. */ data: Prisma.XOR /** * Filter which TeamChatThreads to update */ where?: Prisma.TeamChatThreadWhereInput /** * Limit how many TeamChatThreads to update. */ limit?: number } /** * TeamChatThread updateManyAndReturn */ export type TeamChatThreadUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelectUpdateManyAndReturn | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * The data used to update TeamChatThreads. */ data: Prisma.XOR /** * Filter which TeamChatThreads to update */ where?: Prisma.TeamChatThreadWhereInput /** * Limit how many TeamChatThreads to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadIncludeUpdateManyAndReturn | null } /** * TeamChatThread upsert */ export type TeamChatThreadUpsertArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * The filter to search for the TeamChatThread to update in case it exists. */ where: Prisma.TeamChatThreadWhereUniqueInput /** * In case the TeamChatThread found by the `where` argument doesn't exist, create a new TeamChatThread with this data. */ create: Prisma.XOR /** * In case the TeamChatThread was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TeamChatThread delete */ export type TeamChatThreadDeleteArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null /** * Filter which TeamChatThread to delete. */ where: Prisma.TeamChatThreadWhereUniqueInput } /** * TeamChatThread deleteMany */ export type TeamChatThreadDeleteManyArgs = { /** * Filter which TeamChatThreads to delete */ where?: Prisma.TeamChatThreadWhereInput /** * Limit how many TeamChatThreads to delete. */ limit?: number } /** * TeamChatThread without action */ export type TeamChatThreadDefaultArgs = { /** * Select specific fields to fetch from the TeamChatThread */ select?: Prisma.TeamChatThreadSelect | null /** * Omit specific fields from the TeamChatThread */ omit?: Prisma.TeamChatThreadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatThreadInclude | null }