
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `ScannerSessionEvent` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model ScannerSessionEvent
 * 
 */
export type ScannerSessionEventModel = runtime.Types.Result.DefaultSelection<Prisma.$ScannerSessionEventPayload>

export type AggregateScannerSessionEvent = {
  _count: ScannerSessionEventCountAggregateOutputType | null
  _min: ScannerSessionEventMinAggregateOutputType | null
  _max: ScannerSessionEventMaxAggregateOutputType | null
}

export type ScannerSessionEventMinAggregateOutputType = {
  id: string | null
  sessionId: string | null
  userId: string | null
  type: string | null
  message: string | null
  createdAt: Date | null
}

export type ScannerSessionEventMaxAggregateOutputType = {
  id: string | null
  sessionId: string | null
  userId: string | null
  type: string | null
  message: string | null
  createdAt: Date | null
}

export type ScannerSessionEventCountAggregateOutputType = {
  id: number
  sessionId: number
  userId: number
  type: number
  message: number
  context: number
  createdAt: number
  _all: number
}


export type ScannerSessionEventMinAggregateInputType = {
  id?: true
  sessionId?: true
  userId?: true
  type?: true
  message?: true
  createdAt?: true
}

export type ScannerSessionEventMaxAggregateInputType = {
  id?: true
  sessionId?: true
  userId?: true
  type?: true
  message?: true
  createdAt?: true
}

export type ScannerSessionEventCountAggregateInputType = {
  id?: true
  sessionId?: true
  userId?: true
  type?: true
  message?: true
  context?: true
  createdAt?: true
  _all?: true
}

