
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `session_events` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model session_events
 * 
 */
export type session_eventsModel = runtime.Types.Result.DefaultSelection<Prisma.$session_eventsPayload>

export type AggregateSession_events = {
  _count: Session_eventsCountAggregateOutputType | null
  _avg: Session_eventsAvgAggregateOutputType | null
  _sum: Session_eventsSumAggregateOutputType | null
  _min: Session_eventsMinAggregateOutputType | null
  _max: Session_eventsMaxAggregateOutputType | null
}

export type Session_eventsAvgAggregateOutputType = {
  id: number | null
  timestamp: number | null
  event_index: number | null
}

export type Session_eventsSumAggregateOutputType = {
  id: number | null
  timestamp: bigint | null
  event_index: number | null
}

export type Session_eventsMinAggregateOutputType = {
  id: number | null
  session_id: string | null
  thread_id: string | null
  timestamp: bigint | null
  event_index: number | null
  event_json: string | null
}

export type Session_eventsMaxAggregateOutputType = {
  id: number | null
  session_id: string | null
  thread_id: string | null
  timestamp: bigint | null
  event_index: number | null
  event_json: string | null
}

export type Session_eventsCountAggregateOutputType = {
  id: number
  session_id: number
  thread_id: number
  timestamp: number
  event_index: number
  event_json: number
  _all: number
}


export type Session_eventsAvgAggregateInputType = {
  id?: true
  timestamp?: true
  event_index?: true
}

export type Session_eventsSumAggregateInputType = {
  id?: true
  timestamp?: true
  event_index?: true
}

export type Session_eventsMinAggregateInputType = {
  id?: true
  session_id?: true
  thread_id?: true
  timestamp?: true
  event_index?: true
  event_json?: true
}

export type Session_eventsMaxAggregateInputType = {
  id?: true
  session_id?: true
  thread_id?: true
  timestamp?: true
  event_index?: true
  event_json?: true
}

export type Session_eventsCountAggregateInputType = {
  id?: true
  session_id?: true
  thread_id?: true
  timestamp?: true
  event_index?: true
  event_json?: true
  _all?: true
}

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

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




export type session_eventsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.session_eventsWhereInput
  orderBy?: Prisma.session_eventsOrderByWithAggregationInput | Prisma.session_eventsOrderByWithAggregationInput[]
  by: Prisma.Session_eventsScalarFieldEnum[] | Prisma.Session_eventsScalarFieldEnum
  having?: Prisma.session_eventsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Session_eventsCountAggregateInputType | true
  _avg?: Session_eventsAvgAggregateInputType
  _sum?: Session_eventsSumAggregateInputType
  _min?: Session_eventsMinAggregateInputType
  _max?: Session_eventsMaxAggregateInputType
}

export type Session_eventsGroupByOutputType = {
  id: number
  session_id: string
  thread_id: string
  timestamp: bigint
  event_index: number
  event_json: string
  _count: Session_eventsCountAggregateOutputType | null
  _avg: Session_eventsAvgAggregateOutputType | null
  _sum: Session_eventsSumAggregateOutputType | null
  _min: Session_eventsMinAggregateOutputType | null
  _max: Session_eventsMaxAggregateOutputType | null
}

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



export type session_eventsWhereInput = {
  AND?: Prisma.session_eventsWhereInput | Prisma.session_eventsWhereInput[]
  OR?: Prisma.session_eventsWhereInput[]
  NOT?: Prisma.session_eventsWhereInput | Prisma.session_eventsWhereInput[]
  id?: Prisma.IntFilter<"session_events"> | number
  session_id?: Prisma.StringFilter<"session_events"> | string
  thread_id?: Prisma.StringFilter<"session_events"> | string
  timestamp?: Prisma.BigIntFilter<"session_events"> | bigint | number
  event_index?: Prisma.IntFilter<"session_events"> | number
  event_json?: Prisma.StringFilter<"session_events"> | string
  thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
}

export type session_eventsOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  event_index?: Prisma.SortOrder
  event_json?: Prisma.SortOrder
  thread?: Prisma.thread_sessionsOrderByWithRelationInput
}

export type session_eventsWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.session_eventsWhereInput | Prisma.session_eventsWhereInput[]
  OR?: Prisma.session_eventsWhereInput[]
  NOT?: Prisma.session_eventsWhereInput | Prisma.session_eventsWhereInput[]
  session_id?: Prisma.StringFilter<"session_events"> | string
  thread_id?: Prisma.StringFilter<"session_events"> | string
  timestamp?: Prisma.BigIntFilter<"session_events"> | bigint | number
  event_index?: Prisma.IntFilter<"session_events"> | number
  event_json?: Prisma.StringFilter<"session_events"> | string
  thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
}, "id">

