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

export type AggregateBot_tokens = {
  _count: Bot_tokensCountAggregateOutputType | null
  _min: Bot_tokensMinAggregateOutputType | null
  _max: Bot_tokensMaxAggregateOutputType | null
}

export type Bot_tokensMinAggregateOutputType = {
  app_id: string | null
  token: string | null
  bot_mode: $Enums.BotMode | null
  client_id: string | null
  client_secret: string | null
  proxy_url: string | null
  created_at: Date | null
  last_used_at: Date | null
}

export type Bot_tokensMaxAggregateOutputType = {
  app_id: string | null
  token: string | null
  bot_mode: $Enums.BotMode | null
  client_id: string | null
  client_secret: string | null
  proxy_url: string | null
  created_at: Date | null
  last_used_at: Date | null
}

export type Bot_tokensCountAggregateOutputType = {
  app_id: number
  token: number
  bot_mode: number
  client_id: number
  client_secret: number
  proxy_url: number
  created_at: number
  last_used_at: number
  _all: number
}


export type Bot_tokensMinAggregateInputType = {
  app_id?: true
  token?: true
  bot_mode?: true
  client_id?: true
  client_secret?: true
  proxy_url?: true
  created_at?: true
  last_used_at?: true
}

export type Bot_tokensMaxAggregateInputType = {
  app_id?: true
  token?: true
  bot_mode?: true
  client_id?: true
  client_secret?: true
  proxy_url?: true
  created_at?: true
  last_used_at?: true
}

export type Bot_tokensCountAggregateInputType = {
  app_id?: true
  token?: true
  bot_mode?: true
  client_id?: true
  client_secret?: true
  proxy_url?: true
  created_at?: true
  last_used_at?: true
  _all?: true
}

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

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




export type bot_tokensGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.bot_tokensWhereInput
  orderBy?: Prisma.bot_tokensOrderByWithAggregationInput | Prisma.bot_tokensOrderByWithAggregationInput[]
  by: Prisma.Bot_tokensScalarFieldEnum[] | Prisma.Bot_tokensScalarFieldEnum
  having?: Prisma.bot_tokensScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Bot_tokensCountAggregateInputType | true
  _min?: Bot_tokensMinAggregateInputType
  _max?: Bot_tokensMaxAggregateInputType
}

export type Bot_tokensGroupByOutputType = {
  app_id: string
  token: string
  bot_mode: $Enums.BotMode
  client_id: string | null
  client_secret: string | null
  proxy_url: string | null
  created_at: Date | null
  last_used_at: Date | null
  _count: Bot_tokensCountAggregateOutputType | null
  _min: Bot_tokensMinAggregateOutputType | null
  _max: Bot_tokensMaxAggregateOutputType | null
}

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



export type bot_tokensWhereInput = {
  AND?: Prisma.bot_tokensWhereInput | Prisma.bot_tokensWhereInput[]
  OR?: Prisma.bot_tokensWhereInput[]
  NOT?: Prisma.bot_tokensWhereInput | Prisma.bot_tokensWhereInput[]
  app_id?: Prisma.StringFilter<"bot_tokens"> | string
  token?: Prisma.StringFilter<"bot_tokens"> | string
  bot_mode?: Prisma.EnumBotModeFilter<"bot_tokens"> | $Enums.BotMode
  client_id?: Prisma.StringNullableFilter<"bot_tokens"> | string | null
  client_secret?: Prisma.StringNullableFilter<"bot_tokens"> | string | null
  proxy_url?: Prisma.StringNullableFilter<"bot_tokens"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"bot_tokens"> | Date | string | null
  last_used_at?: Prisma.DateTimeNullableFilter<"bot_tokens"> | Date | string | null
  api_keys?: Prisma.XOR<Prisma.Bot_api_keysNullableScalarRelationFilter, Prisma.bot_api_keysWhereInput> | null
  forum_sync_configs?: Prisma.Forum_sync_configsListRelationFilter
  global_model?: Prisma.XOR<Prisma.Global_modelsNullableScalarRelationFilter, Prisma.global_modelsWhereInput> | null
}

