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

export type AggregateToken = {
  _count: TokenCountAggregateOutputType | null
  _min: TokenMinAggregateOutputType | null
  _max: TokenMaxAggregateOutputType | null
}

export type TokenMinAggregateOutputType = {
  id: string | null
  userId: string | null
  refreshToken: string | null
  userAgent: string | null
  expiresAt: Date | null
}

export type TokenMaxAggregateOutputType = {
  id: string | null
  userId: string | null
  refreshToken: string | null
  userAgent: string | null
  expiresAt: Date | null
}

export type TokenCountAggregateOutputType = {
  id: number
  userId: number
  refreshToken: number
  userAgent: number
  expiresAt: number
  _all: number
}


export type TokenMinAggregateInputType = {
  id?: true
  userId?: true
  refreshToken?: true
  userAgent?: true
  expiresAt?: true
}

export type TokenMaxAggregateInputType = {
  id?: true
  userId?: true
  refreshToken?: true
  userAgent?: true
  expiresAt?: true
}

export type TokenCountAggregateInputType = {
  id?: true
  userId?: true
  refreshToken?: true
  userAgent?: true
  expiresAt?: true
  _all?: true
}

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

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




export type tokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.tokenWhereInput
  orderBy?: Prisma.tokenOrderByWithAggregationInput | Prisma.tokenOrderByWithAggregationInput[]
  by: Prisma.TokenScalarFieldEnum[] | Prisma.TokenScalarFieldEnum
  having?: Prisma.tokenScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TokenCountAggregateInputType | true
  _min?: TokenMinAggregateInputType
  _max?: TokenMaxAggregateInputType
}

export type TokenGroupByOutputType = {
  id: string
  userId: string
  refreshToken: string
  userAgent: string | null
  expiresAt: Date
  _count: TokenCountAggregateOutputType | null
  _min: TokenMinAggregateOutputType | null
  _max: TokenMaxAggregateOutputType | null
}

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



export type tokenWhereInput = {
  AND?: Prisma.tokenWhereInput | Prisma.tokenWhereInput[]
  OR?: Prisma.tokenWhereInput[]
  NOT?: Prisma.tokenWhereInput | Prisma.tokenWhereInput[]
  id?: Prisma.StringFilter<"token"> | string
  userId?: Prisma.StringFilter<"token"> | string
  refreshToken?: Prisma.StringFilter<"token"> | string
  userAgent?: Prisma.StringNullableFilter<"token"> | string | null
  expiresAt?: Prisma.DateTimeFilter<"token"> | Date | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.userWhereInput>
}

export type tokenOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  refreshToken?: Prisma.SortOrder
  userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  user?: Prisma.userOrderByWithRelationInput
}

export type tokenWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  refreshToken?: string
  AND?: Prisma.tokenWhereInput | Prisma.tokenWhereInput[]
  OR?: Prisma.tokenWhereInput[]
  NOT?: Prisma.tokenWhereInput | Prisma.tokenWhereInput[]
  userId?: Prisma.StringFilter<"token"> | string
  userAgent?: Prisma.StringNullableFilter<"token"> | string | null
  expiresAt?: Prisma.DateTimeFilter<"token"> | Date | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.userWhereInput>
}, "id" | "refreshToken">

export type tokenOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  refreshToken?: Prisma.SortOrder
  userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  _count?: Prisma.tokenCountOrderByAggregateInput
  _max?: Prisma.tokenMaxOrderByAggregateInput
  _min?: Prisma.tokenMinOrderByAggregateInput
}

export type tokenScalarWhereWithAggregatesInput = {
  AND?: Prisma.tokenScalarWhereWithAggregatesInput | Prisma.tokenScalarWhereWithAggregatesInput[]
  OR?: Prisma.tokenScalarWhereWithAggregatesInput[]
  NOT?: Prisma.tokenScalarWhereWithAggregatesInput | Prisma.tokenScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"token"> | string
  userId?: Prisma.StringWithAggregatesFilter<"token"> | string
  refreshToken?: Prisma.StringWithAggregatesFilter<"token"> | string
  userAgent?: Prisma.StringNullableWithAggregatesFilter<"token"> | string | null
  expiresAt?: Prisma.DateTimeWithAggregatesFilter<"token"> | Date | string
}

