
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `ErrorEvent` 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 ErrorEvent
 * 
 */
export type ErrorEventModel = runtime.Types.Result.DefaultSelection<Prisma.$ErrorEventPayload>

export type AggregateErrorEvent = {
  _count: ErrorEventCountAggregateOutputType | null
  _avg: ErrorEventAvgAggregateOutputType | null
  _sum: ErrorEventSumAggregateOutputType | null
  _min: ErrorEventMinAggregateOutputType | null
  _max: ErrorEventMaxAggregateOutputType | null
}

export type ErrorEventAvgAggregateOutputType = {
  id: number | null
}

export type ErrorEventSumAggregateOutputType = {
  id: number | null
}

export type ErrorEventMinAggregateOutputType = {
  id: number | null
  level: string | null
  context: string | null
  message: string | null
  stack: string | null
  metadata: string | null
  source: string | null
  createdAt: Date | null
}

export type ErrorEventMaxAggregateOutputType = {
  id: number | null
  level: string | null
  context: string | null
  message: string | null
  stack: string | null
  metadata: string | null
  source: string | null
  createdAt: Date | null
}

export type ErrorEventCountAggregateOutputType = {
  id: number
  level: number
  context: number
  message: number
  stack: number
  metadata: number
  source: number
  createdAt: number
  _all: number
}


export type ErrorEventAvgAggregateInputType = {
  id?: true
}

export type ErrorEventSumAggregateInputType = {
  id?: true
}

export type ErrorEventMinAggregateInputType = {
  id?: true
  level?: true
  context?: true
  message?: true
  stack?: true
  metadata?: true
  source?: true
  createdAt?: true
}

export type ErrorEventMaxAggregateInputType = {
  id?: true
  level?: true
  context?: true
  message?: true
  stack?: true
  metadata?: true
  source?: true
  createdAt?: true
}

export type ErrorEventCountAggregateInputType = {
  id?: true
  level?: true
  context?: true
  message?: true
  stack?: true
  metadata?: true
  source?: true
  createdAt?: true
  _all?: true
}

