
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `tokens` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model tokens
 * 
 */
export type tokensModel = runtime.Types.Result.DefaultSelection<Prisma.$tokensPayload>

export type AggregateTokens = {
  _count: TokensCountAggregateOutputType | null
  _min: TokensMinAggregateOutputType | null
  _max: TokensMaxAggregateOutputType | null
}

export type TokensMinAggregateOutputType = {
  id: string | null
  token: string | null
  type: $Enums.TokenType | null
  userId: string | null
  expiresAt: Date | null
  createdAt: Date | null
}

export type TokensMaxAggregateOutputType = {
  id: string | null
  token: string | null
  type: $Enums.TokenType | null
  userId: string | null
  expiresAt: Date | null
  createdAt: Date | null
}

export type TokensCountAggregateOutputType = {
  id: number
  token: number
  type: number
  userId: number
  expiresAt: number
  createdAt: number
  _all: number
}


export type TokensMinAggregateInputType = {
  id?: true
  token?: true
  type?: true
  userId?: true
  expiresAt?: true
  createdAt?: true
}

export type TokensMaxAggregateInputType = {
  id?: true
  token?: true
  type?: true
  userId?: true
  expiresAt?: true
  createdAt?: true
}

export type TokensCountAggregateInputType = {
  id?: true
  token?: true
  type?: true
  userId?: true
  expiresAt?: true
  createdAt?: true
  _all?: true
}

