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

export type AggregateScannerSessionLock = {
  _count: ScannerSessionLockCountAggregateOutputType | null
  _min: ScannerSessionLockMinAggregateOutputType | null
  _max: ScannerSessionLockMaxAggregateOutputType | null
}

export type ScannerSessionLockMinAggregateOutputType = {
  id: string | null
  lockKey: string | null
  sessionId: string | null
  createdAt: Date | null
}

export type ScannerSessionLockMaxAggregateOutputType = {
  id: string | null
  lockKey: string | null
  sessionId: string | null
  createdAt: Date | null
}

export type ScannerSessionLockCountAggregateOutputType = {
  id: number
  lockKey: number
  sessionId: number
  createdAt: number
  _all: number
}


export type ScannerSessionLockMinAggregateInputType = {
  id?: true
  lockKey?: true
  sessionId?: true
  createdAt?: true
}

export type ScannerSessionLockMaxAggregateInputType = {
  id?: true
  lockKey?: true
  sessionId?: true
  createdAt?: true
}

export type ScannerSessionLockCountAggregateInputType = {
  id?: true
  lockKey?: true
  sessionId?: true
  createdAt?: true
  _all?: true
}

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

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




export type ScannerSessionLockGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ScannerSessionLockWhereInput
  orderBy?: Prisma.ScannerSessionLockOrderByWithAggregationInput | Prisma.ScannerSessionLockOrderByWithAggregationInput[]
  by: Prisma.ScannerSessionLockScalarFieldEnum[] | Prisma.ScannerSessionLockScalarFieldEnum
  having?: Prisma.ScannerSessionLockScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ScannerSessionLockCountAggregateInputType | true
  _min?: ScannerSessionLockMinAggregateInputType
  _max?: ScannerSessionLockMaxAggregateInputType
}

export type ScannerSessionLockGroupByOutputType = {
  id: string
  lockKey: string
  sessionId: string
  createdAt: Date
  _count: ScannerSessionLockCountAggregateOutputType | null
  _min: ScannerSessionLockMinAggregateOutputType | null
  _max: ScannerSessionLockMaxAggregateOutputType | null
}

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



export type ScannerSessionLockWhereInput = {
  AND?: Prisma.ScannerSessionLockWhereInput | Prisma.ScannerSessionLockWhereInput[]
  OR?: Prisma.ScannerSessionLockWhereInput[]
  NOT?: Prisma.ScannerSessionLockWhereInput | Prisma.ScannerSessionLockWhereInput[]
  id?: Prisma.StringFilter<"ScannerSessionLock"> | string
  lockKey?: Prisma.StringFilter<"ScannerSessionLock"> | string
  sessionId?: Prisma.StringFilter<"ScannerSessionLock"> | string
  createdAt?: Prisma.DateTimeFilter<"ScannerSessionLock"> | Date | string
  session?: Prisma.XOR<Prisma.ScannerSessionScalarRelationFilter, Prisma.ScannerSessionWhereInput>
}

export type ScannerSessionLockOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  lockKey?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  session?: Prisma.ScannerSessionOrderByWithRelationInput
  _relevance?: Prisma.ScannerSessionLockOrderByRelevanceInput
}

export type ScannerSessionLockWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  lockKey?: string
  AND?: Prisma.ScannerSessionLockWhereInput | Prisma.ScannerSessionLockWhereInput[]
  OR?: Prisma.ScannerSessionLockWhereInput[]
  NOT?: Prisma.ScannerSessionLockWhereInput | Prisma.ScannerSessionLockWhereInput[]
  sessionId?: Prisma.StringFilter<"ScannerSessionLock"> | string
  createdAt?: Prisma.DateTimeFilter<"ScannerSessionLock"> | Date | string
  session?: Prisma.XOR<Prisma.ScannerSessionScalarRelationFilter, Prisma.ScannerSessionWhereInput>
}, "id" | "lockKey">

