
/* !!! 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_payload` 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"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model notification_payload
 * 
 */
export type notification_payloadModel = runtime.Types.Result.DefaultSelection<Prisma.$notification_payloadPayload>

export type AggregateNotification_payload = {
  _count: Notification_payloadCountAggregateOutputType | null
  _avg: Notification_payloadAvgAggregateOutputType | null
  _sum: Notification_payloadSumAggregateOutputType | null
  _min: Notification_payloadMinAggregateOutputType | null
  _max: Notification_payloadMaxAggregateOutputType | null
}

export type Notification_payloadAvgAggregateOutputType = {
  id: number | null
  notification_id: number | null
}

export type Notification_payloadSumAggregateOutputType = {
  id: number | null
  notification_id: number | null
}

export type Notification_payloadMinAggregateOutputType = {
  id: number | null
  notification_id: number | null
  payload: string | null
  timestamp: Date | null
}

export type Notification_payloadMaxAggregateOutputType = {
  id: number | null
  notification_id: number | null
  payload: string | null
  timestamp: Date | null
}

export type Notification_payloadCountAggregateOutputType = {
  id: number
  notification_id: number
  payload: number
  timestamp: number
  _all: number
}


export type Notification_payloadAvgAggregateInputType = {
  id?: true
  notification_id?: true
}

export type Notification_payloadSumAggregateInputType = {
  id?: true
  notification_id?: true
}

export type Notification_payloadMinAggregateInputType = {
  id?: true
  notification_id?: true
  payload?: true
  timestamp?: true
}

export type Notification_payloadMaxAggregateInputType = {
  id?: true
  notification_id?: true
  payload?: true
  timestamp?: true
}

export type Notification_payloadCountAggregateInputType = {
  id?: true
  notification_id?: true
  payload?: true
  timestamp?: true
  _all?: true
}

export type Notification_payloadAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which notification_payload to aggregate.
   */
  where?: Prisma.notification_payloadWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of notification_payloads to fetch.
   */
  orderBy?: Prisma.notification_payloadOrderByWithRelationInput | Prisma.notification_payloadOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.notification_payloadWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` notification_payloads 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` notification_payloads.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned notification_payloads
  **/
  _count?: true | Notification_payloadCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Notification_payloadAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Notification_payloadSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Notification_payloadMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Notification_payloadMaxAggregateInputType
}

export type GetNotification_payloadAggregateType<T extends Notification_payloadAggregateArgs> = {
      [P in keyof T & keyof AggregateNotification_payload]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateNotification_payload[P]>
    : Prisma.GetScalarType<T[P], AggregateNotification_payload[P]>
}




export type notification_payloadGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.notification_payloadWhereInput
  orderBy?: Prisma.notification_payloadOrderByWithAggregationInput | Prisma.notification_payloadOrderByWithAggregationInput[]
  by: Prisma.Notification_payloadScalarFieldEnum[] | Prisma.Notification_payloadScalarFieldEnum
  having?: Prisma.notification_payloadScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Notification_payloadCountAggregateInputType | true
  _avg?: Notification_payloadAvgAggregateInputType
  _sum?: Notification_payloadSumAggregateInputType
  _min?: Notification_payloadMinAggregateInputType
  _max?: Notification_payloadMaxAggregateInputType
}

export type Notification_payloadGroupByOutputType = {
  id: number
  notification_id: number
  payload: string
  timestamp: Date
  _count: Notification_payloadCountAggregateOutputType | null
  _avg: Notification_payloadAvgAggregateOutputType | null
  _sum: Notification_payloadSumAggregateOutputType | null
  _min: Notification_payloadMinAggregateOutputType | null
  _max: Notification_payloadMaxAggregateOutputType | null
}

type GetNotification_payloadGroupByPayload<T extends notification_payloadGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<Notification_payloadGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof Notification_payloadGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], Notification_payloadGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], Notification_payloadGroupByOutputType[P]>
      }
    >
  >