export type TokensAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which tokens to aggregate.
   */
  where?: Prisma.tokensWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tokens to fetch.
   */
  orderBy?: Prisma.tokensOrderByWithRelationInput | Prisma.tokensOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.tokensWhereUniqueInput
  /**
   * {@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 | TokensCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: TokensMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: TokensMaxAggregateInputType
}

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




export type tokensGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.tokensWhereInput
  orderBy?: Prisma.tokensOrderByWithAggregationInput | Prisma.tokensOrderByWithAggregationInput[]
  by: Prisma.TokensScalarFieldEnum[] | Prisma.TokensScalarFieldEnum
  having?: Prisma.tokensScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TokensCountAggregateInputType | true
  _min?: TokensMinAggregateInputType
  _max?: TokensMaxAggregateInputType
}

export type TokensGroupByOutputType = {
  id: string
  token: string
  type: $Enums.TokenType
  userId: string
  expiresAt: Date
  createdAt: Date
  _count: TokensCountAggregateOutputType | null
  _min: TokensMinAggregateOutputType | null
  _max: TokensMaxAggregateOutputType | null
}

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



export type tokensWhereInput = {
  AND?: Prisma.tokensWhereInput | Prisma.tokensWhereInput[]
  OR?: Prisma.tokensWhereInput[]
  NOT?: Prisma.tokensWhereInput | Prisma.tokensWhereInput[]
  id?: Prisma.StringFilter<"tokens"> | string
  token?: Prisma.StringFilter<"tokens"> | string
  type?: Prisma.EnumTokenTypeFilter<"tokens"> | $Enums.TokenType
  userId?: Prisma.StringFilter<"tokens"> | string
  expiresAt?: Prisma.DateTimeFilter<"tokens"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"tokens"> | Date | string
  users?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>
}

export type tokensOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  type?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  users?: Prisma.usersOrderByWithRelationInput
}

export type tokensWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  token?: string
  AND?: Prisma.tokensWhereInput | Prisma.tokensWhereInput[]
  OR?: Prisma.tokensWhereInput[]
  NOT?: Prisma.tokensWhereInput | Prisma.tokensWhereInput[]
  type?: Prisma.EnumTokenTypeFilter<"tokens"> | $Enums.TokenType
  userId?: Prisma.StringFilter<"tokens"> | string
  expiresAt?: Prisma.DateTimeFilter<"tokens"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"tokens"> | Date | string
  users?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>
}, "id" | "token">

export type tokensOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  type?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.tokensCountOrderByAggregateInput
  _max?: Prisma.tokensMaxOrderByAggregateInput
  _min?: Prisma.tokensMinOrderByAggregateInput
}

export type tokensScalarWhereWithAggregatesInput = {
  AND?: Prisma.tokensScalarWhereWithAggregatesInput | Prisma.tokensScalarWhereWithAggregatesInput[]
  OR?: Prisma.tokensScalarWhereWithAggregatesInput[]
  NOT?: Prisma.tokensScalarWhereWithAggregatesInput | Prisma.tokensScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"tokens"> | string
  token?: Prisma.StringWithAggregatesFilter<"tokens"> | string
  type?: Prisma.EnumTokenTypeWithAggregatesFilter<"tokens"> | $Enums.TokenType
  userId?: Prisma.StringWithAggregatesFilter<"tokens"> | string
  expiresAt?: Prisma.DateTimeWithAggregatesFilter<"tokens"> | Date | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"tokens"> | Date | string
}

export type tokensCreateInput = {
  id: string
  token: string
  type: $Enums.TokenType
  expiresAt: Date | string
  createdAt?: Date | string
  users: Prisma.usersCreateNestedOneWithoutTokensInput
}

export type tokensUncheckedCreateInput = {
  id: string
  token: string
  type: $Enums.TokenType
  userId: string
  expiresAt: Date | string
  createdAt?: Date | string
}

export type tokensUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTokenTypeFieldUpdateOperationsInput | $Enums.TokenType
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  users?: Prisma.usersUpdateOneRequiredWithoutTokensNestedInput
}

export type tokensUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTokenTypeFieldUpdateOperationsInput | $Enums.TokenType
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokensCreateManyInput = {
  id: string
  token: string
  type: $Enums.TokenType
  userId: string
  expiresAt: Date | string
  createdAt?: Date | string
}

export type tokensUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTokenTypeFieldUpdateOperationsInput | $Enums.TokenType
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokensUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTokenTypeFieldUpdateOperationsInput | $Enums.TokenType
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokensCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  type?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type tokensMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  type?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type tokensMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  type?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TokensListRelationFilter = {
  every?: Prisma.tokensWhereInput
  some?: Prisma.tokensWhereInput
  none?: Prisma.tokensWhereInput
}

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

export type StringFieldUpdateOperationsInput = {
  set?: string
}

export type EnumTokenTypeFieldUpdateOperationsInput = {
  set?: $Enums.TokenType
}

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

export type tokensCreateNestedManyWithoutUsersInput = {
  create?: Prisma.XOR<Prisma.tokensCreateWithoutUsersInput, Prisma.tokensUncheckedCreateWithoutUsersInput> | Prisma.tokensCreateWithoutUsersInput[] | Prisma.tokensUncheckedCreateWithoutUsersInput[]
  connectOrCreate?: Prisma.tokensCreateOrConnectWithoutUsersInput | Prisma.tokensCreateOrConnectWithoutUsersInput[]
  createMany?: Prisma.tokensCreateManyUsersInputEnvelope
  connect?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
}

export type tokensUncheckedCreateNestedManyWithoutUsersInput = {
  create?: Prisma.XOR<Prisma.tokensCreateWithoutUsersInput, Prisma.tokensUncheckedCreateWithoutUsersInput> | Prisma.tokensCreateWithoutUsersInput[] | Prisma.tokensUncheckedCreateWithoutUsersInput[]
  connectOrCreate?: Prisma.tokensCreateOrConnectWithoutUsersInput | Prisma.tokensCreateOrConnectWithoutUsersInput[]
  createMany?: Prisma.tokensCreateManyUsersInputEnvelope
  connect?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
}

export type tokensUpdateManyWithoutUsersNestedInput = {
  create?: Prisma.XOR<Prisma.tokensCreateWithoutUsersInput, Prisma.tokensUncheckedCreateWithoutUsersInput> | Prisma.tokensCreateWithoutUsersInput[] | Prisma.tokensUncheckedCreateWithoutUsersInput[]
  connectOrCreate?: Prisma.tokensCreateOrConnectWithoutUsersInput | Prisma.tokensCreateOrConnectWithoutUsersInput[]
  upsert?: Prisma.tokensUpsertWithWhereUniqueWithoutUsersInput | Prisma.tokensUpsertWithWhereUniqueWithoutUsersInput[]
  createMany?: Prisma.tokensCreateManyUsersInputEnvelope
  set?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
  disconnect?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
  delete?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
  connect?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
  update?: Prisma.tokensUpdateWithWhereUniqueWithoutUsersInput | Prisma.tokensUpdateWithWhereUniqueWithoutUsersInput[]
  updateMany?: Prisma.tokensUpdateManyWithWhereWithoutUsersInput | Prisma.tokensUpdateManyWithWhereWithoutUsersInput[]
  deleteMany?: Prisma.tokensScalarWhereInput | Prisma.tokensScalarWhereInput[]
}

export type tokensUncheckedUpdateManyWithoutUsersNestedInput = {
  create?: Prisma.XOR<Prisma.tokensCreateWithoutUsersInput, Prisma.tokensUncheckedCreateWithoutUsersInput> | Prisma.tokensCreateWithoutUsersInput[] | Prisma.tokensUncheckedCreateWithoutUsersInput[]
  connectOrCreate?: Prisma.tokensCreateOrConnectWithoutUsersInput | Prisma.tokensCreateOrConnectWithoutUsersInput[]
  upsert?: Prisma.tokensUpsertWithWhereUniqueWithoutUsersInput | Prisma.tokensUpsertWithWhereUniqueWithoutUsersInput[]
  createMany?: Prisma.tokensCreateManyUsersInputEnvelope
  set?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
  disconnect?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
  delete?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
  connect?: Prisma.tokensWhereUniqueInput | Prisma.tokensWhereUniqueInput[]
  update?: Prisma.tokensUpdateWithWhereUniqueWithoutUsersInput | Prisma.tokensUpdateWithWhereUniqueWithoutUsersInput[]
  updateMany?: Prisma.tokensUpdateManyWithWhereWithoutUsersInput | Prisma.tokensUpdateManyWithWhereWithoutUsersInput[]
  deleteMany?: Prisma.tokensScalarWhereInput | Prisma.tokensScalarWhereInput[]
}

export type tokensCreateWithoutUsersInput = {
  id: string
  token: string
  type: $Enums.TokenType
  expiresAt: Date | string
  createdAt?: Date | string
}

export type tokensUncheckedCreateWithoutUsersInput = {
  id: string
  token: string
  type: $Enums.TokenType
  expiresAt: Date | string
  createdAt?: Date | string
}

export type tokensCreateOrConnectWithoutUsersInput = {
  where: Prisma.tokensWhereUniqueInput
  create: Prisma.XOR<Prisma.tokensCreateWithoutUsersInput, Prisma.tokensUncheckedCreateWithoutUsersInput>
}

export type tokensCreateManyUsersInputEnvelope = {
  data: Prisma.tokensCreateManyUsersInput | Prisma.tokensCreateManyUsersInput[]
  skipDuplicates?: boolean
}

export type tokensUpsertWithWhereUniqueWithoutUsersInput = {
  where: Prisma.tokensWhereUniqueInput
  update: Prisma.XOR<Prisma.tokensUpdateWithoutUsersInput, Prisma.tokensUncheckedUpdateWithoutUsersInput>
  create: Prisma.XOR<Prisma.tokensCreateWithoutUsersInput, Prisma.tokensUncheckedCreateWithoutUsersInput>
}

export type tokensUpdateWithWhereUniqueWithoutUsersInput = {
  where: Prisma.tokensWhereUniqueInput
  data: Prisma.XOR<Prisma.tokensUpdateWithoutUsersInput, Prisma.tokensUncheckedUpdateWithoutUsersInput>
}

export type tokensUpdateManyWithWhereWithoutUsersInput = {
  where: Prisma.tokensScalarWhereInput
  data: Prisma.XOR<Prisma.tokensUpdateManyMutationInput, Prisma.tokensUncheckedUpdateManyWithoutUsersInput>
}

export type tokensScalarWhereInput = {
  AND?: Prisma.tokensScalarWhereInput | Prisma.tokensScalarWhereInput[]
  OR?: Prisma.tokensScalarWhereInput[]
  NOT?: Prisma.tokensScalarWhereInput | Prisma.tokensScalarWhereInput[]
  id?: Prisma.StringFilter<"tokens"> | string
  token?: Prisma.StringFilter<"tokens"> | string
  type?: Prisma.EnumTokenTypeFilter<"tokens"> | $Enums.TokenType
  userId?: Prisma.StringFilter<"tokens"> | string
  expiresAt?: Prisma.DateTimeFilter<"tokens"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"tokens"> | Date | string
}

export type tokensCreateManyUsersInput = {
  id: string
  token: string
  type: $Enums.TokenType
  expiresAt: Date | string
  createdAt?: Date | string
}

export type tokensUpdateWithoutUsersInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTokenTypeFieldUpdateOperationsInput | $Enums.TokenType
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokensUncheckedUpdateWithoutUsersInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTokenTypeFieldUpdateOperationsInput | $Enums.TokenType
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type tokensUncheckedUpdateManyWithoutUsersInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumTokenTypeFieldUpdateOperationsInput | $Enums.TokenType
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type tokensSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  token?: boolean
  type?: boolean
  userId?: boolean
  expiresAt?: boolean
  createdAt?: boolean
  users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tokens"]>

export type tokensSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  token?: boolean
  type?: boolean
  userId?: boolean
  expiresAt?: boolean
  createdAt?: boolean
  users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tokens"]>

export type tokensSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  token?: boolean
  type?: boolean
  userId?: boolean
  expiresAt?: boolean
  createdAt?: boolean
  users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tokens"]>

export type tokensSelectScalar = {
  id?: boolean
  token?: boolean
  type?: boolean
  userId?: boolean
  expiresAt?: boolean
  createdAt?: boolean
}

export type tokensOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "token" | "type" | "userId" | "expiresAt" | "createdAt", ExtArgs["result"]["tokens"]>
export type tokensInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}
export type tokensIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}
export type tokensIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}

export type $tokensPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "tokens"
  objects: {
    users: Prisma.$usersPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    token: string
    type: $Enums.TokenType
    userId: string
    expiresAt: Date
    createdAt: Date
  }, ExtArgs["result"]["tokens"]>
  composites: {}
}

export type tokensGetPayload<S extends boolean | null | undefined | tokensDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tokensPayload, S>

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

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

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

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

  /**
   * Find the first Tokens 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 {tokensFindFirstOrThrowArgs} args - Arguments to find a Tokens
   * @example
   * // Get one Tokens
   * const tokens = await prisma.tokens.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends tokensFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, tokensFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__tokensClient<runtime.Types.Result.GetResult<Prisma.$tokensPayload<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 {tokensFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Tokens
   * const tokens = await prisma.tokens.findMany()
   * 
   * // Get first 10 Tokens
   * const tokens = await prisma.tokens.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const tokensWithIdOnly = await prisma.tokens.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends tokensFindManyArgs>(args?: Prisma.SelectSubset<T, tokensFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tokensPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

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

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

  /**
   * Create many Tokens and returns the data saved in the database.
   * @param {tokensCreateManyAndReturnArgs} args - Arguments to create many Tokens.
   * @example
   * // Create many Tokens
   * const tokens = await prisma.tokens.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Tokens and only return the `id`
   * const tokensWithIdOnly = await prisma.tokens.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 tokensCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, tokensCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tokensPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

  /**
   * Delete zero or more Tokens.
   * @param {tokensDeleteManyArgs} args - Arguments to filter Tokens to delete.
   * @example
   * // Delete a few Tokens
   * const { count } = await prisma.tokens.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends tokensDeleteManyArgs>(args?: Prisma.SelectSubset<T, tokensDeleteManyArgs<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 {tokensUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Tokens
   * const tokens = await prisma.tokens.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends tokensUpdateManyArgs>(args: Prisma.SelectSubset<T, tokensUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Tokens and returns the data updated in the database.
   * @param {tokensUpdateManyAndReturnArgs} args - Arguments to update many Tokens.
   * @example
   * // Update many Tokens
   * const tokens = await prisma.tokens.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Tokens and only return the `id`
   * const tokensWithIdOnly = await prisma.tokens.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 tokensUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, tokensUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tokensPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one Tokens.
   * @param {tokensUpsertArgs} args - Arguments to update or create a Tokens.
   * @example
   * // Update or create a Tokens
   * const tokens = await prisma.tokens.upsert({
   *   create: {
   *     // ... data to create a Tokens
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the Tokens we want to update
   *   }
   * })
   */
  upsert<T extends tokensUpsertArgs>(args: Prisma.SelectSubset<T, tokensUpsertArgs<ExtArgs>>): Prisma.Prisma__tokensClient<runtime.Types.Result.GetResult<Prisma.$tokensPayload<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 {tokensCountArgs} args - Arguments to filter Tokens to count.
   * @example
   * // Count the number of Tokens
   * const count = await prisma.tokens.count({
   *   where: {
   *     // ... the filter for the Tokens we want to count
   *   }
   * })
  **/
  count<T extends tokensCountArgs>(
    args?: Prisma.Subset<T, tokensCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], TokensCountAggregateOutputType>
      : number
  >

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

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