export type ScannerSessionLockOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  lockKey?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.ScannerSessionLockCountOrderByAggregateInput
  _max?: Prisma.ScannerSessionLockMaxOrderByAggregateInput
  _min?: Prisma.ScannerSessionLockMinOrderByAggregateInput
}

export type ScannerSessionLockScalarWhereWithAggregatesInput = {
  AND?: Prisma.ScannerSessionLockScalarWhereWithAggregatesInput | Prisma.ScannerSessionLockScalarWhereWithAggregatesInput[]
  OR?: Prisma.ScannerSessionLockScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ScannerSessionLockScalarWhereWithAggregatesInput | Prisma.ScannerSessionLockScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ScannerSessionLock"> | string
  lockKey?: Prisma.StringWithAggregatesFilter<"ScannerSessionLock"> | string
  sessionId?: Prisma.StringWithAggregatesFilter<"ScannerSessionLock"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ScannerSessionLock"> | Date | string
}

export type ScannerSessionLockCreateInput = {
  id?: string
  lockKey: string
  createdAt?: Date | string
  session: Prisma.ScannerSessionCreateNestedOneWithoutLocksInput
}

export type ScannerSessionLockUncheckedCreateInput = {
  id?: string
  lockKey: string
  sessionId: string
  createdAt?: Date | string
}

export type ScannerSessionLockUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lockKey?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  session?: Prisma.ScannerSessionUpdateOneRequiredWithoutLocksNestedInput
}

export type ScannerSessionLockUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lockKey?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionLockCreateManyInput = {
  id?: string
  lockKey: string
  sessionId: string
  createdAt?: Date | string
}

export type ScannerSessionLockUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lockKey?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionLockUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lockKey?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionLockListRelationFilter = {
  every?: Prisma.ScannerSessionLockWhereInput
  some?: Prisma.ScannerSessionLockWhereInput
  none?: Prisma.ScannerSessionLockWhereInput
}

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

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

export type ScannerSessionLockCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  lockKey?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ScannerSessionLockMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  lockKey?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ScannerSessionLockMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  lockKey?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ScannerSessionLockCreateNestedManyWithoutSessionInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionLockCreateWithoutSessionInput, Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput> | Prisma.ScannerSessionLockCreateWithoutSessionInput[] | Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput[]
  connectOrCreate?: Prisma.ScannerSessionLockCreateOrConnectWithoutSessionInput | Prisma.ScannerSessionLockCreateOrConnectWithoutSessionInput[]
  createMany?: Prisma.ScannerSessionLockCreateManySessionInputEnvelope
  connect?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
}

export type ScannerSessionLockUncheckedCreateNestedManyWithoutSessionInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionLockCreateWithoutSessionInput, Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput> | Prisma.ScannerSessionLockCreateWithoutSessionInput[] | Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput[]
  connectOrCreate?: Prisma.ScannerSessionLockCreateOrConnectWithoutSessionInput | Prisma.ScannerSessionLockCreateOrConnectWithoutSessionInput[]
  createMany?: Prisma.ScannerSessionLockCreateManySessionInputEnvelope
  connect?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
}

export type ScannerSessionLockUpdateManyWithoutSessionNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionLockCreateWithoutSessionInput, Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput> | Prisma.ScannerSessionLockCreateWithoutSessionInput[] | Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput[]
  connectOrCreate?: Prisma.ScannerSessionLockCreateOrConnectWithoutSessionInput | Prisma.ScannerSessionLockCreateOrConnectWithoutSessionInput[]
  upsert?: Prisma.ScannerSessionLockUpsertWithWhereUniqueWithoutSessionInput | Prisma.ScannerSessionLockUpsertWithWhereUniqueWithoutSessionInput[]
  createMany?: Prisma.ScannerSessionLockCreateManySessionInputEnvelope
  set?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
  disconnect?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
  delete?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
  connect?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
  update?: Prisma.ScannerSessionLockUpdateWithWhereUniqueWithoutSessionInput | Prisma.ScannerSessionLockUpdateWithWhereUniqueWithoutSessionInput[]
  updateMany?: Prisma.ScannerSessionLockUpdateManyWithWhereWithoutSessionInput | Prisma.ScannerSessionLockUpdateManyWithWhereWithoutSessionInput[]
  deleteMany?: Prisma.ScannerSessionLockScalarWhereInput | Prisma.ScannerSessionLockScalarWhereInput[]
}

