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

export type AggregateTopicSpeaker = {
  _count: TopicSpeakerCountAggregateOutputType | null
  _avg: TopicSpeakerAvgAggregateOutputType | null
  _sum: TopicSpeakerSumAggregateOutputType | null
  _min: TopicSpeakerMinAggregateOutputType | null
  _max: TopicSpeakerMaxAggregateOutputType | null
}

export type TopicSpeakerAvgAggregateOutputType = {
  topicId: number | null
  speakerId: number | null
  position: number | null
}

export type TopicSpeakerSumAggregateOutputType = {
  topicId: number | null
  speakerId: number | null
  position: number | null
}

export type TopicSpeakerMinAggregateOutputType = {
  topicId: number | null
  speakerId: number | null
  position: number | null
}

export type TopicSpeakerMaxAggregateOutputType = {
  topicId: number | null
  speakerId: number | null
  position: number | null
}

export type TopicSpeakerCountAggregateOutputType = {
  topicId: number
  speakerId: number
  position: number
  _all: number
}


export type TopicSpeakerAvgAggregateInputType = {
  topicId?: true
  speakerId?: true
  position?: true
}

export type TopicSpeakerSumAggregateInputType = {
  topicId?: true
  speakerId?: true
  position?: true
}

export type TopicSpeakerMinAggregateInputType = {
  topicId?: true
  speakerId?: true
  position?: true
}

export type TopicSpeakerMaxAggregateInputType = {
  topicId?: true
  speakerId?: true
  position?: true
}

export type TopicSpeakerCountAggregateInputType = {
  topicId?: true
  speakerId?: true
  position?: true
  _all?: true
}

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

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




export type TopicSpeakerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TopicSpeakerWhereInput
  orderBy?: Prisma.TopicSpeakerOrderByWithAggregationInput | Prisma.TopicSpeakerOrderByWithAggregationInput[]
  by: Prisma.TopicSpeakerScalarFieldEnum[] | Prisma.TopicSpeakerScalarFieldEnum
  having?: Prisma.TopicSpeakerScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TopicSpeakerCountAggregateInputType | true
  _avg?: TopicSpeakerAvgAggregateInputType
  _sum?: TopicSpeakerSumAggregateInputType
  _min?: TopicSpeakerMinAggregateInputType
  _max?: TopicSpeakerMaxAggregateInputType
}

export type TopicSpeakerGroupByOutputType = {
  topicId: number
  speakerId: number
  position: number
  _count: TopicSpeakerCountAggregateOutputType | null
  _avg: TopicSpeakerAvgAggregateOutputType | null
  _sum: TopicSpeakerSumAggregateOutputType | null
  _min: TopicSpeakerMinAggregateOutputType | null
  _max: TopicSpeakerMaxAggregateOutputType | null
}

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



export type TopicSpeakerWhereInput = {
  AND?: Prisma.TopicSpeakerWhereInput | Prisma.TopicSpeakerWhereInput[]
  OR?: Prisma.TopicSpeakerWhereInput[]
  NOT?: Prisma.TopicSpeakerWhereInput | Prisma.TopicSpeakerWhereInput[]
  topicId?: Prisma.IntFilter<"TopicSpeaker"> | number
  speakerId?: Prisma.IntFilter<"TopicSpeaker"> | number
  position?: Prisma.IntFilter<"TopicSpeaker"> | number
  topic?: Prisma.XOR<Prisma.TopicScalarRelationFilter, Prisma.TopicWhereInput>
  speaker?: Prisma.XOR<Prisma.SpeakerScalarRelationFilter, Prisma.SpeakerWhereInput>
}

export type TopicSpeakerOrderByWithRelationInput = {
  topicId?: Prisma.SortOrder
  speakerId?: Prisma.SortOrder
  position?: Prisma.SortOrder
  topic?: Prisma.TopicOrderByWithRelationInput
  speaker?: Prisma.SpeakerOrderByWithRelationInput
}