export type ErrorEventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ErrorEvent to aggregate.
   */
  where?: Prisma.ErrorEventWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ErrorEvents to fetch.
   */
  orderBy?: Prisma.ErrorEventOrderByWithRelationInput | Prisma.ErrorEventOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ErrorEventWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ErrorEvents 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` ErrorEvents.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ErrorEvents
  **/
  _count?: true | ErrorEventCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ErrorEventAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ErrorEventSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ErrorEventMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ErrorEventMaxAggregateInputType
}

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




export type ErrorEventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ErrorEventWhereInput
  orderBy?: Prisma.ErrorEventOrderByWithAggregationInput | Prisma.ErrorEventOrderByWithAggregationInput[]
  by: Prisma.ErrorEventScalarFieldEnum[] | Prisma.ErrorEventScalarFieldEnum
  having?: Prisma.ErrorEventScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ErrorEventCountAggregateInputType | true
  _avg?: ErrorEventAvgAggregateInputType
  _sum?: ErrorEventSumAggregateInputType
  _min?: ErrorEventMinAggregateInputType
  _max?: ErrorEventMaxAggregateInputType
}

export type ErrorEventGroupByOutputType = {
  id: number
  level: string
  context: string
  message: string
  stack: string | null
  metadata: string | null
  source: string
  createdAt: Date
  _count: ErrorEventCountAggregateOutputType | null
  _avg: ErrorEventAvgAggregateOutputType | null
  _sum: ErrorEventSumAggregateOutputType | null
  _min: ErrorEventMinAggregateOutputType | null
  _max: ErrorEventMaxAggregateOutputType | null
}

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



export type ErrorEventWhereInput = {
  AND?: Prisma.ErrorEventWhereInput | Prisma.ErrorEventWhereInput[]
  OR?: Prisma.ErrorEventWhereInput[]
  NOT?: Prisma.ErrorEventWhereInput | Prisma.ErrorEventWhereInput[]
  id?: Prisma.IntFilter<"ErrorEvent"> | number
  level?: Prisma.StringFilter<"ErrorEvent"> | string
  context?: Prisma.StringFilter<"ErrorEvent"> | string
  message?: Prisma.StringFilter<"ErrorEvent"> | string
  stack?: Prisma.StringNullableFilter<"ErrorEvent"> | string | null
  metadata?: Prisma.StringNullableFilter<"ErrorEvent"> | string | null
  source?: Prisma.StringFilter<"ErrorEvent"> | string
  createdAt?: Prisma.DateTimeFilter<"ErrorEvent"> | Date | string
}

export type ErrorEventOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  level?: Prisma.SortOrder
  context?: Prisma.SortOrder
  message?: Prisma.SortOrder
  stack?: Prisma.SortOrderInput | Prisma.SortOrder
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
  source?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ErrorEventWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.ErrorEventWhereInput | Prisma.ErrorEventWhereInput[]
  OR?: Prisma.ErrorEventWhereInput[]
  NOT?: Prisma.ErrorEventWhereInput | Prisma.ErrorEventWhereInput[]
  level?: Prisma.StringFilter<"ErrorEvent"> | string
  context?: Prisma.StringFilter<"ErrorEvent"> | string
  message?: Prisma.StringFilter<"ErrorEvent"> | string
  stack?: Prisma.StringNullableFilter<"ErrorEvent"> | string | null
  metadata?: Prisma.StringNullableFilter<"ErrorEvent"> | string | null
  source?: Prisma.StringFilter<"ErrorEvent"> | string
  createdAt?: Prisma.DateTimeFilter<"ErrorEvent"> | Date | string
}, "id">

export type ErrorEventOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  level?: Prisma.SortOrder
  context?: Prisma.SortOrder
  message?: Prisma.SortOrder
  stack?: Prisma.SortOrderInput | Prisma.SortOrder
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
  source?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.ErrorEventCountOrderByAggregateInput
  _avg?: Prisma.ErrorEventAvgOrderByAggregateInput
  _max?: Prisma.ErrorEventMaxOrderByAggregateInput
  _min?: Prisma.ErrorEventMinOrderByAggregateInput
  _sum?: Prisma.ErrorEventSumOrderByAggregateInput
}

export type ErrorEventScalarWhereWithAggregatesInput = {
  AND?: Prisma.ErrorEventScalarWhereWithAggregatesInput | Prisma.ErrorEventScalarWhereWithAggregatesInput[]
  OR?: Prisma.ErrorEventScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ErrorEventScalarWhereWithAggregatesInput | Prisma.ErrorEventScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"ErrorEvent"> | number
  level?: Prisma.StringWithAggregatesFilter<"ErrorEvent"> | string
  context?: Prisma.StringWithAggregatesFilter<"ErrorEvent"> | string
  message?: Prisma.StringWithAggregatesFilter<"ErrorEvent"> | string
  stack?: Prisma.StringNullableWithAggregatesFilter<"ErrorEvent"> | string | null
  metadata?: Prisma.StringNullableWithAggregatesFilter<"ErrorEvent"> | string | null
  source?: Prisma.StringWithAggregatesFilter<"ErrorEvent"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ErrorEvent"> | Date | string
}

export type ErrorEventCreateInput = {
  level?: string
  context: string
  message: string
  stack?: string | null
  metadata?: string | null
  source?: string
  createdAt?: Date | string
}

export type ErrorEventUncheckedCreateInput = {
  id?: number
  level?: string
  context: string
  message: string
  stack?: string | null
  metadata?: string | null
  source?: string
  createdAt?: Date | string
}

export type ErrorEventUpdateInput = {
  level?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  stack?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  source?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ErrorEventUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  level?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  stack?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  source?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ErrorEventCreateManyInput = {
  id?: number
  level?: string
  context: string
  message: string
  stack?: string | null
  metadata?: string | null
  source?: string
  createdAt?: Date | string
}

export type ErrorEventUpdateManyMutationInput = {
  level?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  stack?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  source?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ErrorEventUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  level?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  stack?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  source?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ErrorEventCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  level?: Prisma.SortOrder
  context?: Prisma.SortOrder
  message?: Prisma.SortOrder
  stack?: Prisma.SortOrder
  metadata?: Prisma.SortOrder
  source?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ErrorEventAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type ErrorEventMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  level?: Prisma.SortOrder
  context?: Prisma.SortOrder
  message?: Prisma.SortOrder
  stack?: Prisma.SortOrder
  metadata?: Prisma.SortOrder
  source?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ErrorEventMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  level?: Prisma.SortOrder
  context?: Prisma.SortOrder
  message?: Prisma.SortOrder
  stack?: Prisma.SortOrder
  metadata?: Prisma.SortOrder
  source?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ErrorEventSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type NullableStringFieldUpdateOperationsInput = {
  set?: string | null
}



export type ErrorEventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  level?: boolean
  context?: boolean
  message?: boolean
  stack?: boolean
  metadata?: boolean
  source?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["errorEvent"]>

export type ErrorEventSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  level?: boolean
  context?: boolean
  message?: boolean
  stack?: boolean
  metadata?: boolean
  source?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["errorEvent"]>

export type ErrorEventSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  level?: boolean
  context?: boolean
  message?: boolean
  stack?: boolean
  metadata?: boolean
  source?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["errorEvent"]>

export type ErrorEventSelectScalar = {
  id?: boolean
  level?: boolean
  context?: boolean
  message?: boolean
  stack?: boolean
  metadata?: boolean
  source?: boolean
  createdAt?: boolean
}

export type ErrorEventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "level" | "context" | "message" | "stack" | "metadata" | "source" | "createdAt", ExtArgs["result"]["errorEvent"]>

export type $ErrorEventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ErrorEvent"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    level: string
    context: string
    message: string
    stack: string | null
    metadata: string | null
    source: string
    createdAt: Date
  }, ExtArgs["result"]["errorEvent"]>
  composites: {}
}

export type ErrorEventGetPayload<S extends boolean | null | undefined | ErrorEventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ErrorEventPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many ErrorEvents and returns the data saved in the database.
   * @param {ErrorEventCreateManyAndReturnArgs} args - Arguments to create many ErrorEvents.
   * @example
   * // Create many ErrorEvents
   * const errorEvent = await prisma.errorEvent.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many ErrorEvents and only return the `id`
   * const errorEventWithIdOnly = await prisma.errorEvent.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends ErrorEventCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ErrorEventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ErrorEventPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more ErrorEvents and returns the data updated in the database.
   * @param {ErrorEventUpdateManyAndReturnArgs} args - Arguments to update many ErrorEvents.
   * @example
   * // Update many ErrorEvents
   * const errorEvent = await prisma.errorEvent.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more ErrorEvents and only return the `id`
   * const errorEventWithIdOnly = await prisma.errorEvent.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends ErrorEventUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ErrorEventUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ErrorEventPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

  /**
   * Allows you to perform aggregations operations on a ErrorEvent.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ErrorEventAggregateArgs} 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 ErrorEventAggregateArgs>(args: Prisma.Subset<T, ErrorEventAggregateArgs>): Prisma.PrismaPromise<GetErrorEventAggregateType<T>>

  /**
   * Group by ErrorEvent.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ErrorEventGroupByArgs} 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 ErrorEventGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: ErrorEventGroupByArgs['orderBy'] }
      : { orderBy?: ErrorEventGroupByArgs['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, ErrorEventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetErrorEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the ErrorEvent model
 */
readonly fields: ErrorEventFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for ErrorEvent.
 * 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__ErrorEventClient<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 ErrorEvent model
 */
export interface ErrorEventFieldRefs {
  readonly id: Prisma.FieldRef<"ErrorEvent", 'Int'>
  readonly level: Prisma.FieldRef<"ErrorEvent", 'String'>
  readonly context: Prisma.FieldRef<"ErrorEvent", 'String'>
  readonly message: Prisma.FieldRef<"ErrorEvent", 'String'>
  readonly stack: Prisma.FieldRef<"ErrorEvent", 'String'>
  readonly metadata: Prisma.FieldRef<"ErrorEvent", 'String'>
  readonly source: Prisma.FieldRef<"ErrorEvent", 'String'>
  readonly createdAt: Prisma.FieldRef<"ErrorEvent", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ErrorEvent findUnique
 */
export type ErrorEventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * Filter, which ErrorEvent to fetch.
   */
  where: Prisma.ErrorEventWhereUniqueInput
}

/**
 * ErrorEvent findUniqueOrThrow
 */
export type ErrorEventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * Filter, which ErrorEvent to fetch.
   */
  where: Prisma.ErrorEventWhereUniqueInput
}

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

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

/**
 * ErrorEvent findMany
 */
export type ErrorEventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * Filter, which ErrorEvents to fetch.
   */
  where?: Prisma.ErrorEventWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ErrorEvents to fetch.
   */
  orderBy?: Prisma.ErrorEventOrderByWithRelationInput | Prisma.ErrorEventOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing ErrorEvents.
   */
  cursor?: Prisma.ErrorEventWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ErrorEvents 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` ErrorEvents.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ErrorEvents.
   */
  distinct?: Prisma.ErrorEventScalarFieldEnum | Prisma.ErrorEventScalarFieldEnum[]
}