/**
 * The delegate class that acts as a "Promise-like" for tokens.
 * 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__tokensClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  users<T extends Prisma.usersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.usersDefaultArgs<ExtArgs>>): Prisma.Prisma__usersClient<runtime.Types.Result.GetResult<Prisma.$usersPayload<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 tokens model
 */
export interface tokensFieldRefs {
  readonly id: Prisma.FieldRef<"tokens", 'String'>
  readonly token: Prisma.FieldRef<"tokens", 'String'>
  readonly type: Prisma.FieldRef<"tokens", 'TokenType'>
  readonly userId: Prisma.FieldRef<"tokens", 'String'>
  readonly expiresAt: Prisma.FieldRef<"tokens", 'DateTime'>
  readonly createdAt: Prisma.FieldRef<"tokens", 'DateTime'>
}
    

// Custom InputTypes
/**
 * tokens findUnique
 */
export type tokensFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * Filter, which tokens to fetch.
   */
  where: Prisma.tokensWhereUniqueInput
}

/**
 * tokens findUniqueOrThrow
 */
export type tokensFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * Filter, which tokens to fetch.
   */
  where: Prisma.tokensWhereUniqueInput
}

/**
 * tokens findFirst
 */
export type tokensFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * Filter, which tokens to fetch.
   */
  where?: Prisma.tokensWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tokens to fetch.
   */
  orderBy?: Prisma.tokensOrderByWithRelationInput | Prisma.tokensOrderByWithRelationInput[]
  /**
   * {@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.tokensWhereUniqueInput
  /**
   * {@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.TokensScalarFieldEnum | Prisma.TokensScalarFieldEnum[]
}

/**
 * tokens findFirstOrThrow
 */