export type ScannerSessionEventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ScannerSessionEvent to aggregate.
   */
  where?: Prisma.ScannerSessionEventWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ScannerSessionEvents to fetch.
   */
  orderBy?: Prisma.ScannerSessionEventOrderByWithRelationInput | Prisma.ScannerSessionEventOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ScannerSessionEventWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ScannerSessionEvents 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` ScannerSessionEvents.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ScannerSessionEvents
  **/
  _count?: true | ScannerSessionEventCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ScannerSessionEventMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ScannerSessionEventMaxAggregateInputType
}

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




export type ScannerSessionEventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ScannerSessionEventWhereInput
  orderBy?: Prisma.ScannerSessionEventOrderByWithAggregationInput | Prisma.ScannerSessionEventOrderByWithAggregationInput[]
  by: Prisma.ScannerSessionEventScalarFieldEnum[] | Prisma.ScannerSessionEventScalarFieldEnum
  having?: Prisma.ScannerSessionEventScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ScannerSessionEventCountAggregateInputType | true
  _min?: ScannerSessionEventMinAggregateInputType
  _max?: ScannerSessionEventMaxAggregateInputType
}

export type ScannerSessionEventGroupByOutputType = {
  id: string
  sessionId: string
  userId: string | null
  type: string
  message: string
  context: runtime.JsonValue | null
  createdAt: Date
  _count: ScannerSessionEventCountAggregateOutputType | null
  _min: ScannerSessionEventMinAggregateOutputType | null
  _max: ScannerSessionEventMaxAggregateOutputType | null
}

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



export type ScannerSessionEventWhereInput = {
  AND?: Prisma.ScannerSessionEventWhereInput | Prisma.ScannerSessionEventWhereInput[]
  OR?: Prisma.ScannerSessionEventWhereInput[]
  NOT?: Prisma.ScannerSessionEventWhereInput | Prisma.ScannerSessionEventWhereInput[]
  id?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  sessionId?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  userId?: Prisma.StringNullableFilter<"ScannerSessionEvent"> | string | null
  type?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  message?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  context?: Prisma.JsonNullableFilter<"ScannerSessionEvent">
  createdAt?: Prisma.DateTimeFilter<"ScannerSessionEvent"> | Date | string
  session?: Prisma.XOR<Prisma.ScannerSessionScalarRelationFilter, Prisma.ScannerSessionWhereInput>
}

export type ScannerSessionEventOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  context?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  session?: Prisma.ScannerSessionOrderByWithRelationInput
  _relevance?: Prisma.ScannerSessionEventOrderByRelevanceInput
}

export type ScannerSessionEventWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.ScannerSessionEventWhereInput | Prisma.ScannerSessionEventWhereInput[]
  OR?: Prisma.ScannerSessionEventWhereInput[]
  NOT?: Prisma.ScannerSessionEventWhereInput | Prisma.ScannerSessionEventWhereInput[]
  sessionId?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  userId?: Prisma.StringNullableFilter<"ScannerSessionEvent"> | string | null
  type?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  message?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  context?: Prisma.JsonNullableFilter<"ScannerSessionEvent">
  createdAt?: Prisma.DateTimeFilter<"ScannerSessionEvent"> | Date | string
  session?: Prisma.XOR<Prisma.ScannerSessionScalarRelationFilter, Prisma.ScannerSessionWhereInput>
}, "id">

export type ScannerSessionEventOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  context?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.ScannerSessionEventCountOrderByAggregateInput
  _max?: Prisma.ScannerSessionEventMaxOrderByAggregateInput
  _min?: Prisma.ScannerSessionEventMinOrderByAggregateInput
}

export type ScannerSessionEventScalarWhereWithAggregatesInput = {
  AND?: Prisma.ScannerSessionEventScalarWhereWithAggregatesInput | Prisma.ScannerSessionEventScalarWhereWithAggregatesInput[]
  OR?: Prisma.ScannerSessionEventScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ScannerSessionEventScalarWhereWithAggregatesInput | Prisma.ScannerSessionEventScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ScannerSessionEvent"> | string
  sessionId?: Prisma.StringWithAggregatesFilter<"ScannerSessionEvent"> | string
  userId?: Prisma.StringNullableWithAggregatesFilter<"ScannerSessionEvent"> | string | null
  type?: Prisma.StringWithAggregatesFilter<"ScannerSessionEvent"> | string
  message?: Prisma.StringWithAggregatesFilter<"ScannerSessionEvent"> | string
  context?: Prisma.JsonNullableWithAggregatesFilter<"ScannerSessionEvent">
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ScannerSessionEvent"> | Date | string
}

export type ScannerSessionEventCreateInput = {
  id?: string
  userId?: string | null
  type: string
  message: string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  session: Prisma.ScannerSessionCreateNestedOneWithoutEventsInput
}

export type ScannerSessionEventUncheckedCreateInput = {
  id?: string
  sessionId: string
  userId?: string | null
  type: string
  message: string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type ScannerSessionEventUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  session?: Prisma.ScannerSessionUpdateOneRequiredWithoutEventsNestedInput
}

export type ScannerSessionEventUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionEventCreateManyInput = {
  id?: string
  sessionId: string
  userId?: string | null
  type: string
  message: string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type ScannerSessionEventUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionEventUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionEventListRelationFilter = {
  every?: Prisma.ScannerSessionEventWhereInput
  some?: Prisma.ScannerSessionEventWhereInput
  none?: Prisma.ScannerSessionEventWhereInput
}

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

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

export type ScannerSessionEventCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  context?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ScannerSessionEventMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ScannerSessionEventMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  message?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ScannerSessionEventCreateNestedManyWithoutSessionInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionEventCreateWithoutSessionInput, Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput> | Prisma.ScannerSessionEventCreateWithoutSessionInput[] | Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput[]
  connectOrCreate?: Prisma.ScannerSessionEventCreateOrConnectWithoutSessionInput | Prisma.ScannerSessionEventCreateOrConnectWithoutSessionInput[]
  createMany?: Prisma.ScannerSessionEventCreateManySessionInputEnvelope
  connect?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
}

export type ScannerSessionEventUncheckedCreateNestedManyWithoutSessionInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionEventCreateWithoutSessionInput, Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput> | Prisma.ScannerSessionEventCreateWithoutSessionInput[] | Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput[]
  connectOrCreate?: Prisma.ScannerSessionEventCreateOrConnectWithoutSessionInput | Prisma.ScannerSessionEventCreateOrConnectWithoutSessionInput[]
  createMany?: Prisma.ScannerSessionEventCreateManySessionInputEnvelope
  connect?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
}

export type ScannerSessionEventUpdateManyWithoutSessionNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionEventCreateWithoutSessionInput, Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput> | Prisma.ScannerSessionEventCreateWithoutSessionInput[] | Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput[]
  connectOrCreate?: Prisma.ScannerSessionEventCreateOrConnectWithoutSessionInput | Prisma.ScannerSessionEventCreateOrConnectWithoutSessionInput[]
  upsert?: Prisma.ScannerSessionEventUpsertWithWhereUniqueWithoutSessionInput | Prisma.ScannerSessionEventUpsertWithWhereUniqueWithoutSessionInput[]
  createMany?: Prisma.ScannerSessionEventCreateManySessionInputEnvelope
  set?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
  disconnect?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
  delete?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
  connect?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
  update?: Prisma.ScannerSessionEventUpdateWithWhereUniqueWithoutSessionInput | Prisma.ScannerSessionEventUpdateWithWhereUniqueWithoutSessionInput[]
  updateMany?: Prisma.ScannerSessionEventUpdateManyWithWhereWithoutSessionInput | Prisma.ScannerSessionEventUpdateManyWithWhereWithoutSessionInput[]
  deleteMany?: Prisma.ScannerSessionEventScalarWhereInput | Prisma.ScannerSessionEventScalarWhereInput[]
}

export type ScannerSessionEventUncheckedUpdateManyWithoutSessionNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionEventCreateWithoutSessionInput, Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput> | Prisma.ScannerSessionEventCreateWithoutSessionInput[] | Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput[]
  connectOrCreate?: Prisma.ScannerSessionEventCreateOrConnectWithoutSessionInput | Prisma.ScannerSessionEventCreateOrConnectWithoutSessionInput[]
  upsert?: Prisma.ScannerSessionEventUpsertWithWhereUniqueWithoutSessionInput | Prisma.ScannerSessionEventUpsertWithWhereUniqueWithoutSessionInput[]
  createMany?: Prisma.ScannerSessionEventCreateManySessionInputEnvelope
  set?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
  disconnect?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
  delete?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
  connect?: Prisma.ScannerSessionEventWhereUniqueInput | Prisma.ScannerSessionEventWhereUniqueInput[]
  update?: Prisma.ScannerSessionEventUpdateWithWhereUniqueWithoutSessionInput | Prisma.ScannerSessionEventUpdateWithWhereUniqueWithoutSessionInput[]
  updateMany?: Prisma.ScannerSessionEventUpdateManyWithWhereWithoutSessionInput | Prisma.ScannerSessionEventUpdateManyWithWhereWithoutSessionInput[]
  deleteMany?: Prisma.ScannerSessionEventScalarWhereInput | Prisma.ScannerSessionEventScalarWhereInput[]
}

export type ScannerSessionEventCreateWithoutSessionInput = {
  id?: string
  userId?: string | null
  type: string
  message: string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type ScannerSessionEventUncheckedCreateWithoutSessionInput = {
  id?: string
  userId?: string | null
  type: string
  message: string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type ScannerSessionEventCreateOrConnectWithoutSessionInput = {
  where: Prisma.ScannerSessionEventWhereUniqueInput
  create: Prisma.XOR<Prisma.ScannerSessionEventCreateWithoutSessionInput, Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput>
}

export type ScannerSessionEventCreateManySessionInputEnvelope = {
  data: Prisma.ScannerSessionEventCreateManySessionInput | Prisma.ScannerSessionEventCreateManySessionInput[]
  skipDuplicates?: boolean
}

export type ScannerSessionEventUpsertWithWhereUniqueWithoutSessionInput = {
  where: Prisma.ScannerSessionEventWhereUniqueInput
  update: Prisma.XOR<Prisma.ScannerSessionEventUpdateWithoutSessionInput, Prisma.ScannerSessionEventUncheckedUpdateWithoutSessionInput>
  create: Prisma.XOR<Prisma.ScannerSessionEventCreateWithoutSessionInput, Prisma.ScannerSessionEventUncheckedCreateWithoutSessionInput>
}

export type ScannerSessionEventUpdateWithWhereUniqueWithoutSessionInput = {
  where: Prisma.ScannerSessionEventWhereUniqueInput
  data: Prisma.XOR<Prisma.ScannerSessionEventUpdateWithoutSessionInput, Prisma.ScannerSessionEventUncheckedUpdateWithoutSessionInput>
}

export type ScannerSessionEventUpdateManyWithWhereWithoutSessionInput = {
  where: Prisma.ScannerSessionEventScalarWhereInput
  data: Prisma.XOR<Prisma.ScannerSessionEventUpdateManyMutationInput, Prisma.ScannerSessionEventUncheckedUpdateManyWithoutSessionInput>
}

export type ScannerSessionEventScalarWhereInput = {
  AND?: Prisma.ScannerSessionEventScalarWhereInput | Prisma.ScannerSessionEventScalarWhereInput[]
  OR?: Prisma.ScannerSessionEventScalarWhereInput[]
  NOT?: Prisma.ScannerSessionEventScalarWhereInput | Prisma.ScannerSessionEventScalarWhereInput[]
  id?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  sessionId?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  userId?: Prisma.StringNullableFilter<"ScannerSessionEvent"> | string | null
  type?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  message?: Prisma.StringFilter<"ScannerSessionEvent"> | string
  context?: Prisma.JsonNullableFilter<"ScannerSessionEvent">
  createdAt?: Prisma.DateTimeFilter<"ScannerSessionEvent"> | Date | string
}

export type ScannerSessionEventCreateManySessionInput = {
  id?: string
  userId?: string | null
  type: string
  message: string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type ScannerSessionEventUpdateWithoutSessionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionEventUncheckedUpdateWithoutSessionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionEventUncheckedUpdateManyWithoutSessionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.StringFieldUpdateOperationsInput | string
  message?: Prisma.StringFieldUpdateOperationsInput | string
  context?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type ScannerSessionEventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  sessionId?: boolean
  userId?: boolean
  type?: boolean
  message?: boolean
  context?: boolean
  createdAt?: boolean
  session?: boolean | Prisma.ScannerSessionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["scannerSessionEvent"]>



export type ScannerSessionEventSelectScalar = {
  id?: boolean
  sessionId?: boolean
  userId?: boolean
  type?: boolean
  message?: boolean
  context?: boolean
  createdAt?: boolean
}

export type ScannerSessionEventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "userId" | "type" | "message" | "context" | "createdAt", ExtArgs["result"]["scannerSessionEvent"]>
export type ScannerSessionEventInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  session?: boolean | Prisma.ScannerSessionDefaultArgs<ExtArgs>
}

export type $ScannerSessionEventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ScannerSessionEvent"
  objects: {
    session: Prisma.$ScannerSessionPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    sessionId: string
    userId: string | null
    type: string
    message: string
    context: runtime.JsonValue | null
    createdAt: Date
  }, ExtArgs["result"]["scannerSessionEvent"]>
  composites: {}
}

export type ScannerSessionEventGetPayload<S extends boolean | null | undefined | ScannerSessionEventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ScannerSessionEventPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for ScannerSessionEvent.
 * 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__ScannerSessionEventClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  session<T extends Prisma.ScannerSessionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ScannerSessionDefaultArgs<ExtArgs>>): Prisma.Prisma__ScannerSessionClient<runtime.Types.Result.GetResult<Prisma.$ScannerSessionPayload<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 ScannerSessionEvent model
 */
export interface ScannerSessionEventFieldRefs {
  readonly id: Prisma.FieldRef<"ScannerSessionEvent", 'String'>
  readonly sessionId: Prisma.FieldRef<"ScannerSessionEvent", 'String'>
  readonly userId: Prisma.FieldRef<"ScannerSessionEvent", 'String'>
  readonly type: Prisma.FieldRef<"ScannerSessionEvent", 'String'>
  readonly message: Prisma.FieldRef<"ScannerSessionEvent", 'String'>
  readonly context: Prisma.FieldRef<"ScannerSessionEvent", 'Json'>
  readonly createdAt: Prisma.FieldRef<"ScannerSessionEvent", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ScannerSessionEvent findUnique
 */
export type ScannerSessionEventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionEvent
   */
  select?: Prisma.ScannerSessionEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionEvent
   */
  omit?: Prisma.ScannerSessionEventOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionEventInclude<ExtArgs> | null
  /**
   * Filter, which ScannerSessionEvent to fetch.
   */
  where: Prisma.ScannerSessionEventWhereUniqueInput
}

/**
 * ScannerSessionEvent findUniqueOrThrow
 */
export type ScannerSessionEventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionEvent
   */
  select?: Prisma.ScannerSessionEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionEvent
   */
  omit?: Prisma.ScannerSessionEventOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionEventInclude<ExtArgs> | null
  /**
   * Filter, which ScannerSessionEvent to fetch.
   */
  where: Prisma.ScannerSessionEventWhereUniqueInput
}

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

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

/**
 * ScannerSessionEvent findMany
 */
export type ScannerSessionEventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionEvent
   */
  select?: Prisma.ScannerSessionEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionEvent
   */
  omit?: Prisma.ScannerSessionEventOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionEventInclude<ExtArgs> | null
  /**
   * Filter, which ScannerSessionEvents to fetch.
   */
  where?: Prisma.ScannerSessionEventWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ScannerSessionEvents to fetch.
   */
  orderBy?: Prisma.ScannerSessionEventOrderByWithRelationInput | Prisma.ScannerSessionEventOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing ScannerSessionEvents.
   */
  cursor?: Prisma.ScannerSessionEventWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ScannerSessionEvents 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` ScannerSessionEvents.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ScannerSessionEvents.
   */
  distinct?: Prisma.ScannerSessionEventScalarFieldEnum | Prisma.ScannerSessionEventScalarFieldEnum[]
}