/**
 * ErrorEvent create
 */
export type ErrorEventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * The data needed to create a ErrorEvent.
   */
  data: Prisma.XOR<Prisma.ErrorEventCreateInput, Prisma.ErrorEventUncheckedCreateInput>
}

/**
 * ErrorEvent createMany
 */
export type ErrorEventCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many ErrorEvents.
   */
  data: Prisma.ErrorEventCreateManyInput | Prisma.ErrorEventCreateManyInput[]
}

/**
 * ErrorEvent createManyAndReturn
 */
export type ErrorEventCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * The data used to create many ErrorEvents.
   */
  data: Prisma.ErrorEventCreateManyInput | Prisma.ErrorEventCreateManyInput[]
}

/**
 * ErrorEvent update
 */
export type ErrorEventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * The data needed to update a ErrorEvent.
   */
  data: Prisma.XOR<Prisma.ErrorEventUpdateInput, Prisma.ErrorEventUncheckedUpdateInput>
  /**
   * Choose, which ErrorEvent to update.
   */
  where: Prisma.ErrorEventWhereUniqueInput
}

/**
 * ErrorEvent updateMany
 */
export type ErrorEventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ErrorEvents.
   */
  data: Prisma.XOR<Prisma.ErrorEventUpdateManyMutationInput, Prisma.ErrorEventUncheckedUpdateManyInput>
  /**
   * Filter which ErrorEvents to update
   */
  where?: Prisma.ErrorEventWhereInput
  /**
   * Limit how many ErrorEvents to update.
   */
  limit?: number
}

