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

export type AggregateAutologin = {
  _count: AutologinCountAggregateOutputType | null
  _avg: AutologinAvgAggregateOutputType | null
  _sum: AutologinSumAggregateOutputType | null
  _min: AutologinMinAggregateOutputType | null
  _max: AutologinMaxAggregateOutputType | null
}

export type AutologinAvgAggregateOutputType = {
  id: number | null
  staff: number | null
}

export type AutologinSumAggregateOutputType = {
  id: number | null
  staff: number | null
}

export type AutologinMinAggregateOutputType = {
  id: number | null
  token: string | null
  date: string | null
  staff: number | null
}

export type AutologinMaxAggregateOutputType = {
  id: number | null
  token: string | null
  date: string | null
  staff: number | null
}

export type AutologinCountAggregateOutputType = {
  id: number
  token: number
  date: number
  staff: number
  _all: number
}


export type AutologinAvgAggregateInputType = {
  id?: true
  staff?: true
}

export type AutologinSumAggregateInputType = {
  id?: true
  staff?: true
}

export type AutologinMinAggregateInputType = {
  id?: true
  token?: true
  date?: true
  staff?: true
}

export type AutologinMaxAggregateInputType = {
  id?: true
  token?: true
  date?: true
  staff?: true
}

export type AutologinCountAggregateInputType = {
  id?: true
  token?: true
  date?: true
  staff?: true
  _all?: true
}

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

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




export type autologinGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.autologinWhereInput
  orderBy?: Prisma.autologinOrderByWithAggregationInput | Prisma.autologinOrderByWithAggregationInput[]
  by: Prisma.AutologinScalarFieldEnum[] | Prisma.AutologinScalarFieldEnum
  having?: Prisma.autologinScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: AutologinCountAggregateInputType | true
  _avg?: AutologinAvgAggregateInputType
  _sum?: AutologinSumAggregateInputType
  _min?: AutologinMinAggregateInputType
  _max?: AutologinMaxAggregateInputType
}

export type AutologinGroupByOutputType = {
  id: number
  token: string
  date: string
  staff: number
  _count: AutologinCountAggregateOutputType | null
  _avg: AutologinAvgAggregateOutputType | null
  _sum: AutologinSumAggregateOutputType | null
  _min: AutologinMinAggregateOutputType | null
  _max: AutologinMaxAggregateOutputType | null
}

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



export type autologinWhereInput = {
  AND?: Prisma.autologinWhereInput | Prisma.autologinWhereInput[]
  OR?: Prisma.autologinWhereInput[]
  NOT?: Prisma.autologinWhereInput | Prisma.autologinWhereInput[]
  id?: Prisma.IntFilter<"autologin"> | number
  token?: Prisma.StringFilter<"autologin"> | string
  date?: Prisma.StringFilter<"autologin"> | string
  staff?: Prisma.IntFilter<"autologin"> | number
}

export type autologinOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  date?: Prisma.SortOrder
  staff?: Prisma.SortOrder
  _relevance?: Prisma.autologinOrderByRelevanceInput
}

export type autologinWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.autologinWhereInput | Prisma.autologinWhereInput[]
  OR?: Prisma.autologinWhereInput[]
  NOT?: Prisma.autologinWhereInput | Prisma.autologinWhereInput[]
  token?: Prisma.StringFilter<"autologin"> | string
  date?: Prisma.StringFilter<"autologin"> | string
  staff?: Prisma.IntFilter<"autologin"> | number
}, "id">

export type autologinOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  date?: Prisma.SortOrder
  staff?: Prisma.SortOrder
  _count?: Prisma.autologinCountOrderByAggregateInput
  _avg?: Prisma.autologinAvgOrderByAggregateInput
  _max?: Prisma.autologinMaxOrderByAggregateInput
  _min?: Prisma.autologinMinOrderByAggregateInput
  _sum?: Prisma.autologinSumOrderByAggregateInput
}

export type autologinScalarWhereWithAggregatesInput = {
  AND?: Prisma.autologinScalarWhereWithAggregatesInput | Prisma.autologinScalarWhereWithAggregatesInput[]
  OR?: Prisma.autologinScalarWhereWithAggregatesInput[]
  NOT?: Prisma.autologinScalarWhereWithAggregatesInput | Prisma.autologinScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"autologin"> | number
  token?: Prisma.StringWithAggregatesFilter<"autologin"> | string
  date?: Prisma.StringWithAggregatesFilter<"autologin"> | string
  staff?: Prisma.IntWithAggregatesFilter<"autologin"> | number
}

export type autologinCreateInput = {
  token: string
  date: string
  staff: number
}

export type autologinUncheckedCreateInput = {
  id?: number
  token: string
  date: string
  staff: number
}

export type autologinUpdateInput = {
  token?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  staff?: Prisma.IntFieldUpdateOperationsInput | number
}

export type autologinUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  token?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  staff?: Prisma.IntFieldUpdateOperationsInput | number
}

export type autologinCreateManyInput = {
  id?: number
  token: string
  date: string
  staff: number
}

export type autologinUpdateManyMutationInput = {
  token?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  staff?: Prisma.IntFieldUpdateOperationsInput | number
}

export type autologinUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  token?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  staff?: Prisma.IntFieldUpdateOperationsInput | number
}

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

export type autologinCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  date?: Prisma.SortOrder
  staff?: Prisma.SortOrder
}