export type tokensFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * Filter, which tokens to fetch.
   */
  where?: Prisma.tokensWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tokens to fetch.
   */
  orderBy?: Prisma.tokensOrderByWithRelationInput | Prisma.tokensOrderByWithRelationInput[]
  /**
   * {@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.tokensWhereUniqueInput
  /**
   * {@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.TokensScalarFieldEnum | Prisma.TokensScalarFieldEnum[]
}

/**
 * tokens findMany
 */
export type tokensFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * Filter, which tokens to fetch.
   */
  where?: Prisma.tokensWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tokens to fetch.
   */
  orderBy?: Prisma.tokensOrderByWithRelationInput | Prisma.tokensOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing tokens.
   */
  cursor?: Prisma.tokensWhereUniqueInput
  /**
   * {@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.TokensScalarFieldEnum | Prisma.TokensScalarFieldEnum[]
}

/**
 * tokens create
 */
export type tokensCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * The data needed to create a tokens.
   */
  data: Prisma.XOR<Prisma.tokensCreateInput, Prisma.tokensUncheckedCreateInput>
}

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

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

/**
 * tokens update
 */
export type tokensUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * The data needed to update a tokens.
   */
  data: Prisma.XOR<Prisma.tokensUpdateInput, Prisma.tokensUncheckedUpdateInput>
  /**
   * Choose, which tokens to update.
   */
  where: Prisma.tokensWhereUniqueInput
}

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

/**
 * tokens updateManyAndReturn
 */
export type tokensUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * The data used to update tokens.
   */
  data: Prisma.XOR<Prisma.tokensUpdateManyMutationInput, Prisma.tokensUncheckedUpdateManyInput>
  /**
   * Filter which tokens to update
   */
  where?: Prisma.tokensWhereInput
  /**
   * Limit how many tokens to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * tokens upsert
 */
export type tokensUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * The filter to search for the tokens to update in case it exists.
   */
  where: Prisma.tokensWhereUniqueInput
  /**
   * In case the tokens found by the `where` argument doesn't exist, create a new tokens with this data.
   */
  create: Prisma.XOR<Prisma.tokensCreateInput, Prisma.tokensUncheckedCreateInput>
  /**
   * In case the tokens was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.tokensUpdateInput, Prisma.tokensUncheckedUpdateInput>
}

/**
 * tokens delete
 */
export type tokensDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tokens
   */
  select?: Prisma.tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tokens
   */
  omit?: Prisma.tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.tokensInclude<ExtArgs> | null
  /**
   * Filter which tokens to delete.
   */
  where: Prisma.tokensWhereUniqueInput
}

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

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