export type TopicSpeakerWhereUniqueInput = Prisma.AtLeast<{
  topicId_position?: Prisma.TopicSpeakerTopicIdPositionCompoundUniqueInput
  topicId_speakerId?: Prisma.TopicSpeakerTopicIdSpeakerIdCompoundUniqueInput
  AND?: Prisma.TopicSpeakerWhereInput | Prisma.TopicSpeakerWhereInput[]
  OR?: Prisma.TopicSpeakerWhereInput[]
  NOT?: Prisma.TopicSpeakerWhereInput | Prisma.TopicSpeakerWhereInput[]
  topicId?: Prisma.IntFilter<"TopicSpeaker"> | number
  speakerId?: Prisma.IntFilter<"TopicSpeaker"> | number
  position?: Prisma.IntFilter<"TopicSpeaker"> | number
  topic?: Prisma.XOR<Prisma.TopicScalarRelationFilter, Prisma.TopicWhereInput>
  speaker?: Prisma.XOR<Prisma.SpeakerScalarRelationFilter, Prisma.SpeakerWhereInput>
}, "topicId_speakerId" | "topicId_position">

export type TopicSpeakerOrderByWithAggregationInput = {
  topicId?: Prisma.SortOrder
  speakerId?: Prisma.SortOrder
  position?: Prisma.SortOrder
  _count?: Prisma.TopicSpeakerCountOrderByAggregateInput
  _avg?: Prisma.TopicSpeakerAvgOrderByAggregateInput
  _max?: Prisma.TopicSpeakerMaxOrderByAggregateInput
  _min?: Prisma.TopicSpeakerMinOrderByAggregateInput
  _sum?: Prisma.TopicSpeakerSumOrderByAggregateInput
}

export type TopicSpeakerScalarWhereWithAggregatesInput = {
  AND?: Prisma.TopicSpeakerScalarWhereWithAggregatesInput | Prisma.TopicSpeakerScalarWhereWithAggregatesInput[]
  OR?: Prisma.TopicSpeakerScalarWhereWithAggregatesInput[]
  NOT?: Prisma.TopicSpeakerScalarWhereWithAggregatesInput | Prisma.TopicSpeakerScalarWhereWithAggregatesInput[]
  topicId?: Prisma.IntWithAggregatesFilter<"TopicSpeaker"> | number
  speakerId?: Prisma.IntWithAggregatesFilter<"TopicSpeaker"> | number
  position?: Prisma.IntWithAggregatesFilter<"TopicSpeaker"> | number
}

export type TopicSpeakerCreateInput = {
  position: number
  topic: Prisma.TopicCreateNestedOneWithoutTopicSpeakersInput
  speaker: Prisma.SpeakerCreateNestedOneWithoutTopicSpeakersInput
}

export type TopicSpeakerUncheckedCreateInput = {
  topicId: number
  speakerId: number
  position: number
}

export type TopicSpeakerUpdateInput = {
  position?: Prisma.IntFieldUpdateOperationsInput | number
  topic?: Prisma.TopicUpdateOneRequiredWithoutTopicSpeakersNestedInput
  speaker?: Prisma.SpeakerUpdateOneRequiredWithoutTopicSpeakersNestedInput
}

export type TopicSpeakerUncheckedUpdateInput = {
  topicId?: Prisma.IntFieldUpdateOperationsInput | number
  speakerId?: Prisma.IntFieldUpdateOperationsInput | number
  position?: Prisma.IntFieldUpdateOperationsInput | number
}

export type TopicSpeakerCreateManyInput = {
  topicId: number
  speakerId: number
  position: number
}

export type TopicSpeakerUpdateManyMutationInput = {
  position?: Prisma.IntFieldUpdateOperationsInput | number
}

export type TopicSpeakerUncheckedUpdateManyInput = {
  topicId?: Prisma.IntFieldUpdateOperationsInput | number
  speakerId?: Prisma.IntFieldUpdateOperationsInput | number
  position?: Prisma.IntFieldUpdateOperationsInput | number
}

export type TopicSpeakerListRelationFilter = {
  every?: Prisma.TopicSpeakerWhereInput
  some?: Prisma.TopicSpeakerWhereInput
  none?: Prisma.TopicSpeakerWhereInput
}

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

export type TopicSpeakerTopicIdPositionCompoundUniqueInput = {
  topicId: number
  position: number
}

export type TopicSpeakerTopicIdSpeakerIdCompoundUniqueInput = {
  topicId: number
  speakerId: number
}