export type tokenCreateInput = {
  id?: string
  refreshToken: string
  userAgent?: string | null
  expiresAt: Date | string
  user: Prisma.userCreateNestedOneWithoutTokensInput
}

export type tokenUncheckedCreateInput = {
  id?: string
  userId: string
  refreshToken: string
  userAgent?: string | null
  expiresAt: Date | string
}

export type tokenUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.userUpdateOneRequiredWithoutTokensNestedInput
}

export type tokenUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokenCreateManyInput = {
  id?: string
  userId: string
  refreshToken: string
  userAgent?: string | null
  expiresAt: Date | string
}

export type tokenUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokenUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokenCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  refreshToken?: Prisma.SortOrder
  userAgent?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
}

export type tokenMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  refreshToken?: Prisma.SortOrder
  userAgent?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
}

export type tokenMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  refreshToken?: Prisma.SortOrder
  userAgent?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
}

export type TokenListRelationFilter = {
  every?: Prisma.tokenWhereInput
  some?: Prisma.tokenWhereInput
  none?: Prisma.tokenWhereInput
}

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

export type StringFieldUpdateOperationsInput = {
  set?: string
}

export type NullableStringFieldUpdateOperationsInput = {
  set?: string | null
}

export type DateTimeFieldUpdateOperationsInput = {
  set?: Date | string
}

export type tokenCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.tokenCreateWithoutUserInput, Prisma.tokenUncheckedCreateWithoutUserInput> | Prisma.tokenCreateWithoutUserInput[] | Prisma.tokenUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.tokenCreateOrConnectWithoutUserInput | Prisma.tokenCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.tokenCreateManyUserInputEnvelope
  connect?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
}

export type tokenUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.tokenCreateWithoutUserInput, Prisma.tokenUncheckedCreateWithoutUserInput> | Prisma.tokenCreateWithoutUserInput[] | Prisma.tokenUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.tokenCreateOrConnectWithoutUserInput | Prisma.tokenCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.tokenCreateManyUserInputEnvelope
  connect?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
}

export type tokenUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.tokenCreateWithoutUserInput, Prisma.tokenUncheckedCreateWithoutUserInput> | Prisma.tokenCreateWithoutUserInput[] | Prisma.tokenUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.tokenCreateOrConnectWithoutUserInput | Prisma.tokenCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.tokenUpsertWithWhereUniqueWithoutUserInput | Prisma.tokenUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.tokenCreateManyUserInputEnvelope
  set?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
  disconnect?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
  delete?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
  connect?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
  update?: Prisma.tokenUpdateWithWhereUniqueWithoutUserInput | Prisma.tokenUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.tokenUpdateManyWithWhereWithoutUserInput | Prisma.tokenUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.tokenScalarWhereInput | Prisma.tokenScalarWhereInput[]
}

export type tokenUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.tokenCreateWithoutUserInput, Prisma.tokenUncheckedCreateWithoutUserInput> | Prisma.tokenCreateWithoutUserInput[] | Prisma.tokenUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.tokenCreateOrConnectWithoutUserInput | Prisma.tokenCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.tokenUpsertWithWhereUniqueWithoutUserInput | Prisma.tokenUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.tokenCreateManyUserInputEnvelope
  set?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
  disconnect?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
  delete?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
  connect?: Prisma.tokenWhereUniqueInput | Prisma.tokenWhereUniqueInput[]
  update?: Prisma.tokenUpdateWithWhereUniqueWithoutUserInput | Prisma.tokenUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.tokenUpdateManyWithWhereWithoutUserInput | Prisma.tokenUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.tokenScalarWhereInput | Prisma.tokenScalarWhereInput[]
}

export type tokenCreateWithoutUserInput = {
  id?: string
  refreshToken: string
  userAgent?: string | null
  expiresAt: Date | string
}

export type tokenUncheckedCreateWithoutUserInput = {
  id?: string
  refreshToken: string
  userAgent?: string | null
  expiresAt: Date | string
}

