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

export type AggregateScannerSession = {
  _count: ScannerSessionCountAggregateOutputType | null
  _min: ScannerSessionMinAggregateOutputType | null
  _max: ScannerSessionMaxAggregateOutputType | null
}

export type ScannerSessionMinAggregateOutputType = {
  id: string | null
  userId: string | null
  categoryId: string | null
  folderPath: string | null
  customFields: string | null
  status: $Enums.ScannerSessionStatus | null
  startedAt: Date | null
  finishedAt: Date | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ScannerSessionMaxAggregateOutputType = {
  id: string | null
  userId: string | null
  categoryId: string | null
  folderPath: string | null
  customFields: string | null
  status: $Enums.ScannerSessionStatus | null
  startedAt: Date | null
  finishedAt: Date | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ScannerSessionCountAggregateOutputType = {
  id: number
  userId: number
  categoryId: number
  folderPath: number
  customFields: number
  status: number
  startedAt: number
  finishedAt: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type ScannerSessionMinAggregateInputType = {
  id?: true
  userId?: true
  categoryId?: true
  folderPath?: true
  customFields?: true
  status?: true
  startedAt?: true
  finishedAt?: true
  createdAt?: true
  updatedAt?: true
}

export type ScannerSessionMaxAggregateInputType = {
  id?: true
  userId?: true
  categoryId?: true
  folderPath?: true
  customFields?: true
  status?: true
  startedAt?: true
  finishedAt?: true
  createdAt?: true
  updatedAt?: true
}

export type ScannerSessionCountAggregateInputType = {
  id?: true
  userId?: true
  categoryId?: true
  folderPath?: true
  customFields?: true
  status?: true
  startedAt?: true
  finishedAt?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type ScannerSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ScannerSessionWhereInput
  orderBy?: Prisma.ScannerSessionOrderByWithAggregationInput | Prisma.ScannerSessionOrderByWithAggregationInput[]
  by: Prisma.ScannerSessionScalarFieldEnum[] | Prisma.ScannerSessionScalarFieldEnum
  having?: Prisma.ScannerSessionScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ScannerSessionCountAggregateInputType | true
  _min?: ScannerSessionMinAggregateInputType
  _max?: ScannerSessionMaxAggregateInputType
}

export type ScannerSessionGroupByOutputType = {
  id: string
  userId: string
  categoryId: string
  folderPath: string
  customFields: string
  status: $Enums.ScannerSessionStatus
  startedAt: Date
  finishedAt: Date | null
  createdAt: Date
  updatedAt: Date
  _count: ScannerSessionCountAggregateOutputType | null
  _min: ScannerSessionMinAggregateOutputType | null
  _max: ScannerSessionMaxAggregateOutputType | null
}

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



export type ScannerSessionWhereInput = {
  AND?: Prisma.ScannerSessionWhereInput | Prisma.ScannerSessionWhereInput[]
  OR?: Prisma.ScannerSessionWhereInput[]
  NOT?: Prisma.ScannerSessionWhereInput | Prisma.ScannerSessionWhereInput[]
  id?: Prisma.StringFilter<"ScannerSession"> | string
  userId?: Prisma.StringFilter<"ScannerSession"> | string
  categoryId?: Prisma.StringFilter<"ScannerSession"> | string
  folderPath?: Prisma.StringFilter<"ScannerSession"> | string
  customFields?: Prisma.StringFilter<"ScannerSession"> | string
  status?: Prisma.EnumScannerSessionStatusFilter<"ScannerSession"> | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
  finishedAt?: Prisma.DateTimeNullableFilter<"ScannerSession"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  category?: Prisma.XOR<Prisma.CategoryScalarRelationFilter, Prisma.CategoryWhereInput>
  files?: Prisma.ScannerSessionFileListRelationFilter
  events?: Prisma.ScannerSessionEventListRelationFilter
  locks?: Prisma.ScannerSessionLockListRelationFilter
}

export type ScannerSessionOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  categoryId?: Prisma.SortOrder
  folderPath?: Prisma.SortOrder
  customFields?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  user?: Prisma.UserOrderByWithRelationInput
  category?: Prisma.CategoryOrderByWithRelationInput
  files?: Prisma.ScannerSessionFileOrderByRelationAggregateInput
  events?: Prisma.ScannerSessionEventOrderByRelationAggregateInput
  locks?: Prisma.ScannerSessionLockOrderByRelationAggregateInput
  _relevance?: Prisma.ScannerSessionOrderByRelevanceInput
}

export type ScannerSessionWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.ScannerSessionWhereInput | Prisma.ScannerSessionWhereInput[]
  OR?: Prisma.ScannerSessionWhereInput[]
  NOT?: Prisma.ScannerSessionWhereInput | Prisma.ScannerSessionWhereInput[]
  userId?: Prisma.StringFilter<"ScannerSession"> | string
  categoryId?: Prisma.StringFilter<"ScannerSession"> | string
  folderPath?: Prisma.StringFilter<"ScannerSession"> | string
  customFields?: Prisma.StringFilter<"ScannerSession"> | string
  status?: Prisma.EnumScannerSessionStatusFilter<"ScannerSession"> | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
  finishedAt?: Prisma.DateTimeNullableFilter<"ScannerSession"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  category?: Prisma.XOR<Prisma.CategoryScalarRelationFilter, Prisma.CategoryWhereInput>
  files?: Prisma.ScannerSessionFileListRelationFilter
  events?: Prisma.ScannerSessionEventListRelationFilter
  locks?: Prisma.ScannerSessionLockListRelationFilter
}, "id">

export type ScannerSessionOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  categoryId?: Prisma.SortOrder
  folderPath?: Prisma.SortOrder
  customFields?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.ScannerSessionCountOrderByAggregateInput
  _max?: Prisma.ScannerSessionMaxOrderByAggregateInput
  _min?: Prisma.ScannerSessionMinOrderByAggregateInput
}

