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

export type AggregateForum_sync_configs = {
  _count: Forum_sync_configsCountAggregateOutputType | null
  _avg: Forum_sync_configsAvgAggregateOutputType | null
  _sum: Forum_sync_configsSumAggregateOutputType | null
  _min: Forum_sync_configsMinAggregateOutputType | null
  _max: Forum_sync_configsMaxAggregateOutputType | null
}

export type Forum_sync_configsAvgAggregateOutputType = {
  id: number | null
}

export type Forum_sync_configsSumAggregateOutputType = {
  id: number | null
}

export type Forum_sync_configsMinAggregateOutputType = {
  id: number | null
  app_id: string | null
  forum_channel_id: string | null
  output_dir: string | null
  direction: string | null
  created_at: Date | null
  updated_at: Date | null
}

export type Forum_sync_configsMaxAggregateOutputType = {
  id: number | null
  app_id: string | null
  forum_channel_id: string | null
  output_dir: string | null
  direction: string | null
  created_at: Date | null
  updated_at: Date | null
}

export type Forum_sync_configsCountAggregateOutputType = {
  id: number
  app_id: number
  forum_channel_id: number
  output_dir: number
  direction: number
  created_at: number
  updated_at: number
  _all: number
}


export type Forum_sync_configsAvgAggregateInputType = {
  id?: true
}

export type Forum_sync_configsSumAggregateInputType = {
  id?: true
}

export type Forum_sync_configsMinAggregateInputType = {
  id?: true
  app_id?: true
  forum_channel_id?: true
  output_dir?: true
  direction?: true
  created_at?: true
  updated_at?: true
}

export type Forum_sync_configsMaxAggregateInputType = {
  id?: true
  app_id?: true
  forum_channel_id?: true
  output_dir?: true
  direction?: true
  created_at?: true
  updated_at?: true
}

export type Forum_sync_configsCountAggregateInputType = {
  id?: true
  app_id?: true
  forum_channel_id?: true
  output_dir?: true
  direction?: true
  created_at?: true
  updated_at?: true
  _all?: true
}

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

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




export type forum_sync_configsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.forum_sync_configsWhereInput
  orderBy?: Prisma.forum_sync_configsOrderByWithAggregationInput | Prisma.forum_sync_configsOrderByWithAggregationInput[]
  by: Prisma.Forum_sync_configsScalarFieldEnum[] | Prisma.Forum_sync_configsScalarFieldEnum
  having?: Prisma.forum_sync_configsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Forum_sync_configsCountAggregateInputType | true
  _avg?: Forum_sync_configsAvgAggregateInputType
  _sum?: Forum_sync_configsSumAggregateInputType
  _min?: Forum_sync_configsMinAggregateInputType
  _max?: Forum_sync_configsMaxAggregateInputType
}

export type Forum_sync_configsGroupByOutputType = {
  id: number
  app_id: string
  forum_channel_id: string
  output_dir: string
  direction: string
  created_at: Date | null
  updated_at: Date | null
  _count: Forum_sync_configsCountAggregateOutputType | null
  _avg: Forum_sync_configsAvgAggregateOutputType | null
  _sum: Forum_sync_configsSumAggregateOutputType | null
  _min: Forum_sync_configsMinAggregateOutputType | null
  _max: Forum_sync_configsMaxAggregateOutputType | null
}

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



export type forum_sync_configsWhereInput = {
  AND?: Prisma.forum_sync_configsWhereInput | Prisma.forum_sync_configsWhereInput[]
  OR?: Prisma.forum_sync_configsWhereInput[]
  NOT?: Prisma.forum_sync_configsWhereInput | Prisma.forum_sync_configsWhereInput[]
  id?: Prisma.IntFilter<"forum_sync_configs"> | number
  app_id?: Prisma.StringFilter<"forum_sync_configs"> | string
  forum_channel_id?: Prisma.StringFilter<"forum_sync_configs"> | string
  output_dir?: Prisma.StringFilter<"forum_sync_configs"> | string
  direction?: Prisma.StringFilter<"forum_sync_configs"> | string
  created_at?: Prisma.DateTimeNullableFilter<"forum_sync_configs"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"forum_sync_configs"> | Date | string | null
  bot?: Prisma.XOR<Prisma.Bot_tokensScalarRelationFilter, Prisma.bot_tokensWhereInput>
}