export type session_eventsOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  event_index?: Prisma.SortOrder
  event_json?: Prisma.SortOrder
  _count?: Prisma.session_eventsCountOrderByAggregateInput
  _avg?: Prisma.session_eventsAvgOrderByAggregateInput
  _max?: Prisma.session_eventsMaxOrderByAggregateInput
  _min?: Prisma.session_eventsMinOrderByAggregateInput
  _sum?: Prisma.session_eventsSumOrderByAggregateInput
}

export type session_eventsScalarWhereWithAggregatesInput = {
  AND?: Prisma.session_eventsScalarWhereWithAggregatesInput | Prisma.session_eventsScalarWhereWithAggregatesInput[]
  OR?: Prisma.session_eventsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.session_eventsScalarWhereWithAggregatesInput | Prisma.session_eventsScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"session_events"> | number
  session_id?: Prisma.StringWithAggregatesFilter<"session_events"> | string
  thread_id?: Prisma.StringWithAggregatesFilter<"session_events"> | string
  timestamp?: Prisma.BigIntWithAggregatesFilter<"session_events"> | bigint | number
  event_index?: Prisma.IntWithAggregatesFilter<"session_events"> | number
  event_json?: Prisma.StringWithAggregatesFilter<"session_events"> | string
}

export type session_eventsCreateInput = {
  session_id: string
  timestamp: bigint | number
  event_index: number
  event_json: string
  thread: Prisma.thread_sessionsCreateNestedOneWithoutSession_eventsInput
}

export type session_eventsUncheckedCreateInput = {
  id?: number
  session_id: string
  thread_id: string
  timestamp: bigint | number
  event_index: number
  event_json: string
}

export type session_eventsUpdateInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  event_index?: Prisma.IntFieldUpdateOperationsInput | number
  event_json?: Prisma.StringFieldUpdateOperationsInput | string
  thread?: Prisma.thread_sessionsUpdateOneRequiredWithoutSession_eventsNestedInput
}

export type session_eventsUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  thread_id?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  event_index?: Prisma.IntFieldUpdateOperationsInput | number
  event_json?: Prisma.StringFieldUpdateOperationsInput | string
}

export type session_eventsCreateManyInput = {
  id?: number
  session_id: string
  thread_id: string
  timestamp: bigint | number
  event_index: number
  event_json: string
}

export type session_eventsUpdateManyMutationInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  event_index?: Prisma.IntFieldUpdateOperationsInput | number
  event_json?: Prisma.StringFieldUpdateOperationsInput | string
}

export type session_eventsUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  thread_id?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  event_index?: Prisma.IntFieldUpdateOperationsInput | number
  event_json?: Prisma.StringFieldUpdateOperationsInput | string
}

export type Session_eventsListRelationFilter = {
  every?: Prisma.session_eventsWhereInput
  some?: Prisma.session_eventsWhereInput
  none?: Prisma.session_eventsWhereInput
}

export type session_eventsOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type session_eventsCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  event_index?: Prisma.SortOrder
  event_json?: Prisma.SortOrder
}

export type session_eventsAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  event_index?: Prisma.SortOrder
}

export type session_eventsMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  event_index?: Prisma.SortOrder
  event_json?: Prisma.SortOrder
}

export type session_eventsMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  event_index?: Prisma.SortOrder
  event_json?: Prisma.SortOrder
}

export type session_eventsSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  event_index?: Prisma.SortOrder
}

export type session_eventsCreateNestedManyWithoutThreadInput = {
  create?: Prisma.XOR<Prisma.session_eventsCreateWithoutThreadInput, Prisma.session_eventsUncheckedCreateWithoutThreadInput> | Prisma.session_eventsCreateWithoutThreadInput[] | Prisma.session_eventsUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.session_eventsCreateOrConnectWithoutThreadInput | Prisma.session_eventsCreateOrConnectWithoutThreadInput[]
  createMany?: Prisma.session_eventsCreateManyThreadInputEnvelope
  connect?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
}

export type session_eventsUncheckedCreateNestedManyWithoutThreadInput = {
  create?: Prisma.XOR<Prisma.session_eventsCreateWithoutThreadInput, Prisma.session_eventsUncheckedCreateWithoutThreadInput> | Prisma.session_eventsCreateWithoutThreadInput[] | Prisma.session_eventsUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.session_eventsCreateOrConnectWithoutThreadInput | Prisma.session_eventsCreateOrConnectWithoutThreadInput[]
  createMany?: Prisma.session_eventsCreateManyThreadInputEnvelope
  connect?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
}