export type ScannerSessionScalarWhereWithAggregatesInput = {
  AND?: Prisma.ScannerSessionScalarWhereWithAggregatesInput | Prisma.ScannerSessionScalarWhereWithAggregatesInput[]
  OR?: Prisma.ScannerSessionScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ScannerSessionScalarWhereWithAggregatesInput | Prisma.ScannerSessionScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ScannerSession"> | string
  userId?: Prisma.StringWithAggregatesFilter<"ScannerSession"> | string
  categoryId?: Prisma.StringWithAggregatesFilter<"ScannerSession"> | string
  folderPath?: Prisma.StringWithAggregatesFilter<"ScannerSession"> | string
  customFields?: Prisma.StringWithAggregatesFilter<"ScannerSession"> | string
  status?: Prisma.EnumScannerSessionStatusWithAggregatesFilter<"ScannerSession"> | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeWithAggregatesFilter<"ScannerSession"> | Date | string
  finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ScannerSession"> | Date | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ScannerSession"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ScannerSession"> | Date | string
}

export type ScannerSessionCreateInput = {
  id?: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.UserCreateNestedOneWithoutScannerSessionsInput
  category: Prisma.CategoryCreateNestedOneWithoutScannerSessionsInput
  files?: Prisma.ScannerSessionFileCreateNestedManyWithoutSessionInput
  events?: Prisma.ScannerSessionEventCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockCreateNestedManyWithoutSessionInput
}

export type ScannerSessionUncheckedCreateInput = {
  id?: string
  userId: string
  categoryId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  files?: Prisma.ScannerSessionFileUncheckedCreateNestedManyWithoutSessionInput
  events?: Prisma.ScannerSessionEventUncheckedCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockUncheckedCreateNestedManyWithoutSessionInput
}

export type ScannerSessionUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutScannerSessionsNestedInput
  category?: Prisma.CategoryUpdateOneRequiredWithoutScannerSessionsNestedInput
  files?: Prisma.ScannerSessionFileUpdateManyWithoutSessionNestedInput
  events?: Prisma.ScannerSessionEventUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  categoryId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  files?: Prisma.ScannerSessionFileUncheckedUpdateManyWithoutSessionNestedInput
  events?: Prisma.ScannerSessionEventUncheckedUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUncheckedUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionCreateManyInput = {
  id?: string
  userId: string
  categoryId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ScannerSessionUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  categoryId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionListRelationFilter = {
  every?: Prisma.ScannerSessionWhereInput
  some?: Prisma.ScannerSessionWhereInput
  none?: Prisma.ScannerSessionWhereInput
}

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

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

export type ScannerSessionCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  categoryId?: Prisma.SortOrder
  folderPath?: Prisma.SortOrder
  customFields?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  finishedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ScannerSessionMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  categoryId?: Prisma.SortOrder
  folderPath?: Prisma.SortOrder
  customFields?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  finishedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ScannerSessionMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  categoryId?: Prisma.SortOrder
  folderPath?: Prisma.SortOrder
  customFields?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  finishedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ScannerSessionScalarRelationFilter = {
  is?: Prisma.ScannerSessionWhereInput
  isNot?: Prisma.ScannerSessionWhereInput
}

export type ScannerSessionCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutUserInput, Prisma.ScannerSessionUncheckedCreateWithoutUserInput> | Prisma.ScannerSessionCreateWithoutUserInput[] | Prisma.ScannerSessionUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutUserInput | Prisma.ScannerSessionCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.ScannerSessionCreateManyUserInputEnvelope
  connect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
}