export type notification_payloadWhereInput = {
  AND?: Prisma.notification_payloadWhereInput | Prisma.notification_payloadWhereInput[]
  OR?: Prisma.notification_payloadWhereInput[]
  NOT?: Prisma.notification_payloadWhereInput | Prisma.notification_payloadWhereInput[]
  id?: Prisma.IntFilter<"notification_payload"> | number
  notification_id?: Prisma.IntFilter<"notification_payload"> | number
  payload?: Prisma.StringFilter<"notification_payload"> | string
  timestamp?: Prisma.DateTimeFilter<"notification_payload"> | Date | string
}

export type notification_payloadOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  notification_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  _relevance?: Prisma.notification_payloadOrderByRelevanceInput
}

export type notification_payloadWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.notification_payloadWhereInput | Prisma.notification_payloadWhereInput[]
  OR?: Prisma.notification_payloadWhereInput[]
  NOT?: Prisma.notification_payloadWhereInput | Prisma.notification_payloadWhereInput[]
  notification_id?: Prisma.IntFilter<"notification_payload"> | number
  payload?: Prisma.StringFilter<"notification_payload"> | string
  timestamp?: Prisma.DateTimeFilter<"notification_payload"> | Date | string
}, "id">

export type notification_payloadOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  notification_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  _count?: Prisma.notification_payloadCountOrderByAggregateInput
  _avg?: Prisma.notification_payloadAvgOrderByAggregateInput
  _max?: Prisma.notification_payloadMaxOrderByAggregateInput
  _min?: Prisma.notification_payloadMinOrderByAggregateInput
  _sum?: Prisma.notification_payloadSumOrderByAggregateInput
}

export type notification_payloadScalarWhereWithAggregatesInput = {
  AND?: Prisma.notification_payloadScalarWhereWithAggregatesInput | Prisma.notification_payloadScalarWhereWithAggregatesInput[]
  OR?: Prisma.notification_payloadScalarWhereWithAggregatesInput[]
  NOT?: Prisma.notification_payloadScalarWhereWithAggregatesInput | Prisma.notification_payloadScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"notification_payload"> | number
  notification_id?: Prisma.IntWithAggregatesFilter<"notification_payload"> | number
  payload?: Prisma.StringWithAggregatesFilter<"notification_payload"> | string
  timestamp?: Prisma.DateTimeWithAggregatesFilter<"notification_payload"> | Date | string
}

export type notification_payloadCreateInput = {
  notification_id: number
  payload: string
  timestamp?: Date | string
}

export type notification_payloadUncheckedCreateInput = {
  id?: number
  notification_id: number
  payload: string
  timestamp?: Date | string
}

export type notification_payloadUpdateInput = {
  notification_id?: Prisma.IntFieldUpdateOperationsInput | number
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type notification_payloadUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  notification_id?: Prisma.IntFieldUpdateOperationsInput | number
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type notification_payloadCreateManyInput = {
  id?: number
  notification_id: number
  payload: string
  timestamp?: Date | string
}

export type notification_payloadUpdateManyMutationInput = {
  notification_id?: Prisma.IntFieldUpdateOperationsInput | number
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type notification_payloadUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  notification_id?: Prisma.IntFieldUpdateOperationsInput | number
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type notification_payloadOrderByRelevanceInput = {
  fields: Prisma.notification_payloadOrderByRelevanceFieldEnum | Prisma.notification_payloadOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type notification_payloadCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  notification_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
}

export type notification_payloadAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  notification_id?: Prisma.SortOrder
}

export type notification_payloadMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  notification_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
}

export type notification_payloadMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  notification_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
}

export type notification_payloadSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  notification_id?: Prisma.SortOrder
}



export type notification_payloadSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  notification_id?: boolean
  payload?: boolean
  timestamp?: boolean
}, ExtArgs["result"]["notification_payload"]>



export type notification_payloadSelectScalar = {
  id?: boolean
  notification_id?: boolean
  payload?: boolean
  timestamp?: boolean
}

export type notification_payloadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "notification_id" | "payload" | "timestamp", ExtArgs["result"]["notification_payload"]>

export type $notification_payloadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "notification_payload"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    notification_id: number
    payload: string
    timestamp: Date
  }, ExtArgs["result"]["notification_payload"]>
  composites: {}
}

export type notification_payloadGetPayload<S extends boolean | null | undefined | notification_payloadDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload, S>