export type TopicSpeakerCountOrderByAggregateInput = {
  topicId?: Prisma.SortOrder
  speakerId?: Prisma.SortOrder
  position?: Prisma.SortOrder
}

export type TopicSpeakerAvgOrderByAggregateInput = {
  topicId?: Prisma.SortOrder
  speakerId?: Prisma.SortOrder
  position?: Prisma.SortOrder
}

export type TopicSpeakerMaxOrderByAggregateInput = {
  topicId?: Prisma.SortOrder
  speakerId?: Prisma.SortOrder
  position?: Prisma.SortOrder
}

export type TopicSpeakerMinOrderByAggregateInput = {
  topicId?: Prisma.SortOrder
  speakerId?: Prisma.SortOrder
  position?: Prisma.SortOrder
}

export type TopicSpeakerSumOrderByAggregateInput = {
  topicId?: Prisma.SortOrder
  speakerId?: Prisma.SortOrder
  position?: Prisma.SortOrder
}

export type TopicSpeakerCreateNestedManyWithoutSpeakerInput = {
  create?: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutSpeakerInput, Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput> | Prisma.TopicSpeakerCreateWithoutSpeakerInput[] | Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput[]
  connectOrCreate?: Prisma.TopicSpeakerCreateOrConnectWithoutSpeakerInput | Prisma.TopicSpeakerCreateOrConnectWithoutSpeakerInput[]
  createMany?: Prisma.TopicSpeakerCreateManySpeakerInputEnvelope
  connect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
}

export type TopicSpeakerUncheckedCreateNestedManyWithoutSpeakerInput = {
  create?: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutSpeakerInput, Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput> | Prisma.TopicSpeakerCreateWithoutSpeakerInput[] | Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput[]
  connectOrCreate?: Prisma.TopicSpeakerCreateOrConnectWithoutSpeakerInput | Prisma.TopicSpeakerCreateOrConnectWithoutSpeakerInput[]
  createMany?: Prisma.TopicSpeakerCreateManySpeakerInputEnvelope
  connect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
}

export type TopicSpeakerUpdateManyWithoutSpeakerNestedInput = {
  create?: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutSpeakerInput, Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput> | Prisma.TopicSpeakerCreateWithoutSpeakerInput[] | Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput[]
  connectOrCreate?: Prisma.TopicSpeakerCreateOrConnectWithoutSpeakerInput | Prisma.TopicSpeakerCreateOrConnectWithoutSpeakerInput[]
  upsert?: Prisma.TopicSpeakerUpsertWithWhereUniqueWithoutSpeakerInput | Prisma.TopicSpeakerUpsertWithWhereUniqueWithoutSpeakerInput[]
  createMany?: Prisma.TopicSpeakerCreateManySpeakerInputEnvelope
  set?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  disconnect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  delete?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  connect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  update?: Prisma.TopicSpeakerUpdateWithWhereUniqueWithoutSpeakerInput | Prisma.TopicSpeakerUpdateWithWhereUniqueWithoutSpeakerInput[]
  updateMany?: Prisma.TopicSpeakerUpdateManyWithWhereWithoutSpeakerInput | Prisma.TopicSpeakerUpdateManyWithWhereWithoutSpeakerInput[]
  deleteMany?: Prisma.TopicSpeakerScalarWhereInput | Prisma.TopicSpeakerScalarWhereInput[]
}

export type TopicSpeakerUncheckedUpdateManyWithoutSpeakerNestedInput = {
  create?: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutSpeakerInput, Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput> | Prisma.TopicSpeakerCreateWithoutSpeakerInput[] | Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput[]
  connectOrCreate?: Prisma.TopicSpeakerCreateOrConnectWithoutSpeakerInput | Prisma.TopicSpeakerCreateOrConnectWithoutSpeakerInput[]
  upsert?: Prisma.TopicSpeakerUpsertWithWhereUniqueWithoutSpeakerInput | Prisma.TopicSpeakerUpsertWithWhereUniqueWithoutSpeakerInput[]
  createMany?: Prisma.TopicSpeakerCreateManySpeakerInputEnvelope
  set?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  disconnect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  delete?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  connect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  update?: Prisma.TopicSpeakerUpdateWithWhereUniqueWithoutSpeakerInput | Prisma.TopicSpeakerUpdateWithWhereUniqueWithoutSpeakerInput[]
  updateMany?: Prisma.TopicSpeakerUpdateManyWithWhereWithoutSpeakerInput | Prisma.TopicSpeakerUpdateManyWithWhereWithoutSpeakerInput[]
  deleteMany?: Prisma.TopicSpeakerScalarWhereInput | Prisma.TopicSpeakerScalarWhereInput[]
}