export type ScannerSessionUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutUserInput, Prisma.ScannerSessionUncheckedCreateWithoutUserInput> | Prisma.ScannerSessionCreateWithoutUserInput[] | Prisma.ScannerSessionUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutUserInput | Prisma.ScannerSessionCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.ScannerSessionCreateManyUserInputEnvelope
  connect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
}

export type ScannerSessionUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutUserInput, Prisma.ScannerSessionUncheckedCreateWithoutUserInput> | Prisma.ScannerSessionCreateWithoutUserInput[] | Prisma.ScannerSessionUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutUserInput | Prisma.ScannerSessionCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.ScannerSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.ScannerSessionUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.ScannerSessionCreateManyUserInputEnvelope
  set?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  disconnect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  delete?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  connect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  update?: Prisma.ScannerSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.ScannerSessionUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.ScannerSessionUpdateManyWithWhereWithoutUserInput | Prisma.ScannerSessionUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.ScannerSessionScalarWhereInput | Prisma.ScannerSessionScalarWhereInput[]
}

export type ScannerSessionUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutUserInput, Prisma.ScannerSessionUncheckedCreateWithoutUserInput> | Prisma.ScannerSessionCreateWithoutUserInput[] | Prisma.ScannerSessionUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutUserInput | Prisma.ScannerSessionCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.ScannerSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.ScannerSessionUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.ScannerSessionCreateManyUserInputEnvelope
  set?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  disconnect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  delete?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  connect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  update?: Prisma.ScannerSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.ScannerSessionUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.ScannerSessionUpdateManyWithWhereWithoutUserInput | Prisma.ScannerSessionUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.ScannerSessionScalarWhereInput | Prisma.ScannerSessionScalarWhereInput[]
}

export type ScannerSessionCreateNestedManyWithoutCategoryInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutCategoryInput, Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput> | Prisma.ScannerSessionCreateWithoutCategoryInput[] | Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput[]
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutCategoryInput | Prisma.ScannerSessionCreateOrConnectWithoutCategoryInput[]
  createMany?: Prisma.ScannerSessionCreateManyCategoryInputEnvelope
  connect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
}

export type ScannerSessionUncheckedCreateNestedManyWithoutCategoryInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutCategoryInput, Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput> | Prisma.ScannerSessionCreateWithoutCategoryInput[] | Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput[]
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutCategoryInput | Prisma.ScannerSessionCreateOrConnectWithoutCategoryInput[]
  createMany?: Prisma.ScannerSessionCreateManyCategoryInputEnvelope
  connect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
}

export type ScannerSessionUpdateManyWithoutCategoryNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutCategoryInput, Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput> | Prisma.ScannerSessionCreateWithoutCategoryInput[] | Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput[]
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutCategoryInput | Prisma.ScannerSessionCreateOrConnectWithoutCategoryInput[]
  upsert?: Prisma.ScannerSessionUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ScannerSessionUpsertWithWhereUniqueWithoutCategoryInput[]
  createMany?: Prisma.ScannerSessionCreateManyCategoryInputEnvelope
  set?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  disconnect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  delete?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  connect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  update?: Prisma.ScannerSessionUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ScannerSessionUpdateWithWhereUniqueWithoutCategoryInput[]
  updateMany?: Prisma.ScannerSessionUpdateManyWithWhereWithoutCategoryInput | Prisma.ScannerSessionUpdateManyWithWhereWithoutCategoryInput[]
  deleteMany?: Prisma.ScannerSessionScalarWhereInput | Prisma.ScannerSessionScalarWhereInput[]
}

export type ScannerSessionUncheckedUpdateManyWithoutCategoryNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutCategoryInput, Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput> | Prisma.ScannerSessionCreateWithoutCategoryInput[] | Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput[]
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutCategoryInput | Prisma.ScannerSessionCreateOrConnectWithoutCategoryInput[]
  upsert?: Prisma.ScannerSessionUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ScannerSessionUpsertWithWhereUniqueWithoutCategoryInput[]
  createMany?: Prisma.ScannerSessionCreateManyCategoryInputEnvelope
  set?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  disconnect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  delete?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  connect?: Prisma.ScannerSessionWhereUniqueInput | Prisma.ScannerSessionWhereUniqueInput[]
  update?: Prisma.ScannerSessionUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ScannerSessionUpdateWithWhereUniqueWithoutCategoryInput[]
  updateMany?: Prisma.ScannerSessionUpdateManyWithWhereWithoutCategoryInput | Prisma.ScannerSessionUpdateManyWithWhereWithoutCategoryInput[]
  deleteMany?: Prisma.ScannerSessionScalarWhereInput | Prisma.ScannerSessionScalarWhereInput[]
}

export type EnumScannerSessionStatusFieldUpdateOperationsInput = {
  set?: $Enums.ScannerSessionStatus
}

export type NullableDateTimeFieldUpdateOperationsInput = {
  set?: Date | string | null
}