export type tokenCreateOrConnectWithoutUserInput = {
  where: Prisma.tokenWhereUniqueInput
  create: Prisma.XOR<Prisma.tokenCreateWithoutUserInput, Prisma.tokenUncheckedCreateWithoutUserInput>
}

export type tokenCreateManyUserInputEnvelope = {
  data: Prisma.tokenCreateManyUserInput | Prisma.tokenCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type tokenUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.tokenWhereUniqueInput
  update: Prisma.XOR<Prisma.tokenUpdateWithoutUserInput, Prisma.tokenUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.tokenCreateWithoutUserInput, Prisma.tokenUncheckedCreateWithoutUserInput>
}

export type tokenUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.tokenWhereUniqueInput
  data: Prisma.XOR<Prisma.tokenUpdateWithoutUserInput, Prisma.tokenUncheckedUpdateWithoutUserInput>
}

export type tokenUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.tokenScalarWhereInput
  data: Prisma.XOR<Prisma.tokenUpdateManyMutationInput, Prisma.tokenUncheckedUpdateManyWithoutUserInput>
}

export type tokenScalarWhereInput = {
  AND?: Prisma.tokenScalarWhereInput | Prisma.tokenScalarWhereInput[]
  OR?: Prisma.tokenScalarWhereInput[]
  NOT?: Prisma.tokenScalarWhereInput | Prisma.tokenScalarWhereInput[]
  id?: Prisma.StringFilter<"token"> | string
  userId?: Prisma.StringFilter<"token"> | string
  refreshToken?: Prisma.StringFilter<"token"> | string
  userAgent?: Prisma.StringNullableFilter<"token"> | string | null
  expiresAt?: Prisma.DateTimeFilter<"token"> | Date | string
}

export type tokenCreateManyUserInput = {
  id?: string
  refreshToken: string
  userAgent?: string | null
  expiresAt: Date | string
}

export type tokenUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokenUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokenUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type tokenSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  refreshToken?: boolean
  userAgent?: boolean
  expiresAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["token"]>

export type tokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  refreshToken?: boolean
  userAgent?: boolean
  expiresAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["token"]>

export type tokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  refreshToken?: boolean
  userAgent?: boolean
  expiresAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}, ExtArgs["result"]["token"]>

export type tokenSelectScalar = {
  id?: boolean
  userId?: boolean
  refreshToken?: boolean
  userAgent?: boolean
  expiresAt?: boolean
}

export type tokenOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "refreshToken" | "userAgent" | "expiresAt", ExtArgs["result"]["token"]>
export type tokenInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}
export type tokenIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}
export type tokenIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
}

export type $tokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "token"
  objects: {
    user: Prisma.$userPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    userId: string
    refreshToken: string
    userAgent: string | null
    expiresAt: Date
  }, ExtArgs["result"]["token"]>
  composites: {}
}

export type tokenGetPayload<S extends boolean | null | undefined | tokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tokenPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many Tokens and returns the data saved in the database.
   * @param {tokenCreateManyAndReturnArgs} args - Arguments to create many Tokens.
   * @example
   * // Create many Tokens
   * const token = await prisma.token.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Tokens and only return the `id`
   * const tokenWithIdOnly = await prisma.token.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends tokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, tokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more Tokens and returns the data updated in the database.
   * @param {tokenUpdateManyAndReturnArgs} args - Arguments to update many Tokens.
   * @example
   * // Update many Tokens
   * const token = await prisma.token.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Tokens and only return the `id`
   * const tokenWithIdOnly = await prisma.token.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends tokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, tokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for token.
 * 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__tokenClient<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>
  /**
   * 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 token model
 */
export interface tokenFieldRefs {
  readonly id: Prisma.FieldRef<"token", 'String'>
  readonly userId: Prisma.FieldRef<"token", 'String'>
  readonly refreshToken: Prisma.FieldRef<"token", 'String'>
  readonly userAgent: Prisma.FieldRef<"token", 'String'>
  readonly expiresAt: Prisma.FieldRef<"token", 'DateTime'>
}
    