export type ScannerSessionLockUncheckedUpdateManyWithoutSessionNestedInput = {
  create?: Prisma.XOR<Prisma.ScannerSessionLockCreateWithoutSessionInput, Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput> | Prisma.ScannerSessionLockCreateWithoutSessionInput[] | Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput[]
  connectOrCreate?: Prisma.ScannerSessionLockCreateOrConnectWithoutSessionInput | Prisma.ScannerSessionLockCreateOrConnectWithoutSessionInput[]
  upsert?: Prisma.ScannerSessionLockUpsertWithWhereUniqueWithoutSessionInput | Prisma.ScannerSessionLockUpsertWithWhereUniqueWithoutSessionInput[]
  createMany?: Prisma.ScannerSessionLockCreateManySessionInputEnvelope
  set?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
  disconnect?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
  delete?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
  connect?: Prisma.ScannerSessionLockWhereUniqueInput | Prisma.ScannerSessionLockWhereUniqueInput[]
  update?: Prisma.ScannerSessionLockUpdateWithWhereUniqueWithoutSessionInput | Prisma.ScannerSessionLockUpdateWithWhereUniqueWithoutSessionInput[]
  updateMany?: Prisma.ScannerSessionLockUpdateManyWithWhereWithoutSessionInput | Prisma.ScannerSessionLockUpdateManyWithWhereWithoutSessionInput[]
  deleteMany?: Prisma.ScannerSessionLockScalarWhereInput | Prisma.ScannerSessionLockScalarWhereInput[]
}

export type ScannerSessionLockCreateWithoutSessionInput = {
  id?: string
  lockKey: string
  createdAt?: Date | string
}

export type ScannerSessionLockUncheckedCreateWithoutSessionInput = {
  id?: string
  lockKey: string
  createdAt?: Date | string
}

export type ScannerSessionLockCreateOrConnectWithoutSessionInput = {
  where: Prisma.ScannerSessionLockWhereUniqueInput
  create: Prisma.XOR<Prisma.ScannerSessionLockCreateWithoutSessionInput, Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput>
}

export type ScannerSessionLockCreateManySessionInputEnvelope = {
  data: Prisma.ScannerSessionLockCreateManySessionInput | Prisma.ScannerSessionLockCreateManySessionInput[]
  skipDuplicates?: boolean
}

export type ScannerSessionLockUpsertWithWhereUniqueWithoutSessionInput = {
  where: Prisma.ScannerSessionLockWhereUniqueInput
  update: Prisma.XOR<Prisma.ScannerSessionLockUpdateWithoutSessionInput, Prisma.ScannerSessionLockUncheckedUpdateWithoutSessionInput>
  create: Prisma.XOR<Prisma.ScannerSessionLockCreateWithoutSessionInput, Prisma.ScannerSessionLockUncheckedCreateWithoutSessionInput>
}

export type ScannerSessionLockUpdateWithWhereUniqueWithoutSessionInput = {
  where: Prisma.ScannerSessionLockWhereUniqueInput
  data: Prisma.XOR<Prisma.ScannerSessionLockUpdateWithoutSessionInput, Prisma.ScannerSessionLockUncheckedUpdateWithoutSessionInput>
}

export type ScannerSessionLockUpdateManyWithWhereWithoutSessionInput = {
  where: Prisma.ScannerSessionLockScalarWhereInput
  data: Prisma.XOR<Prisma.ScannerSessionLockUpdateManyMutationInput, Prisma.ScannerSessionLockUncheckedUpdateManyWithoutSessionInput>
}