export type ScannerSessionCreateNestedOneWithoutLocksInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutLocksInput, Prisma.ScannerSessionUncheckedCreateWithoutLocksInput>
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutLocksInput
  connect?: Prisma.ScannerSessionWhereUniqueInput
}

export type ScannerSessionUpdateOneRequiredWithoutLocksNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutLocksInput, Prisma.ScannerSessionUncheckedCreateWithoutLocksInput>
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutLocksInput
  upsert?: Prisma.ScannerSessionUpsertWithoutLocksInput
  connect?: Prisma.ScannerSessionWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ScannerSessionUpdateToOneWithWhereWithoutLocksInput, Prisma.ScannerSessionUpdateWithoutLocksInput>, Prisma.ScannerSessionUncheckedUpdateWithoutLocksInput>
}

export type ScannerSessionCreateNestedOneWithoutFilesInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutFilesInput, Prisma.ScannerSessionUncheckedCreateWithoutFilesInput>
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutFilesInput
  connect?: Prisma.ScannerSessionWhereUniqueInput
}

export type ScannerSessionUpdateOneRequiredWithoutFilesNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutFilesInput, Prisma.ScannerSessionUncheckedCreateWithoutFilesInput>
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutFilesInput
  upsert?: Prisma.ScannerSessionUpsertWithoutFilesInput
  connect?: Prisma.ScannerSessionWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ScannerSessionUpdateToOneWithWhereWithoutFilesInput, Prisma.ScannerSessionUpdateWithoutFilesInput>, Prisma.ScannerSessionUncheckedUpdateWithoutFilesInput>
}

export type ScannerSessionCreateNestedOneWithoutEventsInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutEventsInput, Prisma.ScannerSessionUncheckedCreateWithoutEventsInput>
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutEventsInput
  connect?: Prisma.ScannerSessionWhereUniqueInput
}

export type ScannerSessionUpdateOneRequiredWithoutEventsNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionCreateWithoutEventsInput, Prisma.ScannerSessionUncheckedCreateWithoutEventsInput>
  connectOrCreate?: Prisma.ScannerSessionCreateOrConnectWithoutEventsInput
  upsert?: Prisma.ScannerSessionUpsertWithoutEventsInput
  connect?: Prisma.ScannerSessionWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ScannerSessionUpdateToOneWithWhereWithoutEventsInput, Prisma.ScannerSessionUpdateWithoutEventsInput>, Prisma.ScannerSessionUncheckedUpdateWithoutEventsInput>
}

export type ScannerSessionCreateWithoutUserInput = {
  id?: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  category: Prisma.CategoryCreateNestedOneWithoutScannerSessionsInput
  files?: Prisma.ScannerSessionFileCreateNestedManyWithoutSessionInput
  events?: Prisma.ScannerSessionEventCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockCreateNestedManyWithoutSessionInput
}

export type ScannerSessionUncheckedCreateWithoutUserInput = {
  id?: string
  categoryId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  files?: Prisma.ScannerSessionFileUncheckedCreateNestedManyWithoutSessionInput
  events?: Prisma.ScannerSessionEventUncheckedCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockUncheckedCreateNestedManyWithoutSessionInput
}

export type ScannerSessionCreateOrConnectWithoutUserInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutUserInput, Prisma.ScannerSessionUncheckedCreateWithoutUserInput>
}

export type ScannerSessionCreateManyUserInputEnvelope = {
  data: Prisma.ScannerSessionCreateManyUserInput | Prisma.ScannerSessionCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type ScannerSessionUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  update: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutUserInput, Prisma.ScannerSessionUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutUserInput, Prisma.ScannerSessionUncheckedCreateWithoutUserInput>
}

export type ScannerSessionUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  data: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutUserInput, Prisma.ScannerSessionUncheckedUpdateWithoutUserInput>
}

export type ScannerSessionUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.ScannerSessionScalarWhereInput
  data: Prisma.XOR<Prisma.ScannerSessionUpdateManyMutationInput, Prisma.ScannerSessionUncheckedUpdateManyWithoutUserInput>
}

export type ScannerSessionScalarWhereInput = {
  AND?: Prisma.ScannerSessionScalarWhereInput | Prisma.ScannerSessionScalarWhereInput[]
  OR?: Prisma.ScannerSessionScalarWhereInput[]
  NOT?: Prisma.ScannerSessionScalarWhereInput | Prisma.ScannerSessionScalarWhereInput[]
  id?: Prisma.StringFilter<"ScannerSession"> | string
  userId?: Prisma.StringFilter<"ScannerSession"> | string
  categoryId?: Prisma.StringFilter<"ScannerSession"> | string
  folderPath?: Prisma.StringFilter<"ScannerSession"> | string
  customFields?: Prisma.StringFilter<"ScannerSession"> | string
  status?: Prisma.EnumScannerSessionStatusFilter<"ScannerSession"> | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
  finishedAt?: Prisma.DateTimeNullableFilter<"ScannerSession"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ScannerSession"> | Date | string
}