export type session_eventsUpdateManyWithoutThreadNestedInput = {
  create?: Prisma.XOR<Prisma.session_eventsCreateWithoutThreadInput, Prisma.session_eventsUncheckedCreateWithoutThreadInput> | Prisma.session_eventsCreateWithoutThreadInput[] | Prisma.session_eventsUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.session_eventsCreateOrConnectWithoutThreadInput | Prisma.session_eventsCreateOrConnectWithoutThreadInput[]
  upsert?: Prisma.session_eventsUpsertWithWhereUniqueWithoutThreadInput | Prisma.session_eventsUpsertWithWhereUniqueWithoutThreadInput[]
  createMany?: Prisma.session_eventsCreateManyThreadInputEnvelope
  set?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
  disconnect?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
  delete?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
  connect?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
  update?: Prisma.session_eventsUpdateWithWhereUniqueWithoutThreadInput | Prisma.session_eventsUpdateWithWhereUniqueWithoutThreadInput[]
  updateMany?: Prisma.session_eventsUpdateManyWithWhereWithoutThreadInput | Prisma.session_eventsUpdateManyWithWhereWithoutThreadInput[]
  deleteMany?: Prisma.session_eventsScalarWhereInput | Prisma.session_eventsScalarWhereInput[]
}

export type session_eventsUncheckedUpdateManyWithoutThreadNestedInput = {
  create?: Prisma.XOR<Prisma.session_eventsCreateWithoutThreadInput, Prisma.session_eventsUncheckedCreateWithoutThreadInput> | Prisma.session_eventsCreateWithoutThreadInput[] | Prisma.session_eventsUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.session_eventsCreateOrConnectWithoutThreadInput | Prisma.session_eventsCreateOrConnectWithoutThreadInput[]
  upsert?: Prisma.session_eventsUpsertWithWhereUniqueWithoutThreadInput | Prisma.session_eventsUpsertWithWhereUniqueWithoutThreadInput[]
  createMany?: Prisma.session_eventsCreateManyThreadInputEnvelope
  set?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
  disconnect?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
  delete?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
  connect?: Prisma.session_eventsWhereUniqueInput | Prisma.session_eventsWhereUniqueInput[]
  update?: Prisma.session_eventsUpdateWithWhereUniqueWithoutThreadInput | Prisma.session_eventsUpdateWithWhereUniqueWithoutThreadInput[]
  updateMany?: Prisma.session_eventsUpdateManyWithWhereWithoutThreadInput | Prisma.session_eventsUpdateManyWithWhereWithoutThreadInput[]
  deleteMany?: Prisma.session_eventsScalarWhereInput | Prisma.session_eventsScalarWhereInput[]
}

export type BigIntFieldUpdateOperationsInput = {
  set?: bigint | number
  increment?: bigint | number
  decrement?: bigint | number
  multiply?: bigint | number
  divide?: bigint | number
}

