1536 lines
66 KiB
TypeScript
1536 lines
66 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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<Prisma.$TeamChatPinnedMessagePayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends TeamChatPinnedMessageAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTeamChatPinnedMessage]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChatPinnedMessage[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChatPinnedMessage[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TeamChatPinnedMessageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends TeamChatPinnedMessageGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TeamChatPinnedMessageGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TeamChatPinnedMessageGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TeamChatPinnedMessageGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TeamChatPinnedMessageGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.TeamChatScalarRelationFilter, Prisma.TeamChatWhereInput>
|
|
message?: Prisma.XOR<Prisma.TeamChatMessageScalarRelationFilter, Prisma.TeamChatMessageWhereInput>
|
|
}
|
|
|
|
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<Prisma.TeamChatScalarRelationFilter, Prisma.TeamChatWhereInput>
|
|
message?: Prisma.XOR<Prisma.TeamChatMessageScalarRelationFilter, Prisma.TeamChatMessageWhereInput>
|
|
}, "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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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<Prisma.TeamChatPinnedMessageCreateWithoutChatInput, Prisma.TeamChatPinnedMessageUncheckedCreateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatPinnedMessageCreateManyChatInputEnvelope = {
|
|
data: Prisma.TeamChatPinnedMessageCreateManyChatInput | Prisma.TeamChatPinnedMessageCreateManyChatInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TeamChatPinnedMessageUpsertWithWhereUniqueWithoutChatInput = {
|
|
where: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateWithoutChatInput, Prisma.TeamChatPinnedMessageUncheckedUpdateWithoutChatInput>
|
|
create: Prisma.XOR<Prisma.TeamChatPinnedMessageCreateWithoutChatInput, Prisma.TeamChatPinnedMessageUncheckedCreateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatPinnedMessageUpdateWithWhereUniqueWithoutChatInput = {
|
|
where: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateWithoutChatInput, Prisma.TeamChatPinnedMessageUncheckedUpdateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatPinnedMessageUpdateManyWithWhereWithoutChatInput = {
|
|
where: Prisma.TeamChatPinnedMessageScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateManyMutationInput, Prisma.TeamChatPinnedMessageUncheckedUpdateManyWithoutChatInput>
|
|
}
|
|
|
|
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<Prisma.TeamChatPinnedMessageCreateWithoutMessageInput, Prisma.TeamChatPinnedMessageUncheckedCreateWithoutMessageInput>
|
|
}
|
|
|
|
export type TeamChatPinnedMessageCreateManyMessageInputEnvelope = {
|
|
data: Prisma.TeamChatPinnedMessageCreateManyMessageInput | Prisma.TeamChatPinnedMessageCreateManyMessageInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TeamChatPinnedMessageUpsertWithWhereUniqueWithoutMessageInput = {
|
|
where: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateWithoutMessageInput, Prisma.TeamChatPinnedMessageUncheckedUpdateWithoutMessageInput>
|
|
create: Prisma.XOR<Prisma.TeamChatPinnedMessageCreateWithoutMessageInput, Prisma.TeamChatPinnedMessageUncheckedCreateWithoutMessageInput>
|
|
}
|
|
|
|
export type TeamChatPinnedMessageUpdateWithWhereUniqueWithoutMessageInput = {
|
|
where: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateWithoutMessageInput, Prisma.TeamChatPinnedMessageUncheckedUpdateWithoutMessageInput>
|
|
}
|
|
|
|
export type TeamChatPinnedMessageUpdateManyWithWhereWithoutMessageInput = {
|
|
where: Prisma.TeamChatPinnedMessageScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateManyMutationInput, Prisma.TeamChatPinnedMessageUncheckedUpdateManyWithoutMessageInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
messageId?: boolean
|
|
pinnedByUserId?: boolean
|
|
pinnedAt?: boolean
|
|
note?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatPinnedMessage"]>
|
|
|
|
export type TeamChatPinnedMessageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
messageId?: boolean
|
|
pinnedByUserId?: boolean
|
|
pinnedAt?: boolean
|
|
note?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatPinnedMessage"]>
|
|
|
|
export type TeamChatPinnedMessageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
messageId?: boolean
|
|
pinnedByUserId?: boolean
|
|
pinnedAt?: boolean
|
|
note?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatPinnedMessage"]>
|
|
|
|
export type TeamChatPinnedMessageSelectScalar = {
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
messageId?: boolean
|
|
pinnedByUserId?: boolean
|
|
pinnedAt?: boolean
|
|
note?: boolean
|
|
}
|
|
|
|
export type TeamChatPinnedMessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "chatId" | "messageId" | "pinnedByUserId" | "pinnedAt" | "note", ExtArgs["result"]["teamChatPinnedMessage"]>
|
|
export type TeamChatPinnedMessageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatPinnedMessageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatPinnedMessageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TeamChatPinnedMessagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "TeamChatPinnedMessage"
|
|
objects: {
|
|
chat: Prisma.$TeamChatPayload<ExtArgs>
|
|
message: Prisma.$TeamChatMessagePayload<ExtArgs>
|
|
}
|
|
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<S extends boolean | null | undefined | TeamChatPinnedMessageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload, S>
|
|
|
|
export type TeamChatPinnedMessageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<TeamChatPinnedMessageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TeamChatPinnedMessageCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TeamChatPinnedMessageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends TeamChatPinnedMessageFindUniqueArgs>(args: Prisma.SelectSubset<T, TeamChatPinnedMessageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TeamChatPinnedMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TeamChatPinnedMessageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatPinnedMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageFindFirstArgs>(args?: Prisma.SelectSubset<T, TeamChatPinnedMessageFindFirstArgs<ExtArgs>>): Prisma.Prisma__TeamChatPinnedMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TeamChatPinnedMessageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatPinnedMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageFindManyArgs>(args?: Prisma.SelectSubset<T, TeamChatPinnedMessageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageCreateArgs>(args: Prisma.SelectSubset<T, TeamChatPinnedMessageCreateArgs<ExtArgs>>): Prisma.Prisma__TeamChatPinnedMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageCreateManyArgs>(args?: Prisma.SelectSubset<T, TeamChatPinnedMessageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends TeamChatPinnedMessageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TeamChatPinnedMessageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageDeleteArgs>(args: Prisma.SelectSubset<T, TeamChatPinnedMessageDeleteArgs<ExtArgs>>): Prisma.Prisma__TeamChatPinnedMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageUpdateArgs>(args: Prisma.SelectSubset<T, TeamChatPinnedMessageUpdateArgs<ExtArgs>>): Prisma.Prisma__TeamChatPinnedMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageDeleteManyArgs>(args?: Prisma.SelectSubset<T, TeamChatPinnedMessageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends TeamChatPinnedMessageUpdateManyArgs>(args: Prisma.SelectSubset<T, TeamChatPinnedMessageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends TeamChatPinnedMessageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TeamChatPinnedMessageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageUpsertArgs>(args: Prisma.SelectSubset<T, TeamChatPinnedMessageUpsertArgs<ExtArgs>>): Prisma.Prisma__TeamChatPinnedMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, 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<T extends TeamChatPinnedMessageCountArgs>(
|
|
args?: Prisma.Subset<T, TeamChatPinnedMessageCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TeamChatPinnedMessageCountAggregateOutputType>
|
|
: 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<T extends TeamChatPinnedMessageAggregateArgs>(args: Prisma.Subset<T, TeamChatPinnedMessageAggregateArgs>): Prisma.PrismaPromise<GetTeamChatPinnedMessageAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: TeamChatPinnedMessageGroupByArgs['orderBy'] }
|
|
: { orderBy?: TeamChatPinnedMessageGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, TeamChatPinnedMessageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamChatPinnedMessageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
chat<T extends Prisma.TeamChatDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChatDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
message<T extends Prisma.TeamChatMessageDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChatMessageDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamChatMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatMessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatPinnedMessage to fetch.
|
|
*/
|
|
where: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage findUniqueOrThrow
|
|
*/
|
|
export type TeamChatPinnedMessageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatPinnedMessage to fetch.
|
|
*/
|
|
where: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage findFirst
|
|
*/
|
|
export type TeamChatPinnedMessageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TeamChatPinnedMessage.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatPinnedMessageCreateInput, Prisma.TeamChatPinnedMessageUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage createMany
|
|
*/
|
|
export type TeamChatPinnedMessageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TeamChatPinnedMessages.
|
|
*/
|
|
data: Prisma.TeamChatPinnedMessageCreateManyInput | Prisma.TeamChatPinnedMessageCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage createManyAndReturn
|
|
*/
|
|
export type TeamChatPinnedMessageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage update
|
|
*/
|
|
export type TeamChatPinnedMessageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TeamChatPinnedMessage.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateInput, Prisma.TeamChatPinnedMessageUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TeamChatPinnedMessage to update.
|
|
*/
|
|
where: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage updateMany
|
|
*/
|
|
export type TeamChatPinnedMessageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TeamChatPinnedMessages.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateManyMutationInput, Prisma.TeamChatPinnedMessageUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChatPinnedMessages to update
|
|
*/
|
|
where?: Prisma.TeamChatPinnedMessageWhereInput
|
|
/**
|
|
* Limit how many TeamChatPinnedMessages to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage updateManyAndReturn
|
|
*/
|
|
export type TeamChatPinnedMessageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update TeamChatPinnedMessages.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateManyMutationInput, Prisma.TeamChatPinnedMessageUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage upsert
|
|
*/
|
|
export type TeamChatPinnedMessageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | 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<Prisma.TeamChatPinnedMessageCreateInput, Prisma.TeamChatPinnedMessageUncheckedCreateInput>
|
|
/**
|
|
* In case the TeamChatPinnedMessage was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.TeamChatPinnedMessageUpdateInput, Prisma.TeamChatPinnedMessageUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage delete
|
|
*/
|
|
export type TeamChatPinnedMessageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TeamChatPinnedMessage to delete.
|
|
*/
|
|
where: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage deleteMany
|
|
*/
|
|
export type TeamChatPinnedMessageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChatPinnedMessages to delete
|
|
*/
|
|
where?: Prisma.TeamChatPinnedMessageWhereInput
|
|
/**
|
|
* Limit how many TeamChatPinnedMessages to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChatPinnedMessage without action
|
|
*/
|
|
export type TeamChatPinnedMessageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | null
|
|
}
|