export type bot_tokensOrderByWithRelationInput = {
  app_id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  bot_mode?: Prisma.SortOrder
  client_id?: Prisma.SortOrderInput | Prisma.SortOrder
  client_secret?: Prisma.SortOrderInput | Prisma.SortOrder
  proxy_url?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  last_used_at?: Prisma.SortOrderInput | Prisma.SortOrder
  api_keys?: Prisma.bot_api_keysOrderByWithRelationInput
  forum_sync_configs?: Prisma.forum_sync_configsOrderByRelationAggregateInput
  global_model?: Prisma.global_modelsOrderByWithRelationInput
}

export type bot_tokensWhereUniqueInput = Prisma.AtLeast<{
  app_id?: string
  AND?: Prisma.bot_tokensWhereInput | Prisma.bot_tokensWhereInput[]
  OR?: Prisma.bot_tokensWhereInput[]
  NOT?: Prisma.bot_tokensWhereInput | Prisma.bot_tokensWhereInput[]
  token?: Prisma.StringFilter<"bot_tokens"> | string
  bot_mode?: Prisma.EnumBotModeFilter<"bot_tokens"> | $Enums.BotMode
  client_id?: Prisma.StringNullableFilter<"bot_tokens"> | string | null
  client_secret?: Prisma.StringNullableFilter<"bot_tokens"> | string | null
  proxy_url?: Prisma.StringNullableFilter<"bot_tokens"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"bot_tokens"> | Date | string | null
  last_used_at?: Prisma.DateTimeNullableFilter<"bot_tokens"> | Date | string | null
  api_keys?: Prisma.XOR<Prisma.Bot_api_keysNullableScalarRelationFilter, Prisma.bot_api_keysWhereInput> | null
  forum_sync_configs?: Prisma.Forum_sync_configsListRelationFilter
  global_model?: Prisma.XOR<Prisma.Global_modelsNullableScalarRelationFilter, Prisma.global_modelsWhereInput> | null
}, "app_id">

export type bot_tokensOrderByWithAggregationInput = {
  app_id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  bot_mode?: Prisma.SortOrder
  client_id?: Prisma.SortOrderInput | Prisma.SortOrder
  client_secret?: Prisma.SortOrderInput | Prisma.SortOrder
  proxy_url?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  last_used_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.bot_tokensCountOrderByAggregateInput
  _max?: Prisma.bot_tokensMaxOrderByAggregateInput
  _min?: Prisma.bot_tokensMinOrderByAggregateInput
}

export type bot_tokensScalarWhereWithAggregatesInput = {
  AND?: Prisma.bot_tokensScalarWhereWithAggregatesInput | Prisma.bot_tokensScalarWhereWithAggregatesInput[]
  OR?: Prisma.bot_tokensScalarWhereWithAggregatesInput[]
  NOT?: Prisma.bot_tokensScalarWhereWithAggregatesInput | Prisma.bot_tokensScalarWhereWithAggregatesInput[]
  app_id?: Prisma.StringWithAggregatesFilter<"bot_tokens"> | string
  token?: Prisma.StringWithAggregatesFilter<"bot_tokens"> | string
  bot_mode?: Prisma.EnumBotModeWithAggregatesFilter<"bot_tokens"> | $Enums.BotMode
  client_id?: Prisma.StringNullableWithAggregatesFilter<"bot_tokens"> | string | null
  client_secret?: Prisma.StringNullableWithAggregatesFilter<"bot_tokens"> | string | null
  proxy_url?: Prisma.StringNullableWithAggregatesFilter<"bot_tokens"> | string | null
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"bot_tokens"> | Date | string | null
  last_used_at?: Prisma.DateTimeNullableWithAggregatesFilter<"bot_tokens"> | Date | string | null
}

export type bot_tokensCreateInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
  api_keys?: Prisma.bot_api_keysCreateNestedOneWithoutBotInput
  forum_sync_configs?: Prisma.forum_sync_configsCreateNestedManyWithoutBotInput
  global_model?: Prisma.global_modelsCreateNestedOneWithoutBotInput
}

export type bot_tokensUncheckedCreateInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
  api_keys?: Prisma.bot_api_keysUncheckedCreateNestedOneWithoutBotInput
  forum_sync_configs?: Prisma.forum_sync_configsUncheckedCreateNestedManyWithoutBotInput
  global_model?: Prisma.global_modelsUncheckedCreateNestedOneWithoutBotInput
}