export type forum_sync_configsOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  app_id?: Prisma.SortOrder
  forum_channel_id?: Prisma.SortOrder
  output_dir?: Prisma.SortOrder
  direction?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  bot?: Prisma.bot_tokensOrderByWithRelationInput
}

export type forum_sync_configsWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  app_id_forum_channel_id?: Prisma.forum_sync_configsApp_idForum_channel_idCompoundUniqueInput
  AND?: Prisma.forum_sync_configsWhereInput | Prisma.forum_sync_configsWhereInput[]
  OR?: Prisma.forum_sync_configsWhereInput[]
  NOT?: Prisma.forum_sync_configsWhereInput | Prisma.forum_sync_configsWhereInput[]
  app_id?: Prisma.StringFilter<"forum_sync_configs"> | string
  forum_channel_id?: Prisma.StringFilter<"forum_sync_configs"> | string
  output_dir?: Prisma.StringFilter<"forum_sync_configs"> | string
  direction?: Prisma.StringFilter<"forum_sync_configs"> | string
  created_at?: Prisma.DateTimeNullableFilter<"forum_sync_configs"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"forum_sync_configs"> | Date | string | null
  bot?: Prisma.XOR<Prisma.Bot_tokensScalarRelationFilter, Prisma.bot_tokensWhereInput>
}, "id" | "app_id_forum_channel_id">

export type forum_sync_configsOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  app_id?: Prisma.SortOrder
  forum_channel_id?: Prisma.SortOrder
  output_dir?: Prisma.SortOrder
  direction?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.forum_sync_configsCountOrderByAggregateInput
  _avg?: Prisma.forum_sync_configsAvgOrderByAggregateInput
  _max?: Prisma.forum_sync_configsMaxOrderByAggregateInput
  _min?: Prisma.forum_sync_configsMinOrderByAggregateInput
  _sum?: Prisma.forum_sync_configsSumOrderByAggregateInput
}

export type forum_sync_configsScalarWhereWithAggregatesInput = {
  AND?: Prisma.forum_sync_configsScalarWhereWithAggregatesInput | Prisma.forum_sync_configsScalarWhereWithAggregatesInput[]
  OR?: Prisma.forum_sync_configsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.forum_sync_configsScalarWhereWithAggregatesInput | Prisma.forum_sync_configsScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"forum_sync_configs"> | number
  app_id?: Prisma.StringWithAggregatesFilter<"forum_sync_configs"> | string
  forum_channel_id?: Prisma.StringWithAggregatesFilter<"forum_sync_configs"> | string
  output_dir?: Prisma.StringWithAggregatesFilter<"forum_sync_configs"> | string
  direction?: Prisma.StringWithAggregatesFilter<"forum_sync_configs"> | string
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"forum_sync_configs"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"forum_sync_configs"> | Date | string | null
}

export type forum_sync_configsCreateInput = {
  forum_channel_id: string
  output_dir: string
  direction?: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
  bot: Prisma.bot_tokensCreateNestedOneWithoutForum_sync_configsInput
}