export type TopicSpeakerCreateNestedManyWithoutTopicInput = {
  create?: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutTopicInput, Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput> | Prisma.TopicSpeakerCreateWithoutTopicInput[] | Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput[]
  connectOrCreate?: Prisma.TopicSpeakerCreateOrConnectWithoutTopicInput | Prisma.TopicSpeakerCreateOrConnectWithoutTopicInput[]
  createMany?: Prisma.TopicSpeakerCreateManyTopicInputEnvelope
  connect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
}

export type TopicSpeakerUncheckedCreateNestedManyWithoutTopicInput = {
  create?: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutTopicInput, Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput> | Prisma.TopicSpeakerCreateWithoutTopicInput[] | Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput[]
  connectOrCreate?: Prisma.TopicSpeakerCreateOrConnectWithoutTopicInput | Prisma.TopicSpeakerCreateOrConnectWithoutTopicInput[]
  createMany?: Prisma.TopicSpeakerCreateManyTopicInputEnvelope
  connect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
}

export type TopicSpeakerUpdateManyWithoutTopicNestedInput = {
  create?: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutTopicInput, Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput> | Prisma.TopicSpeakerCreateWithoutTopicInput[] | Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput[]
  connectOrCreate?: Prisma.TopicSpeakerCreateOrConnectWithoutTopicInput | Prisma.TopicSpeakerCreateOrConnectWithoutTopicInput[]
  upsert?: Prisma.TopicSpeakerUpsertWithWhereUniqueWithoutTopicInput | Prisma.TopicSpeakerUpsertWithWhereUniqueWithoutTopicInput[]
  createMany?: Prisma.TopicSpeakerCreateManyTopicInputEnvelope
  set?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  disconnect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  delete?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  connect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  update?: Prisma.TopicSpeakerUpdateWithWhereUniqueWithoutTopicInput | Prisma.TopicSpeakerUpdateWithWhereUniqueWithoutTopicInput[]
  updateMany?: Prisma.TopicSpeakerUpdateManyWithWhereWithoutTopicInput | Prisma.TopicSpeakerUpdateManyWithWhereWithoutTopicInput[]
  deleteMany?: Prisma.TopicSpeakerScalarWhereInput | Prisma.TopicSpeakerScalarWhereInput[]
}

export type TopicSpeakerUncheckedUpdateManyWithoutTopicNestedInput = {
  create?: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutTopicInput, Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput> | Prisma.TopicSpeakerCreateWithoutTopicInput[] | Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput[]
  connectOrCreate?: Prisma.TopicSpeakerCreateOrConnectWithoutTopicInput | Prisma.TopicSpeakerCreateOrConnectWithoutTopicInput[]
  upsert?: Prisma.TopicSpeakerUpsertWithWhereUniqueWithoutTopicInput | Prisma.TopicSpeakerUpsertWithWhereUniqueWithoutTopicInput[]
  createMany?: Prisma.TopicSpeakerCreateManyTopicInputEnvelope
  set?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  disconnect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  delete?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  connect?: Prisma.TopicSpeakerWhereUniqueInput | Prisma.TopicSpeakerWhereUniqueInput[]
  update?: Prisma.TopicSpeakerUpdateWithWhereUniqueWithoutTopicInput | Prisma.TopicSpeakerUpdateWithWhereUniqueWithoutTopicInput[]
  updateMany?: Prisma.TopicSpeakerUpdateManyWithWhereWithoutTopicInput | Prisma.TopicSpeakerUpdateManyWithWhereWithoutTopicInput[]
  deleteMany?: Prisma.TopicSpeakerScalarWhereInput | Prisma.TopicSpeakerScalarWhereInput[]
}

export type TopicSpeakerCreateWithoutSpeakerInput = {
  position: number
  topic: Prisma.TopicCreateNestedOneWithoutTopicSpeakersInput
}