export type autologinAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  staff?: Prisma.SortOrder
}

export type autologinMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  date?: Prisma.SortOrder
  staff?: Prisma.SortOrder
}

export type autologinMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  date?: Prisma.SortOrder
  staff?: Prisma.SortOrder
}

export type autologinSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  staff?: Prisma.SortOrder
}



export type autologinSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  token?: boolean
  date?: boolean
  staff?: boolean
}, ExtArgs["result"]["autologin"]>



export type autologinSelectScalar = {
  id?: boolean
  token?: boolean
  date?: boolean
  staff?: boolean
}

export type autologinOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "token" | "date" | "staff", ExtArgs["result"]["autologin"]>

export type $autologinPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "autologin"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    token: string
    date: string
    staff: number
  }, ExtArgs["result"]["autologin"]>
  composites: {}
}

export type autologinGetPayload<S extends boolean | null | undefined | autologinDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$autologinPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for autologin.
 * 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__autologinClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the autologin model
 */
export interface autologinFieldRefs {
  readonly id: Prisma.FieldRef<"autologin", 'Int'>
  readonly token: Prisma.FieldRef<"autologin", 'String'>
  readonly date: Prisma.FieldRef<"autologin", 'String'>
  readonly staff: Prisma.FieldRef<"autologin", 'Int'>
}
    

// Custom InputTypes
/**
 * autologin findUnique
 */
export type autologinFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the autologin
   */
  select?: Prisma.autologinSelect<ExtArgs> | null
  /**
   * Omit specific fields from the autologin
   */
  omit?: Prisma.autologinOmit<ExtArgs> | null
  /**
   * Filter, which autologin to fetch.
   */
  where: Prisma.autologinWhereUniqueInput
}

/**
 * autologin findUniqueOrThrow
 */
export type autologinFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the autologin
   */
  select?: Prisma.autologinSelect<ExtArgs> | null
  /**
   * Omit specific fields from the autologin
   */
  omit?: Prisma.autologinOmit<ExtArgs> | null
  /**
   * Filter, which autologin to fetch.
   */
  where: Prisma.autologinWhereUniqueInput
}

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

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

/**
 * autologin findMany
 */
export type autologinFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the autologin
   */
  select?: Prisma.autologinSelect<ExtArgs> | null
  /**
   * Omit specific fields from the autologin
   */
  omit?: Prisma.autologinOmit<ExtArgs> | null
  /**
   * Filter, which autologins to fetch.
   */
  where?: Prisma.autologinWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of autologins to fetch.
   */
  orderBy?: Prisma.autologinOrderByWithRelationInput | Prisma.autologinOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing autologins.
   */
  cursor?: Prisma.autologinWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` autologins 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` autologins.
   */
  skip?: number
  distinct?: Prisma.AutologinScalarFieldEnum | Prisma.AutologinScalarFieldEnum[]
}

/**
 * autologin create
 */
export type autologinCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the autologin
   */
  select?: Prisma.autologinSelect<ExtArgs> | null
  /**
   * Omit specific fields from the autologin
   */
  omit?: Prisma.autologinOmit<ExtArgs> | null
  /**
   * The data needed to create a autologin.
   */
  data: Prisma.XOR<Prisma.autologinCreateInput, Prisma.autologinUncheckedCreateInput>
}

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

/**
 * autologin update
 */
export type autologinUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the autologin
   */
  select?: Prisma.autologinSelect<ExtArgs> | null
  /**
   * Omit specific fields from the autologin
   */
  omit?: Prisma.autologinOmit<ExtArgs> | null
  /**
   * The data needed to update a autologin.
   */
  data: Prisma.XOR<Prisma.autologinUpdateInput, Prisma.autologinUncheckedUpdateInput>
  /**
   * Choose, which autologin to update.
   */
  where: Prisma.autologinWhereUniqueInput
}

/**
 * autologin updateMany
 */
export type autologinUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update autologins.
   */
  data: Prisma.XOR<Prisma.autologinUpdateManyMutationInput, Prisma.autologinUncheckedUpdateManyInput>
  /**
   * Filter which autologins to update
   */
  where?: Prisma.autologinWhereInput
  /**
   * Limit how many autologins to update.
   */
  limit?: number
}

/**
 * autologin upsert
 */
export type autologinUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the autologin
   */
  select?: Prisma.autologinSelect<ExtArgs> | null
  /**
   * Omit specific fields from the autologin
   */
  omit?: Prisma.autologinOmit<ExtArgs> | null
  /**
   * The filter to search for the autologin to update in case it exists.
   */
  where: Prisma.autologinWhereUniqueInput
  /**
   * In case the autologin found by the `where` argument doesn't exist, create a new autologin with this data.
   */
  create: Prisma.XOR<Prisma.autologinCreateInput, Prisma.autologinUncheckedCreateInput>
  /**
   * In case the autologin was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.autologinUpdateInput, Prisma.autologinUncheckedUpdateInput>
}

/**
 * autologin delete
 */
export type autologinDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the autologin
   */
  select?: Prisma.autologinSelect<ExtArgs> | null
  /**
   * Omit specific fields from the autologin
   */
  omit?: Prisma.autologinOmit<ExtArgs> | null
  /**
   * Filter which autologin to delete.
   */
  where: Prisma.autologinWhereUniqueInput
}

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

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