export type forum_sync_configsUncheckedCreateInput = {
  id?: number
  app_id: string
  forum_channel_id: string
  output_dir: string
  direction?: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type forum_sync_configsUpdateInput = {
  forum_channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  output_dir?: Prisma.StringFieldUpdateOperationsInput | string
  direction?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  bot?: Prisma.bot_tokensUpdateOneRequiredWithoutForum_sync_configsNestedInput
}

export type forum_sync_configsUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  forum_channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  output_dir?: Prisma.StringFieldUpdateOperationsInput | string
  direction?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type forum_sync_configsCreateManyInput = {
  id?: number
  app_id: string
  forum_channel_id: string
  output_dir: string
  direction?: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type forum_sync_configsUpdateManyMutationInput = {
  forum_channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  output_dir?: Prisma.StringFieldUpdateOperationsInput | string
  direction?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type forum_sync_configsUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  forum_channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  output_dir?: Prisma.StringFieldUpdateOperationsInput | string
  direction?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type Forum_sync_configsListRelationFilter = {
  every?: Prisma.forum_sync_configsWhereInput
  some?: Prisma.forum_sync_configsWhereInput
  none?: Prisma.forum_sync_configsWhereInput
}

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

export type forum_sync_configsApp_idForum_channel_idCompoundUniqueInput = {
  app_id: string
  forum_channel_id: string
}

export type forum_sync_configsCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  app_id?: Prisma.SortOrder
  forum_channel_id?: Prisma.SortOrder
  output_dir?: Prisma.SortOrder
  direction?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type forum_sync_configsAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type forum_sync_configsMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  app_id?: Prisma.SortOrder
  forum_channel_id?: Prisma.SortOrder
  output_dir?: Prisma.SortOrder
  direction?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type forum_sync_configsMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  app_id?: Prisma.SortOrder
  forum_channel_id?: Prisma.SortOrder
  output_dir?: Prisma.SortOrder
  direction?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type forum_sync_configsSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type forum_sync_configsCreateNestedManyWithoutBotInput = {
  create?: Prisma.XOR<Prisma.forum_sync_configsCreateWithoutBotInput, Prisma.forum_sync_configsUncheckedCreateWithoutBotInput> | Prisma.forum_sync_configsCreateWithoutBotInput[] | Prisma.forum_sync_configsUncheckedCreateWithoutBotInput[]
  connectOrCreate?: Prisma.forum_sync_configsCreateOrConnectWithoutBotInput | Prisma.forum_sync_configsCreateOrConnectWithoutBotInput[]
  createMany?: Prisma.forum_sync_configsCreateManyBotInputEnvelope
  connect?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
}

export type forum_sync_configsUncheckedCreateNestedManyWithoutBotInput = {
  create?: Prisma.XOR<Prisma.forum_sync_configsCreateWithoutBotInput, Prisma.forum_sync_configsUncheckedCreateWithoutBotInput> | Prisma.forum_sync_configsCreateWithoutBotInput[] | Prisma.forum_sync_configsUncheckedCreateWithoutBotInput[]
  connectOrCreate?: Prisma.forum_sync_configsCreateOrConnectWithoutBotInput | Prisma.forum_sync_configsCreateOrConnectWithoutBotInput[]
  createMany?: Prisma.forum_sync_configsCreateManyBotInputEnvelope
  connect?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
}

export type forum_sync_configsUpdateManyWithoutBotNestedInput = {
  create?: Prisma.XOR<Prisma.forum_sync_configsCreateWithoutBotInput, Prisma.forum_sync_configsUncheckedCreateWithoutBotInput> | Prisma.forum_sync_configsCreateWithoutBotInput[] | Prisma.forum_sync_configsUncheckedCreateWithoutBotInput[]
  connectOrCreate?: Prisma.forum_sync_configsCreateOrConnectWithoutBotInput | Prisma.forum_sync_configsCreateOrConnectWithoutBotInput[]
  upsert?: Prisma.forum_sync_configsUpsertWithWhereUniqueWithoutBotInput | Prisma.forum_sync_configsUpsertWithWhereUniqueWithoutBotInput[]
  createMany?: Prisma.forum_sync_configsCreateManyBotInputEnvelope
  set?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
  disconnect?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
  delete?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
  connect?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
  update?: Prisma.forum_sync_configsUpdateWithWhereUniqueWithoutBotInput | Prisma.forum_sync_configsUpdateWithWhereUniqueWithoutBotInput[]
  updateMany?: Prisma.forum_sync_configsUpdateManyWithWhereWithoutBotInput | Prisma.forum_sync_configsUpdateManyWithWhereWithoutBotInput[]
  deleteMany?: Prisma.forum_sync_configsScalarWhereInput | Prisma.forum_sync_configsScalarWhereInput[]
}

export type forum_sync_configsUncheckedUpdateManyWithoutBotNestedInput = {
  create?: Prisma.XOR<Prisma.forum_sync_configsCreateWithoutBotInput, Prisma.forum_sync_configsUncheckedCreateWithoutBotInput> | Prisma.forum_sync_configsCreateWithoutBotInput[] | Prisma.forum_sync_configsUncheckedCreateWithoutBotInput[]
  connectOrCreate?: Prisma.forum_sync_configsCreateOrConnectWithoutBotInput | Prisma.forum_sync_configsCreateOrConnectWithoutBotInput[]
  upsert?: Prisma.forum_sync_configsUpsertWithWhereUniqueWithoutBotInput | Prisma.forum_sync_configsUpsertWithWhereUniqueWithoutBotInput[]
  createMany?: Prisma.forum_sync_configsCreateManyBotInputEnvelope
  set?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
  disconnect?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
  delete?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
  connect?: Prisma.forum_sync_configsWhereUniqueInput | Prisma.forum_sync_configsWhereUniqueInput[]
  update?: Prisma.forum_sync_configsUpdateWithWhereUniqueWithoutBotInput | Prisma.forum_sync_configsUpdateWithWhereUniqueWithoutBotInput[]
  updateMany?: Prisma.forum_sync_configsUpdateManyWithWhereWithoutBotInput | Prisma.forum_sync_configsUpdateManyWithWhereWithoutBotInput[]
  deleteMany?: Prisma.forum_sync_configsScalarWhereInput | Prisma.forum_sync_configsScalarWhereInput[]
}

export type forum_sync_configsCreateWithoutBotInput = {
  forum_channel_id: string
  output_dir: string
  direction?: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type forum_sync_configsUncheckedCreateWithoutBotInput = {
  id?: number
  forum_channel_id: string
  output_dir: string
  direction?: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type forum_sync_configsCreateOrConnectWithoutBotInput = {
  where: Prisma.forum_sync_configsWhereUniqueInput
  create: Prisma.XOR<Prisma.forum_sync_configsCreateWithoutBotInput, Prisma.forum_sync_configsUncheckedCreateWithoutBotInput>
}

export type forum_sync_configsCreateManyBotInputEnvelope = {
  data: Prisma.forum_sync_configsCreateManyBotInput | Prisma.forum_sync_configsCreateManyBotInput[]
}

export type forum_sync_configsUpsertWithWhereUniqueWithoutBotInput = {
  where: Prisma.forum_sync_configsWhereUniqueInput
  update: Prisma.XOR<Prisma.forum_sync_configsUpdateWithoutBotInput, Prisma.forum_sync_configsUncheckedUpdateWithoutBotInput>
  create: Prisma.XOR<Prisma.forum_sync_configsCreateWithoutBotInput, Prisma.forum_sync_configsUncheckedCreateWithoutBotInput>
}

export type forum_sync_configsUpdateWithWhereUniqueWithoutBotInput = {
  where: Prisma.forum_sync_configsWhereUniqueInput
  data: Prisma.XOR<Prisma.forum_sync_configsUpdateWithoutBotInput, Prisma.forum_sync_configsUncheckedUpdateWithoutBotInput>
}

export type forum_sync_configsUpdateManyWithWhereWithoutBotInput = {
  where: Prisma.forum_sync_configsScalarWhereInput
  data: Prisma.XOR<Prisma.forum_sync_configsUpdateManyMutationInput, Prisma.forum_sync_configsUncheckedUpdateManyWithoutBotInput>
}

export type forum_sync_configsScalarWhereInput = {
  AND?: Prisma.forum_sync_configsScalarWhereInput | Prisma.forum_sync_configsScalarWhereInput[]
  OR?: Prisma.forum_sync_configsScalarWhereInput[]
  NOT?: Prisma.forum_sync_configsScalarWhereInput | Prisma.forum_sync_configsScalarWhereInput[]
  id?: Prisma.IntFilter<"forum_sync_configs"> | number
  app_id?: Prisma.StringFilter<"forum_sync_configs"> | string
  forum_channel_id?: Prisma.StringFilter<"forum_sync_configs"> | string
  output_dir?: Prisma.StringFilter<"forum_sync_configs"> | string
  direction?: Prisma.StringFilter<"forum_sync_configs"> | string
  created_at?: Prisma.DateTimeNullableFilter<"forum_sync_configs"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"forum_sync_configs"> | Date | string | null
}

export type forum_sync_configsCreateManyBotInput = {
  id?: number
  forum_channel_id: string
  output_dir: string
  direction?: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type forum_sync_configsUpdateWithoutBotInput = {
  forum_channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  output_dir?: Prisma.StringFieldUpdateOperationsInput | string
  direction?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type forum_sync_configsUncheckedUpdateWithoutBotInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  forum_channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  output_dir?: Prisma.StringFieldUpdateOperationsInput | string
  direction?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type forum_sync_configsUncheckedUpdateManyWithoutBotInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  forum_channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  output_dir?: Prisma.StringFieldUpdateOperationsInput | string
  direction?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type forum_sync_configsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  app_id?: boolean
  forum_channel_id?: boolean
  output_dir?: boolean
  direction?: boolean
  created_at?: boolean
  updated_at?: boolean
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}, ExtArgs["result"]["forum_sync_configs"]>

export type forum_sync_configsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  app_id?: boolean
  forum_channel_id?: boolean
  output_dir?: boolean
  direction?: boolean
  created_at?: boolean
  updated_at?: boolean
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}, ExtArgs["result"]["forum_sync_configs"]>

export type forum_sync_configsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  app_id?: boolean
  forum_channel_id?: boolean
  output_dir?: boolean
  direction?: boolean
  created_at?: boolean
  updated_at?: boolean
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}, ExtArgs["result"]["forum_sync_configs"]>

export type forum_sync_configsSelectScalar = {
  id?: boolean
  app_id?: boolean
  forum_channel_id?: boolean
  output_dir?: boolean
  direction?: boolean
  created_at?: boolean
  updated_at?: boolean
}

export type forum_sync_configsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "app_id" | "forum_channel_id" | "output_dir" | "direction" | "created_at" | "updated_at", ExtArgs["result"]["forum_sync_configs"]>
export type forum_sync_configsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}
export type forum_sync_configsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}
export type forum_sync_configsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}

export type $forum_sync_configsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "forum_sync_configs"
  objects: {
    bot: Prisma.$bot_tokensPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    app_id: string
    forum_channel_id: string
    output_dir: string
    direction: string
    created_at: Date | null
    updated_at: Date | null
  }, ExtArgs["result"]["forum_sync_configs"]>
  composites: {}
}