export type notification_payloadCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<notification_payloadFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Notification_payloadCountAggregateInputType | true
  }

export interface notification_payloadDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['notification_payload'], meta: { name: 'notification_payload' } }
  /**
   * Find zero or one Notification_payload that matches the filter.
   * @param {notification_payloadFindUniqueArgs} args - Arguments to find a Notification_payload
   * @example
   * // Get one Notification_payload
   * const notification_payload = await prisma.notification_payload.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends notification_payloadFindUniqueArgs>(args: Prisma.SelectSubset<T, notification_payloadFindUniqueArgs<ExtArgs>>): Prisma.Prisma__notification_payloadClient<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one Notification_payload that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {notification_payloadFindUniqueOrThrowArgs} args - Arguments to find a Notification_payload
   * @example
   * // Get one Notification_payload
   * const notification_payload = await prisma.notification_payload.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends notification_payloadFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, notification_payloadFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__notification_payloadClient<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Notification_payload 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 {notification_payloadFindFirstArgs} args - Arguments to find a Notification_payload
   * @example
   * // Get one Notification_payload
   * const notification_payload = await prisma.notification_payload.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends notification_payloadFindFirstArgs>(args?: Prisma.SelectSubset<T, notification_payloadFindFirstArgs<ExtArgs>>): Prisma.Prisma__notification_payloadClient<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Notification_payload 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 {notification_payloadFindFirstOrThrowArgs} args - Arguments to find a Notification_payload
   * @example
   * // Get one Notification_payload
   * const notification_payload = await prisma.notification_payload.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends notification_payloadFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, notification_payloadFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__notification_payloadClient<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more Notification_payloads 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 {notification_payloadFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Notification_payloads
   * const notification_payloads = await prisma.notification_payload.findMany()
   * 
   * // Get first 10 Notification_payloads
   * const notification_payloads = await prisma.notification_payload.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const notification_payloadWithIdOnly = await prisma.notification_payload.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends notification_payloadFindManyArgs>(args?: Prisma.SelectSubset<T, notification_payloadFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a Notification_payload.
   * @param {notification_payloadCreateArgs} args - Arguments to create a Notification_payload.
   * @example
   * // Create one Notification_payload
   * const Notification_payload = await prisma.notification_payload.create({
   *   data: {
   *     // ... data to create a Notification_payload
   *   }
   * })
   * 
   */
  create<T extends notification_payloadCreateArgs>(args: Prisma.SelectSubset<T, notification_payloadCreateArgs<ExtArgs>>): Prisma.Prisma__notification_payloadClient<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many Notification_payloads.
   * @param {notification_payloadCreateManyArgs} args - Arguments to create many Notification_payloads.
   * @example
   * // Create many Notification_payloads
   * const notification_payload = await prisma.notification_payload.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends notification_payloadCreateManyArgs>(args?: Prisma.SelectSubset<T, notification_payloadCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Delete a Notification_payload.
   * @param {notification_payloadDeleteArgs} args - Arguments to delete one Notification_payload.
   * @example
   * // Delete one Notification_payload
   * const Notification_payload = await prisma.notification_payload.delete({
   *   where: {
   *     // ... filter to delete one Notification_payload
   *   }
   * })
   * 
   */
  delete<T extends notification_payloadDeleteArgs>(args: Prisma.SelectSubset<T, notification_payloadDeleteArgs<ExtArgs>>): Prisma.Prisma__notification_payloadClient<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one Notification_payload.
   * @param {notification_payloadUpdateArgs} args - Arguments to update one Notification_payload.
   * @example
   * // Update one Notification_payload
   * const notification_payload = await prisma.notification_payload.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends notification_payloadUpdateArgs>(args: Prisma.SelectSubset<T, notification_payloadUpdateArgs<ExtArgs>>): Prisma.Prisma__notification_payloadClient<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more Notification_payloads.
   * @param {notification_payloadDeleteManyArgs} args - Arguments to filter Notification_payloads to delete.
   * @example
   * // Delete a few Notification_payloads
   * const { count } = await prisma.notification_payload.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends notification_payloadDeleteManyArgs>(args?: Prisma.SelectSubset<T, notification_payloadDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Notification_payloads.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {notification_payloadUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Notification_payloads
   * const notification_payload = await prisma.notification_payload.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends notification_payloadUpdateManyArgs>(args: Prisma.SelectSubset<T, notification_payloadUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create or update one Notification_payload.
   * @param {notification_payloadUpsertArgs} args - Arguments to update or create a Notification_payload.
   * @example
   * // Update or create a Notification_payload
   * const notification_payload = await prisma.notification_payload.upsert({
   *   create: {
   *     // ... data to create a Notification_payload
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the Notification_payload we want to update
   *   }
   * })
   */
  upsert<T extends notification_payloadUpsertArgs>(args: Prisma.SelectSubset<T, notification_payloadUpsertArgs<ExtArgs>>): Prisma.Prisma__notification_payloadClient<runtime.Types.Result.GetResult<Prisma.$notification_payloadPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of Notification_payloads.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {notification_payloadCountArgs} args - Arguments to filter Notification_payloads to count.
   * @example
   * // Count the number of Notification_payloads
   * const count = await prisma.notification_payload.count({
   *   where: {
   *     // ... the filter for the Notification_payloads we want to count
   *   }
   * })
  **/
  count<T extends notification_payloadCountArgs>(
    args?: Prisma.Subset<T, notification_payloadCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], Notification_payloadCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a Notification_payload.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {Notification_payloadAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
   * @example
   * // Ordered by age ascending
   * // Where email contains prisma.io
   * // Limited to the 10 users
   * const aggregations = await prisma.user.aggregate({
   *   _avg: {
   *     age: true,
   *   },
   *   where: {
   *     email: {
   *       contains: "prisma.io",
   *     },
   *   },
   *   orderBy: {
   *     age: "asc",
   *   },
   *   take: 10,
   * })
  **/
  aggregate<T extends Notification_payloadAggregateArgs>(args: Prisma.Subset<T, Notification_payloadAggregateArgs>): Prisma.PrismaPromise<GetNotification_payloadAggregateType<T>>

  /**
   * Group by Notification_payload.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {notification_payloadGroupByArgs} 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 notification_payloadGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: notification_payloadGroupByArgs['orderBy'] }
      : { orderBy?: notification_payloadGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
    InputErrors extends ByEmpty extends Prisma.True
    ? `Error: "by" must not be empty.`
    : HavingValid extends Prisma.False
    ? {
        [P in HavingFields]: P extends ByFields
          ? never
          : P extends string
          ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
          : [
              Error,
              'Field ',
              P,
              ` in "having" needs to be provided in "by"`,
            ]
      }[HavingFields]
    : 'take' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "take", you also need to provide "orderBy"'
    : 'skip' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "skip", you also need to provide "orderBy"'
    : ByValid extends Prisma.True
    ? {}
    : {
        [P in OrderFields]: P extends ByFields
          ? never
          : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
      }[OrderFields]
  >(args: Prisma.SubsetIntersection<T, notification_payloadGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNotification_payloadGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the notification_payload model
 */
readonly fields: notification_payloadFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for notification_payload.
 * 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__notification_payloadClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the notification_payload model
 */
export interface notification_payloadFieldRefs {
  readonly id: Prisma.FieldRef<"notification_payload", 'Int'>
  readonly notification_id: Prisma.FieldRef<"notification_payload", 'Int'>
  readonly payload: Prisma.FieldRef<"notification_payload", 'String'>
  readonly timestamp: Prisma.FieldRef<"notification_payload", 'DateTime'>
}
    

// Custom InputTypes
/**
 * notification_payload findUnique
 */
export type notification_payloadFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * Filter, which notification_payload to fetch.
   */
  where: Prisma.notification_payloadWhereUniqueInput
}

/**
 * notification_payload findUniqueOrThrow
 */
export type notification_payloadFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * Filter, which notification_payload to fetch.
   */
  where: Prisma.notification_payloadWhereUniqueInput
}

/**
 * notification_payload findFirst
 */
export type notification_payloadFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * Filter, which notification_payload to fetch.
   */
  where?: Prisma.notification_payloadWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of notification_payloads to fetch.
   */
  orderBy?: Prisma.notification_payloadOrderByWithRelationInput | Prisma.notification_payloadOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for notification_payloads.
   */
  cursor?: Prisma.notification_payloadWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` notification_payloads 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` notification_payloads.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of notification_payloads.
   */
  distinct?: Prisma.Notification_payloadScalarFieldEnum | Prisma.Notification_payloadScalarFieldEnum[]
}

/**
 * notification_payload findFirstOrThrow
 */
export type notification_payloadFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * Filter, which notification_payload to fetch.
   */
  where?: Prisma.notification_payloadWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of notification_payloads to fetch.
   */
  orderBy?: Prisma.notification_payloadOrderByWithRelationInput | Prisma.notification_payloadOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for notification_payloads.
   */
  cursor?: Prisma.notification_payloadWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` notification_payloads 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` notification_payloads.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of notification_payloads.
   */
  distinct?: Prisma.Notification_payloadScalarFieldEnum | Prisma.Notification_payloadScalarFieldEnum[]
}

/**
 * notification_payload findMany
 */
export type notification_payloadFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * Filter, which notification_payloads to fetch.
   */
  where?: Prisma.notification_payloadWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of notification_payloads to fetch.
   */
  orderBy?: Prisma.notification_payloadOrderByWithRelationInput | Prisma.notification_payloadOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing notification_payloads.
   */
  cursor?: Prisma.notification_payloadWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` notification_payloads 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` notification_payloads.
   */
  skip?: number
  distinct?: Prisma.Notification_payloadScalarFieldEnum | Prisma.Notification_payloadScalarFieldEnum[]
}