// Custom InputTypes
/**
 * token findUnique
 */
export type tokenFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the token
   */
  select?: Prisma.tokenSelect<ExtArgs> | null
  /**
   * Omit specific fields from the token
   */
  omit?: Prisma.tokenOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokenInclude<ExtArgs> | null
  /**
   * Filter, which token to fetch.
   */
  where: Prisma.tokenWhereUniqueInput
}

/**
 * token findUniqueOrThrow
 */
export type tokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the token
   */
  select?: Prisma.tokenSelect<ExtArgs> | null
  /**
   * Omit specific fields from the token
   */
  omit?: Prisma.tokenOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokenInclude<ExtArgs> | null
  /**
   * Filter, which token to fetch.
   */
  where: Prisma.tokenWhereUniqueInput
}

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

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

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

/**
 * token create
 */
export type tokenCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the token
   */
  select?: Prisma.tokenSelect<ExtArgs> | null
  /**
   * Omit specific fields from the token
   */
  omit?: Prisma.tokenOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokenInclude<ExtArgs> | null
  /**
   * The data needed to create a token.
   */
  data: Prisma.XOR<Prisma.tokenCreateInput, Prisma.tokenUncheckedCreateInput>
}

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

/**
 * token createManyAndReturn
 */
export type tokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the token
   */
  select?: Prisma.tokenSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the token
   */
  omit?: Prisma.tokenOmit<ExtArgs> | null
  /**
   * The data used to create many tokens.
   */
  data: Prisma.tokenCreateManyInput | Prisma.tokenCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokenIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * token update
 */
export type tokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the token
   */
  select?: Prisma.tokenSelect<ExtArgs> | null
  /**
   * Omit specific fields from the token
   */
  omit?: Prisma.tokenOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokenInclude<ExtArgs> | null
  /**
   * The data needed to update a token.
   */
  data: Prisma.XOR<Prisma.tokenUpdateInput, Prisma.tokenUncheckedUpdateInput>
  /**
   * Choose, which token to update.
   */
  where: Prisma.tokenWhereUniqueInput
}

/**
 * token updateMany
 */
export type tokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update tokens.
   */
  data: Prisma.XOR<Prisma.tokenUpdateManyMutationInput, Prisma.tokenUncheckedUpdateManyInput>
  /**
   * Filter which tokens to update
   */
  where?: Prisma.tokenWhereInput
  /**
   * Limit how many tokens to update.
   */
  limit?: number
}

/**
 * token updateManyAndReturn
 */
export type tokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the token
   */
  select?: Prisma.tokenSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the token
   */
  omit?: Prisma.tokenOmit<ExtArgs> | null
  /**
   * The data used to update tokens.
   */
  data: Prisma.XOR<Prisma.tokenUpdateManyMutationInput, Prisma.tokenUncheckedUpdateManyInput>
  /**
   * Filter which tokens to update
   */
  where?: Prisma.tokenWhereInput
  /**
   * Limit how many tokens to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokenIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * token upsert
 */
export type tokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the token
   */
  select?: Prisma.tokenSelect<ExtArgs> | null
  /**
   * Omit specific fields from the token
   */
  omit?: Prisma.tokenOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokenInclude<ExtArgs> | null
  /**
   * The filter to search for the token to update in case it exists.
   */
  where: Prisma.tokenWhereUniqueInput
  /**
   * In case the token found by the `where` argument doesn't exist, create a new token with this data.
   */
  create: Prisma.XOR<Prisma.tokenCreateInput, Prisma.tokenUncheckedCreateInput>
  /**
   * In case the token was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.tokenUpdateInput, Prisma.tokenUncheckedUpdateInput>
}

/**
 * token delete
 */
export type tokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the token
   */
  select?: Prisma.tokenSelect<ExtArgs> | null
  /**
   * Omit specific fields from the token
   */
  omit?: Prisma.tokenOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokenInclude<ExtArgs> | null
  /**
   * Filter which token to delete.
   */
  where: Prisma.tokenWhereUniqueInput
}

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

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