export type forum_sync_configsGetPayload<S extends boolean | null | undefined | forum_sync_configsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$forum_sync_configsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for forum_sync_configs.
 * 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__forum_sync_configsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  bot<T extends Prisma.bot_tokensDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokensDefaultArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<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 forum_sync_configs model
 */
export interface forum_sync_configsFieldRefs {
  readonly id: Prisma.FieldRef<"forum_sync_configs", 'Int'>
  readonly app_id: Prisma.FieldRef<"forum_sync_configs", 'String'>
  readonly forum_channel_id: Prisma.FieldRef<"forum_sync_configs", 'String'>
  readonly output_dir: Prisma.FieldRef<"forum_sync_configs", 'String'>
  readonly direction: Prisma.FieldRef<"forum_sync_configs", 'String'>
  readonly created_at: Prisma.FieldRef<"forum_sync_configs", 'DateTime'>
  readonly updated_at: Prisma.FieldRef<"forum_sync_configs", 'DateTime'>
}
    

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

/**
 * forum_sync_configs findUniqueOrThrow
 */
export type forum_sync_configsFindUniqueOrThrowArgs<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
  /**
   * Filter, which forum_sync_configs to fetch.
   */
  where: Prisma.forum_sync_configsWhereUniqueInput
}

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

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