export type ScannerSessionCreateWithoutCategoryInput = {
  id?: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.UserCreateNestedOneWithoutScannerSessionsInput
  files?: Prisma.ScannerSessionFileCreateNestedManyWithoutSessionInput
  events?: Prisma.ScannerSessionEventCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockCreateNestedManyWithoutSessionInput
}

export type ScannerSessionUncheckedCreateWithoutCategoryInput = {
  id?: string
  userId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  files?: Prisma.ScannerSessionFileUncheckedCreateNestedManyWithoutSessionInput
  events?: Prisma.ScannerSessionEventUncheckedCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockUncheckedCreateNestedManyWithoutSessionInput
}

export type ScannerSessionCreateOrConnectWithoutCategoryInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutCategoryInput, Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput>
}

export type ScannerSessionCreateManyCategoryInputEnvelope = {
  data: Prisma.ScannerSessionCreateManyCategoryInput | Prisma.ScannerSessionCreateManyCategoryInput[]
  skipDuplicates?: boolean
}

export type ScannerSessionUpsertWithWhereUniqueWithoutCategoryInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  update: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutCategoryInput, Prisma.ScannerSessionUncheckedUpdateWithoutCategoryInput>
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutCategoryInput, Prisma.ScannerSessionUncheckedCreateWithoutCategoryInput>
}

export type ScannerSessionUpdateWithWhereUniqueWithoutCategoryInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  data: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutCategoryInput, Prisma.ScannerSessionUncheckedUpdateWithoutCategoryInput>
}

export type ScannerSessionUpdateManyWithWhereWithoutCategoryInput = {
  where: Prisma.ScannerSessionScalarWhereInput
  data: Prisma.XOR<Prisma.ScannerSessionUpdateManyMutationInput, Prisma.ScannerSessionUncheckedUpdateManyWithoutCategoryInput>
}

export type ScannerSessionCreateWithoutLocksInput = {
  id?: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.UserCreateNestedOneWithoutScannerSessionsInput
  category: Prisma.CategoryCreateNestedOneWithoutScannerSessionsInput
  files?: Prisma.ScannerSessionFileCreateNestedManyWithoutSessionInput
  events?: Prisma.ScannerSessionEventCreateNestedManyWithoutSessionInput
}

export type ScannerSessionUncheckedCreateWithoutLocksInput = {
  id?: string
  userId: string
  categoryId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  files?: Prisma.ScannerSessionFileUncheckedCreateNestedManyWithoutSessionInput
  events?: Prisma.ScannerSessionEventUncheckedCreateNestedManyWithoutSessionInput
}

export type ScannerSessionCreateOrConnectWithoutLocksInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutLocksInput, Prisma.ScannerSessionUncheckedCreateWithoutLocksInput>
}

export type ScannerSessionUpsertWithoutLocksInput = {
  update: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutLocksInput, Prisma.ScannerSessionUncheckedUpdateWithoutLocksInput>
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutLocksInput, Prisma.ScannerSessionUncheckedCreateWithoutLocksInput>
  where?: Prisma.ScannerSessionWhereInput
}

export type ScannerSessionUpdateToOneWithWhereWithoutLocksInput = {
  where?: Prisma.ScannerSessionWhereInput
  data: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutLocksInput, Prisma.ScannerSessionUncheckedUpdateWithoutLocksInput>
}

export type ScannerSessionUpdateWithoutLocksInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutScannerSessionsNestedInput
  category?: Prisma.CategoryUpdateOneRequiredWithoutScannerSessionsNestedInput
  files?: Prisma.ScannerSessionFileUpdateManyWithoutSessionNestedInput
  events?: Prisma.ScannerSessionEventUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionUncheckedUpdateWithoutLocksInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  categoryId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  files?: Prisma.ScannerSessionFileUncheckedUpdateManyWithoutSessionNestedInput
  events?: Prisma.ScannerSessionEventUncheckedUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionCreateWithoutFilesInput = {
  id?: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.UserCreateNestedOneWithoutScannerSessionsInput
  category: Prisma.CategoryCreateNestedOneWithoutScannerSessionsInput
  events?: Prisma.ScannerSessionEventCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockCreateNestedManyWithoutSessionInput
}

export type ScannerSessionUncheckedCreateWithoutFilesInput = {
  id?: string
  userId: string
  categoryId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  events?: Prisma.ScannerSessionEventUncheckedCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockUncheckedCreateNestedManyWithoutSessionInput
}

export type ScannerSessionCreateOrConnectWithoutFilesInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutFilesInput, Prisma.ScannerSessionUncheckedCreateWithoutFilesInput>
}