export type TopicSpeakerUncheckedCreateWithoutSpeakerInput = {
  topicId: number
  position: number
}

export type TopicSpeakerCreateOrConnectWithoutSpeakerInput = {
  where: Prisma.TopicSpeakerWhereUniqueInput
  create: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutSpeakerInput, Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput>
}

export type TopicSpeakerCreateManySpeakerInputEnvelope = {
  data: Prisma.TopicSpeakerCreateManySpeakerInput | Prisma.TopicSpeakerCreateManySpeakerInput[]
  skipDuplicates?: boolean
}

export type TopicSpeakerUpsertWithWhereUniqueWithoutSpeakerInput = {
  where: Prisma.TopicSpeakerWhereUniqueInput
  update: Prisma.XOR<Prisma.TopicSpeakerUpdateWithoutSpeakerInput, Prisma.TopicSpeakerUncheckedUpdateWithoutSpeakerInput>
  create: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutSpeakerInput, Prisma.TopicSpeakerUncheckedCreateWithoutSpeakerInput>
}

export type TopicSpeakerUpdateWithWhereUniqueWithoutSpeakerInput = {
  where: Prisma.TopicSpeakerWhereUniqueInput
  data: Prisma.XOR<Prisma.TopicSpeakerUpdateWithoutSpeakerInput, Prisma.TopicSpeakerUncheckedUpdateWithoutSpeakerInput>
}

export type TopicSpeakerUpdateManyWithWhereWithoutSpeakerInput = {
  where: Prisma.TopicSpeakerScalarWhereInput
  data: Prisma.XOR<Prisma.TopicSpeakerUpdateManyMutationInput, Prisma.TopicSpeakerUncheckedUpdateManyWithoutSpeakerInput>
}

export type TopicSpeakerScalarWhereInput = {
  AND?: Prisma.TopicSpeakerScalarWhereInput | Prisma.TopicSpeakerScalarWhereInput[]
  OR?: Prisma.TopicSpeakerScalarWhereInput[]
  NOT?: Prisma.TopicSpeakerScalarWhereInput | Prisma.TopicSpeakerScalarWhereInput[]
  topicId?: Prisma.IntFilter<"TopicSpeaker"> | number
  speakerId?: Prisma.IntFilter<"TopicSpeaker"> | number
  position?: Prisma.IntFilter<"TopicSpeaker"> | number
}

export type TopicSpeakerCreateWithoutTopicInput = {
  position: number
  speaker: Prisma.SpeakerCreateNestedOneWithoutTopicSpeakersInput
}

export type TopicSpeakerUncheckedCreateWithoutTopicInput = {
  speakerId: number
  position: number
}

export type TopicSpeakerCreateOrConnectWithoutTopicInput = {
  where: Prisma.TopicSpeakerWhereUniqueInput
  create: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutTopicInput, Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput>
}

export type TopicSpeakerCreateManyTopicInputEnvelope = {
  data: Prisma.TopicSpeakerCreateManyTopicInput | Prisma.TopicSpeakerCreateManyTopicInput[]
  skipDuplicates?: boolean
}

export type TopicSpeakerUpsertWithWhereUniqueWithoutTopicInput = {
  where: Prisma.TopicSpeakerWhereUniqueInput
  update: Prisma.XOR<Prisma.TopicSpeakerUpdateWithoutTopicInput, Prisma.TopicSpeakerUncheckedUpdateWithoutTopicInput>
  create: Prisma.XOR<Prisma.TopicSpeakerCreateWithoutTopicInput, Prisma.TopicSpeakerUncheckedCreateWithoutTopicInput>
}

export type TopicSpeakerUpdateWithWhereUniqueWithoutTopicInput = {
  where: Prisma.TopicSpeakerWhereUniqueInput
  data: Prisma.XOR<Prisma.TopicSpeakerUpdateWithoutTopicInput, Prisma.TopicSpeakerUncheckedUpdateWithoutTopicInput>
}

export type TopicSpeakerUpdateManyWithWhereWithoutTopicInput = {
  where: Prisma.TopicSpeakerScalarWhereInput
  data: Prisma.XOR<Prisma.TopicSpeakerUpdateManyMutationInput, Prisma.TopicSpeakerUncheckedUpdateManyWithoutTopicInput>
}