/**
 * forum_sync_configs findMany
 */
export type forum_sync_configsFindManyArgs<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
  /**
   * Filter, which forum_sync_configs to fetch.
   */
  where?: Prisma.forum_sync_configsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of forum_sync_configs to fetch.
   */
  orderBy?: Prisma.forum_sync_configsOrderByWithRelationInput | Prisma.forum_sync_configsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing forum_sync_configs.
   */
  cursor?: Prisma.forum_sync_configsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` forum_sync_configs 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` forum_sync_configs.
   */
  skip?: number
  distinct?: Prisma.Forum_sync_configsScalarFieldEnum | Prisma.Forum_sync_configsScalarFieldEnum[]
}

/**
 * forum_sync_configs create
 */
export type forum_sync_configsCreateArgs<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
  /**
   * The data needed to create a forum_sync_configs.
   */
  data: Prisma.XOR<Prisma.forum_sync_configsCreateInput, Prisma.forum_sync_configsUncheckedCreateInput>
}

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

/**
 * forum_sync_configs createManyAndReturn
 */
export type forum_sync_configsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the forum_sync_configs
   */
  select?: Prisma.forum_sync_configsSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the forum_sync_configs
   */
  omit?: Prisma.forum_sync_configsOmit<ExtArgs> | null
  /**
   * The data used to create many forum_sync_configs.
   */
  data: Prisma.forum_sync_configsCreateManyInput | Prisma.forum_sync_configsCreateManyInput[]
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.forum_sync_configsIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * forum_sync_configs update
 */