export type ScannerSessionUpsertWithoutFilesInput = {
  update: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutFilesInput, Prisma.ScannerSessionUncheckedUpdateWithoutFilesInput>
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutFilesInput, Prisma.ScannerSessionUncheckedCreateWithoutFilesInput>
  where?: Prisma.ScannerSessionWhereInput
}

export type ScannerSessionUpdateToOneWithWhereWithoutFilesInput = {
  where?: Prisma.ScannerSessionWhereInput
  data: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutFilesInput, Prisma.ScannerSessionUncheckedUpdateWithoutFilesInput>
}

export type ScannerSessionUpdateWithoutFilesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutScannerSessionsNestedInput
  category?: Prisma.CategoryUpdateOneRequiredWithoutScannerSessionsNestedInput
  events?: Prisma.ScannerSessionEventUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionUncheckedUpdateWithoutFilesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  categoryId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  events?: Prisma.ScannerSessionEventUncheckedUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUncheckedUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionCreateWithoutEventsInput = {
  id?: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.UserCreateNestedOneWithoutScannerSessionsInput
  category: Prisma.CategoryCreateNestedOneWithoutScannerSessionsInput
  files?: Prisma.ScannerSessionFileCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockCreateNestedManyWithoutSessionInput
}

export type ScannerSessionUncheckedCreateWithoutEventsInput = {
  id?: string
  userId: string
  categoryId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  files?: Prisma.ScannerSessionFileUncheckedCreateNestedManyWithoutSessionInput
  locks?: Prisma.ScannerSessionLockUncheckedCreateNestedManyWithoutSessionInput
}

export type ScannerSessionCreateOrConnectWithoutEventsInput = {
  where: Prisma.ScannerSessionWhereUniqueInput
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutEventsInput, Prisma.ScannerSessionUncheckedCreateWithoutEventsInput>
}

export type ScannerSessionUpsertWithoutEventsInput = {
  update: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutEventsInput, Prisma.ScannerSessionUncheckedUpdateWithoutEventsInput>
  create: Prisma.XOR<Prisma.ScannerSessionCreateWithoutEventsInput, Prisma.ScannerSessionUncheckedCreateWithoutEventsInput>
  where?: Prisma.ScannerSessionWhereInput
}

export type ScannerSessionUpdateToOneWithWhereWithoutEventsInput = {
  where?: Prisma.ScannerSessionWhereInput
  data: Prisma.XOR<Prisma.ScannerSessionUpdateWithoutEventsInput, Prisma.ScannerSessionUncheckedUpdateWithoutEventsInput>
}

export type ScannerSessionUpdateWithoutEventsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutScannerSessionsNestedInput
  category?: Prisma.CategoryUpdateOneRequiredWithoutScannerSessionsNestedInput
  files?: Prisma.ScannerSessionFileUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionUncheckedUpdateWithoutEventsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  categoryId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  files?: Prisma.ScannerSessionFileUncheckedUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUncheckedUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionCreateManyUserInput = {
  id?: string
  categoryId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ScannerSessionUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  category?: Prisma.CategoryUpdateOneRequiredWithoutScannerSessionsNestedInput
  files?: Prisma.ScannerSessionFileUpdateManyWithoutSessionNestedInput
  events?: Prisma.ScannerSessionEventUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  categoryId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  files?: Prisma.ScannerSessionFileUncheckedUpdateManyWithoutSessionNestedInput
  events?: Prisma.ScannerSessionEventUncheckedUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUncheckedUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  categoryId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionCreateManyCategoryInput = {
  id?: string
  userId: string
  folderPath: string
  customFields: string
  status?: $Enums.ScannerSessionStatus
  startedAt?: Date | string
  finishedAt?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ScannerSessionUpdateWithoutCategoryInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutScannerSessionsNestedInput
  files?: Prisma.ScannerSessionFileUpdateManyWithoutSessionNestedInput
  events?: Prisma.ScannerSessionEventUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionUncheckedUpdateWithoutCategoryInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  files?: Prisma.ScannerSessionFileUncheckedUpdateManyWithoutSessionNestedInput
  events?: Prisma.ScannerSessionEventUncheckedUpdateManyWithoutSessionNestedInput
  locks?: Prisma.ScannerSessionLockUncheckedUpdateManyWithoutSessionNestedInput
}

export type ScannerSessionUncheckedUpdateManyWithoutCategoryInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  folderPath?: Prisma.StringFieldUpdateOperationsInput | string
  customFields?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumScannerSessionStatusFieldUpdateOperationsInput | $Enums.ScannerSessionStatus
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type ScannerSessionCountOutputType
 */

export type ScannerSessionCountOutputType = {
  files: number
  events: number
  locks: number
}

export type ScannerSessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  files?: boolean | ScannerSessionCountOutputTypeCountFilesArgs
  events?: boolean | ScannerSessionCountOutputTypeCountEventsArgs
  locks?: boolean | ScannerSessionCountOutputTypeCountLocksArgs
}