/**
 * ScannerSessionEvent create
 */
export type ScannerSessionEventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionEvent
   */
  select?: Prisma.ScannerSessionEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionEvent
   */
  omit?: Prisma.ScannerSessionEventOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionEventInclude<ExtArgs> | null
  /**
   * The data needed to create a ScannerSessionEvent.
   */
  data: Prisma.XOR<Prisma.ScannerSessionEventCreateInput, Prisma.ScannerSessionEventUncheckedCreateInput>
}

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

/**
 * ScannerSessionEvent update
 */
export type ScannerSessionEventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionEvent
   */
  select?: Prisma.ScannerSessionEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionEvent
   */
  omit?: Prisma.ScannerSessionEventOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionEventInclude<ExtArgs> | null
  /**
   * The data needed to update a ScannerSessionEvent.
   */
  data: Prisma.XOR<Prisma.ScannerSessionEventUpdateInput, Prisma.ScannerSessionEventUncheckedUpdateInput>
  /**
   * Choose, which ScannerSessionEvent to update.
   */
  where: Prisma.ScannerSessionEventWhereUniqueInput
}

/**
 * ScannerSessionEvent updateMany
 */
export type ScannerSessionEventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ScannerSessionEvents.
   */
  data: Prisma.XOR<Prisma.ScannerSessionEventUpdateManyMutationInput, Prisma.ScannerSessionEventUncheckedUpdateManyInput>
  /**
   * Filter which ScannerSessionEvents to update
   */
  where?: Prisma.ScannerSessionEventWhereInput
  /**
   * Limit how many ScannerSessionEvents to update.
   */
  limit?: number
}