export type IntFieldUpdateOperationsInput = {
  set?: number
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type session_eventsCreateWithoutThreadInput = {
  session_id: string
  timestamp: bigint | number
  event_index: number
  event_json: string
}

export type session_eventsUncheckedCreateWithoutThreadInput = {
  id?: number
  session_id: string
  timestamp: bigint | number
  event_index: number
  event_json: string
}

export type session_eventsCreateOrConnectWithoutThreadInput = {
  where: Prisma.session_eventsWhereUniqueInput
  create: Prisma.XOR<Prisma.session_eventsCreateWithoutThreadInput, Prisma.session_eventsUncheckedCreateWithoutThreadInput>
}

export type session_eventsCreateManyThreadInputEnvelope = {
  data: Prisma.session_eventsCreateManyThreadInput | Prisma.session_eventsCreateManyThreadInput[]
}

export type session_eventsUpsertWithWhereUniqueWithoutThreadInput = {
  where: Prisma.session_eventsWhereUniqueInput
  update: Prisma.XOR<Prisma.session_eventsUpdateWithoutThreadInput, Prisma.session_eventsUncheckedUpdateWithoutThreadInput>
  create: Prisma.XOR<Prisma.session_eventsCreateWithoutThreadInput, Prisma.session_eventsUncheckedCreateWithoutThreadInput>
}

export type session_eventsUpdateWithWhereUniqueWithoutThreadInput = {
  where: Prisma.session_eventsWhereUniqueInput
  data: Prisma.XOR<Prisma.session_eventsUpdateWithoutThreadInput, Prisma.session_eventsUncheckedUpdateWithoutThreadInput>
}

export type session_eventsUpdateManyWithWhereWithoutThreadInput = {
  where: Prisma.session_eventsScalarWhereInput
  data: Prisma.XOR<Prisma.session_eventsUpdateManyMutationInput, Prisma.session_eventsUncheckedUpdateManyWithoutThreadInput>
}

export type session_eventsScalarWhereInput = {
  AND?: Prisma.session_eventsScalarWhereInput | Prisma.session_eventsScalarWhereInput[]
  OR?: Prisma.session_eventsScalarWhereInput[]
  NOT?: Prisma.session_eventsScalarWhereInput | Prisma.session_eventsScalarWhereInput[]
  id?: Prisma.IntFilter<"session_events"> | number
  session_id?: Prisma.StringFilter<"session_events"> | string
  thread_id?: Prisma.StringFilter<"session_events"> | string
  timestamp?: Prisma.BigIntFilter<"session_events"> | bigint | number
  event_index?: Prisma.IntFilter<"session_events"> | number
  event_json?: Prisma.StringFilter<"session_events"> | string
}

export type session_eventsCreateManyThreadInput = {
  id?: number
  session_id: string
  timestamp: bigint | number
  event_index: number
  event_json: string
}

export type session_eventsUpdateWithoutThreadInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  event_index?: Prisma.IntFieldUpdateOperationsInput | number
  event_json?: Prisma.StringFieldUpdateOperationsInput | string
}

export type session_eventsUncheckedUpdateWithoutThreadInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  event_index?: Prisma.IntFieldUpdateOperationsInput | number
  event_json?: Prisma.StringFieldUpdateOperationsInput | string
}

export type session_eventsUncheckedUpdateManyWithoutThreadInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  event_index?: Prisma.IntFieldUpdateOperationsInput | number
  event_json?: Prisma.StringFieldUpdateOperationsInput | string
}



export type session_eventsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  session_id?: boolean
  thread_id?: boolean
  timestamp?: boolean
  event_index?: boolean
  event_json?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["session_events"]>

export type session_eventsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  session_id?: boolean
  thread_id?: boolean
  timestamp?: boolean
  event_index?: boolean
  event_json?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["session_events"]>

export type session_eventsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  session_id?: boolean
  thread_id?: boolean
  timestamp?: boolean
  event_index?: boolean
  event_json?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["session_events"]>

export type session_eventsSelectScalar = {
  id?: boolean
  session_id?: boolean
  thread_id?: boolean
  timestamp?: boolean
  event_index?: boolean
  event_json?: boolean
}

export type session_eventsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "session_id" | "thread_id" | "timestamp" | "event_index" | "event_json", ExtArgs["result"]["session_events"]>
export type session_eventsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}
export type session_eventsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}
export type session_eventsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}

export type $session_eventsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "session_events"
  objects: {
    thread: Prisma.$thread_sessionsPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    session_id: string
    thread_id: string
    timestamp: bigint
    event_index: number
    event_json: string
  }, ExtArgs["result"]["session_events"]>
  composites: {}
}

export type session_eventsGetPayload<S extends boolean | null | undefined | session_eventsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$session_eventsPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many Session_events and returns the data saved in the database.
   * @param {session_eventsCreateManyAndReturnArgs} args - Arguments to create many Session_events.
   * @example
   * // Create many Session_events
   * const session_events = await prisma.session_events.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Session_events and only return the `id`
   * const session_eventsWithIdOnly = await prisma.session_events.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 session_eventsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, session_eventsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$session_eventsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more Session_events and returns the data updated in the database.
   * @param {session_eventsUpdateManyAndReturnArgs} args - Arguments to update many Session_events.
   * @example
   * // Update many Session_events
   * const session_events = await prisma.session_events.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Session_events and only return the `id`
   * const session_eventsWithIdOnly = await prisma.session_events.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 session_eventsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, session_eventsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$session_eventsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for session_events.
 * 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__session_eventsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  thread<T extends Prisma.thread_sessionsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessionsDefaultArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, 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<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 session_events model
 */
export interface session_eventsFieldRefs {
  readonly id: Prisma.FieldRef<"session_events", 'Int'>
  readonly session_id: Prisma.FieldRef<"session_events", 'String'>
  readonly thread_id: Prisma.FieldRef<"session_events", 'String'>
  readonly timestamp: Prisma.FieldRef<"session_events", 'BigInt'>
  readonly event_index: Prisma.FieldRef<"session_events", 'Int'>
  readonly event_json: Prisma.FieldRef<"session_events", 'String'>
}
    

