/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateTeamChatRead]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TeamChatReadGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TeamChatReadGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 } 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 }, "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[] connectOrCreate?: Prisma.TeamChatReadCreateOrConnectWithoutMessageInput | Prisma.TeamChatReadCreateOrConnectWithoutMessageInput[] createMany?: Prisma.TeamChatReadCreateManyMessageInputEnvelope connect?: Prisma.TeamChatReadWhereUniqueInput | Prisma.TeamChatReadWhereUniqueInput[] } export type TeamChatReadUncheckedCreateNestedManyWithoutMessageInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type TeamChatReadCreateManyMessageInputEnvelope = { data: Prisma.TeamChatReadCreateManyMessageInput | Prisma.TeamChatReadCreateManyMessageInput[] skipDuplicates?: boolean } export type TeamChatReadUpsertWithWhereUniqueWithoutMessageInput = { where: Prisma.TeamChatReadWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TeamChatReadUpdateWithWhereUniqueWithoutMessageInput = { where: Prisma.TeamChatReadWhereUniqueInput data: Prisma.XOR } export type TeamChatReadUpdateManyWithWhereWithoutMessageInput = { where: Prisma.TeamChatReadScalarWhereInput data: Prisma.XOR } 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 = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean messageId?: boolean userId?: boolean readAt?: boolean message?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatRead"]> export type TeamChatReadSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean messageId?: boolean userId?: boolean readAt?: boolean message?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatRead"]> export type TeamChatReadSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean messageId?: boolean userId?: boolean readAt?: boolean message?: boolean | Prisma.TeamChatMessageDefaultArgs }, ExtArgs["result"]["teamChatRead"]> export type TeamChatReadSelectScalar = { id?: boolean tenantId?: boolean messageId?: boolean userId?: boolean readAt?: boolean } export type TeamChatReadOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "messageId" | "userId" | "readAt", ExtArgs["result"]["teamChatRead"]> export type TeamChatReadInclude = { message?: boolean | Prisma.TeamChatMessageDefaultArgs } export type TeamChatReadIncludeCreateManyAndReturn = { message?: boolean | Prisma.TeamChatMessageDefaultArgs } export type TeamChatReadIncludeUpdateManyAndReturn = { message?: boolean | Prisma.TeamChatMessageDefaultArgs } export type $TeamChatReadPayload = { name: "TeamChatRead" objects: { message: Prisma.$TeamChatMessagePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string messageId: string userId: string readAt: Date }, ExtArgs["result"]["teamChatRead"]> composites: {} } export type TeamChatReadGetPayload = runtime.Types.Result.GetResult export type TeamChatReadCountArgs = Omit & { select?: TeamChatReadCountAggregateInputType | true } export interface TeamChatReadDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatReadClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatReadClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamChatReadClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamChatReadClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatReadClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatReadClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatReadClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TeamChatReadClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TeamChatReadGroupByArgs['orderBy'] } : { orderBy?: TeamChatReadGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTeamChatReadGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" message = {}>(args?: Prisma.Subset>): Prisma.Prisma__TeamChatMessageClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | null /** * Filter, which TeamChatRead to fetch. */ where: Prisma.TeamChatReadWhereUniqueInput } /** * TeamChatRead findUniqueOrThrow */ export type TeamChatReadFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | null /** * Filter, which TeamChatRead to fetch. */ where: Prisma.TeamChatReadWhereUniqueInput } /** * TeamChatRead findFirst */ export type TeamChatReadFindFirstArgs = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | 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 = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | 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 = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | 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 = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | null /** * The data needed to create a TeamChatRead. */ data: Prisma.XOR } /** * TeamChatRead createMany */ export type TeamChatReadCreateManyArgs = { /** * The data used to create many TeamChatReads. */ data: Prisma.TeamChatReadCreateManyInput | Prisma.TeamChatReadCreateManyInput[] skipDuplicates?: boolean } /** * TeamChatRead createManyAndReturn */ export type TeamChatReadCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelectCreateManyAndReturn | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | 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 | null } /** * TeamChatRead update */ export type TeamChatReadUpdateArgs = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | null /** * The data needed to update a TeamChatRead. */ data: Prisma.XOR /** * Choose, which TeamChatRead to update. */ where: Prisma.TeamChatReadWhereUniqueInput } /** * TeamChatRead updateMany */ export type TeamChatReadUpdateManyArgs = { /** * The data used to update TeamChatReads. */ data: Prisma.XOR /** * Filter which TeamChatReads to update */ where?: Prisma.TeamChatReadWhereInput /** * Limit how many TeamChatReads to update. */ limit?: number } /** * TeamChatRead updateManyAndReturn */ export type TeamChatReadUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelectUpdateManyAndReturn | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * The data used to update TeamChatReads. */ data: Prisma.XOR /** * 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 | null } /** * TeamChatRead upsert */ export type TeamChatReadUpsertArgs = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | 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 /** * In case the TeamChatRead was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TeamChatRead delete */ export type TeamChatReadDeleteArgs = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | null /** * Filter which TeamChatRead to delete. */ where: Prisma.TeamChatReadWhereUniqueInput } /** * TeamChatRead deleteMany */ export type TeamChatReadDeleteManyArgs = { /** * Filter which TeamChatReads to delete */ where?: Prisma.TeamChatReadWhereInput /** * Limit how many TeamChatReads to delete. */ limit?: number } /** * TeamChatRead without action */ export type TeamChatReadDefaultArgs = { /** * Select specific fields to fetch from the TeamChatRead */ select?: Prisma.TeamChatReadSelect | null /** * Omit specific fields from the TeamChatRead */ omit?: Prisma.TeamChatReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TeamChatReadInclude | null }