/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `TeamChatPinnedMessage` 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 TeamChatPinnedMessage * A channel-level message pin. Domain guards enforce the 50-pin limit and * reject message pins for direct-message channels. */ export type TeamChatPinnedMessageModel = runtime.Types.Result.DefaultSelection export type AggregateTeamChatPinnedMessage = { _count: TeamChatPinnedMessageCountAggregateOutputType | null _min: TeamChatPinnedMessageMinAggregateOutputType | null _max: TeamChatPinnedMessageMaxAggregateOutputType | null } export type TeamChatPinnedMessageMinAggregateOutputType = { id: string | null tenantId: string | null chatId: string | null messageId: string | null pinnedByUserId: string | null pinnedAt: Date | null note: string | null } export type TeamChatPinnedMessageMaxAggregateOutputType = { id: string | null tenantId: string | null chatId: string | null messageId: string | null pinnedByUserId: string | null pinnedAt: Date | null note: string | null } export type TeamChatPinnedMessageCountAggregateOutputType = { id: number tenantId: number chatId: number messageId: number pinnedByUserId: number pinnedAt: number note: number _all: number } export type TeamChatPinnedMessageMinAggregateInputType = { id?: true tenantId?: true chatId?: true messageId?: true pinnedByUserId?: true pinnedAt?: true note?: true } export type TeamChatPinnedMessageMaxAggregateInputType = { id?: true tenantId?: true chatId?: true messageId?: true pinnedByUserId?: true pinnedAt?: true note?: true } export type TeamChatPinnedMessageCountAggregateInputType = { id?: true tenantId?: true chatId?: true messageId?: true pinnedByUserId?: true pinnedAt?: true note?: true _all?: true } export type TeamChatPinnedMessageAggregateArgs = { /** * Filter which TeamChatPinnedMessage to aggregate. */ where?: Prisma.TeamChatPinnedMessageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TeamChatPinnedMessages to fetch. */ orderBy?: Prisma.TeamChatPinnedMessageOrderByWithRelationInput | Prisma.TeamChatPinnedMessageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TeamChatPinnedMessageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TeamChatPinnedMessages 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` TeamChatPinnedMessages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TeamChatPinnedMessages **/ _count?: true | TeamChatPinnedMessageCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TeamChatPinnedMessageMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TeamChatPinnedMessageMaxAggregateInputType } export type GetTeamChatPinnedMessageAggregateType = { [P in keyof T & keyof AggregateTeamChatPinnedMessage]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TeamChatPinnedMessageGroupByArgs = { where?: Prisma.TeamChatPinnedMessageWhereInput orderBy?: Prisma.TeamChatPinnedMessageOrderByWithAggregationInput | Prisma.TeamChatPinnedMessageOrderByWithAggregationInput[] by: Prisma.TeamChatPinnedMessageScalarFieldEnum[] | Prisma.TeamChatPinnedMessageScalarFieldEnum having?: Prisma.TeamChatPinnedMessageScalarWhereWithAggregatesInput take?: number skip?: number _count?: TeamChatPinnedMessageCountAggregateInputType | true _min?: TeamChatPinnedMessageMinAggregateInputType _max?: TeamChatPinnedMessageMaxAggregateInputType } export type TeamChatPinnedMessageGroupByOutputType = { id: string tenantId: string chatId: string messageId: string pinnedByUserId: string pinnedAt: Date note: string | null _count: TeamChatPinnedMessageCountAggregateOutputType | null _min: TeamChatPinnedMessageMinAggregateOutputType | null _max: TeamChatPinnedMessageMaxAggregateOutputType | null } export type GetTeamChatPinnedMessageGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TeamChatPinnedMessageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TeamChatPinnedMessageWhereInput = { AND?: Prisma.TeamChatPinnedMessageWhereInput | Prisma.TeamChatPinnedMessageWhereInput[] OR?: Prisma.TeamChatPinnedMessageWhereInput[] NOT?: Prisma.TeamChatPinnedMessageWhereInput | Prisma.TeamChatPinnedMessageWhereInput[] id?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string tenantId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string chatId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string messageId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string pinnedByUserId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string pinnedAt?: Prisma.DateTimeFilter<"TeamChatPinnedMessage"> | Date | string note?: Prisma.StringNullableFilter<"TeamChatPinnedMessage"> | string | null chat?: Prisma.XOR message?: Prisma.XOR } export type TeamChatPinnedMessageOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder messageId?: Prisma.SortOrder pinnedByUserId?: Prisma.SortOrder pinnedAt?: Prisma.SortOrder note?: Prisma.SortOrderInput | Prisma.SortOrder chat?: Prisma.TeamChatOrderByWithRelationInput message?: Prisma.TeamChatMessageOrderByWithRelationInput } export type TeamChatPinnedMessageWhereUniqueInput = Prisma.AtLeast<{ id?: string chatId_messageId?: Prisma.TeamChatPinnedMessageChatIdMessageIdCompoundUniqueInput AND?: Prisma.TeamChatPinnedMessageWhereInput | Prisma.TeamChatPinnedMessageWhereInput[] OR?: Prisma.TeamChatPinnedMessageWhereInput[] NOT?: Prisma.TeamChatPinnedMessageWhereInput | Prisma.TeamChatPinnedMessageWhereInput[] tenantId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string chatId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string messageId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string pinnedByUserId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string pinnedAt?: Prisma.DateTimeFilter<"TeamChatPinnedMessage"> | Date | string note?: Prisma.StringNullableFilter<"TeamChatPinnedMessage"> | string | null chat?: Prisma.XOR message?: Prisma.XOR }, "id" | "chatId_messageId"> export type TeamChatPinnedMessageOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder messageId?: Prisma.SortOrder pinnedByUserId?: Prisma.SortOrder pinnedAt?: Prisma.SortOrder note?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.TeamChatPinnedMessageCountOrderByAggregateInput _max?: Prisma.TeamChatPinnedMessageMaxOrderByAggregateInput _min?: Prisma.TeamChatPinnedMessageMinOrderByAggregateInput } export type TeamChatPinnedMessageScalarWhereWithAggregatesInput = { AND?: Prisma.TeamChatPinnedMessageScalarWhereWithAggregatesInput | Prisma.TeamChatPinnedMessageScalarWhereWithAggregatesInput[] OR?: Prisma.TeamChatPinnedMessageScalarWhereWithAggregatesInput[] NOT?: Prisma.TeamChatPinnedMessageScalarWhereWithAggregatesInput | Prisma.TeamChatPinnedMessageScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"TeamChatPinnedMessage"> | string tenantId?: Prisma.StringWithAggregatesFilter<"TeamChatPinnedMessage"> | string chatId?: Prisma.StringWithAggregatesFilter<"TeamChatPinnedMessage"> | string messageId?: Prisma.StringWithAggregatesFilter<"TeamChatPinnedMessage"> | string pinnedByUserId?: Prisma.StringWithAggregatesFilter<"TeamChatPinnedMessage"> | string pinnedAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChatPinnedMessage"> | Date | string note?: Prisma.StringNullableWithAggregatesFilter<"TeamChatPinnedMessage"> | string | null } export type TeamChatPinnedMessageCreateInput = { id?: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null chat: Prisma.TeamChatCreateNestedOneWithoutPinnedMessagesInput message: Prisma.TeamChatMessageCreateNestedOneWithoutPinnedRecordsInput } export type TeamChatPinnedMessageUncheckedCreateInput = { id?: string tenantId: string chatId: string messageId: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null } export type TeamChatPinnedMessageUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null chat?: Prisma.TeamChatUpdateOneRequiredWithoutPinnedMessagesNestedInput message?: Prisma.TeamChatMessageUpdateOneRequiredWithoutPinnedRecordsNestedInput } export type TeamChatPinnedMessageUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string chatId?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TeamChatPinnedMessageCreateManyInput = { id?: string tenantId: string chatId: string messageId: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null } export type TeamChatPinnedMessageUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TeamChatPinnedMessageUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string chatId?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TeamChatPinnedMessageListRelationFilter = { every?: Prisma.TeamChatPinnedMessageWhereInput some?: Prisma.TeamChatPinnedMessageWhereInput none?: Prisma.TeamChatPinnedMessageWhereInput } export type TeamChatPinnedMessageOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type TeamChatPinnedMessageChatIdMessageIdCompoundUniqueInput = { chatId: string messageId: string } export type TeamChatPinnedMessageCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder messageId?: Prisma.SortOrder pinnedByUserId?: Prisma.SortOrder pinnedAt?: Prisma.SortOrder note?: Prisma.SortOrder } export type TeamChatPinnedMessageMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder messageId?: Prisma.SortOrder pinnedByUserId?: Prisma.SortOrder pinnedAt?: Prisma.SortOrder note?: Prisma.SortOrder } export type TeamChatPinnedMessageMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder chatId?: Prisma.SortOrder messageId?: Prisma.SortOrder pinnedByUserId?: Prisma.SortOrder pinnedAt?: Prisma.SortOrder note?: Prisma.SortOrder } export type TeamChatPinnedMessageCreateNestedManyWithoutChatInput = { create?: Prisma.XOR | Prisma.TeamChatPinnedMessageCreateWithoutChatInput[] | Prisma.TeamChatPinnedMessageUncheckedCreateWithoutChatInput[] connectOrCreate?: Prisma.TeamChatPinnedMessageCreateOrConnectWithoutChatInput | Prisma.TeamChatPinnedMessageCreateOrConnectWithoutChatInput[] createMany?: Prisma.TeamChatPinnedMessageCreateManyChatInputEnvelope connect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] } export type TeamChatPinnedMessageUncheckedCreateNestedManyWithoutChatInput = { create?: Prisma.XOR | Prisma.TeamChatPinnedMessageCreateWithoutChatInput[] | Prisma.TeamChatPinnedMessageUncheckedCreateWithoutChatInput[] connectOrCreate?: Prisma.TeamChatPinnedMessageCreateOrConnectWithoutChatInput | Prisma.TeamChatPinnedMessageCreateOrConnectWithoutChatInput[] createMany?: Prisma.TeamChatPinnedMessageCreateManyChatInputEnvelope connect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] } export type TeamChatPinnedMessageUpdateManyWithoutChatNestedInput = { create?: Prisma.XOR | Prisma.TeamChatPinnedMessageCreateWithoutChatInput[] | Prisma.TeamChatPinnedMessageUncheckedCreateWithoutChatInput[] connectOrCreate?: Prisma.TeamChatPinnedMessageCreateOrConnectWithoutChatInput | Prisma.TeamChatPinnedMessageCreateOrConnectWithoutChatInput[] upsert?: Prisma.TeamChatPinnedMessageUpsertWithWhereUniqueWithoutChatInput | Prisma.TeamChatPinnedMessageUpsertWithWhereUniqueWithoutChatInput[] createMany?: Prisma.TeamChatPinnedMessageCreateManyChatInputEnvelope set?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] disconnect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] delete?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] connect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] update?: Prisma.TeamChatPinnedMessageUpdateWithWhereUniqueWithoutChatInput | Prisma.TeamChatPinnedMessageUpdateWithWhereUniqueWithoutChatInput[] updateMany?: Prisma.TeamChatPinnedMessageUpdateManyWithWhereWithoutChatInput | Prisma.TeamChatPinnedMessageUpdateManyWithWhereWithoutChatInput[] deleteMany?: Prisma.TeamChatPinnedMessageScalarWhereInput | Prisma.TeamChatPinnedMessageScalarWhereInput[] } export type TeamChatPinnedMessageUncheckedUpdateManyWithoutChatNestedInput = { create?: Prisma.XOR | Prisma.TeamChatPinnedMessageCreateWithoutChatInput[] | Prisma.TeamChatPinnedMessageUncheckedCreateWithoutChatInput[] connectOrCreate?: Prisma.TeamChatPinnedMessageCreateOrConnectWithoutChatInput | Prisma.TeamChatPinnedMessageCreateOrConnectWithoutChatInput[] upsert?: Prisma.TeamChatPinnedMessageUpsertWithWhereUniqueWithoutChatInput | Prisma.TeamChatPinnedMessageUpsertWithWhereUniqueWithoutChatInput[] createMany?: Prisma.TeamChatPinnedMessageCreateManyChatInputEnvelope set?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] disconnect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] delete?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] connect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] update?: Prisma.TeamChatPinnedMessageUpdateWithWhereUniqueWithoutChatInput | Prisma.TeamChatPinnedMessageUpdateWithWhereUniqueWithoutChatInput[] updateMany?: Prisma.TeamChatPinnedMessageUpdateManyWithWhereWithoutChatInput | Prisma.TeamChatPinnedMessageUpdateManyWithWhereWithoutChatInput[] deleteMany?: Prisma.TeamChatPinnedMessageScalarWhereInput | Prisma.TeamChatPinnedMessageScalarWhereInput[] } export type TeamChatPinnedMessageCreateNestedManyWithoutMessageInput = { create?: Prisma.XOR | Prisma.TeamChatPinnedMessageCreateWithoutMessageInput[] | Prisma.TeamChatPinnedMessageUncheckedCreateWithoutMessageInput[] connectOrCreate?: Prisma.TeamChatPinnedMessageCreateOrConnectWithoutMessageInput | Prisma.TeamChatPinnedMessageCreateOrConnectWithoutMessageInput[] createMany?: Prisma.TeamChatPinnedMessageCreateManyMessageInputEnvelope connect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] } export type TeamChatPinnedMessageUncheckedCreateNestedManyWithoutMessageInput = { create?: Prisma.XOR | Prisma.TeamChatPinnedMessageCreateWithoutMessageInput[] | Prisma.TeamChatPinnedMessageUncheckedCreateWithoutMessageInput[] connectOrCreate?: Prisma.TeamChatPinnedMessageCreateOrConnectWithoutMessageInput | Prisma.TeamChatPinnedMessageCreateOrConnectWithoutMessageInput[] createMany?: Prisma.TeamChatPinnedMessageCreateManyMessageInputEnvelope connect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] } export type TeamChatPinnedMessageUpdateManyWithoutMessageNestedInput = { create?: Prisma.XOR | Prisma.TeamChatPinnedMessageCreateWithoutMessageInput[] | Prisma.TeamChatPinnedMessageUncheckedCreateWithoutMessageInput[] connectOrCreate?: Prisma.TeamChatPinnedMessageCreateOrConnectWithoutMessageInput | Prisma.TeamChatPinnedMessageCreateOrConnectWithoutMessageInput[] upsert?: Prisma.TeamChatPinnedMessageUpsertWithWhereUniqueWithoutMessageInput | Prisma.TeamChatPinnedMessageUpsertWithWhereUniqueWithoutMessageInput[] createMany?: Prisma.TeamChatPinnedMessageCreateManyMessageInputEnvelope set?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] disconnect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] delete?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] connect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] update?: Prisma.TeamChatPinnedMessageUpdateWithWhereUniqueWithoutMessageInput | Prisma.TeamChatPinnedMessageUpdateWithWhereUniqueWithoutMessageInput[] updateMany?: Prisma.TeamChatPinnedMessageUpdateManyWithWhereWithoutMessageInput | Prisma.TeamChatPinnedMessageUpdateManyWithWhereWithoutMessageInput[] deleteMany?: Prisma.TeamChatPinnedMessageScalarWhereInput | Prisma.TeamChatPinnedMessageScalarWhereInput[] } export type TeamChatPinnedMessageUncheckedUpdateManyWithoutMessageNestedInput = { create?: Prisma.XOR | Prisma.TeamChatPinnedMessageCreateWithoutMessageInput[] | Prisma.TeamChatPinnedMessageUncheckedCreateWithoutMessageInput[] connectOrCreate?: Prisma.TeamChatPinnedMessageCreateOrConnectWithoutMessageInput | Prisma.TeamChatPinnedMessageCreateOrConnectWithoutMessageInput[] upsert?: Prisma.TeamChatPinnedMessageUpsertWithWhereUniqueWithoutMessageInput | Prisma.TeamChatPinnedMessageUpsertWithWhereUniqueWithoutMessageInput[] createMany?: Prisma.TeamChatPinnedMessageCreateManyMessageInputEnvelope set?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] disconnect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] delete?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] connect?: Prisma.TeamChatPinnedMessageWhereUniqueInput | Prisma.TeamChatPinnedMessageWhereUniqueInput[] update?: Prisma.TeamChatPinnedMessageUpdateWithWhereUniqueWithoutMessageInput | Prisma.TeamChatPinnedMessageUpdateWithWhereUniqueWithoutMessageInput[] updateMany?: Prisma.TeamChatPinnedMessageUpdateManyWithWhereWithoutMessageInput | Prisma.TeamChatPinnedMessageUpdateManyWithWhereWithoutMessageInput[] deleteMany?: Prisma.TeamChatPinnedMessageScalarWhereInput | Prisma.TeamChatPinnedMessageScalarWhereInput[] } export type TeamChatPinnedMessageCreateWithoutChatInput = { id?: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null message: Prisma.TeamChatMessageCreateNestedOneWithoutPinnedRecordsInput } export type TeamChatPinnedMessageUncheckedCreateWithoutChatInput = { id?: string messageId: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null } export type TeamChatPinnedMessageCreateOrConnectWithoutChatInput = { where: Prisma.TeamChatPinnedMessageWhereUniqueInput create: Prisma.XOR } export type TeamChatPinnedMessageCreateManyChatInputEnvelope = { data: Prisma.TeamChatPinnedMessageCreateManyChatInput | Prisma.TeamChatPinnedMessageCreateManyChatInput[] skipDuplicates?: boolean } export type TeamChatPinnedMessageUpsertWithWhereUniqueWithoutChatInput = { where: Prisma.TeamChatPinnedMessageWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TeamChatPinnedMessageUpdateWithWhereUniqueWithoutChatInput = { where: Prisma.TeamChatPinnedMessageWhereUniqueInput data: Prisma.XOR } export type TeamChatPinnedMessageUpdateManyWithWhereWithoutChatInput = { where: Prisma.TeamChatPinnedMessageScalarWhereInput data: Prisma.XOR } export type TeamChatPinnedMessageScalarWhereInput = { AND?: Prisma.TeamChatPinnedMessageScalarWhereInput | Prisma.TeamChatPinnedMessageScalarWhereInput[] OR?: Prisma.TeamChatPinnedMessageScalarWhereInput[] NOT?: Prisma.TeamChatPinnedMessageScalarWhereInput | Prisma.TeamChatPinnedMessageScalarWhereInput[] id?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string tenantId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string chatId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string messageId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string pinnedByUserId?: Prisma.StringFilter<"TeamChatPinnedMessage"> | string pinnedAt?: Prisma.DateTimeFilter<"TeamChatPinnedMessage"> | Date | string note?: Prisma.StringNullableFilter<"TeamChatPinnedMessage"> | string | null } export type TeamChatPinnedMessageCreateWithoutMessageInput = { id?: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null chat: Prisma.TeamChatCreateNestedOneWithoutPinnedMessagesInput } export type TeamChatPinnedMessageUncheckedCreateWithoutMessageInput = { id?: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null } export type TeamChatPinnedMessageCreateOrConnectWithoutMessageInput = { where: Prisma.TeamChatPinnedMessageWhereUniqueInput create: Prisma.XOR } export type TeamChatPinnedMessageCreateManyMessageInputEnvelope = { data: Prisma.TeamChatPinnedMessageCreateManyMessageInput | Prisma.TeamChatPinnedMessageCreateManyMessageInput[] skipDuplicates?: boolean } export type TeamChatPinnedMessageUpsertWithWhereUniqueWithoutMessageInput = { where: Prisma.TeamChatPinnedMessageWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TeamChatPinnedMessageUpdateWithWhereUniqueWithoutMessageInput = { where: Prisma.TeamChatPinnedMessageWhereUniqueInput data: Prisma.XOR } export type TeamChatPinnedMessageUpdateManyWithWhereWithoutMessageInput = { where: Prisma.TeamChatPinnedMessageScalarWhereInput data: Prisma.XOR } export type TeamChatPinnedMessageCreateManyChatInput = { id?: string messageId: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null } export type TeamChatPinnedMessageUpdateWithoutChatInput = { id?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null message?: Prisma.TeamChatMessageUpdateOneRequiredWithoutPinnedRecordsNestedInput } export type TeamChatPinnedMessageUncheckedUpdateWithoutChatInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TeamChatPinnedMessageUncheckedUpdateManyWithoutChatInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TeamChatPinnedMessageCreateManyMessageInput = { id?: string pinnedByUserId: string pinnedAt?: Date | string note?: string | null } export type TeamChatPinnedMessageUpdateWithoutMessageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null chat?: Prisma.TeamChatUpdateOneRequiredWithoutPinnedMessagesNestedInput } export type TeamChatPinnedMessageUncheckedUpdateWithoutMessageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TeamChatPinnedMessageUncheckedUpdateManyWithoutMessageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string pinnedByUserId?: Prisma.StringFieldUpdateOperationsInput | string pinnedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TeamChatPinnedMessageSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean chatId?: boolean messageId?: boolean pinnedByUserId?: boolean pinnedAt?: boolean note?: boolean chat?: boolean | Prisma.TeamChatDefaultArgs message?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatPinnedMessage"]> export type TeamChatPinnedMessageSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean chatId?: boolean messageId?: boolean pinnedByUserId?: boolean pinnedAt?: boolean note?: boolean chat?: boolean | Prisma.TeamChatDefaultArgs message?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatPinnedMessage"]> export type TeamChatPinnedMessageSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean chatId?: boolean messageId?: boolean pinnedByUserId?: boolean pinnedAt?: boolean note?: boolean chat?: boolean | Prisma.TeamChatDefaultArgs message?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatPinnedMessage"]> export type TeamChatPinnedMessageSelectScalar = { id?: boolean tenantId?: boolean chatId?: boolean messageId?: boolean pinnedByUserId?: boolean pinnedAt?: boolean note?: boolean } export type TeamChatPinnedMessageOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "chatId" | "messageId" | "pinnedByUserId" | "pinnedAt" | "note", ExtArgs["result"]["teamChatPinnedMessage"]> export type TeamChatPinnedMessageInclude = { chat?: boolean | Prisma.TeamChatDefaultArgs message?: boolean | Prisma.TeamChatMessageDefaultArgs } export type TeamChatPinnedMessageIncludeCreateManyAndReturn = { chat?: boolean | Prisma.TeamChatDefaultArgs message?: boolean | Prisma.TeamChatMessageDefaultArgs } export type TeamChatPinnedMessageIncludeUpdateManyAndReturn = { chat?: boolean | Prisma.TeamChatDefaultArgs message?: boolean | Prisma.TeamChatMessageDefaultArgs } export type $TeamChatPinnedMessagePayload = { name: "TeamChatPinnedMessage" objects: { chat: Prisma.$TeamChatPayload message: Prisma.$TeamChatMessagePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string chatId: string messageId: string pinnedByUserId: string pinnedAt: Date note: string | null }, ExtArgs["result"]["teamChatPinnedMessage"]> composites: {} } export type TeamChatPinnedMessageGetPayload = runtime.Types.Result.GetResult export type TeamChatPinnedMessageCountArgs = Omit & { select?: TeamChatPinnedMessageCountAggregateInputType | true } export interface TeamChatPinnedMessageDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TeamChatPinnedMessage'], meta: { name: 'TeamChatPinnedMessage' } } /** * Find zero or one TeamChatPinnedMessage that matches the filter. * @param {TeamChatPinnedMessageFindUniqueArgs} args - Arguments to find a TeamChatPinnedMessage * @example * // Get one TeamChatPinnedMessage * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatPinnedMessageClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TeamChatPinnedMessage that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TeamChatPinnedMessageFindUniqueOrThrowArgs} args - Arguments to find a TeamChatPinnedMessage * @example * // Get one TeamChatPinnedMessage * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatPinnedMessageClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TeamChatPinnedMessage 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 {TeamChatPinnedMessageFindFirstArgs} args - Arguments to find a TeamChatPinnedMessage * @example * // Get one TeamChatPinnedMessage * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamChatPinnedMessageClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TeamChatPinnedMessage 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 {TeamChatPinnedMessageFindFirstOrThrowArgs} args - Arguments to find a TeamChatPinnedMessage * @example * // Get one TeamChatPinnedMessage * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamChatPinnedMessageClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TeamChatPinnedMessages 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 {TeamChatPinnedMessageFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TeamChatPinnedMessages * const teamChatPinnedMessages = await prisma.teamChatPinnedMessage.findMany() * * // Get first 10 TeamChatPinnedMessages * const teamChatPinnedMessages = await prisma.teamChatPinnedMessage.findMany({ take: 10 }) * * // Only select the `id` * const teamChatPinnedMessageWithIdOnly = await prisma.teamChatPinnedMessage.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a TeamChatPinnedMessage. * @param {TeamChatPinnedMessageCreateArgs} args - Arguments to create a TeamChatPinnedMessage. * @example * // Create one TeamChatPinnedMessage * const TeamChatPinnedMessage = await prisma.teamChatPinnedMessage.create({ * data: { * // ... data to create a TeamChatPinnedMessage * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatPinnedMessageClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TeamChatPinnedMessages. * @param {TeamChatPinnedMessageCreateManyArgs} args - Arguments to create many TeamChatPinnedMessages. * @example * // Create many TeamChatPinnedMessages * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many TeamChatPinnedMessages and returns the data saved in the database. * @param {TeamChatPinnedMessageCreateManyAndReturnArgs} args - Arguments to create many TeamChatPinnedMessages. * @example * // Create many TeamChatPinnedMessages * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TeamChatPinnedMessages and only return the `id` * const teamChatPinnedMessageWithIdOnly = await prisma.teamChatPinnedMessage.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 TeamChatPinnedMessage. * @param {TeamChatPinnedMessageDeleteArgs} args - Arguments to delete one TeamChatPinnedMessage. * @example * // Delete one TeamChatPinnedMessage * const TeamChatPinnedMessage = await prisma.teamChatPinnedMessage.delete({ * where: { * // ... filter to delete one TeamChatPinnedMessage * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatPinnedMessageClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TeamChatPinnedMessage. * @param {TeamChatPinnedMessageUpdateArgs} args - Arguments to update one TeamChatPinnedMessage. * @example * // Update one TeamChatPinnedMessage * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatPinnedMessageClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TeamChatPinnedMessages. * @param {TeamChatPinnedMessageDeleteManyArgs} args - Arguments to filter TeamChatPinnedMessages to delete. * @example * // Delete a few TeamChatPinnedMessages * const { count } = await prisma.teamChatPinnedMessage.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TeamChatPinnedMessages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TeamChatPinnedMessageUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TeamChatPinnedMessages * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TeamChatPinnedMessages and returns the data updated in the database. * @param {TeamChatPinnedMessageUpdateManyAndReturnArgs} args - Arguments to update many TeamChatPinnedMessages. * @example * // Update many TeamChatPinnedMessages * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TeamChatPinnedMessages and only return the `id` * const teamChatPinnedMessageWithIdOnly = await prisma.teamChatPinnedMessage.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 TeamChatPinnedMessage. * @param {TeamChatPinnedMessageUpsertArgs} args - Arguments to update or create a TeamChatPinnedMessage. * @example * // Update or create a TeamChatPinnedMessage * const teamChatPinnedMessage = await prisma.teamChatPinnedMessage.upsert({ * create: { * // ... data to create a TeamChatPinnedMessage * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TeamChatPinnedMessage we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatPinnedMessageClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TeamChatPinnedMessages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TeamChatPinnedMessageCountArgs} args - Arguments to filter TeamChatPinnedMessages to count. * @example * // Count the number of TeamChatPinnedMessages * const count = await prisma.teamChatPinnedMessage.count({ * where: { * // ... the filter for the TeamChatPinnedMessages 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 TeamChatPinnedMessage. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TeamChatPinnedMessageAggregateArgs} 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 TeamChatPinnedMessage. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TeamChatPinnedMessageGroupByArgs} 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 TeamChatPinnedMessageGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TeamChatPinnedMessageGroupByArgs['orderBy'] } : { orderBy?: TeamChatPinnedMessageGroupByArgs['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 ? GetTeamChatPinnedMessageGroupByPayload : Prisma.PrismaPromise /** * Fields of the TeamChatPinnedMessage model */ readonly fields: TeamChatPinnedMessageFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TeamChatPinnedMessage. * 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__TeamChatPinnedMessageClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" chat = {}>(args?: Prisma.Subset>): Prisma.Prisma__TeamChatClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> message = {}>(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 TeamChatPinnedMessage model */ export interface TeamChatPinnedMessageFieldRefs { readonly id: Prisma.FieldRef<"TeamChatPinnedMessage", 'String'> readonly tenantId: Prisma.FieldRef<"TeamChatPinnedMessage", 'String'> readonly chatId: Prisma.FieldRef<"TeamChatPinnedMessage", 'String'> readonly messageId: Prisma.FieldRef<"TeamChatPinnedMessage", 'String'> readonly pinnedByUserId: Prisma.FieldRef<"TeamChatPinnedMessage", 'String'> readonly pinnedAt: Prisma.FieldRef<"TeamChatPinnedMessage", 'DateTime'> readonly note: Prisma.FieldRef<"TeamChatPinnedMessage", 'String'> } // Custom InputTypes /** * TeamChatPinnedMessage findUnique */ export type TeamChatPinnedMessageFindUniqueArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * Filter, which TeamChatPinnedMessage to fetch. */ where: Prisma.TeamChatPinnedMessageWhereUniqueInput } /** * TeamChatPinnedMessage findUniqueOrThrow */ export type TeamChatPinnedMessageFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * Filter, which TeamChatPinnedMessage to fetch. */ where: Prisma.TeamChatPinnedMessageWhereUniqueInput } /** * TeamChatPinnedMessage findFirst */ export type TeamChatPinnedMessageFindFirstArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * Filter, which TeamChatPinnedMessage to fetch. */ where?: Prisma.TeamChatPinnedMessageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TeamChatPinnedMessages to fetch. */ orderBy?: Prisma.TeamChatPinnedMessageOrderByWithRelationInput | Prisma.TeamChatPinnedMessageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TeamChatPinnedMessages. */ cursor?: Prisma.TeamChatPinnedMessageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TeamChatPinnedMessages 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` TeamChatPinnedMessages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TeamChatPinnedMessages. */ distinct?: Prisma.TeamChatPinnedMessageScalarFieldEnum | Prisma.TeamChatPinnedMessageScalarFieldEnum[] } /** * TeamChatPinnedMessage findFirstOrThrow */ export type TeamChatPinnedMessageFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * Filter, which TeamChatPinnedMessage to fetch. */ where?: Prisma.TeamChatPinnedMessageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TeamChatPinnedMessages to fetch. */ orderBy?: Prisma.TeamChatPinnedMessageOrderByWithRelationInput | Prisma.TeamChatPinnedMessageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TeamChatPinnedMessages. */ cursor?: Prisma.TeamChatPinnedMessageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TeamChatPinnedMessages 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` TeamChatPinnedMessages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TeamChatPinnedMessages. */ distinct?: Prisma.TeamChatPinnedMessageScalarFieldEnum | Prisma.TeamChatPinnedMessageScalarFieldEnum[] } /** * TeamChatPinnedMessage findMany */ export type TeamChatPinnedMessageFindManyArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * Filter, which TeamChatPinnedMessages to fetch. */ where?: Prisma.TeamChatPinnedMessageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TeamChatPinnedMessages to fetch. */ orderBy?: Prisma.TeamChatPinnedMessageOrderByWithRelationInput | Prisma.TeamChatPinnedMessageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TeamChatPinnedMessages. */ cursor?: Prisma.TeamChatPinnedMessageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TeamChatPinnedMessages 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` TeamChatPinnedMessages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TeamChatPinnedMessages. */ distinct?: Prisma.TeamChatPinnedMessageScalarFieldEnum | Prisma.TeamChatPinnedMessageScalarFieldEnum[] } /** * TeamChatPinnedMessage create */ export type TeamChatPinnedMessageCreateArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * The data needed to create a TeamChatPinnedMessage. */ data: Prisma.XOR } /** * TeamChatPinnedMessage createMany */ export type TeamChatPinnedMessageCreateManyArgs = { /** * The data used to create many TeamChatPinnedMessages. */ data: Prisma.TeamChatPinnedMessageCreateManyInput | Prisma.TeamChatPinnedMessageCreateManyInput[] skipDuplicates?: boolean } /** * TeamChatPinnedMessage createManyAndReturn */ export type TeamChatPinnedMessageCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelectCreateManyAndReturn | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * The data used to create many TeamChatPinnedMessages. */ data: Prisma.TeamChatPinnedMessageCreateManyInput | Prisma.TeamChatPinnedMessageCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageIncludeCreateManyAndReturn | null } /** * TeamChatPinnedMessage update */ export type TeamChatPinnedMessageUpdateArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * The data needed to update a TeamChatPinnedMessage. */ data: Prisma.XOR /** * Choose, which TeamChatPinnedMessage to update. */ where: Prisma.TeamChatPinnedMessageWhereUniqueInput } /** * TeamChatPinnedMessage updateMany */ export type TeamChatPinnedMessageUpdateManyArgs = { /** * The data used to update TeamChatPinnedMessages. */ data: Prisma.XOR /** * Filter which TeamChatPinnedMessages to update */ where?: Prisma.TeamChatPinnedMessageWhereInput /** * Limit how many TeamChatPinnedMessages to update. */ limit?: number } /** * TeamChatPinnedMessage updateManyAndReturn */ export type TeamChatPinnedMessageUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelectUpdateManyAndReturn | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * The data used to update TeamChatPinnedMessages. */ data: Prisma.XOR /** * Filter which TeamChatPinnedMessages to update */ where?: Prisma.TeamChatPinnedMessageWhereInput /** * Limit how many TeamChatPinnedMessages to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageIncludeUpdateManyAndReturn | null } /** * TeamChatPinnedMessage upsert */ export type TeamChatPinnedMessageUpsertArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * The filter to search for the TeamChatPinnedMessage to update in case it exists. */ where: Prisma.TeamChatPinnedMessageWhereUniqueInput /** * In case the TeamChatPinnedMessage found by the `where` argument doesn't exist, create a new TeamChatPinnedMessage with this data. */ create: Prisma.XOR /** * In case the TeamChatPinnedMessage was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TeamChatPinnedMessage delete */ export type TeamChatPinnedMessageDeleteArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null /** * Filter which TeamChatPinnedMessage to delete. */ where: Prisma.TeamChatPinnedMessageWhereUniqueInput } /** * TeamChatPinnedMessage deleteMany */ export type TeamChatPinnedMessageDeleteManyArgs = { /** * Filter which TeamChatPinnedMessages to delete */ where?: Prisma.TeamChatPinnedMessageWhereInput /** * Limit how many TeamChatPinnedMessages to delete. */ limit?: number } /** * TeamChatPinnedMessage without action */ export type TeamChatPinnedMessageDefaultArgs = { /** * Select specific fields to fetch from the TeamChatPinnedMessage */ select?: Prisma.TeamChatPinnedMessageSelect | null /** * Omit specific fields from the TeamChatPinnedMessage */ omit?: Prisma.TeamChatPinnedMessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatPinnedMessageInclude | null }