export type bot_tokensUpdateInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  api_keys?: Prisma.bot_api_keysUpdateOneWithoutBotNestedInput
  forum_sync_configs?: Prisma.forum_sync_configsUpdateManyWithoutBotNestedInput
  global_model?: Prisma.global_modelsUpdateOneWithoutBotNestedInput
}

export type bot_tokensUncheckedUpdateInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  api_keys?: Prisma.bot_api_keysUncheckedUpdateOneWithoutBotNestedInput
  forum_sync_configs?: Prisma.forum_sync_configsUncheckedUpdateManyWithoutBotNestedInput
  global_model?: Prisma.global_modelsUncheckedUpdateOneWithoutBotNestedInput
}

export type bot_tokensCreateManyInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
}

export type bot_tokensUpdateManyMutationInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type bot_tokensUncheckedUpdateManyInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type bot_tokensCountOrderByAggregateInput = {
  app_id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  bot_mode?: Prisma.SortOrder
  client_id?: Prisma.SortOrder
  client_secret?: Prisma.SortOrder
  proxy_url?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  last_used_at?: Prisma.SortOrder
}

export type bot_tokensMaxOrderByAggregateInput = {
  app_id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  bot_mode?: Prisma.SortOrder
  client_id?: Prisma.SortOrder
  client_secret?: Prisma.SortOrder
  proxy_url?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  last_used_at?: Prisma.SortOrder
}

export type bot_tokensMinOrderByAggregateInput = {
  app_id?: Prisma.SortOrder
  token?: Prisma.SortOrder
  bot_mode?: Prisma.SortOrder
  client_id?: Prisma.SortOrder
  client_secret?: Prisma.SortOrder
  proxy_url?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  last_used_at?: Prisma.SortOrder
}

export type Bot_tokensScalarRelationFilter = {
  is?: Prisma.bot_tokensWhereInput
  isNot?: Prisma.bot_tokensWhereInput
}

export type EnumBotModeFieldUpdateOperationsInput = {
  set?: $Enums.BotMode
}

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

export type bot_tokensCreateNestedOneWithoutApi_keysInput = {
  create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutApi_keysInput, Prisma.bot_tokensUncheckedCreateWithoutApi_keysInput>
  connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutApi_keysInput
  connect?: Prisma.bot_tokensWhereUniqueInput
}

export type bot_tokensUpdateOneRequiredWithoutApi_keysNestedInput = {
  create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutApi_keysInput, Prisma.bot_tokensUncheckedCreateWithoutApi_keysInput>
  connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutApi_keysInput
  upsert?: Prisma.bot_tokensUpsertWithoutApi_keysInput
  connect?: Prisma.bot_tokensWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.bot_tokensUpdateToOneWithWhereWithoutApi_keysInput, Prisma.bot_tokensUpdateWithoutApi_keysInput>, Prisma.bot_tokensUncheckedUpdateWithoutApi_keysInput>
}

export type bot_tokensCreateNestedOneWithoutGlobal_modelInput = {
  create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedCreateWithoutGlobal_modelInput>
  connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutGlobal_modelInput
  connect?: Prisma.bot_tokensWhereUniqueInput
}

export type bot_tokensUpdateOneRequiredWithoutGlobal_modelNestedInput = {
  create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedCreateWithoutGlobal_modelInput>
  connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutGlobal_modelInput
  upsert?: Prisma.bot_tokensUpsertWithoutGlobal_modelInput
  connect?: Prisma.bot_tokensWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.bot_tokensUpdateToOneWithWhereWithoutGlobal_modelInput, Prisma.bot_tokensUpdateWithoutGlobal_modelInput>, Prisma.bot_tokensUncheckedUpdateWithoutGlobal_modelInput>
}

export type bot_tokensCreateNestedOneWithoutForum_sync_configsInput = {
  create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedCreateWithoutForum_sync_configsInput>
  connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutForum_sync_configsInput
  connect?: Prisma.bot_tokensWhereUniqueInput
}

export type bot_tokensUpdateOneRequiredWithoutForum_sync_configsNestedInput = {
  create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedCreateWithoutForum_sync_configsInput>
  connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutForum_sync_configsInput
  upsert?: Prisma.bot_tokensUpsertWithoutForum_sync_configsInput
  connect?: Prisma.bot_tokensWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.bot_tokensUpdateToOneWithWhereWithoutForum_sync_configsInput, Prisma.bot_tokensUpdateWithoutForum_sync_configsInput>, Prisma.bot_tokensUncheckedUpdateWithoutForum_sync_configsInput>
}