export type ScannerSessionLockScalarWhereInput = {
  AND?: Prisma.ScannerSessionLockScalarWhereInput | Prisma.ScannerSessionLockScalarWhereInput[]
  OR?: Prisma.ScannerSessionLockScalarWhereInput[]
  NOT?: Prisma.ScannerSessionLockScalarWhereInput | Prisma.ScannerSessionLockScalarWhereInput[]
  id?: Prisma.StringFilter<"ScannerSessionLock"> | string
  lockKey?: Prisma.StringFilter<"ScannerSessionLock"> | string
  sessionId?: Prisma.StringFilter<"ScannerSessionLock"> | string
  createdAt?: Prisma.DateTimeFilter<"ScannerSessionLock"> | Date | string
}

export type ScannerSessionLockCreateManySessionInput = {
  id?: string
  lockKey: string
  createdAt?: Date | string
}

export type ScannerSessionLockUpdateWithoutSessionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lockKey?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionLockUncheckedUpdateWithoutSessionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lockKey?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ScannerSessionLockUncheckedUpdateManyWithoutSessionInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  lockKey?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type ScannerSessionLockSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  lockKey?: boolean
  sessionId?: boolean
  createdAt?: boolean
  session?: boolean | Prisma.ScannerSessionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["scannerSessionLock"]>



export type ScannerSessionLockSelectScalar = {
  id?: boolean
  lockKey?: boolean
  sessionId?: boolean
  createdAt?: boolean
}

export type ScannerSessionLockOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "lockKey" | "sessionId" | "createdAt", ExtArgs["result"]["scannerSessionLock"]>
export type ScannerSessionLockInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  session?: boolean | Prisma.ScannerSessionDefaultArgs<ExtArgs>
}

export type $ScannerSessionLockPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ScannerSessionLock"
  objects: {
    session: Prisma.$ScannerSessionPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    lockKey: string
    sessionId: string
    createdAt: Date
  }, ExtArgs["result"]["scannerSessionLock"]>
  composites: {}
}

export type ScannerSessionLockGetPayload<S extends boolean | null | undefined | ScannerSessionLockDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ScannerSessionLockPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for ScannerSessionLock.
 * 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__ScannerSessionLockClient<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 ScannerSessionLock model
 */
export interface ScannerSessionLockFieldRefs {
  readonly id: Prisma.FieldRef<"ScannerSessionLock", 'String'>
  readonly lockKey: Prisma.FieldRef<"ScannerSessionLock", 'String'>
  readonly sessionId: Prisma.FieldRef<"ScannerSessionLock", 'String'>
  readonly createdAt: Prisma.FieldRef<"ScannerSessionLock", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ScannerSessionLock findUnique
 */
export type ScannerSessionLockFindUniqueArgs<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
  /**
   * Filter, which ScannerSessionLock to fetch.
   */
  where: Prisma.ScannerSessionLockWhereUniqueInput
}

/**
 * ScannerSessionLock findUniqueOrThrow
 */
export type ScannerSessionLockFindUniqueOrThrowArgs<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
  /**
   * Filter, which ScannerSessionLock to fetch.
   */
  where: Prisma.ScannerSessionLockWhereUniqueInput
}

/**
 * ScannerSessionLock findFirst
 */