// Custom InputTypes
/**
 * session_events findUnique
 */
export type session_eventsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * Filter, which session_events to fetch.
   */
  where: Prisma.session_eventsWhereUniqueInput
}

/**
 * session_events findUniqueOrThrow
 */
export type session_eventsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * Filter, which session_events to fetch.
   */
  where: Prisma.session_eventsWhereUniqueInput
}

/**
 * session_events findFirst
 */
export type session_eventsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * Filter, which session_events to fetch.
   */
  where?: Prisma.session_eventsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of session_events to fetch.
   */
  orderBy?: Prisma.session_eventsOrderByWithRelationInput | Prisma.session_eventsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for session_events.
   */
  cursor?: Prisma.session_eventsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` session_events 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` session_events.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of session_events.
   */
  distinct?: Prisma.Session_eventsScalarFieldEnum | Prisma.Session_eventsScalarFieldEnum[]
}

/**
 * session_events findFirstOrThrow
 */
export type session_eventsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * Filter, which session_events to fetch.
   */
  where?: Prisma.session_eventsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of session_events to fetch.
   */
  orderBy?: Prisma.session_eventsOrderByWithRelationInput | Prisma.session_eventsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for session_events.
   */
  cursor?: Prisma.session_eventsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` session_events 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` session_events.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of session_events.
   */
  distinct?: Prisma.Session_eventsScalarFieldEnum | Prisma.Session_eventsScalarFieldEnum[]
}

/**
 * session_events findMany
 */
export type session_eventsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * Filter, which session_events to fetch.
   */
  where?: Prisma.session_eventsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of session_events to fetch.
   */
  orderBy?: Prisma.session_eventsOrderByWithRelationInput | Prisma.session_eventsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing session_events.
   */
  cursor?: Prisma.session_eventsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` session_events 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` session_events.
   */
  skip?: number
  distinct?: Prisma.Session_eventsScalarFieldEnum | Prisma.Session_eventsScalarFieldEnum[]
}

/**
 * session_events create
 */
export type session_eventsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * The data needed to create a session_events.
   */
  data: Prisma.XOR<Prisma.session_eventsCreateInput, Prisma.session_eventsUncheckedCreateInput>
}

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

/**
 * session_events createManyAndReturn
 */
export type session_eventsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * The data used to create many session_events.
   */
  data: Prisma.session_eventsCreateManyInput | Prisma.session_eventsCreateManyInput[]
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * session_events update
 */
export type session_eventsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * The data needed to update a session_events.
   */
  data: Prisma.XOR<Prisma.session_eventsUpdateInput, Prisma.session_eventsUncheckedUpdateInput>
  /**
   * Choose, which session_events to update.
   */
  where: Prisma.session_eventsWhereUniqueInput
}

/**
 * session_events updateMany
 */
export type session_eventsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update session_events.
   */
  data: Prisma.XOR<Prisma.session_eventsUpdateManyMutationInput, Prisma.session_eventsUncheckedUpdateManyInput>
  /**
   * Filter which session_events to update
   */
  where?: Prisma.session_eventsWhereInput
  /**
   * Limit how many session_events to update.
   */
  limit?: number
}

/**
 * session_events updateManyAndReturn
 */
export type session_eventsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * The data used to update session_events.
   */
  data: Prisma.XOR<Prisma.session_eventsUpdateManyMutationInput, Prisma.session_eventsUncheckedUpdateManyInput>
  /**
   * Filter which session_events to update
   */
  where?: Prisma.session_eventsWhereInput
  /**
   * Limit how many session_events to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * session_events upsert
 */
export type session_eventsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * The filter to search for the session_events to update in case it exists.
   */
  where: Prisma.session_eventsWhereUniqueInput
  /**
   * In case the session_events found by the `where` argument doesn't exist, create a new session_events with this data.
   */
  create: Prisma.XOR<Prisma.session_eventsCreateInput, Prisma.session_eventsUncheckedCreateInput>
  /**
   * In case the session_events was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.session_eventsUpdateInput, Prisma.session_eventsUncheckedUpdateInput>
}

/**
 * session_events delete
 */
export type session_eventsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
  /**
   * Filter which session_events to delete.
   */
  where: Prisma.session_eventsWhereUniqueInput
}

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

/**
 * session_events without action
 */
export type session_eventsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_events
   */
  select?: Prisma.session_eventsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_events
   */
  omit?: Prisma.session_eventsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.session_eventsInclude<ExtArgs> | null
}