export type bot_tokensCreateWithoutApi_keysInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
  forum_sync_configs?: Prisma.forum_sync_configsCreateNestedManyWithoutBotInput
  global_model?: Prisma.global_modelsCreateNestedOneWithoutBotInput
}

export type bot_tokensUncheckedCreateWithoutApi_keysInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
  forum_sync_configs?: Prisma.forum_sync_configsUncheckedCreateNestedManyWithoutBotInput
  global_model?: Prisma.global_modelsUncheckedCreateNestedOneWithoutBotInput
}

export type bot_tokensCreateOrConnectWithoutApi_keysInput = {
  where: Prisma.bot_tokensWhereUniqueInput
  create: Prisma.XOR<Prisma.bot_tokensCreateWithoutApi_keysInput, Prisma.bot_tokensUncheckedCreateWithoutApi_keysInput>
}

export type bot_tokensUpsertWithoutApi_keysInput = {
  update: Prisma.XOR<Prisma.bot_tokensUpdateWithoutApi_keysInput, Prisma.bot_tokensUncheckedUpdateWithoutApi_keysInput>
  create: Prisma.XOR<Prisma.bot_tokensCreateWithoutApi_keysInput, Prisma.bot_tokensUncheckedCreateWithoutApi_keysInput>
  where?: Prisma.bot_tokensWhereInput
}

export type bot_tokensUpdateToOneWithWhereWithoutApi_keysInput = {
  where?: Prisma.bot_tokensWhereInput
  data: Prisma.XOR<Prisma.bot_tokensUpdateWithoutApi_keysInput, Prisma.bot_tokensUncheckedUpdateWithoutApi_keysInput>
}

export type bot_tokensUpdateWithoutApi_keysInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  forum_sync_configs?: Prisma.forum_sync_configsUpdateManyWithoutBotNestedInput
  global_model?: Prisma.global_modelsUpdateOneWithoutBotNestedInput
}

export type bot_tokensUncheckedUpdateWithoutApi_keysInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  forum_sync_configs?: Prisma.forum_sync_configsUncheckedUpdateManyWithoutBotNestedInput
  global_model?: Prisma.global_modelsUncheckedUpdateOneWithoutBotNestedInput
}

export type bot_tokensCreateWithoutGlobal_modelInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
  api_keys?: Prisma.bot_api_keysCreateNestedOneWithoutBotInput
  forum_sync_configs?: Prisma.forum_sync_configsCreateNestedManyWithoutBotInput
}

export type bot_tokensUncheckedCreateWithoutGlobal_modelInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
  api_keys?: Prisma.bot_api_keysUncheckedCreateNestedOneWithoutBotInput
  forum_sync_configs?: Prisma.forum_sync_configsUncheckedCreateNestedManyWithoutBotInput
}

export type bot_tokensCreateOrConnectWithoutGlobal_modelInput = {
  where: Prisma.bot_tokensWhereUniqueInput
  create: Prisma.XOR<Prisma.bot_tokensCreateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedCreateWithoutGlobal_modelInput>
}

export type bot_tokensUpsertWithoutGlobal_modelInput = {
  update: Prisma.XOR<Prisma.bot_tokensUpdateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedUpdateWithoutGlobal_modelInput>
  create: Prisma.XOR<Prisma.bot_tokensCreateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedCreateWithoutGlobal_modelInput>
  where?: Prisma.bot_tokensWhereInput
}

export type bot_tokensUpdateToOneWithWhereWithoutGlobal_modelInput = {
  where?: Prisma.bot_tokensWhereInput
  data: Prisma.XOR<Prisma.bot_tokensUpdateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedUpdateWithoutGlobal_modelInput>
}

export type bot_tokensUpdateWithoutGlobal_modelInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  api_keys?: Prisma.bot_api_keysUpdateOneWithoutBotNestedInput
  forum_sync_configs?: Prisma.forum_sync_configsUpdateManyWithoutBotNestedInput
}

export type bot_tokensUncheckedUpdateWithoutGlobal_modelInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  api_keys?: Prisma.bot_api_keysUncheckedUpdateOneWithoutBotNestedInput
  forum_sync_configs?: Prisma.forum_sync_configsUncheckedUpdateManyWithoutBotNestedInput
}