export type forum_sync_configsUpdateArgs<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
  /**
   * The data needed to update a forum_sync_configs.
   */
  data: Prisma.XOR<Prisma.forum_sync_configsUpdateInput, Prisma.forum_sync_configsUncheckedUpdateInput>
  /**
   * Choose, which forum_sync_configs to update.
   */
  where: Prisma.forum_sync_configsWhereUniqueInput
}

/**
 * forum_sync_configs updateMany
 */
export type forum_sync_configsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update forum_sync_configs.
   */
  data: Prisma.XOR<Prisma.forum_sync_configsUpdateManyMutationInput, Prisma.forum_sync_configsUncheckedUpdateManyInput>
  /**
   * Filter which forum_sync_configs to update
   */
  where?: Prisma.forum_sync_configsWhereInput
  /**
   * Limit how many forum_sync_configs to update.
   */
  limit?: number
}

/**
 * forum_sync_configs updateManyAndReturn
 */
export type forum_sync_configsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the forum_sync_configs
   */
  select?: Prisma.forum_sync_configsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the forum_sync_configs
   */
  omit?: Prisma.forum_sync_configsOmit<ExtArgs> | null
  /**
   * The data used to update forum_sync_configs.
   */
  data: Prisma.XOR<Prisma.forum_sync_configsUpdateManyMutationInput, Prisma.forum_sync_configsUncheckedUpdateManyInput>
  /**
   * Filter which forum_sync_configs to update
   */
  where?: Prisma.forum_sync_configsWhereInput
  /**
   * Limit how many forum_sync_configs to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.forum_sync_configsIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * forum_sync_configs upsert
 */
export type forum_sync_configsUpsertArgs<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
  /**
   * The filter to search for the forum_sync_configs to update in case it exists.
   */
  where: Prisma.forum_sync_configsWhereUniqueInput
  /**
   * In case the forum_sync_configs found by the `where` argument doesn't exist, create a new forum_sync_configs with this data.
   */
  create: Prisma.XOR<Prisma.forum_sync_configsCreateInput, Prisma.forum_sync_configsUncheckedCreateInput>
  /**
   * In case the forum_sync_configs was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.forum_sync_configsUpdateInput, Prisma.forum_sync_configsUncheckedUpdateInput>
}

/**
 * forum_sync_configs delete
 */
export type forum_sync_configsDeleteArgs<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
  /**
   * Filter which forum_sync_configs to delete.
   */
  where: Prisma.forum_sync_configsWhereUniqueInput
}

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

/**
 * forum_sync_configs without action
 */
export type forum_sync_configsDefaultArgs<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
}