/**
 * ScannerSessionEvent upsert
 */
export type ScannerSessionEventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionEvent
   */
  select?: Prisma.ScannerSessionEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionEvent
   */
  omit?: Prisma.ScannerSessionEventOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionEventInclude<ExtArgs> | null
  /**
   * The filter to search for the ScannerSessionEvent to update in case it exists.
   */
  where: Prisma.ScannerSessionEventWhereUniqueInput
  /**
   * In case the ScannerSessionEvent found by the `where` argument doesn't exist, create a new ScannerSessionEvent with this data.
   */
  create: Prisma.XOR<Prisma.ScannerSessionEventCreateInput, Prisma.ScannerSessionEventUncheckedCreateInput>
  /**
   * In case the ScannerSessionEvent was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ScannerSessionEventUpdateInput, Prisma.ScannerSessionEventUncheckedUpdateInput>
}

/**
 * ScannerSessionEvent delete
 */
export type ScannerSessionEventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionEvent
   */
  select?: Prisma.ScannerSessionEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionEvent
   */
  omit?: Prisma.ScannerSessionEventOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionEventInclude<ExtArgs> | null
  /**
   * Filter which ScannerSessionEvent to delete.
   */
  where: Prisma.ScannerSessionEventWhereUniqueInput
}

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

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