export type bot_tokensCreateWithoutForum_sync_configsInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
  api_keys?: Prisma.bot_api_keysCreateNestedOneWithoutBotInput
  global_model?: Prisma.global_modelsCreateNestedOneWithoutBotInput
}

export type bot_tokensUncheckedCreateWithoutForum_sync_configsInput = {
  app_id: string
  token: string
  bot_mode?: $Enums.BotMode
  client_id?: string | null
  client_secret?: string | null
  proxy_url?: string | null
  created_at?: Date | string | null
  last_used_at?: Date | string | null
  api_keys?: Prisma.bot_api_keysUncheckedCreateNestedOneWithoutBotInput
  global_model?: Prisma.global_modelsUncheckedCreateNestedOneWithoutBotInput
}

export type bot_tokensCreateOrConnectWithoutForum_sync_configsInput = {
  where: Prisma.bot_tokensWhereUniqueInput
  create: Prisma.XOR<Prisma.bot_tokensCreateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedCreateWithoutForum_sync_configsInput>
}

export type bot_tokensUpsertWithoutForum_sync_configsInput = {
  update: Prisma.XOR<Prisma.bot_tokensUpdateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedUpdateWithoutForum_sync_configsInput>
  create: Prisma.XOR<Prisma.bot_tokensCreateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedCreateWithoutForum_sync_configsInput>
  where?: Prisma.bot_tokensWhereInput
}

export type bot_tokensUpdateToOneWithWhereWithoutForum_sync_configsInput = {
  where?: Prisma.bot_tokensWhereInput
  data: Prisma.XOR<Prisma.bot_tokensUpdateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedUpdateWithoutForum_sync_configsInput>
}

export type bot_tokensUpdateWithoutForum_sync_configsInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  api_keys?: Prisma.bot_api_keysUpdateOneWithoutBotNestedInput
  global_model?: Prisma.global_modelsUpdateOneWithoutBotNestedInput
}

export type bot_tokensUncheckedUpdateWithoutForum_sync_configsInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  token?: Prisma.StringFieldUpdateOperationsInput | string
  bot_mode?: Prisma.EnumBotModeFieldUpdateOperationsInput | $Enums.BotMode
  client_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  client_secret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  proxy_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  last_used_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  api_keys?: Prisma.bot_api_keysUncheckedUpdateOneWithoutBotNestedInput
  global_model?: Prisma.global_modelsUncheckedUpdateOneWithoutBotNestedInput
}


/**
 * Count Type Bot_tokensCountOutputType
 */

export type Bot_tokensCountOutputType = {
  forum_sync_configs: number
}

export type Bot_tokensCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  forum_sync_configs?: boolean | Bot_tokensCountOutputTypeCountForum_sync_configsArgs
}

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

/**
 * Bot_tokensCountOutputType without action
 */
export type Bot_tokensCountOutputTypeCountForum_sync_configsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.forum_sync_configsWhereInput
}


export type bot_tokensSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  app_id?: boolean
  token?: boolean
  bot_mode?: boolean
  client_id?: boolean
  client_secret?: boolean
  proxy_url?: boolean
  created_at?: boolean
  last_used_at?: boolean
  api_keys?: boolean | Prisma.bot_tokens$api_keysArgs<ExtArgs>
  forum_sync_configs?: boolean | Prisma.bot_tokens$forum_sync_configsArgs<ExtArgs>
  global_model?: boolean | Prisma.bot_tokens$global_modelArgs<ExtArgs>
  _count?: boolean | Prisma.Bot_tokensCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["bot_tokens"]>

export type bot_tokensSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  app_id?: boolean
  token?: boolean
  bot_mode?: boolean
  client_id?: boolean
  client_secret?: boolean
  proxy_url?: boolean
  created_at?: boolean
  last_used_at?: boolean
}, ExtArgs["result"]["bot_tokens"]>

export type bot_tokensSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  app_id?: boolean
  token?: boolean
  bot_mode?: boolean
  client_id?: boolean
  client_secret?: boolean
  proxy_url?: boolean
  created_at?: boolean
  last_used_at?: boolean
}, ExtArgs["result"]["bot_tokens"]>