/**
 * notification_payload create
 */
export type notification_payloadCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * The data needed to create a notification_payload.
   */
  data: Prisma.XOR<Prisma.notification_payloadCreateInput, Prisma.notification_payloadUncheckedCreateInput>
}

/**
 * notification_payload createMany
 */
export type notification_payloadCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many notification_payloads.
   */
  data: Prisma.notification_payloadCreateManyInput | Prisma.notification_payloadCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * notification_payload update
 */
export type notification_payloadUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * The data needed to update a notification_payload.
   */
  data: Prisma.XOR<Prisma.notification_payloadUpdateInput, Prisma.notification_payloadUncheckedUpdateInput>
  /**
   * Choose, which notification_payload to update.
   */
  where: Prisma.notification_payloadWhereUniqueInput
}

/**
 * notification_payload updateMany
 */
export type notification_payloadUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update notification_payloads.
   */
  data: Prisma.XOR<Prisma.notification_payloadUpdateManyMutationInput, Prisma.notification_payloadUncheckedUpdateManyInput>
  /**
   * Filter which notification_payloads to update
   */
  where?: Prisma.notification_payloadWhereInput
  /**
   * Limit how many notification_payloads to update.
   */
  limit?: number
}

/**
 * notification_payload upsert
 */
export type notification_payloadUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * The filter to search for the notification_payload to update in case it exists.
   */
  where: Prisma.notification_payloadWhereUniqueInput
  /**
   * In case the notification_payload found by the `where` argument doesn't exist, create a new notification_payload with this data.
   */
  create: Prisma.XOR<Prisma.notification_payloadCreateInput, Prisma.notification_payloadUncheckedCreateInput>
  /**
   * In case the notification_payload was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.notification_payloadUpdateInput, Prisma.notification_payloadUncheckedUpdateInput>
}

/**
 * notification_payload delete
 */
export type notification_payloadDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
  /**
   * Filter which notification_payload to delete.
   */
  where: Prisma.notification_payloadWhereUniqueInput
}

/**
 * notification_payload deleteMany
 */
export type notification_payloadDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which notification_payloads to delete
   */
  where?: Prisma.notification_payloadWhereInput
  /**
   * Limit how many notification_payloads to delete.
   */
  limit?: number
}

/**
 * notification_payload without action
 */
export type notification_payloadDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the notification_payload
   */
  select?: Prisma.notification_payloadSelect<ExtArgs> | null
  /**
   * Omit specific fields from the notification_payload
   */
  omit?: Prisma.notification_payloadOmit<ExtArgs> | null
}