/**
 * ScannerSessionCountOutputType without action
 */
export type ScannerSessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionCountOutputType
   */
  select?: Prisma.ScannerSessionCountOutputTypeSelect<ExtArgs> | null
}

/**
 * ScannerSessionCountOutputType without action
 */
export type ScannerSessionCountOutputTypeCountFilesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ScannerSessionFileWhereInput
}

/**
 * ScannerSessionCountOutputType without action
 */
export type ScannerSessionCountOutputTypeCountEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ScannerSessionEventWhereInput
}

/**
 * ScannerSessionCountOutputType without action
 */
export type ScannerSessionCountOutputTypeCountLocksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ScannerSessionLockWhereInput
}


export type ScannerSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  categoryId?: boolean
  folderPath?: boolean
  customFields?: boolean
  status?: boolean
  startedAt?: boolean
  finishedAt?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  category?: boolean | Prisma.CategoryDefaultArgs<ExtArgs>
  files?: boolean | Prisma.ScannerSession$filesArgs<ExtArgs>
  events?: boolean | Prisma.ScannerSession$eventsArgs<ExtArgs>
  locks?: boolean | Prisma.ScannerSession$locksArgs<ExtArgs>
  _count?: boolean | Prisma.ScannerSessionCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["scannerSession"]>



export type ScannerSessionSelectScalar = {
  id?: boolean
  userId?: boolean
  categoryId?: boolean
  folderPath?: boolean
  customFields?: boolean
  status?: boolean
  startedAt?: boolean
  finishedAt?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type ScannerSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "categoryId" | "folderPath" | "customFields" | "status" | "startedAt" | "finishedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["scannerSession"]>
export type ScannerSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  category?: boolean | Prisma.CategoryDefaultArgs<ExtArgs>
  files?: boolean | Prisma.ScannerSession$filesArgs<ExtArgs>
  events?: boolean | Prisma.ScannerSession$eventsArgs<ExtArgs>
  locks?: boolean | Prisma.ScannerSession$locksArgs<ExtArgs>
  _count?: boolean | Prisma.ScannerSessionCountOutputTypeDefaultArgs<ExtArgs>
}

export type $ScannerSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ScannerSession"
  objects: {
    user: Prisma.$UserPayload<ExtArgs>
    category: Prisma.$CategoryPayload<ExtArgs>
    files: Prisma.$ScannerSessionFilePayload<ExtArgs>[]
    events: Prisma.$ScannerSessionEventPayload<ExtArgs>[]
    locks: Prisma.$ScannerSessionLockPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    userId: string
    categoryId: string
    folderPath: string
    customFields: string
    status: $Enums.ScannerSessionStatus
    startedAt: Date
    finishedAt: Date | null
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["scannerSession"]>
  composites: {}
}

export type ScannerSessionGetPayload<S extends boolean | null | undefined | ScannerSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ScannerSessionPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for ScannerSession.
 * 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__ScannerSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  category<T extends Prisma.CategoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CategoryDefaultArgs<ExtArgs>>): Prisma.Prisma__CategoryClient<runtime.Types.Result.GetResult<Prisma.$CategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  files<T extends Prisma.ScannerSession$filesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ScannerSession$filesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ScannerSessionFilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  events<T extends Prisma.ScannerSession$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ScannerSession$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ScannerSessionEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  locks<T extends Prisma.ScannerSession$locksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ScannerSession$locksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ScannerSessionLockPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * 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 ScannerSession model
 */
export interface ScannerSessionFieldRefs {
  readonly id: Prisma.FieldRef<"ScannerSession", 'String'>
  readonly userId: Prisma.FieldRef<"ScannerSession", 'String'>
  readonly categoryId: Prisma.FieldRef<"ScannerSession", 'String'>
  readonly folderPath: Prisma.FieldRef<"ScannerSession", 'String'>
  readonly customFields: Prisma.FieldRef<"ScannerSession", 'String'>
  readonly status: Prisma.FieldRef<"ScannerSession", 'ScannerSessionStatus'>
  readonly startedAt: Prisma.FieldRef<"ScannerSession", 'DateTime'>
  readonly finishedAt: Prisma.FieldRef<"ScannerSession", 'DateTime'>
  readonly createdAt: Prisma.FieldRef<"ScannerSession", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"ScannerSession", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ScannerSession findUnique
 */
export type ScannerSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSession
   */
  select?: Prisma.ScannerSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSession
   */
  omit?: Prisma.ScannerSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionInclude<ExtArgs> | null
  /**
   * Filter, which ScannerSession to fetch.
   */
  where: Prisma.ScannerSessionWhereUniqueInput
}