export type TopicSpeakerCreateManySpeakerInput = {
  topicId: number
  position: number
}

export type TopicSpeakerUpdateWithoutSpeakerInput = {
  position?: Prisma.IntFieldUpdateOperationsInput | number
  topic?: Prisma.TopicUpdateOneRequiredWithoutTopicSpeakersNestedInput
}

export type TopicSpeakerUncheckedUpdateWithoutSpeakerInput = {
  topicId?: Prisma.IntFieldUpdateOperationsInput | number
  position?: Prisma.IntFieldUpdateOperationsInput | number
}

export type TopicSpeakerUncheckedUpdateManyWithoutSpeakerInput = {
  topicId?: Prisma.IntFieldUpdateOperationsInput | number
  position?: Prisma.IntFieldUpdateOperationsInput | number
}

export type TopicSpeakerCreateManyTopicInput = {
  speakerId: number
  position: number
}

export type TopicSpeakerUpdateWithoutTopicInput = {
  position?: Prisma.IntFieldUpdateOperationsInput | number
  speaker?: Prisma.SpeakerUpdateOneRequiredWithoutTopicSpeakersNestedInput
}

export type TopicSpeakerUncheckedUpdateWithoutTopicInput = {
  speakerId?: Prisma.IntFieldUpdateOperationsInput | number
  position?: Prisma.IntFieldUpdateOperationsInput | number
}

export type TopicSpeakerUncheckedUpdateManyWithoutTopicInput = {
  speakerId?: Prisma.IntFieldUpdateOperationsInput | number
  position?: Prisma.IntFieldUpdateOperationsInput | number
}



export type TopicSpeakerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  topicId?: boolean
  speakerId?: boolean
  position?: boolean
  topic?: boolean | Prisma.TopicDefaultArgs<ExtArgs>
  speaker?: boolean | Prisma.SpeakerDefaultArgs<ExtArgs>
}, ExtArgs["result"]["topicSpeaker"]>



export type TopicSpeakerSelectScalar = {
  topicId?: boolean
  speakerId?: boolean
  position?: boolean
}

export type TopicSpeakerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"topicId" | "speakerId" | "position", ExtArgs["result"]["topicSpeaker"]>
export type TopicSpeakerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  topic?: boolean | Prisma.TopicDefaultArgs<ExtArgs>
  speaker?: boolean | Prisma.SpeakerDefaultArgs<ExtArgs>
}

export type $TopicSpeakerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "TopicSpeaker"
  objects: {
    topic: Prisma.$TopicPayload<ExtArgs>
    speaker: Prisma.$SpeakerPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    topicId: number
    speakerId: number
    position: number
  }, ExtArgs["result"]["topicSpeaker"]>
  composites: {}
}

export type TopicSpeakerGetPayload<S extends boolean | null | undefined | TopicSpeakerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TopicSpeakerPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for TopicSpeaker.
 * 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__TopicSpeakerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  topic<T extends Prisma.TopicDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TopicDefaultArgs<ExtArgs>>): Prisma.Prisma__TopicClient<runtime.Types.Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  speaker<T extends Prisma.SpeakerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SpeakerDefaultArgs<ExtArgs>>): Prisma.Prisma__SpeakerClient<runtime.Types.Result.GetResult<Prisma.$SpeakerPayload<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 TopicSpeaker model
 */
export interface TopicSpeakerFieldRefs {
  readonly topicId: Prisma.FieldRef<"TopicSpeaker", 'Int'>
  readonly speakerId: Prisma.FieldRef<"TopicSpeaker", 'Int'>
  readonly position: Prisma.FieldRef<"TopicSpeaker", 'Int'>
}
    

// Custom InputTypes
/**
 * TopicSpeaker findUnique
 */
export type TopicSpeakerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TopicSpeaker
   */
  select?: Prisma.TopicSpeakerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TopicSpeaker
   */
  omit?: Prisma.TopicSpeakerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TopicSpeakerInclude<ExtArgs> | null
  /**
   * Filter, which TopicSpeaker to fetch.
   */
  where: Prisma.TopicSpeakerWhereUniqueInput
}

