/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Notification` 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 Notification * */ export type NotificationModel = runtime.Types.Result.DefaultSelection export type AggregateNotification = { _count: NotificationCountAggregateOutputType | null _min: NotificationMinAggregateOutputType | null _max: NotificationMaxAggregateOutputType | null } export type NotificationMinAggregateOutputType = { id: string | null userId: string | null title: string | null message: string | null type: string | null link: string | null metadata: string | null createdAt: Date | null readAt: Date | null } export type NotificationMaxAggregateOutputType = { id: string | null userId: string | null title: string | null message: string | null type: string | null link: string | null metadata: string | null createdAt: Date | null readAt: Date | null } export type NotificationCountAggregateOutputType = { id: number userId: number title: number message: number type: number link: number metadata: number createdAt: number readAt: number _all: number } export type NotificationMinAggregateInputType = { id?: true userId?: true title?: true message?: true type?: true link?: true metadata?: true createdAt?: true readAt?: true } export type NotificationMaxAggregateInputType = { id?: true userId?: true title?: true message?: true type?: true link?: true metadata?: true createdAt?: true readAt?: true } export type NotificationCountAggregateInputType = { id?: true userId?: true title?: true message?: true type?: true link?: true metadata?: true createdAt?: true readAt?: true _all?: true } export type NotificationAggregateArgs = { /** * Filter which Notification to aggregate. */ where?: Prisma.NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications 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` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Notifications **/ _count?: true | NotificationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NotificationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NotificationMaxAggregateInputType } export type GetNotificationAggregateType = { [P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type NotificationGroupByArgs = { where?: Prisma.NotificationWhereInput orderBy?: Prisma.NotificationOrderByWithAggregationInput | Prisma.NotificationOrderByWithAggregationInput[] by: Prisma.NotificationScalarFieldEnum[] | Prisma.NotificationScalarFieldEnum having?: Prisma.NotificationScalarWhereWithAggregatesInput take?: number skip?: number _count?: NotificationCountAggregateInputType | true _min?: NotificationMinAggregateInputType _max?: NotificationMaxAggregateInputType } export type NotificationGroupByOutputType = { id: string userId: string title: string message: string type: string link: string | null metadata: string | null createdAt: Date readAt: Date | null _count: NotificationCountAggregateOutputType | null _min: NotificationMinAggregateOutputType | null _max: NotificationMaxAggregateOutputType | null } type GetNotificationGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof NotificationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type NotificationWhereInput = { AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] OR?: Prisma.NotificationWhereInput[] NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] id?: Prisma.StringFilter<"Notification"> | string userId?: Prisma.StringFilter<"Notification"> | string title?: Prisma.StringFilter<"Notification"> | string message?: Prisma.StringFilter<"Notification"> | string type?: Prisma.StringFilter<"Notification"> | string link?: Prisma.StringNullableFilter<"Notification"> | string | null metadata?: Prisma.StringNullableFilter<"Notification"> | string | null createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null user?: Prisma.XOR } export type NotificationOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder message?: Prisma.SortOrder type?: Prisma.SortOrder link?: Prisma.SortOrderInput | Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder readAt?: Prisma.SortOrderInput | Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput } export type NotificationWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] OR?: Prisma.NotificationWhereInput[] NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[] userId?: Prisma.StringFilter<"Notification"> | string title?: Prisma.StringFilter<"Notification"> | string message?: Prisma.StringFilter<"Notification"> | string type?: Prisma.StringFilter<"Notification"> | string link?: Prisma.StringNullableFilter<"Notification"> | string | null metadata?: Prisma.StringNullableFilter<"Notification"> | string | null createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null user?: Prisma.XOR }, "id"> export type NotificationOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder message?: Prisma.SortOrder type?: Prisma.SortOrder link?: Prisma.SortOrderInput | Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder readAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.NotificationCountOrderByAggregateInput _max?: Prisma.NotificationMaxOrderByAggregateInput _min?: Prisma.NotificationMinOrderByAggregateInput } export type NotificationScalarWhereWithAggregatesInput = { AND?: Prisma.NotificationScalarWhereWithAggregatesInput | Prisma.NotificationScalarWhereWithAggregatesInput[] OR?: Prisma.NotificationScalarWhereWithAggregatesInput[] NOT?: Prisma.NotificationScalarWhereWithAggregatesInput | Prisma.NotificationScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Notification"> | string userId?: Prisma.StringWithAggregatesFilter<"Notification"> | string title?: Prisma.StringWithAggregatesFilter<"Notification"> | string message?: Prisma.StringWithAggregatesFilter<"Notification"> | string type?: Prisma.StringWithAggregatesFilter<"Notification"> | string link?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null metadata?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"Notification"> | Date | string readAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Notification"> | Date | string | null } export type NotificationCreateInput = { id?: string title: string message: string type?: string link?: string | null metadata?: string | null createdAt?: Date | string readAt?: Date | string | null user: Prisma.UserCreateNestedOneWithoutNotificationInput } export type NotificationUncheckedCreateInput = { id?: string userId: string title: string message: string type?: string link?: string | null metadata?: string | null createdAt?: Date | string readAt?: Date | string | null } export type NotificationUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: Prisma.UserUpdateOneRequiredWithoutNotificationNestedInput } export type NotificationUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationCreateManyInput = { id?: string userId: string title: string message: string type?: string link?: string | null metadata?: string | null createdAt?: Date | string readAt?: Date | string | null } export type NotificationUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationListRelationFilter = { every?: Prisma.NotificationWhereInput some?: Prisma.NotificationWhereInput none?: Prisma.NotificationWhereInput } export type NotificationOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type NotificationCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder message?: Prisma.SortOrder type?: Prisma.SortOrder link?: Prisma.SortOrder metadata?: Prisma.SortOrder createdAt?: Prisma.SortOrder readAt?: Prisma.SortOrder } export type NotificationMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder message?: Prisma.SortOrder type?: Prisma.SortOrder link?: Prisma.SortOrder metadata?: Prisma.SortOrder createdAt?: Prisma.SortOrder readAt?: Prisma.SortOrder } export type NotificationMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder title?: Prisma.SortOrder message?: Prisma.SortOrder type?: Prisma.SortOrder link?: Prisma.SortOrder metadata?: Prisma.SortOrder createdAt?: Prisma.SortOrder readAt?: Prisma.SortOrder } export type NotificationCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[] createMany?: Prisma.NotificationCreateManyUserInputEnvelope connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] } export type NotificationUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[] createMany?: Prisma.NotificationCreateManyUserInputEnvelope connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] } export type NotificationUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[] upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.NotificationCreateManyUserInputEnvelope set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] update?: Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutUserInput | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] } export type NotificationUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[] upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.NotificationCreateManyUserInputEnvelope set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[] update?: Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutUserInput | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] } export type NotificationCreateWithoutUserInput = { id?: string title: string message: string type?: string link?: string | null metadata?: string | null createdAt?: Date | string readAt?: Date | string | null } export type NotificationUncheckedCreateWithoutUserInput = { id?: string title: string message: string type?: string link?: string | null metadata?: string | null createdAt?: Date | string readAt?: Date | string | null } export type NotificationCreateOrConnectWithoutUserInput = { where: Prisma.NotificationWhereUniqueInput create: Prisma.XOR } export type NotificationCreateManyUserInputEnvelope = { data: Prisma.NotificationCreateManyUserInput | Prisma.NotificationCreateManyUserInput[] skipDuplicates?: boolean } export type NotificationUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.NotificationWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type NotificationUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.NotificationWhereUniqueInput data: Prisma.XOR } export type NotificationUpdateManyWithWhereWithoutUserInput = { where: Prisma.NotificationScalarWhereInput data: Prisma.XOR } export type NotificationScalarWhereInput = { AND?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] OR?: Prisma.NotificationScalarWhereInput[] NOT?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[] id?: Prisma.StringFilter<"Notification"> | string userId?: Prisma.StringFilter<"Notification"> | string title?: Prisma.StringFilter<"Notification"> | string message?: Prisma.StringFilter<"Notification"> | string type?: Prisma.StringFilter<"Notification"> | string link?: Prisma.StringNullableFilter<"Notification"> | string | null metadata?: Prisma.StringNullableFilter<"Notification"> | string | null createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null } export type NotificationCreateManyUserInput = { id?: string title: string message: string type?: string link?: string | null metadata?: string | null createdAt?: Date | string readAt?: Date | string | null } export type NotificationUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean title?: boolean message?: boolean type?: boolean link?: boolean metadata?: boolean createdAt?: boolean readAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean title?: boolean message?: boolean type?: boolean link?: boolean metadata?: boolean createdAt?: boolean readAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean title?: boolean message?: boolean type?: boolean link?: boolean metadata?: boolean createdAt?: boolean readAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectScalar = { id?: boolean userId?: boolean title?: boolean message?: boolean type?: boolean link?: boolean metadata?: boolean createdAt?: boolean readAt?: boolean } export type NotificationOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "title" | "message" | "type" | "link" | "metadata" | "createdAt" | "readAt", ExtArgs["result"]["notification"]> export type NotificationInclude = { user?: boolean | Prisma.UserDefaultArgs } export type NotificationIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type NotificationIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $NotificationPayload = { name: "Notification" objects: { user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string userId: string title: string message: string type: string link: string | null metadata: string | null createdAt: Date readAt: Date | null }, ExtArgs["result"]["notification"]> composites: {} } export type NotificationGetPayload = runtime.Types.Result.GetResult export type NotificationCountArgs = Omit & { select?: NotificationCountAggregateInputType | true } export interface NotificationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Notification'], meta: { name: 'Notification' } } /** * Find zero or one Notification that matches the filter. * @param {NotificationFindUniqueArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Notification that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NotificationFindUniqueOrThrowArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Notification 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 {NotificationFindFirstArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Notification 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 {NotificationFindFirstOrThrowArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Notifications 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 {NotificationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Notifications * const notifications = await prisma.notification.findMany() * * // Get first 10 Notifications * const notifications = await prisma.notification.findMany({ take: 10 }) * * // Only select the `id` * const notificationWithIdOnly = await prisma.notification.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Notification. * @param {NotificationCreateArgs} args - Arguments to create a Notification. * @example * // Create one Notification * const Notification = await prisma.notification.create({ * data: { * // ... data to create a Notification * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Notifications. * @param {NotificationCreateManyArgs} args - Arguments to create many Notifications. * @example * // Create many Notifications * const notification = await prisma.notification.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Notifications and returns the data saved in the database. * @param {NotificationCreateManyAndReturnArgs} args - Arguments to create many Notifications. * @example * // Create many Notifications * const notification = await prisma.notification.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Notifications and only return the `id` * const notificationWithIdOnly = await prisma.notification.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 Notification. * @param {NotificationDeleteArgs} args - Arguments to delete one Notification. * @example * // Delete one Notification * const Notification = await prisma.notification.delete({ * where: { * // ... filter to delete one Notification * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Notification. * @param {NotificationUpdateArgs} args - Arguments to update one Notification. * @example * // Update one Notification * const notification = await prisma.notification.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Notifications. * @param {NotificationDeleteManyArgs} args - Arguments to filter Notifications to delete. * @example * // Delete a few Notifications * const { count } = await prisma.notification.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Notifications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Notifications * const notification = await prisma.notification.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Notifications and returns the data updated in the database. * @param {NotificationUpdateManyAndReturnArgs} args - Arguments to update many Notifications. * @example * // Update many Notifications * const notification = await prisma.notification.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Notifications and only return the `id` * const notificationWithIdOnly = await prisma.notification.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 Notification. * @param {NotificationUpsertArgs} args - Arguments to update or create a Notification. * @example * // Update or create a Notification * const notification = await prisma.notification.upsert({ * create: { * // ... data to create a Notification * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Notification we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Notifications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationCountArgs} args - Arguments to filter Notifications to count. * @example * // Count the number of Notifications * const count = await prisma.notification.count({ * where: { * // ... the filter for the Notifications 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 Notification. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationAggregateArgs} 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 Notification. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationGroupByArgs} 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 NotificationGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: NotificationGroupByArgs['orderBy'] } : { orderBy?: NotificationGroupByArgs['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 ? GetNotificationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Notification model */ readonly fields: NotificationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Notification. * 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__NotificationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" 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 Notification model */ export interface NotificationFieldRefs { readonly id: Prisma.FieldRef<"Notification", 'String'> readonly userId: Prisma.FieldRef<"Notification", 'String'> readonly title: Prisma.FieldRef<"Notification", 'String'> readonly message: Prisma.FieldRef<"Notification", 'String'> readonly type: Prisma.FieldRef<"Notification", 'String'> readonly link: Prisma.FieldRef<"Notification", 'String'> readonly metadata: Prisma.FieldRef<"Notification", 'String'> readonly createdAt: Prisma.FieldRef<"Notification", 'DateTime'> readonly readAt: Prisma.FieldRef<"Notification", 'DateTime'> } // Custom InputTypes /** * Notification findUnique */ export type NotificationFindUniqueArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * Filter, which Notification to fetch. */ where: Prisma.NotificationWhereUniqueInput } /** * Notification findUniqueOrThrow */ export type NotificationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * Filter, which Notification to fetch. */ where: Prisma.NotificationWhereUniqueInput } /** * Notification findFirst */ export type NotificationFindFirstArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * Filter, which Notification to fetch. */ where?: Prisma.NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Notifications. */ cursor?: Prisma.NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications 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` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Notifications. */ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] } /** * Notification findFirstOrThrow */ export type NotificationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * Filter, which Notification to fetch. */ where?: Prisma.NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Notifications. */ cursor?: Prisma.NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications 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` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Notifications. */ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] } /** * Notification findMany */ export type NotificationFindManyArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * Filter, which Notifications to fetch. */ where?: Prisma.NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Notifications. */ cursor?: Prisma.NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications 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` Notifications. */ skip?: number distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] } /** * Notification create */ export type NotificationCreateArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * The data needed to create a Notification. */ data: Prisma.XOR } /** * Notification createMany */ export type NotificationCreateManyArgs = { /** * The data used to create many Notifications. */ data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[] skipDuplicates?: boolean } /** * Notification createManyAndReturn */ export type NotificationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelectCreateManyAndReturn | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * The data used to create many Notifications. */ data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationIncludeCreateManyAndReturn | null } /** * Notification update */ export type NotificationUpdateArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * The data needed to update a Notification. */ data: Prisma.XOR /** * Choose, which Notification to update. */ where: Prisma.NotificationWhereUniqueInput } /** * Notification updateMany */ export type NotificationUpdateManyArgs = { /** * The data used to update Notifications. */ data: Prisma.XOR /** * Filter which Notifications to update */ where?: Prisma.NotificationWhereInput /** * Limit how many Notifications to update. */ limit?: number } /** * Notification updateManyAndReturn */ export type NotificationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * The data used to update Notifications. */ data: Prisma.XOR /** * Filter which Notifications to update */ where?: Prisma.NotificationWhereInput /** * Limit how many Notifications to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationIncludeUpdateManyAndReturn | null } /** * Notification upsert */ export type NotificationUpsertArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * The filter to search for the Notification to update in case it exists. */ where: Prisma.NotificationWhereUniqueInput /** * In case the Notification found by the `where` argument doesn't exist, create a new Notification with this data. */ create: Prisma.XOR /** * In case the Notification was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Notification delete */ export type NotificationDeleteArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null /** * Filter which Notification to delete. */ where: Prisma.NotificationWhereUniqueInput } /** * Notification deleteMany */ export type NotificationDeleteManyArgs = { /** * Filter which Notifications to delete */ where?: Prisma.NotificationWhereInput /** * Limit how many Notifications to delete. */ limit?: number } /** * Notification without action */ export type NotificationDefaultArgs = { /** * Select specific fields to fetch from the Notification */ select?: Prisma.NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: Prisma.NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationInclude | null }