/**
 * ScannerSession findUniqueOrThrow
 */
export type ScannerSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSession
   */
  select?: Prisma.ScannerSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSession
   */
  omit?: Prisma.ScannerSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionInclude<ExtArgs> | null
  /**
   * Filter, which ScannerSession to fetch.
   */
  where: Prisma.ScannerSessionWhereUniqueInput
}

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

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

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

/**
 * ScannerSession create
 */
export type ScannerSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSession
   */
  select?: Prisma.ScannerSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSession
   */
  omit?: Prisma.ScannerSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionInclude<ExtArgs> | null
  /**
   * The data needed to create a ScannerSession.
   */
  data: Prisma.XOR<Prisma.ScannerSessionCreateInput, Prisma.ScannerSessionUncheckedCreateInput>
}

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

/**
 * ScannerSession update
 */
export type ScannerSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSession
   */
  select?: Prisma.ScannerSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSession
   */
  omit?: Prisma.ScannerSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionInclude<ExtArgs> | null
  /**
   * The data needed to update a ScannerSession.
   */
  data: Prisma.XOR<Prisma.ScannerSessionUpdateInput, Prisma.ScannerSessionUncheckedUpdateInput>
  /**
   * Choose, which ScannerSession to update.
   */
  where: Prisma.ScannerSessionWhereUniqueInput
}

/**
 * ScannerSession updateMany
 */
export type ScannerSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ScannerSessions.
   */
  data: Prisma.XOR<Prisma.ScannerSessionUpdateManyMutationInput, Prisma.ScannerSessionUncheckedUpdateManyInput>
  /**
   * Filter which ScannerSessions to update
   */
  where?: Prisma.ScannerSessionWhereInput
  /**
   * Limit how many ScannerSessions to update.
   */
  limit?: number
}

/**
 * ScannerSession upsert
 */
export type ScannerSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSession
   */
  select?: Prisma.ScannerSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSession
   */
  omit?: Prisma.ScannerSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionInclude<ExtArgs> | null
  /**
   * The filter to search for the ScannerSession to update in case it exists.
   */
  where: Prisma.ScannerSessionWhereUniqueInput
  /**
   * In case the ScannerSession found by the `where` argument doesn't exist, create a new ScannerSession with this data.
   */
  create: Prisma.XOR<Prisma.ScannerSessionCreateInput, Prisma.ScannerSessionUncheckedCreateInput>
  /**
   * In case the ScannerSession was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ScannerSessionUpdateInput, Prisma.ScannerSessionUncheckedUpdateInput>
}

/**
 * ScannerSession delete
 */
export type ScannerSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSession
   */
  select?: Prisma.ScannerSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSession
   */
  omit?: Prisma.ScannerSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionInclude<ExtArgs> | null
  /**
   * Filter which ScannerSession to delete.
   */
  where: Prisma.ScannerSessionWhereUniqueInput
}

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

/**
 * ScannerSession.files
 */
export type ScannerSession$filesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionFile
   */
  select?: Prisma.ScannerSessionFileSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionFile
   */
  omit?: Prisma.ScannerSessionFileOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionFileInclude<ExtArgs> | null
  where?: Prisma.ScannerSessionFileWhereInput
  orderBy?: Prisma.ScannerSessionFileOrderByWithRelationInput | Prisma.ScannerSessionFileOrderByWithRelationInput[]
  cursor?: Prisma.ScannerSessionFileWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ScannerSessionFileScalarFieldEnum | Prisma.ScannerSessionFileScalarFieldEnum[]
}

/**
 * ScannerSession.events
 */
export type ScannerSession$eventsArgs<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
  where?: Prisma.ScannerSessionEventWhereInput
  orderBy?: Prisma.ScannerSessionEventOrderByWithRelationInput | Prisma.ScannerSessionEventOrderByWithRelationInput[]
  cursor?: Prisma.ScannerSessionEventWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ScannerSessionEventScalarFieldEnum | Prisma.ScannerSessionEventScalarFieldEnum[]
}

/**
 * ScannerSession.locks
 */
export type ScannerSession$locksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ScannerSessionLock
   */
  select?: Prisma.ScannerSessionLockSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ScannerSessionLock
   */
  omit?: Prisma.ScannerSessionLockOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ScannerSessionLockInclude<ExtArgs> | null
  where?: Prisma.ScannerSessionLockWhereInput
  orderBy?: Prisma.ScannerSessionLockOrderByWithRelationInput | Prisma.ScannerSessionLockOrderByWithRelationInput[]
  cursor?: Prisma.ScannerSessionLockWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ScannerSessionLockScalarFieldEnum | Prisma.ScannerSessionLockScalarFieldEnum[]
}

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