1343 lines
50 KiB
TypeScript
1343 lines
50 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 `TeamChatRead` 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 TeamChatRead
|
|
* Per-user read receipt written only after a message was visibly read.
|
|
*/
|
|
export type TeamChatReadModel = runtime.Types.Result.DefaultSelection<Prisma.$TeamChatReadPayload>
|
|
|
|
export type AggregateTeamChatRead = {
|
|
_count: TeamChatReadCountAggregateOutputType | null
|
|
_min: TeamChatReadMinAggregateOutputType | null
|
|
_max: TeamChatReadMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TeamChatReadMinAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
messageId: string | null
|
|
userId: string | null
|
|
readAt: Date | null
|
|
}
|
|
|
|
export type TeamChatReadMaxAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
messageId: string | null
|
|
userId: string | null
|
|
readAt: Date | null
|
|
}
|
|
|
|
export type TeamChatReadCountAggregateOutputType = {
|
|
id: number
|
|
tenantId: number
|
|
messageId: number
|
|
userId: number
|
|
readAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TeamChatReadMinAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
messageId?: true
|
|
userId?: true
|
|
readAt?: true
|
|
}
|
|
|
|
export type TeamChatReadMaxAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
messageId?: true
|
|
userId?: true
|
|
readAt?: true
|
|
}
|
|
|
|
export type TeamChatReadCountAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
messageId?: true
|
|
userId?: true
|
|
readAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TeamChatReadAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChatRead to aggregate.
|
|
*/
|
|
where?: Prisma.TeamChatReadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatReads to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatReadOrderByWithRelationInput | Prisma.TeamChatReadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.TeamChatReadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatReads 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` TeamChatReads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned TeamChatReads
|
|
**/
|
|
_count?: true | TeamChatReadCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TeamChatReadMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TeamChatReadMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTeamChatReadAggregateType<T extends TeamChatReadAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTeamChatRead]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChatRead[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChatRead[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TeamChatReadGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatReadWhereInput
|
|
orderBy?: Prisma.TeamChatReadOrderByWithAggregationInput | Prisma.TeamChatReadOrderByWithAggregationInput[]
|
|
by: Prisma.TeamChatReadScalarFieldEnum[] | Prisma.TeamChatReadScalarFieldEnum
|
|
having?: Prisma.TeamChatReadScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TeamChatReadCountAggregateInputType | true
|
|
_min?: TeamChatReadMinAggregateInputType
|
|
_max?: TeamChatReadMaxAggregateInputType
|
|
}
|
|
|
|
export type TeamChatReadGroupByOutputType = {
|
|
id: string
|
|
tenantId: string
|
|
messageId: string
|
|
userId: string
|
|
readAt: Date
|
|
_count: TeamChatReadCountAggregateOutputType | null
|
|
_min: TeamChatReadMinAggregateOutputType | null
|
|
_max: TeamChatReadMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetTeamChatReadGroupByPayload<T extends TeamChatReadGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TeamChatReadGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TeamChatReadGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TeamChatReadGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TeamChatReadGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type TeamChatReadWhereInput = {
|
|
AND?: Prisma.TeamChatReadWhereInput | Prisma.TeamChatReadWhereInput[]
|
|
OR?: Prisma.TeamChatReadWhereInput[]
|
|
NOT?: Prisma.TeamChatReadWhereInput | Prisma.TeamChatReadWhereInput[]
|
|
id?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
tenantId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
messageId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
userId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
readAt?: Prisma.DateTimeFilter<"TeamChatRead"> | Date | string
|
|
message?: Prisma.XOR<Prisma.TeamChatMessageScalarRelationFilter, Prisma.TeamChatMessageWhereInput>
|
|
}
|
|
|
|
export type TeamChatReadOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
messageId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
readAt?: Prisma.SortOrder
|
|
message?: Prisma.TeamChatMessageOrderByWithRelationInput
|
|
}
|
|
|
|
export type TeamChatReadWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
messageId_userId?: Prisma.TeamChatReadMessageIdUserIdCompoundUniqueInput
|
|
AND?: Prisma.TeamChatReadWhereInput | Prisma.TeamChatReadWhereInput[]
|
|
OR?: Prisma.TeamChatReadWhereInput[]
|
|
NOT?: Prisma.TeamChatReadWhereInput | Prisma.TeamChatReadWhereInput[]
|
|
tenantId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
messageId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
userId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
readAt?: Prisma.DateTimeFilter<"TeamChatRead"> | Date | string
|
|
message?: Prisma.XOR<Prisma.TeamChatMessageScalarRelationFilter, Prisma.TeamChatMessageWhereInput>
|
|
}, "id" | "messageId_userId">
|
|
|
|
export type TeamChatReadOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
messageId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
readAt?: Prisma.SortOrder
|
|
_count?: Prisma.TeamChatReadCountOrderByAggregateInput
|
|
_max?: Prisma.TeamChatReadMaxOrderByAggregateInput
|
|
_min?: Prisma.TeamChatReadMinOrderByAggregateInput
|
|
}
|
|
|
|
export type TeamChatReadScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.TeamChatReadScalarWhereWithAggregatesInput | Prisma.TeamChatReadScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.TeamChatReadScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.TeamChatReadScalarWhereWithAggregatesInput | Prisma.TeamChatReadScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"TeamChatRead"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"TeamChatRead"> | string
|
|
messageId?: Prisma.StringWithAggregatesFilter<"TeamChatRead"> | string
|
|
userId?: Prisma.StringWithAggregatesFilter<"TeamChatRead"> | string
|
|
readAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChatRead"> | Date | string
|
|
}
|
|
|
|
export type TeamChatReadCreateInput = {
|
|
id?: string
|
|
userId: string
|
|
readAt?: Date | string
|
|
message: Prisma.TeamChatMessageCreateNestedOneWithoutReadsInput
|
|
}
|
|
|
|
export type TeamChatReadUncheckedCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
messageId: string
|
|
userId: string
|
|
readAt?: Date | string
|
|
}
|
|
|
|
export type TeamChatReadUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
readAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
message?: Prisma.TeamChatMessageUpdateOneRequiredWithoutReadsNestedInput
|
|
}
|
|
|
|
export type TeamChatReadUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
messageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
readAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TeamChatReadCreateManyInput = {
|
|
id?: string
|
|
tenantId: string
|
|
messageId: string
|
|
userId: string
|
|
readAt?: Date | string
|
|
}
|
|
|
|
export type TeamChatReadUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
readAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TeamChatReadUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
messageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
readAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TeamChatReadListRelationFilter = {
|
|
every?: Prisma.TeamChatReadWhereInput
|
|
some?: Prisma.TeamChatReadWhereInput
|
|
none?: Prisma.TeamChatReadWhereInput
|
|
}
|
|
|
|
export type TeamChatReadOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatReadMessageIdUserIdCompoundUniqueInput = {
|
|
messageId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TeamChatReadCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
messageId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
readAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatReadMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
messageId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
readAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatReadMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
messageId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
readAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatReadCreateNestedManyWithoutMessageInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatReadCreateWithoutMessageInput, Prisma.TeamChatReadUncheckedCreateWithoutMessageInput> | Prisma.TeamChatReadCreateWithoutMessageInput[] | Prisma.TeamChatReadUncheckedCreateWithoutMessageInput[]
|
|
connectOrCreate?: Prisma.TeamChatReadCreateOrConnectWithoutMessageInput | Prisma.TeamChatReadCreateOrConnectWithoutMessageInput[]
|
|
createMany?: Prisma.TeamChatReadCreateManyMessageInputEnvelope
|
|
connect?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
}
|
|
|
|
export type TeamChatReadUncheckedCreateNestedManyWithoutMessageInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatReadCreateWithoutMessageInput, Prisma.TeamChatReadUncheckedCreateWithoutMessageInput> | Prisma.TeamChatReadCreateWithoutMessageInput[] | Prisma.TeamChatReadUncheckedCreateWithoutMessageInput[]
|
|
connectOrCreate?: Prisma.TeamChatReadCreateOrConnectWithoutMessageInput | Prisma.TeamChatReadCreateOrConnectWithoutMessageInput[]
|
|
createMany?: Prisma.TeamChatReadCreateManyMessageInputEnvelope
|
|
connect?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
}
|
|
|
|
export type TeamChatReadUpdateManyWithoutMessageNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatReadCreateWithoutMessageInput, Prisma.TeamChatReadUncheckedCreateWithoutMessageInput> | Prisma.TeamChatReadCreateWithoutMessageInput[] | Prisma.TeamChatReadUncheckedCreateWithoutMessageInput[]
|
|
connectOrCreate?: Prisma.TeamChatReadCreateOrConnectWithoutMessageInput | Prisma.TeamChatReadCreateOrConnectWithoutMessageInput[]
|
|
upsert?: Prisma.TeamChatReadUpsertWithWhereUniqueWithoutMessageInput | Prisma.TeamChatReadUpsertWithWhereUniqueWithoutMessageInput[]
|
|
createMany?: Prisma.TeamChatReadCreateManyMessageInputEnvelope
|
|
set?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
disconnect?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
delete?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
connect?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
update?: Prisma.TeamChatReadUpdateWithWhereUniqueWithoutMessageInput | Prisma.TeamChatReadUpdateWithWhereUniqueWithoutMessageInput[]
|
|
updateMany?: Prisma.TeamChatReadUpdateManyWithWhereWithoutMessageInput | Prisma.TeamChatReadUpdateManyWithWhereWithoutMessageInput[]
|
|
deleteMany?: Prisma.TeamChatReadScalarWhereInput | Prisma.TeamChatReadScalarWhereInput[]
|
|
}
|
|
|
|
export type TeamChatReadUncheckedUpdateManyWithoutMessageNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatReadCreateWithoutMessageInput, Prisma.TeamChatReadUncheckedCreateWithoutMessageInput> | Prisma.TeamChatReadCreateWithoutMessageInput[] | Prisma.TeamChatReadUncheckedCreateWithoutMessageInput[]
|
|
connectOrCreate?: Prisma.TeamChatReadCreateOrConnectWithoutMessageInput | Prisma.TeamChatReadCreateOrConnectWithoutMessageInput[]
|
|
upsert?: Prisma.TeamChatReadUpsertWithWhereUniqueWithoutMessageInput | Prisma.TeamChatReadUpsertWithWhereUniqueWithoutMessageInput[]
|
|
createMany?: Prisma.TeamChatReadCreateManyMessageInputEnvelope
|
|
set?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
disconnect?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
delete?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
connect?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[]
|
|
update?: Prisma.TeamChatReadUpdateWithWhereUniqueWithoutMessageInput | Prisma.TeamChatReadUpdateWithWhereUniqueWithoutMessageInput[]
|
|
updateMany?: Prisma.TeamChatReadUpdateManyWithWhereWithoutMessageInput | Prisma.TeamChatReadUpdateManyWithWhereWithoutMessageInput[]
|
|
deleteMany?: Prisma.TeamChatReadScalarWhereInput | Prisma.TeamChatReadScalarWhereInput[]
|
|
}
|
|
|
|
export type TeamChatReadCreateWithoutMessageInput = {
|
|
id?: string
|
|
userId: string
|
|
readAt?: Date | string
|
|
}
|
|
|
|
export type TeamChatReadUncheckedCreateWithoutMessageInput = {
|
|
id?: string
|
|
userId: string
|
|
readAt?: Date | string
|
|
}
|
|
|
|
export type TeamChatReadCreateOrConnectWithoutMessageInput = {
|
|
where: Prisma.TeamChatReadWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatReadCreateWithoutMessageInput, Prisma.TeamChatReadUncheckedCreateWithoutMessageInput>
|
|
}
|
|
|
|
export type TeamChatReadCreateManyMessageInputEnvelope = {
|
|
data: Prisma.TeamChatReadCreateManyMessageInput | Prisma.TeamChatReadCreateManyMessageInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TeamChatReadUpsertWithWhereUniqueWithoutMessageInput = {
|
|
where: Prisma.TeamChatReadWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TeamChatReadUpdateWithoutMessageInput, Prisma.TeamChatReadUncheckedUpdateWithoutMessageInput>
|
|
create: Prisma.XOR<Prisma.TeamChatReadCreateWithoutMessageInput, Prisma.TeamChatReadUncheckedCreateWithoutMessageInput>
|
|
}
|
|
|
|
export type TeamChatReadUpdateWithWhereUniqueWithoutMessageInput = {
|
|
where: Prisma.TeamChatReadWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TeamChatReadUpdateWithoutMessageInput, Prisma.TeamChatReadUncheckedUpdateWithoutMessageInput>
|
|
}
|
|
|
|
export type TeamChatReadUpdateManyWithWhereWithoutMessageInput = {
|
|
where: Prisma.TeamChatReadScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatReadUpdateManyMutationInput, Prisma.TeamChatReadUncheckedUpdateManyWithoutMessageInput>
|
|
}
|
|
|
|
export type TeamChatReadScalarWhereInput = {
|
|
AND?: Prisma.TeamChatReadScalarWhereInput | Prisma.TeamChatReadScalarWhereInput[]
|
|
OR?: Prisma.TeamChatReadScalarWhereInput[]
|
|
NOT?: Prisma.TeamChatReadScalarWhereInput | Prisma.TeamChatReadScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
tenantId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
messageId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
userId?: Prisma.StringFilter<"TeamChatRead"> | string
|
|
readAt?: Prisma.DateTimeFilter<"TeamChatRead"> | Date | string
|
|
}
|
|
|
|
export type TeamChatReadCreateManyMessageInput = {
|
|
id?: string
|
|
userId: string
|
|
readAt?: Date | string
|
|
}
|
|
|
|
export type TeamChatReadUpdateWithoutMessageInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
readAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TeamChatReadUncheckedUpdateWithoutMessageInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
readAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TeamChatReadUncheckedUpdateManyWithoutMessageInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
readAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type TeamChatReadSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
messageId?: boolean
|
|
userId?: boolean
|
|
readAt?: boolean
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatRead"]>
|
|
|
|
export type TeamChatReadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
messageId?: boolean
|
|
userId?: boolean
|
|
readAt?: boolean
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatRead"]>
|
|
|
|
export type TeamChatReadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
messageId?: boolean
|
|
userId?: boolean
|
|
readAt?: boolean
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatRead"]>
|
|
|
|
export type TeamChatReadSelectScalar = {
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
messageId?: boolean
|
|
userId?: boolean
|
|
readAt?: boolean
|
|
}
|
|
|
|
export type TeamChatReadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "messageId" | "userId" | "readAt", ExtArgs["result"]["teamChatRead"]>
|
|
export type TeamChatReadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatReadIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatReadIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
message?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TeamChatReadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "TeamChatRead"
|
|
objects: {
|
|
message: Prisma.$TeamChatMessagePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
tenantId: string
|
|
messageId: string
|
|
userId: string
|
|
readAt: Date
|
|
}, ExtArgs["result"]["teamChatRead"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type TeamChatReadGetPayload<S extends boolean | null | undefined | TeamChatReadDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload, S>
|
|
|
|
export type TeamChatReadCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<TeamChatReadFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TeamChatReadCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TeamChatReadDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TeamChatRead'], meta: { name: 'TeamChatRead' } }
|
|
/**
|
|
* Find zero or one TeamChatRead that matches the filter.
|
|
* @param {TeamChatReadFindUniqueArgs} args - Arguments to find a TeamChatRead
|
|
* @example
|
|
* // Get one TeamChatRead
|
|
* const teamChatRead = await prisma.teamChatRead.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TeamChatReadFindUniqueArgs>(args: Prisma.SelectSubset<T, TeamChatReadFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TeamChatReadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one TeamChatRead that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TeamChatReadFindUniqueOrThrowArgs} args - Arguments to find a TeamChatRead
|
|
* @example
|
|
* // Get one TeamChatRead
|
|
* const teamChatRead = await prisma.teamChatRead.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TeamChatReadFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TeamChatReadFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatReadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TeamChatRead 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 {TeamChatReadFindFirstArgs} args - Arguments to find a TeamChatRead
|
|
* @example
|
|
* // Get one TeamChatRead
|
|
* const teamChatRead = await prisma.teamChatRead.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TeamChatReadFindFirstArgs>(args?: Prisma.SelectSubset<T, TeamChatReadFindFirstArgs<ExtArgs>>): Prisma.Prisma__TeamChatReadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TeamChatRead 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 {TeamChatReadFindFirstOrThrowArgs} args - Arguments to find a TeamChatRead
|
|
* @example
|
|
* // Get one TeamChatRead
|
|
* const teamChatRead = await prisma.teamChatRead.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TeamChatReadFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TeamChatReadFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatReadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more TeamChatReads 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 {TeamChatReadFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all TeamChatReads
|
|
* const teamChatReads = await prisma.teamChatRead.findMany()
|
|
*
|
|
* // Get first 10 TeamChatReads
|
|
* const teamChatReads = await prisma.teamChatRead.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const teamChatReadWithIdOnly = await prisma.teamChatRead.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TeamChatReadFindManyArgs>(args?: Prisma.SelectSubset<T, TeamChatReadFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a TeamChatRead.
|
|
* @param {TeamChatReadCreateArgs} args - Arguments to create a TeamChatRead.
|
|
* @example
|
|
* // Create one TeamChatRead
|
|
* const TeamChatRead = await prisma.teamChatRead.create({
|
|
* data: {
|
|
* // ... data to create a TeamChatRead
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TeamChatReadCreateArgs>(args: Prisma.SelectSubset<T, TeamChatReadCreateArgs<ExtArgs>>): Prisma.Prisma__TeamChatReadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many TeamChatReads.
|
|
* @param {TeamChatReadCreateManyArgs} args - Arguments to create many TeamChatReads.
|
|
* @example
|
|
* // Create many TeamChatReads
|
|
* const teamChatRead = await prisma.teamChatRead.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TeamChatReadCreateManyArgs>(args?: Prisma.SelectSubset<T, TeamChatReadCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many TeamChatReads and returns the data saved in the database.
|
|
* @param {TeamChatReadCreateManyAndReturnArgs} args - Arguments to create many TeamChatReads.
|
|
* @example
|
|
* // Create many TeamChatReads
|
|
* const teamChatRead = await prisma.teamChatRead.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many TeamChatReads and only return the `id`
|
|
* const teamChatReadWithIdOnly = await prisma.teamChatRead.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 TeamChatReadCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TeamChatReadCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a TeamChatRead.
|
|
* @param {TeamChatReadDeleteArgs} args - Arguments to delete one TeamChatRead.
|
|
* @example
|
|
* // Delete one TeamChatRead
|
|
* const TeamChatRead = await prisma.teamChatRead.delete({
|
|
* where: {
|
|
* // ... filter to delete one TeamChatRead
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TeamChatReadDeleteArgs>(args: Prisma.SelectSubset<T, TeamChatReadDeleteArgs<ExtArgs>>): Prisma.Prisma__TeamChatReadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one TeamChatRead.
|
|
* @param {TeamChatReadUpdateArgs} args - Arguments to update one TeamChatRead.
|
|
* @example
|
|
* // Update one TeamChatRead
|
|
* const teamChatRead = await prisma.teamChatRead.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TeamChatReadUpdateArgs>(args: Prisma.SelectSubset<T, TeamChatReadUpdateArgs<ExtArgs>>): Prisma.Prisma__TeamChatReadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more TeamChatReads.
|
|
* @param {TeamChatReadDeleteManyArgs} args - Arguments to filter TeamChatReads to delete.
|
|
* @example
|
|
* // Delete a few TeamChatReads
|
|
* const { count } = await prisma.teamChatRead.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TeamChatReadDeleteManyArgs>(args?: Prisma.SelectSubset<T, TeamChatReadDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TeamChatReads.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatReadUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many TeamChatReads
|
|
* const teamChatRead = await prisma.teamChatRead.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TeamChatReadUpdateManyArgs>(args: Prisma.SelectSubset<T, TeamChatReadUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TeamChatReads and returns the data updated in the database.
|
|
* @param {TeamChatReadUpdateManyAndReturnArgs} args - Arguments to update many TeamChatReads.
|
|
* @example
|
|
* // Update many TeamChatReads
|
|
* const teamChatRead = await prisma.teamChatRead.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more TeamChatReads and only return the `id`
|
|
* const teamChatReadWithIdOnly = await prisma.teamChatRead.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 TeamChatReadUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TeamChatReadUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one TeamChatRead.
|
|
* @param {TeamChatReadUpsertArgs} args - Arguments to update or create a TeamChatRead.
|
|
* @example
|
|
* // Update or create a TeamChatRead
|
|
* const teamChatRead = await prisma.teamChatRead.upsert({
|
|
* create: {
|
|
* // ... data to create a TeamChatRead
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the TeamChatRead we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TeamChatReadUpsertArgs>(args: Prisma.SelectSubset<T, TeamChatReadUpsertArgs<ExtArgs>>): Prisma.Prisma__TeamChatReadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatReadPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of TeamChatReads.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatReadCountArgs} args - Arguments to filter TeamChatReads to count.
|
|
* @example
|
|
* // Count the number of TeamChatReads
|
|
* const count = await prisma.teamChatRead.count({
|
|
* where: {
|
|
* // ... the filter for the TeamChatReads we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TeamChatReadCountArgs>(
|
|
args?: Prisma.Subset<T, TeamChatReadCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TeamChatReadCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a TeamChatRead.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatReadAggregateArgs} 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 TeamChatReadAggregateArgs>(args: Prisma.Subset<T, TeamChatReadAggregateArgs>): Prisma.PrismaPromise<GetTeamChatReadAggregateType<T>>
|
|
|
|
/**
|
|
* Group by TeamChatRead.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatReadGroupByArgs} 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 TeamChatReadGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: TeamChatReadGroupByArgs['orderBy'] }
|
|
: { orderBy?: TeamChatReadGroupByArgs['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, TeamChatReadGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamChatReadGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the TeamChatRead model
|
|
*/
|
|
readonly fields: TeamChatReadFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for TeamChatRead.
|
|
* 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__TeamChatReadClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
message<T extends Prisma.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 TeamChatRead model
|
|
*/
|
|
export interface TeamChatReadFieldRefs {
|
|
readonly id: Prisma.FieldRef<"TeamChatRead", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"TeamChatRead", 'String'>
|
|
readonly messageId: Prisma.FieldRef<"TeamChatRead", 'String'>
|
|
readonly userId: Prisma.FieldRef<"TeamChatRead", 'String'>
|
|
readonly readAt: Prisma.FieldRef<"TeamChatRead", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TeamChatRead findUnique
|
|
*/
|
|
export type TeamChatReadFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatRead to fetch.
|
|
*/
|
|
where: Prisma.TeamChatReadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead findUniqueOrThrow
|
|
*/
|
|
export type TeamChatReadFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatRead to fetch.
|
|
*/
|
|
where: Prisma.TeamChatReadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead findFirst
|
|
*/
|
|
export type TeamChatReadFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatRead to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatReadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatReads to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatReadOrderByWithRelationInput | Prisma.TeamChatReadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TeamChatReads.
|
|
*/
|
|
cursor?: Prisma.TeamChatReadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatReads 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` TeamChatReads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatReads.
|
|
*/
|
|
distinct?: Prisma.TeamChatReadScalarFieldEnum | Prisma.TeamChatReadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead findFirstOrThrow
|
|
*/
|
|
export type TeamChatReadFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatRead to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatReadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatReads to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatReadOrderByWithRelationInput | Prisma.TeamChatReadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TeamChatReads.
|
|
*/
|
|
cursor?: Prisma.TeamChatReadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatReads 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` TeamChatReads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatReads.
|
|
*/
|
|
distinct?: Prisma.TeamChatReadScalarFieldEnum | Prisma.TeamChatReadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead findMany
|
|
*/
|
|
export type TeamChatReadFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatReads to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatReadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatReads to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatReadOrderByWithRelationInput | Prisma.TeamChatReadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing TeamChatReads.
|
|
*/
|
|
cursor?: Prisma.TeamChatReadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatReads 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` TeamChatReads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatReads.
|
|
*/
|
|
distinct?: Prisma.TeamChatReadScalarFieldEnum | Prisma.TeamChatReadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead create
|
|
*/
|
|
export type TeamChatReadCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TeamChatRead.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatReadCreateInput, Prisma.TeamChatReadUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead createMany
|
|
*/
|
|
export type TeamChatReadCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TeamChatReads.
|
|
*/
|
|
data: Prisma.TeamChatReadCreateManyInput | Prisma.TeamChatReadCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead createManyAndReturn
|
|
*/
|
|
export type TeamChatReadCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many TeamChatReads.
|
|
*/
|
|
data: Prisma.TeamChatReadCreateManyInput | Prisma.TeamChatReadCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead update
|
|
*/
|
|
export type TeamChatReadUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TeamChatRead.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatReadUpdateInput, Prisma.TeamChatReadUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TeamChatRead to update.
|
|
*/
|
|
where: Prisma.TeamChatReadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead updateMany
|
|
*/
|
|
export type TeamChatReadUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TeamChatReads.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatReadUpdateManyMutationInput, Prisma.TeamChatReadUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChatReads to update
|
|
*/
|
|
where?: Prisma.TeamChatReadWhereInput
|
|
/**
|
|
* Limit how many TeamChatReads to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead updateManyAndReturn
|
|
*/
|
|
export type TeamChatReadUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update TeamChatReads.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatReadUpdateManyMutationInput, Prisma.TeamChatReadUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChatReads to update
|
|
*/
|
|
where?: Prisma.TeamChatReadWhereInput
|
|
/**
|
|
* Limit how many TeamChatReads to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead upsert
|
|
*/
|
|
export type TeamChatReadUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the TeamChatRead to update in case it exists.
|
|
*/
|
|
where: Prisma.TeamChatReadWhereUniqueInput
|
|
/**
|
|
* In case the TeamChatRead found by the `where` argument doesn't exist, create a new TeamChatRead with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.TeamChatReadCreateInput, Prisma.TeamChatReadUncheckedCreateInput>
|
|
/**
|
|
* In case the TeamChatRead was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.TeamChatReadUpdateInput, Prisma.TeamChatReadUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead delete
|
|
*/
|
|
export type TeamChatReadDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TeamChatRead to delete.
|
|
*/
|
|
where: Prisma.TeamChatReadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead deleteMany
|
|
*/
|
|
export type TeamChatReadDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChatReads to delete
|
|
*/
|
|
where?: Prisma.TeamChatReadWhereInput
|
|
/**
|
|
* Limit how many TeamChatReads to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChatRead without action
|
|
*/
|
|
export type TeamChatReadDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatRead
|
|
*/
|
|
select?: Prisma.TeamChatReadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatRead
|
|
*/
|
|
omit?: Prisma.TeamChatReadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatReadInclude<ExtArgs> | null
|
|
}
|