/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `EmailRead` 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 EmailRead * */ export type EmailReadModel = runtime.Types.Result.DefaultSelection export type AggregateEmailRead = { _count: EmailReadCountAggregateOutputType | null _min: EmailReadMinAggregateOutputType | null _max: EmailReadMaxAggregateOutputType | null } export type EmailReadMinAggregateOutputType = { id: string | null createdAt: Date | null emailId: string | null userId: string | null } export type EmailReadMaxAggregateOutputType = { id: string | null createdAt: Date | null emailId: string | null userId: string | null } export type EmailReadCountAggregateOutputType = { id: number createdAt: number emailId: number userId: number _all: number } export type EmailReadMinAggregateInputType = { id?: true createdAt?: true emailId?: true userId?: true } export type EmailReadMaxAggregateInputType = { id?: true createdAt?: true emailId?: true userId?: true } export type EmailReadCountAggregateInputType = { id?: true createdAt?: true emailId?: true userId?: true _all?: true } export type EmailReadAggregateArgs = { /** * Filter which EmailRead to aggregate. */ where?: Prisma.EmailReadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailReads to fetch. */ orderBy?: Prisma.EmailReadOrderByWithRelationInput | Prisma.EmailReadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EmailReadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailReads 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` EmailReads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EmailReads **/ _count?: true | EmailReadCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmailReadMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmailReadMaxAggregateInputType } export type GetEmailReadAggregateType = { [P in keyof T & keyof AggregateEmailRead]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type EmailReadGroupByArgs = { where?: Prisma.EmailReadWhereInput orderBy?: Prisma.EmailReadOrderByWithAggregationInput | Prisma.EmailReadOrderByWithAggregationInput[] by: Prisma.EmailReadScalarFieldEnum[] | Prisma.EmailReadScalarFieldEnum having?: Prisma.EmailReadScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmailReadCountAggregateInputType | true _min?: EmailReadMinAggregateInputType _max?: EmailReadMaxAggregateInputType } export type EmailReadGroupByOutputType = { id: string createdAt: Date emailId: string userId: string _count: EmailReadCountAggregateOutputType | null _min: EmailReadMinAggregateOutputType | null _max: EmailReadMaxAggregateOutputType | null } export type GetEmailReadGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof EmailReadGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type EmailReadWhereInput = { AND?: Prisma.EmailReadWhereInput | Prisma.EmailReadWhereInput[] OR?: Prisma.EmailReadWhereInput[] NOT?: Prisma.EmailReadWhereInput | Prisma.EmailReadWhereInput[] id?: Prisma.StringFilter<"EmailRead"> | string createdAt?: Prisma.DateTimeFilter<"EmailRead"> | Date | string emailId?: Prisma.StringFilter<"EmailRead"> | string userId?: Prisma.StringFilter<"EmailRead"> | string email?: Prisma.XOR user?: Prisma.XOR } export type EmailReadOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder emailId?: Prisma.SortOrder userId?: Prisma.SortOrder email?: Prisma.EmailOrderByWithRelationInput user?: Prisma.UserOrderByWithRelationInput } export type EmailReadWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.EmailReadWhereInput | Prisma.EmailReadWhereInput[] OR?: Prisma.EmailReadWhereInput[] NOT?: Prisma.EmailReadWhereInput | Prisma.EmailReadWhereInput[] createdAt?: Prisma.DateTimeFilter<"EmailRead"> | Date | string emailId?: Prisma.StringFilter<"EmailRead"> | string userId?: Prisma.StringFilter<"EmailRead"> | string email?: Prisma.XOR user?: Prisma.XOR }, "id"> export type EmailReadOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder emailId?: Prisma.SortOrder userId?: Prisma.SortOrder _count?: Prisma.EmailReadCountOrderByAggregateInput _max?: Prisma.EmailReadMaxOrderByAggregateInput _min?: Prisma.EmailReadMinOrderByAggregateInput } export type EmailReadScalarWhereWithAggregatesInput = { AND?: Prisma.EmailReadScalarWhereWithAggregatesInput | Prisma.EmailReadScalarWhereWithAggregatesInput[] OR?: Prisma.EmailReadScalarWhereWithAggregatesInput[] NOT?: Prisma.EmailReadScalarWhereWithAggregatesInput | Prisma.EmailReadScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"EmailRead"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"EmailRead"> | Date | string emailId?: Prisma.StringWithAggregatesFilter<"EmailRead"> | string userId?: Prisma.StringWithAggregatesFilter<"EmailRead"> | string } export type EmailReadCreateInput = { id?: string createdAt?: Date | string email: Prisma.EmailCreateNestedOneWithoutReadsInput user: Prisma.UserCreateNestedOneWithoutReadEmailsInput } export type EmailReadUncheckedCreateInput = { id?: string createdAt?: Date | string emailId: string userId: string } export type EmailReadUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string email?: Prisma.EmailUpdateOneRequiredWithoutReadsNestedInput user?: Prisma.UserUpdateOneRequiredWithoutReadEmailsNestedInput } export type EmailReadUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string emailId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type EmailReadCreateManyInput = { id?: string createdAt?: Date | string emailId: string userId: string } export type EmailReadUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type EmailReadUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string emailId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type EmailReadListRelationFilter = { every?: Prisma.EmailReadWhereInput some?: Prisma.EmailReadWhereInput none?: Prisma.EmailReadWhereInput } export type EmailReadOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type EmailReadCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder emailId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type EmailReadMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder emailId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type EmailReadMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder emailId?: Prisma.SortOrder userId?: Prisma.SortOrder } export type EmailReadCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.EmailReadCreateWithoutUserInput[] | Prisma.EmailReadUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.EmailReadCreateOrConnectWithoutUserInput | Prisma.EmailReadCreateOrConnectWithoutUserInput[] createMany?: Prisma.EmailReadCreateManyUserInputEnvelope connect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] } export type EmailReadUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.EmailReadCreateWithoutUserInput[] | Prisma.EmailReadUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.EmailReadCreateOrConnectWithoutUserInput | Prisma.EmailReadCreateOrConnectWithoutUserInput[] createMany?: Prisma.EmailReadCreateManyUserInputEnvelope connect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] } export type EmailReadUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.EmailReadCreateWithoutUserInput[] | Prisma.EmailReadUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.EmailReadCreateOrConnectWithoutUserInput | Prisma.EmailReadCreateOrConnectWithoutUserInput[] upsert?: Prisma.EmailReadUpsertWithWhereUniqueWithoutUserInput | Prisma.EmailReadUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.EmailReadCreateManyUserInputEnvelope set?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] disconnect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] delete?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] connect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] update?: Prisma.EmailReadUpdateWithWhereUniqueWithoutUserInput | Prisma.EmailReadUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.EmailReadUpdateManyWithWhereWithoutUserInput | Prisma.EmailReadUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.EmailReadScalarWhereInput | Prisma.EmailReadScalarWhereInput[] } export type EmailReadUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.EmailReadCreateWithoutUserInput[] | Prisma.EmailReadUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.EmailReadCreateOrConnectWithoutUserInput | Prisma.EmailReadCreateOrConnectWithoutUserInput[] upsert?: Prisma.EmailReadUpsertWithWhereUniqueWithoutUserInput | Prisma.EmailReadUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.EmailReadCreateManyUserInputEnvelope set?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] disconnect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] delete?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] connect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] update?: Prisma.EmailReadUpdateWithWhereUniqueWithoutUserInput | Prisma.EmailReadUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.EmailReadUpdateManyWithWhereWithoutUserInput | Prisma.EmailReadUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.EmailReadScalarWhereInput | Prisma.EmailReadScalarWhereInput[] } export type EmailReadCreateNestedManyWithoutEmailInput = { create?: Prisma.XOR | Prisma.EmailReadCreateWithoutEmailInput[] | Prisma.EmailReadUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailReadCreateOrConnectWithoutEmailInput | Prisma.EmailReadCreateOrConnectWithoutEmailInput[] createMany?: Prisma.EmailReadCreateManyEmailInputEnvelope connect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] } export type EmailReadUncheckedCreateNestedManyWithoutEmailInput = { create?: Prisma.XOR | Prisma.EmailReadCreateWithoutEmailInput[] | Prisma.EmailReadUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailReadCreateOrConnectWithoutEmailInput | Prisma.EmailReadCreateOrConnectWithoutEmailInput[] createMany?: Prisma.EmailReadCreateManyEmailInputEnvelope connect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] } export type EmailReadUpdateManyWithoutEmailNestedInput = { create?: Prisma.XOR | Prisma.EmailReadCreateWithoutEmailInput[] | Prisma.EmailReadUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailReadCreateOrConnectWithoutEmailInput | Prisma.EmailReadCreateOrConnectWithoutEmailInput[] upsert?: Prisma.EmailReadUpsertWithWhereUniqueWithoutEmailInput | Prisma.EmailReadUpsertWithWhereUniqueWithoutEmailInput[] createMany?: Prisma.EmailReadCreateManyEmailInputEnvelope set?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] disconnect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] delete?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] connect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] update?: Prisma.EmailReadUpdateWithWhereUniqueWithoutEmailInput | Prisma.EmailReadUpdateWithWhereUniqueWithoutEmailInput[] updateMany?: Prisma.EmailReadUpdateManyWithWhereWithoutEmailInput | Prisma.EmailReadUpdateManyWithWhereWithoutEmailInput[] deleteMany?: Prisma.EmailReadScalarWhereInput | Prisma.EmailReadScalarWhereInput[] } export type EmailReadUncheckedUpdateManyWithoutEmailNestedInput = { create?: Prisma.XOR | Prisma.EmailReadCreateWithoutEmailInput[] | Prisma.EmailReadUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailReadCreateOrConnectWithoutEmailInput | Prisma.EmailReadCreateOrConnectWithoutEmailInput[] upsert?: Prisma.EmailReadUpsertWithWhereUniqueWithoutEmailInput | Prisma.EmailReadUpsertWithWhereUniqueWithoutEmailInput[] createMany?: Prisma.EmailReadCreateManyEmailInputEnvelope set?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] disconnect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] delete?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] connect?: Prisma.EmailReadWhereUniqueInput | Prisma.EmailReadWhereUniqueInput[] update?: Prisma.EmailReadUpdateWithWhereUniqueWithoutEmailInput | Prisma.EmailReadUpdateWithWhereUniqueWithoutEmailInput[] updateMany?: Prisma.EmailReadUpdateManyWithWhereWithoutEmailInput | Prisma.EmailReadUpdateManyWithWhereWithoutEmailInput[] deleteMany?: Prisma.EmailReadScalarWhereInput | Prisma.EmailReadScalarWhereInput[] } export type EmailReadCreateWithoutUserInput = { id?: string createdAt?: Date | string email: Prisma.EmailCreateNestedOneWithoutReadsInput } export type EmailReadUncheckedCreateWithoutUserInput = { id?: string createdAt?: Date | string emailId: string } export type EmailReadCreateOrConnectWithoutUserInput = { where: Prisma.EmailReadWhereUniqueInput create: Prisma.XOR } export type EmailReadCreateManyUserInputEnvelope = { data: Prisma.EmailReadCreateManyUserInput | Prisma.EmailReadCreateManyUserInput[] skipDuplicates?: boolean } export type EmailReadUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.EmailReadWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EmailReadUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.EmailReadWhereUniqueInput data: Prisma.XOR } export type EmailReadUpdateManyWithWhereWithoutUserInput = { where: Prisma.EmailReadScalarWhereInput data: Prisma.XOR } export type EmailReadScalarWhereInput = { AND?: Prisma.EmailReadScalarWhereInput | Prisma.EmailReadScalarWhereInput[] OR?: Prisma.EmailReadScalarWhereInput[] NOT?: Prisma.EmailReadScalarWhereInput | Prisma.EmailReadScalarWhereInput[] id?: Prisma.StringFilter<"EmailRead"> | string createdAt?: Prisma.DateTimeFilter<"EmailRead"> | Date | string emailId?: Prisma.StringFilter<"EmailRead"> | string userId?: Prisma.StringFilter<"EmailRead"> | string } export type EmailReadCreateWithoutEmailInput = { id?: string createdAt?: Date | string user: Prisma.UserCreateNestedOneWithoutReadEmailsInput } export type EmailReadUncheckedCreateWithoutEmailInput = { id?: string createdAt?: Date | string userId: string } export type EmailReadCreateOrConnectWithoutEmailInput = { where: Prisma.EmailReadWhereUniqueInput create: Prisma.XOR } export type EmailReadCreateManyEmailInputEnvelope = { data: Prisma.EmailReadCreateManyEmailInput | Prisma.EmailReadCreateManyEmailInput[] skipDuplicates?: boolean } export type EmailReadUpsertWithWhereUniqueWithoutEmailInput = { where: Prisma.EmailReadWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EmailReadUpdateWithWhereUniqueWithoutEmailInput = { where: Prisma.EmailReadWhereUniqueInput data: Prisma.XOR } export type EmailReadUpdateManyWithWhereWithoutEmailInput = { where: Prisma.EmailReadScalarWhereInput data: Prisma.XOR } export type EmailReadCreateManyUserInput = { id?: string createdAt?: Date | string emailId: string } export type EmailReadUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string email?: Prisma.EmailUpdateOneRequiredWithoutReadsNestedInput } export type EmailReadUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string emailId?: Prisma.StringFieldUpdateOperationsInput | string } export type EmailReadUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string emailId?: Prisma.StringFieldUpdateOperationsInput | string } export type EmailReadCreateManyEmailInput = { id?: string createdAt?: Date | string userId: string } export type EmailReadUpdateWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutReadEmailsNestedInput } export type EmailReadUncheckedUpdateWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type EmailReadUncheckedUpdateManyWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.StringFieldUpdateOperationsInput | string } export type EmailReadSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean emailId?: boolean userId?: boolean email?: boolean | Prisma.EmailDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["emailRead"]> export type EmailReadSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean emailId?: boolean userId?: boolean email?: boolean | Prisma.EmailDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["emailRead"]> export type EmailReadSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean emailId?: boolean userId?: boolean email?: boolean | Prisma.EmailDefaultArgs user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["emailRead"]> export type EmailReadSelectScalar = { id?: boolean createdAt?: boolean emailId?: boolean userId?: boolean } export type EmailReadOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "emailId" | "userId", ExtArgs["result"]["emailRead"]> export type EmailReadInclude = { email?: boolean | Prisma.EmailDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type EmailReadIncludeCreateManyAndReturn = { email?: boolean | Prisma.EmailDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type EmailReadIncludeUpdateManyAndReturn = { email?: boolean | Prisma.EmailDefaultArgs user?: boolean | Prisma.UserDefaultArgs } export type $EmailReadPayload = { name: "EmailRead" objects: { email: Prisma.$EmailPayload user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date emailId: string userId: string }, ExtArgs["result"]["emailRead"]> composites: {} } export type EmailReadGetPayload = runtime.Types.Result.GetResult export type EmailReadCountArgs = Omit & { select?: EmailReadCountAggregateInputType | true } export interface EmailReadDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EmailRead'], meta: { name: 'EmailRead' } } /** * Find zero or one EmailRead that matches the filter. * @param {EmailReadFindUniqueArgs} args - Arguments to find a EmailRead * @example * // Get one EmailRead * const emailRead = await prisma.emailRead.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EmailReadClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one EmailRead that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmailReadFindUniqueOrThrowArgs} args - Arguments to find a EmailRead * @example * // Get one EmailRead * const emailRead = await prisma.emailRead.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EmailReadClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first EmailRead 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 {EmailReadFindFirstArgs} args - Arguments to find a EmailRead * @example * // Get one EmailRead * const emailRead = await prisma.emailRead.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailReadClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first EmailRead 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 {EmailReadFindFirstOrThrowArgs} args - Arguments to find a EmailRead * @example * // Get one EmailRead * const emailRead = await prisma.emailRead.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailReadClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more EmailReads 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 {EmailReadFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EmailReads * const emailReads = await prisma.emailRead.findMany() * * // Get first 10 EmailReads * const emailReads = await prisma.emailRead.findMany({ take: 10 }) * * // Only select the `id` * const emailReadWithIdOnly = await prisma.emailRead.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a EmailRead. * @param {EmailReadCreateArgs} args - Arguments to create a EmailRead. * @example * // Create one EmailRead * const EmailRead = await prisma.emailRead.create({ * data: { * // ... data to create a EmailRead * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EmailReadClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many EmailReads. * @param {EmailReadCreateManyArgs} args - Arguments to create many EmailReads. * @example * // Create many EmailReads * const emailRead = await prisma.emailRead.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many EmailReads and returns the data saved in the database. * @param {EmailReadCreateManyAndReturnArgs} args - Arguments to create many EmailReads. * @example * // Create many EmailReads * const emailRead = await prisma.emailRead.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EmailReads and only return the `id` * const emailReadWithIdOnly = await prisma.emailRead.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 EmailRead. * @param {EmailReadDeleteArgs} args - Arguments to delete one EmailRead. * @example * // Delete one EmailRead * const EmailRead = await prisma.emailRead.delete({ * where: { * // ... filter to delete one EmailRead * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EmailReadClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one EmailRead. * @param {EmailReadUpdateArgs} args - Arguments to update one EmailRead. * @example * // Update one EmailRead * const emailRead = await prisma.emailRead.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EmailReadClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more EmailReads. * @param {EmailReadDeleteManyArgs} args - Arguments to filter EmailReads to delete. * @example * // Delete a few EmailReads * const { count } = await prisma.emailRead.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailReads. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailReadUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EmailReads * const emailRead = await prisma.emailRead.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailReads and returns the data updated in the database. * @param {EmailReadUpdateManyAndReturnArgs} args - Arguments to update many EmailReads. * @example * // Update many EmailReads * const emailRead = await prisma.emailRead.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more EmailReads and only return the `id` * const emailReadWithIdOnly = await prisma.emailRead.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 EmailRead. * @param {EmailReadUpsertArgs} args - Arguments to update or create a EmailRead. * @example * // Update or create a EmailRead * const emailRead = await prisma.emailRead.upsert({ * create: { * // ... data to create a EmailRead * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EmailRead we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EmailReadClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of EmailReads. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailReadCountArgs} args - Arguments to filter EmailReads to count. * @example * // Count the number of EmailReads * const count = await prisma.emailRead.count({ * where: { * // ... the filter for the EmailReads 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 EmailRead. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailReadAggregateArgs} 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 EmailRead. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailReadGroupByArgs} 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 EmailReadGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EmailReadGroupByArgs['orderBy'] } : { orderBy?: EmailReadGroupByArgs['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 ? GetEmailReadGroupByPayload : Prisma.PrismaPromise /** * Fields of the EmailRead model */ readonly fields: EmailReadFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EmailRead. * 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__EmailReadClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" email = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmailClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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 EmailRead model */ export interface EmailReadFieldRefs { readonly id: Prisma.FieldRef<"EmailRead", 'String'> readonly createdAt: Prisma.FieldRef<"EmailRead", 'DateTime'> readonly emailId: Prisma.FieldRef<"EmailRead", 'String'> readonly userId: Prisma.FieldRef<"EmailRead", 'String'> } // Custom InputTypes /** * EmailRead findUnique */ export type EmailReadFindUniqueArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * Filter, which EmailRead to fetch. */ where: Prisma.EmailReadWhereUniqueInput } /** * EmailRead findUniqueOrThrow */ export type EmailReadFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * Filter, which EmailRead to fetch. */ where: Prisma.EmailReadWhereUniqueInput } /** * EmailRead findFirst */ export type EmailReadFindFirstArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * Filter, which EmailRead to fetch. */ where?: Prisma.EmailReadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailReads to fetch. */ orderBy?: Prisma.EmailReadOrderByWithRelationInput | Prisma.EmailReadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailReads. */ cursor?: Prisma.EmailReadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailReads 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` EmailReads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailReads. */ distinct?: Prisma.EmailReadScalarFieldEnum | Prisma.EmailReadScalarFieldEnum[] } /** * EmailRead findFirstOrThrow */ export type EmailReadFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * Filter, which EmailRead to fetch. */ where?: Prisma.EmailReadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailReads to fetch. */ orderBy?: Prisma.EmailReadOrderByWithRelationInput | Prisma.EmailReadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailReads. */ cursor?: Prisma.EmailReadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailReads 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` EmailReads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailReads. */ distinct?: Prisma.EmailReadScalarFieldEnum | Prisma.EmailReadScalarFieldEnum[] } /** * EmailRead findMany */ export type EmailReadFindManyArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * Filter, which EmailReads to fetch. */ where?: Prisma.EmailReadWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailReads to fetch. */ orderBy?: Prisma.EmailReadOrderByWithRelationInput | Prisma.EmailReadOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EmailReads. */ cursor?: Prisma.EmailReadWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailReads 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` EmailReads. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailReads. */ distinct?: Prisma.EmailReadScalarFieldEnum | Prisma.EmailReadScalarFieldEnum[] } /** * EmailRead create */ export type EmailReadCreateArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * The data needed to create a EmailRead. */ data: Prisma.XOR } /** * EmailRead createMany */ export type EmailReadCreateManyArgs = { /** * The data used to create many EmailReads. */ data: Prisma.EmailReadCreateManyInput | Prisma.EmailReadCreateManyInput[] skipDuplicates?: boolean } /** * EmailRead createManyAndReturn */ export type EmailReadCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelectCreateManyAndReturn | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * The data used to create many EmailReads. */ data: Prisma.EmailReadCreateManyInput | Prisma.EmailReadCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadIncludeCreateManyAndReturn | null } /** * EmailRead update */ export type EmailReadUpdateArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * The data needed to update a EmailRead. */ data: Prisma.XOR /** * Choose, which EmailRead to update. */ where: Prisma.EmailReadWhereUniqueInput } /** * EmailRead updateMany */ export type EmailReadUpdateManyArgs = { /** * The data used to update EmailReads. */ data: Prisma.XOR /** * Filter which EmailReads to update */ where?: Prisma.EmailReadWhereInput /** * Limit how many EmailReads to update. */ limit?: number } /** * EmailRead updateManyAndReturn */ export type EmailReadUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelectUpdateManyAndReturn | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * The data used to update EmailReads. */ data: Prisma.XOR /** * Filter which EmailReads to update */ where?: Prisma.EmailReadWhereInput /** * Limit how many EmailReads to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadIncludeUpdateManyAndReturn | null } /** * EmailRead upsert */ export type EmailReadUpsertArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * The filter to search for the EmailRead to update in case it exists. */ where: Prisma.EmailReadWhereUniqueInput /** * In case the EmailRead found by the `where` argument doesn't exist, create a new EmailRead with this data. */ create: Prisma.XOR /** * In case the EmailRead was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * EmailRead delete */ export type EmailReadDeleteArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null /** * Filter which EmailRead to delete. */ where: Prisma.EmailReadWhereUniqueInput } /** * EmailRead deleteMany */ export type EmailReadDeleteManyArgs = { /** * Filter which EmailReads to delete */ where?: Prisma.EmailReadWhereInput /** * Limit how many EmailReads to delete. */ limit?: number } /** * EmailRead without action */ export type EmailReadDefaultArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null }