/**
 * ErrorEvent updateManyAndReturn
 */
export type ErrorEventUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * The data used to update ErrorEvents.
   */
  data: Prisma.XOR<Prisma.ErrorEventUpdateManyMutationInput, Prisma.ErrorEventUncheckedUpdateManyInput>
  /**
   * Filter which ErrorEvents to update
   */
  where?: Prisma.ErrorEventWhereInput
  /**
   * Limit how many ErrorEvents to update.
   */
  limit?: number
}

/**
 * ErrorEvent upsert
 */
export type ErrorEventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * The filter to search for the ErrorEvent to update in case it exists.
   */
  where: Prisma.ErrorEventWhereUniqueInput
  /**
   * In case the ErrorEvent found by the `where` argument doesn't exist, create a new ErrorEvent with this data.
   */
  create: Prisma.XOR<Prisma.ErrorEventCreateInput, Prisma.ErrorEventUncheckedCreateInput>
  /**
   * In case the ErrorEvent was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ErrorEventUpdateInput, Prisma.ErrorEventUncheckedUpdateInput>
}

/**
 * ErrorEvent delete
 */
export type ErrorEventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ErrorEvent
   */
  select?: Prisma.ErrorEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ErrorEvent
   */
  omit?: Prisma.ErrorEventOmit<ExtArgs> | null
  /**
   * Filter which ErrorEvent to delete.
   */
  where: Prisma.ErrorEventWhereUniqueInput
}

/**
 * ErrorEvent deleteMany
 */
export type ErrorEventDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ErrorEvents to delete
   */
  where?: Prisma.ErrorEventWhereInput
  /**
   * Limit how many ErrorEvents to delete.
   */
  limit?: number
}

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