export type ScannerSessionLockFindFirstArgs<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
  /**
   * Filter, which ScannerSessionLock to fetch.
   */
  where?: Prisma.ScannerSessionLockWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ScannerSessionLocks to fetch.
   */
  orderBy?: Prisma.ScannerSessionLockOrderByWithRelationInput | Prisma.ScannerSessionLockOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ScannerSessionLocks.
   */
  cursor?: Prisma.ScannerSessionLockWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ScannerSessionLocks 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` ScannerSessionLocks.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ScannerSessionLocks.
   */
  distinct?: Prisma.ScannerSessionLockScalarFieldEnum | Prisma.ScannerSessionLockScalarFieldEnum[]
}

/**
 * ScannerSessionLock findFirstOrThrow
 */
export type ScannerSessionLockFindFirstOrThrowArgs<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
  /**
   * Filter, which ScannerSessionLock to fetch.
   */
  where?: Prisma.ScannerSessionLockWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ScannerSessionLocks to fetch.
   */
  orderBy?: Prisma.ScannerSessionLockOrderByWithRelationInput | Prisma.ScannerSessionLockOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ScannerSessionLocks.
   */
  cursor?: Prisma.ScannerSessionLockWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ScannerSessionLocks 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` ScannerSessionLocks.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ScannerSessionLocks.
   */
  distinct?: Prisma.ScannerSessionLockScalarFieldEnum | Prisma.ScannerSessionLockScalarFieldEnum[]
}

/**
 * ScannerSessionLock findMany
 */
export type ScannerSessionLockFindManyArgs<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
  /**
   * Filter, which ScannerSessionLocks to fetch.
   */
  where?: Prisma.ScannerSessionLockWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ScannerSessionLocks to fetch.
   */
  orderBy?: Prisma.ScannerSessionLockOrderByWithRelationInput | Prisma.ScannerSessionLockOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing ScannerSessionLocks.
   */
  cursor?: Prisma.ScannerSessionLockWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ScannerSessionLocks 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` ScannerSessionLocks.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ScannerSessionLocks.
   */
  distinct?: Prisma.ScannerSessionLockScalarFieldEnum | Prisma.ScannerSessionLockScalarFieldEnum[]
}

/**
 * ScannerSessionLock create
 */
export type ScannerSessionLockCreateArgs<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
  /**
   * The data needed to create a ScannerSessionLock.
   */
  data: Prisma.XOR<Prisma.ScannerSessionLockCreateInput, Prisma.ScannerSessionLockUncheckedCreateInput>
}

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

/**
 * ScannerSessionLock update
 */
export type ScannerSessionLockUpdateArgs<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
  /**
   * The data needed to update a ScannerSessionLock.
   */
  data: Prisma.XOR<Prisma.ScannerSessionLockUpdateInput, Prisma.ScannerSessionLockUncheckedUpdateInput>
  /**
   * Choose, which ScannerSessionLock to update.
   */
  where: Prisma.ScannerSessionLockWhereUniqueInput
}

/**
 * ScannerSessionLock updateMany
 */
export type ScannerSessionLockUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ScannerSessionLocks.
   */
  data: Prisma.XOR<Prisma.ScannerSessionLockUpdateManyMutationInput, Prisma.ScannerSessionLockUncheckedUpdateManyInput>
  /**
   * Filter which ScannerSessionLocks to update
   */
  where?: Prisma.ScannerSessionLockWhereInput
  /**
   * Limit how many ScannerSessionLocks to update.
   */
  limit?: number
}

/**
 * ScannerSessionLock upsert
 */
export type ScannerSessionLockUpsertArgs<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
  /**
   * The filter to search for the ScannerSessionLock to update in case it exists.
   */
  where: Prisma.ScannerSessionLockWhereUniqueInput
  /**
   * In case the ScannerSessionLock found by the `where` argument doesn't exist, create a new ScannerSessionLock with this data.
   */
  create: Prisma.XOR<Prisma.ScannerSessionLockCreateInput, Prisma.ScannerSessionLockUncheckedCreateInput>
  /**
   * In case the ScannerSessionLock was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ScannerSessionLockUpdateInput, Prisma.ScannerSessionLockUncheckedUpdateInput>
}

/**
 * ScannerSessionLock delete
 */
export type ScannerSessionLockDeleteArgs<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
  /**
   * Filter which ScannerSessionLock to delete.
   */
  where: Prisma.ScannerSessionLockWhereUniqueInput
}

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

/**
 * ScannerSessionLock without action
 */
export type ScannerSessionLockDefaultArgs<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
}