export type bot_tokensSelectScalar = {
  app_id?: boolean
  token?: boolean
  bot_mode?: boolean
  client_id?: boolean
  client_secret?: boolean
  proxy_url?: boolean
  created_at?: boolean
  last_used_at?: boolean
}

export type bot_tokensOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"app_id" | "token" | "bot_mode" | "client_id" | "client_secret" | "proxy_url" | "created_at" | "last_used_at", ExtArgs["result"]["bot_tokens"]>
export type bot_tokensInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  api_keys?: boolean | Prisma.bot_tokens$api_keysArgs<ExtArgs>
  forum_sync_configs?: boolean | Prisma.bot_tokens$forum_sync_configsArgs<ExtArgs>
  global_model?: boolean | Prisma.bot_tokens$global_modelArgs<ExtArgs>
  _count?: boolean | Prisma.Bot_tokensCountOutputTypeDefaultArgs<ExtArgs>
}
export type bot_tokensIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type bot_tokensIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}

export type $bot_tokensPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "bot_tokens"
  objects: {
    api_keys: Prisma.$bot_api_keysPayload<ExtArgs> | null
    forum_sync_configs: Prisma.$forum_sync_configsPayload<ExtArgs>[]
    global_model: Prisma.$global_modelsPayload<ExtArgs> | null
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    app_id: string
    token: string
    bot_mode: $Enums.BotMode
    client_id: string | null
    client_secret: string | null
    proxy_url: string | null
    created_at: Date | null
    last_used_at: Date | null
  }, ExtArgs["result"]["bot_tokens"]>
  composites: {}
}

export type bot_tokensGetPayload<S extends boolean | null | undefined | bot_tokensDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for bot_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__bot_tokensClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  api_keys<T extends Prisma.bot_tokens$api_keysArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokens$api_keysArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  forum_sync_configs<T extends Prisma.bot_tokens$forum_sync_configsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokens$forum_sync_configsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$forum_sync_configsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  global_model<T extends Prisma.bot_tokens$global_modelArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokens$global_modelArgs<ExtArgs>>): Prisma.Prisma__global_modelsClient<runtime.Types.Result.GetResult<Prisma.$global_modelsPayload<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 bot_tokens model
 */
export interface bot_tokensFieldRefs {
  readonly app_id: Prisma.FieldRef<"bot_tokens", 'String'>
  readonly token: Prisma.FieldRef<"bot_tokens", 'String'>
  readonly bot_mode: Prisma.FieldRef<"bot_tokens", 'BotMode'>
  readonly client_id: Prisma.FieldRef<"bot_tokens", 'String'>
  readonly client_secret: Prisma.FieldRef<"bot_tokens", 'String'>
  readonly proxy_url: Prisma.FieldRef<"bot_tokens", 'String'>
  readonly created_at: Prisma.FieldRef<"bot_tokens", 'DateTime'>
  readonly last_used_at: Prisma.FieldRef<"bot_tokens", 'DateTime'>
}
    

// Custom InputTypes
/**
 * bot_tokens findUnique
 */
export type bot_tokensFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_tokens
   */
  select?: Prisma.bot_tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_tokens
   */
  omit?: Prisma.bot_tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_tokensInclude<ExtArgs> | null
  /**
   * Filter, which bot_tokens to fetch.
   */
  where: Prisma.bot_tokensWhereUniqueInput
}

/**
 * bot_tokens findUniqueOrThrow
 */
export type bot_tokensFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_tokens
   */
  select?: Prisma.bot_tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_tokens
   */
  omit?: Prisma.bot_tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_tokensInclude<ExtArgs> | null
  /**
   * Filter, which bot_tokens to fetch.
   */
  where: Prisma.bot_tokensWhereUniqueInput
}

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

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

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

/**
 * bot_tokens create
 */
export type bot_tokensCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_tokens
   */
  select?: Prisma.bot_tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_tokens
   */
  omit?: Prisma.bot_tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_tokensInclude<ExtArgs> | null
  /**
   * The data needed to create a bot_tokens.
   */
  data: Prisma.XOR<Prisma.bot_tokensCreateInput, Prisma.bot_tokensUncheckedCreateInput>
}

/**
 * bot_tokens createMany
 */
export type bot_tokensCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many bot_tokens.
   */
  data: Prisma.bot_tokensCreateManyInput | Prisma.bot_tokensCreateManyInput[]
}

/**
 * bot_tokens createManyAndReturn
 */