/**
 * TopicSpeaker findUniqueOrThrow
 */
export type TopicSpeakerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TopicSpeaker
   */
  select?: Prisma.TopicSpeakerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TopicSpeaker
   */
  omit?: Prisma.TopicSpeakerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TopicSpeakerInclude<ExtArgs> | null
  /**
   * Filter, which TopicSpeaker to fetch.
   */
  where: Prisma.TopicSpeakerWhereUniqueInput
}

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

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

/**
 * TopicSpeaker findMany
 */
export type TopicSpeakerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TopicSpeaker
   */
  select?: Prisma.TopicSpeakerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TopicSpeaker
   */
  omit?: Prisma.TopicSpeakerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TopicSpeakerInclude<ExtArgs> | null
  /**
   * Filter, which TopicSpeakers to fetch.
   */
  where?: Prisma.TopicSpeakerWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TopicSpeakers to fetch.
   */
  orderBy?: Prisma.TopicSpeakerOrderByWithRelationInput | Prisma.TopicSpeakerOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing TopicSpeakers.
   */
  cursor?: Prisma.TopicSpeakerWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TopicSpeakers 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` TopicSpeakers.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of TopicSpeakers.
   */
  distinct?: Prisma.TopicSpeakerScalarFieldEnum | Prisma.TopicSpeakerScalarFieldEnum[]
}

/**
 * TopicSpeaker create
 */
export type TopicSpeakerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TopicSpeaker
   */
  select?: Prisma.TopicSpeakerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TopicSpeaker
   */
  omit?: Prisma.TopicSpeakerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TopicSpeakerInclude<ExtArgs> | null
  /**
   * The data needed to create a TopicSpeaker.
   */
  data: Prisma.XOR<Prisma.TopicSpeakerCreateInput, Prisma.TopicSpeakerUncheckedCreateInput>
}

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

/**
 * TopicSpeaker update
 */
export type TopicSpeakerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TopicSpeaker
   */
  select?: Prisma.TopicSpeakerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TopicSpeaker
   */
  omit?: Prisma.TopicSpeakerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TopicSpeakerInclude<ExtArgs> | null
  /**
   * The data needed to update a TopicSpeaker.
   */
  data: Prisma.XOR<Prisma.TopicSpeakerUpdateInput, Prisma.TopicSpeakerUncheckedUpdateInput>
  /**
   * Choose, which TopicSpeaker to update.
   */
  where: Prisma.TopicSpeakerWhereUniqueInput
}

/**
 * TopicSpeaker updateMany
 */
export type TopicSpeakerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update TopicSpeakers.
   */
  data: Prisma.XOR<Prisma.TopicSpeakerUpdateManyMutationInput, Prisma.TopicSpeakerUncheckedUpdateManyInput>
  /**
   * Filter which TopicSpeakers to update
   */
  where?: Prisma.TopicSpeakerWhereInput
  /**
   * Limit how many TopicSpeakers to update.
   */
  limit?: number
}

/**
 * TopicSpeaker upsert
 */
export type TopicSpeakerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TopicSpeaker
   */
  select?: Prisma.TopicSpeakerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TopicSpeaker
   */
  omit?: Prisma.TopicSpeakerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TopicSpeakerInclude<ExtArgs> | null
  /**
   * The filter to search for the TopicSpeaker to update in case it exists.
   */
  where: Prisma.TopicSpeakerWhereUniqueInput
  /**
   * In case the TopicSpeaker found by the `where` argument doesn't exist, create a new TopicSpeaker with this data.
   */
  create: Prisma.XOR<Prisma.TopicSpeakerCreateInput, Prisma.TopicSpeakerUncheckedCreateInput>
  /**
   * In case the TopicSpeaker was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.TopicSpeakerUpdateInput, Prisma.TopicSpeakerUncheckedUpdateInput>
}

/**
 * TopicSpeaker delete
 */
export type TopicSpeakerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TopicSpeaker
   */
  select?: Prisma.TopicSpeakerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TopicSpeaker
   */
  omit?: Prisma.TopicSpeakerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TopicSpeakerInclude<ExtArgs> | null
  /**
   * Filter which TopicSpeaker to delete.
   */
  where: Prisma.TopicSpeakerWhereUniqueInput
}

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

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