export type bot_tokensCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_tokens
   */
  select?: Prisma.bot_tokensSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the bot_tokens
   */
  omit?: Prisma.bot_tokensOmit<ExtArgs> | null
  /**
   * The data used to create many bot_tokens.
   */
  data: Prisma.bot_tokensCreateManyInput | Prisma.bot_tokensCreateManyInput[]
}

/**
 * bot_tokens update
 */
export type bot_tokensUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_tokens
   */
  select?: Prisma.bot_tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_tokens
   */
  omit?: Prisma.bot_tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_tokensInclude<ExtArgs> | null
  /**
   * The data needed to update a bot_tokens.
   */
  data: Prisma.XOR<Prisma.bot_tokensUpdateInput, Prisma.bot_tokensUncheckedUpdateInput>
  /**
   * Choose, which bot_tokens to update.
   */
  where: Prisma.bot_tokensWhereUniqueInput
}

/**
 * bot_tokens updateMany
 */
export type bot_tokensUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update bot_tokens.
   */
  data: Prisma.XOR<Prisma.bot_tokensUpdateManyMutationInput, Prisma.bot_tokensUncheckedUpdateManyInput>
  /**
   * Filter which bot_tokens to update
   */
  where?: Prisma.bot_tokensWhereInput
  /**
   * Limit how many bot_tokens to update.
   */
  limit?: number
}

/**
 * bot_tokens updateManyAndReturn
 */
export type bot_tokensUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_tokens
   */
  select?: Prisma.bot_tokensSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the bot_tokens
   */
  omit?: Prisma.bot_tokensOmit<ExtArgs> | null
  /**
   * The data used to update bot_tokens.
   */
  data: Prisma.XOR<Prisma.bot_tokensUpdateManyMutationInput, Prisma.bot_tokensUncheckedUpdateManyInput>
  /**
   * Filter which bot_tokens to update
   */
  where?: Prisma.bot_tokensWhereInput
  /**
   * Limit how many bot_tokens to update.
   */
  limit?: number
}

/**
 * bot_tokens upsert
 */
export type bot_tokensUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_tokens
   */
  select?: Prisma.bot_tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_tokens
   */
  omit?: Prisma.bot_tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_tokensInclude<ExtArgs> | null
  /**
   * The filter to search for the bot_tokens to update in case it exists.
   */
  where: Prisma.bot_tokensWhereUniqueInput
  /**
   * In case the bot_tokens found by the `where` argument doesn't exist, create a new bot_tokens with this data.
   */
  create: Prisma.XOR<Prisma.bot_tokensCreateInput, Prisma.bot_tokensUncheckedCreateInput>
  /**
   * In case the bot_tokens was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.bot_tokensUpdateInput, Prisma.bot_tokensUncheckedUpdateInput>
}

/**
 * bot_tokens delete
 */
export type bot_tokensDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_tokens
   */
  select?: Prisma.bot_tokensSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_tokens
   */
  omit?: Prisma.bot_tokensOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_tokensInclude<ExtArgs> | null
  /**
   * Filter which bot_tokens to delete.
   */
  where: Prisma.bot_tokensWhereUniqueInput
}

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

/**
 * bot_tokens.api_keys
 */
export type bot_tokens$api_keysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  where?: Prisma.bot_api_keysWhereInput
}

/**
 * bot_tokens.forum_sync_configs
 */
export type bot_tokens$forum_sync_configsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the forum_sync_configs
   */
  select?: Prisma.forum_sync_configsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the forum_sync_configs
   */
  omit?: Prisma.forum_sync_configsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.forum_sync_configsInclude<ExtArgs> | null
  where?: Prisma.forum_sync_configsWhereInput
  orderBy?: Prisma.forum_sync_configsOrderByWithRelationInput | Prisma.forum_sync_configsOrderByWithRelationInput[]
  cursor?: Prisma.forum_sync_configsWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.Forum_sync_configsScalarFieldEnum | Prisma.Forum_sync_configsScalarFieldEnum[]
}

/**
 * bot_tokens.global_model
 */
export type bot_tokens$global_modelArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the global_models
   */
  select?: Prisma.global_modelsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the global_models
   */
  omit?: Prisma.global_modelsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.global_modelsInclude<ExtArgs> | null
  where?: Prisma.global_modelsWhereInput
}

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