
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `Module` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model Module
 * 
 */
export type ModuleModel = runtime.Types.Result.DefaultSelection<Prisma.$ModulePayload>

export type AggregateModule = {
  _count: ModuleCountAggregateOutputType | null
  _avg: ModuleAvgAggregateOutputType | null
  _sum: ModuleSumAggregateOutputType | null
  _min: ModuleMinAggregateOutputType | null
  _max: ModuleMaxAggregateOutputType | null
}

export type ModuleAvgAggregateOutputType = {
  order: number | null
}

export type ModuleSumAggregateOutputType = {
  order: number | null
}

export type ModuleMinAggregateOutputType = {
  id: string | null
  title: string | null
  description: string | null
  order: number | null
  courseId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ModuleMaxAggregateOutputType = {
  id: string | null
  title: string | null
  description: string | null
  order: number | null
  courseId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ModuleCountAggregateOutputType = {
  id: number
  title: number
  description: number
  order: number
  courseId: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type ModuleAvgAggregateInputType = {
  order?: true
}

export type ModuleSumAggregateInputType = {
  order?: true
}

export type ModuleMinAggregateInputType = {
  id?: true
  title?: true
  description?: true
  order?: true
  courseId?: true
  createdAt?: true
  updatedAt?: true
}

export type ModuleMaxAggregateInputType = {
  id?: true
  title?: true
  description?: true
  order?: true
  courseId?: true
  createdAt?: true
  updatedAt?: true
}

export type ModuleCountAggregateInputType = {
  id?: true
  title?: true
  description?: true
  order?: true
  courseId?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type ModuleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ModuleWhereInput
  orderBy?: Prisma.ModuleOrderByWithAggregationInput | Prisma.ModuleOrderByWithAggregationInput[]
  by: Prisma.ModuleScalarFieldEnum[] | Prisma.ModuleScalarFieldEnum
  having?: Prisma.ModuleScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ModuleCountAggregateInputType | true
  _avg?: ModuleAvgAggregateInputType
  _sum?: ModuleSumAggregateInputType
  _min?: ModuleMinAggregateInputType
  _max?: ModuleMaxAggregateInputType
}

export type ModuleGroupByOutputType = {
  id: string
  title: string
  description: string | null
  order: number
  courseId: string
  createdAt: Date
  updatedAt: Date
  _count: ModuleCountAggregateOutputType | null
  _avg: ModuleAvgAggregateOutputType | null
  _sum: ModuleSumAggregateOutputType | null
  _min: ModuleMinAggregateOutputType | null
  _max: ModuleMaxAggregateOutputType | null
}

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



export type ModuleWhereInput = {
  AND?: Prisma.ModuleWhereInput | Prisma.ModuleWhereInput[]
  OR?: Prisma.ModuleWhereInput[]
  NOT?: Prisma.ModuleWhereInput | Prisma.ModuleWhereInput[]
  id?: Prisma.StringFilter<"Module"> | string
  title?: Prisma.StringFilter<"Module"> | string
  description?: Prisma.StringNullableFilter<"Module"> | string | null
  order?: Prisma.IntFilter<"Module"> | number
  courseId?: Prisma.StringFilter<"Module"> | string
  createdAt?: Prisma.DateTimeFilter<"Module"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Module"> | Date | string
  lessons?: Prisma.LessonListRelationFilter
  course?: Prisma.XOR<Prisma.CourseScalarRelationFilter, Prisma.CourseWhereInput>
}

export type ModuleOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  order?: Prisma.SortOrder
  courseId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  lessons?: Prisma.LessonOrderByRelationAggregateInput
  course?: Prisma.CourseOrderByWithRelationInput
  _relevance?: Prisma.ModuleOrderByRelevanceInput
}

export type ModuleWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.ModuleWhereInput | Prisma.ModuleWhereInput[]
  OR?: Prisma.ModuleWhereInput[]
  NOT?: Prisma.ModuleWhereInput | Prisma.ModuleWhereInput[]
  title?: Prisma.StringFilter<"Module"> | string
  description?: Prisma.StringNullableFilter<"Module"> | string | null
  order?: Prisma.IntFilter<"Module"> | number
  courseId?: Prisma.StringFilter<"Module"> | string
  createdAt?: Prisma.DateTimeFilter<"Module"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Module"> | Date | string
  lessons?: Prisma.LessonListRelationFilter
  course?: Prisma.XOR<Prisma.CourseScalarRelationFilter, Prisma.CourseWhereInput>
}, "id">

export type ModuleOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  order?: Prisma.SortOrder
  courseId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.ModuleCountOrderByAggregateInput
  _avg?: Prisma.ModuleAvgOrderByAggregateInput
  _max?: Prisma.ModuleMaxOrderByAggregateInput
  _min?: Prisma.ModuleMinOrderByAggregateInput
  _sum?: Prisma.ModuleSumOrderByAggregateInput
}

export type ModuleScalarWhereWithAggregatesInput = {
  AND?: Prisma.ModuleScalarWhereWithAggregatesInput | Prisma.ModuleScalarWhereWithAggregatesInput[]
  OR?: Prisma.ModuleScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ModuleScalarWhereWithAggregatesInput | Prisma.ModuleScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"Module"> | string
  title?: Prisma.StringWithAggregatesFilter<"Module"> | string
  description?: Prisma.StringNullableWithAggregatesFilter<"Module"> | string | null
  order?: Prisma.IntWithAggregatesFilter<"Module"> | number
  courseId?: Prisma.StringWithAggregatesFilter<"Module"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Module"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Module"> | Date | string
}

export type ModuleCreateInput = {
  id?: string
  title: string
  description?: string | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  lessons?: Prisma.LessonCreateNestedManyWithoutModuleInput
  course: Prisma.CourseCreateNestedOneWithoutModulesInput
}

export type ModuleUncheckedCreateInput = {
  id?: string
  title: string
  description?: string | null
  order: number
  courseId: string
  createdAt?: Date | string
  updatedAt?: Date | string
  lessons?: Prisma.LessonUncheckedCreateNestedManyWithoutModuleInput
}

export type ModuleUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lessons?: Prisma.LessonUpdateManyWithoutModuleNestedInput
  course?: Prisma.CourseUpdateOneRequiredWithoutModulesNestedInput
}

export type ModuleUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  courseId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lessons?: Prisma.LessonUncheckedUpdateManyWithoutModuleNestedInput
}

export type ModuleCreateManyInput = {
  id?: string
  title: string
  description?: string | null
  order: number
  courseId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ModuleUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ModuleUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  courseId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ModuleListRelationFilter = {
  every?: Prisma.ModuleWhereInput
  some?: Prisma.ModuleWhereInput
  none?: Prisma.ModuleWhereInput
}

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

export type ModuleOrderByRelevanceInput = {
  fields: Prisma.ModuleOrderByRelevanceFieldEnum | Prisma.ModuleOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type ModuleCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  order?: Prisma.SortOrder
  courseId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ModuleAvgOrderByAggregateInput = {
  order?: Prisma.SortOrder
}

export type ModuleMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  order?: Prisma.SortOrder
  courseId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ModuleMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  order?: Prisma.SortOrder
  courseId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ModuleSumOrderByAggregateInput = {
  order?: Prisma.SortOrder
}

export type ModuleScalarRelationFilter = {
  is?: Prisma.ModuleWhereInput
  isNot?: Prisma.ModuleWhereInput
}

export type ModuleCreateNestedManyWithoutCourseInput = {
  create?: Prisma.XOR<Prisma.ModuleCreateWithoutCourseInput, Prisma.ModuleUncheckedCreateWithoutCourseInput> | Prisma.ModuleCreateWithoutCourseInput[] | Prisma.ModuleUncheckedCreateWithoutCourseInput[]
  connectOrCreate?: Prisma.ModuleCreateOrConnectWithoutCourseInput | Prisma.ModuleCreateOrConnectWithoutCourseInput[]
  createMany?: Prisma.ModuleCreateManyCourseInputEnvelope
  connect?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
}

export type ModuleUncheckedCreateNestedManyWithoutCourseInput = {
  create?: Prisma.XOR<Prisma.ModuleCreateWithoutCourseInput, Prisma.ModuleUncheckedCreateWithoutCourseInput> | Prisma.ModuleCreateWithoutCourseInput[] | Prisma.ModuleUncheckedCreateWithoutCourseInput[]
  connectOrCreate?: Prisma.ModuleCreateOrConnectWithoutCourseInput | Prisma.ModuleCreateOrConnectWithoutCourseInput[]
  createMany?: Prisma.ModuleCreateManyCourseInputEnvelope
  connect?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
}

export type ModuleUpdateManyWithoutCourseNestedInput = {
  create?: Prisma.XOR<Prisma.ModuleCreateWithoutCourseInput, Prisma.ModuleUncheckedCreateWithoutCourseInput> | Prisma.ModuleCreateWithoutCourseInput[] | Prisma.ModuleUncheckedCreateWithoutCourseInput[]
  connectOrCreate?: Prisma.ModuleCreateOrConnectWithoutCourseInput | Prisma.ModuleCreateOrConnectWithoutCourseInput[]
  upsert?: Prisma.ModuleUpsertWithWhereUniqueWithoutCourseInput | Prisma.ModuleUpsertWithWhereUniqueWithoutCourseInput[]
  createMany?: Prisma.ModuleCreateManyCourseInputEnvelope
  set?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
  disconnect?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
  delete?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
  connect?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
  update?: Prisma.ModuleUpdateWithWhereUniqueWithoutCourseInput | Prisma.ModuleUpdateWithWhereUniqueWithoutCourseInput[]
  updateMany?: Prisma.ModuleUpdateManyWithWhereWithoutCourseInput | Prisma.ModuleUpdateManyWithWhereWithoutCourseInput[]
  deleteMany?: Prisma.ModuleScalarWhereInput | Prisma.ModuleScalarWhereInput[]
}

export type ModuleUncheckedUpdateManyWithoutCourseNestedInput = {
  create?: Prisma.XOR<Prisma.ModuleCreateWithoutCourseInput, Prisma.ModuleUncheckedCreateWithoutCourseInput> | Prisma.ModuleCreateWithoutCourseInput[] | Prisma.ModuleUncheckedCreateWithoutCourseInput[]
  connectOrCreate?: Prisma.ModuleCreateOrConnectWithoutCourseInput | Prisma.ModuleCreateOrConnectWithoutCourseInput[]
  upsert?: Prisma.ModuleUpsertWithWhereUniqueWithoutCourseInput | Prisma.ModuleUpsertWithWhereUniqueWithoutCourseInput[]
  createMany?: Prisma.ModuleCreateManyCourseInputEnvelope
  set?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
  disconnect?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
  delete?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
  connect?: Prisma.ModuleWhereUniqueInput | Prisma.ModuleWhereUniqueInput[]
  update?: Prisma.ModuleUpdateWithWhereUniqueWithoutCourseInput | Prisma.ModuleUpdateWithWhereUniqueWithoutCourseInput[]
  updateMany?: Prisma.ModuleUpdateManyWithWhereWithoutCourseInput | Prisma.ModuleUpdateManyWithWhereWithoutCourseInput[]
  deleteMany?: Prisma.ModuleScalarWhereInput | Prisma.ModuleScalarWhereInput[]
}

export type IntFieldUpdateOperationsInput = {
  set?: number
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type ModuleCreateNestedOneWithoutLessonsInput = {
  create?: Prisma.XOR<Prisma.ModuleCreateWithoutLessonsInput, Prisma.ModuleUncheckedCreateWithoutLessonsInput>
  connectOrCreate?: Prisma.ModuleCreateOrConnectWithoutLessonsInput
  connect?: Prisma.ModuleWhereUniqueInput
}

export type ModuleUpdateOneRequiredWithoutLessonsNestedInput = {
  create?: Prisma.XOR<Prisma.ModuleCreateWithoutLessonsInput, Prisma.ModuleUncheckedCreateWithoutLessonsInput>
  connectOrCreate?: Prisma.ModuleCreateOrConnectWithoutLessonsInput
  upsert?: Prisma.ModuleUpsertWithoutLessonsInput
  connect?: Prisma.ModuleWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ModuleUpdateToOneWithWhereWithoutLessonsInput, Prisma.ModuleUpdateWithoutLessonsInput>, Prisma.ModuleUncheckedUpdateWithoutLessonsInput>
}

export type ModuleCreateWithoutCourseInput = {
  id?: string
  title: string
  description?: string | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  lessons?: Prisma.LessonCreateNestedManyWithoutModuleInput
}

export type ModuleUncheckedCreateWithoutCourseInput = {
  id?: string
  title: string
  description?: string | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  lessons?: Prisma.LessonUncheckedCreateNestedManyWithoutModuleInput
}

export type ModuleCreateOrConnectWithoutCourseInput = {
  where: Prisma.ModuleWhereUniqueInput
  create: Prisma.XOR<Prisma.ModuleCreateWithoutCourseInput, Prisma.ModuleUncheckedCreateWithoutCourseInput>
}

export type ModuleCreateManyCourseInputEnvelope = {
  data: Prisma.ModuleCreateManyCourseInput | Prisma.ModuleCreateManyCourseInput[]
  skipDuplicates?: boolean
}

export type ModuleUpsertWithWhereUniqueWithoutCourseInput = {
  where: Prisma.ModuleWhereUniqueInput
  update: Prisma.XOR<Prisma.ModuleUpdateWithoutCourseInput, Prisma.ModuleUncheckedUpdateWithoutCourseInput>
  create: Prisma.XOR<Prisma.ModuleCreateWithoutCourseInput, Prisma.ModuleUncheckedCreateWithoutCourseInput>
}

export type ModuleUpdateWithWhereUniqueWithoutCourseInput = {
  where: Prisma.ModuleWhereUniqueInput
  data: Prisma.XOR<Prisma.ModuleUpdateWithoutCourseInput, Prisma.ModuleUncheckedUpdateWithoutCourseInput>
}

export type ModuleUpdateManyWithWhereWithoutCourseInput = {
  where: Prisma.ModuleScalarWhereInput
  data: Prisma.XOR<Prisma.ModuleUpdateManyMutationInput, Prisma.ModuleUncheckedUpdateManyWithoutCourseInput>
}

export type ModuleScalarWhereInput = {
  AND?: Prisma.ModuleScalarWhereInput | Prisma.ModuleScalarWhereInput[]
  OR?: Prisma.ModuleScalarWhereInput[]
  NOT?: Prisma.ModuleScalarWhereInput | Prisma.ModuleScalarWhereInput[]
  id?: Prisma.StringFilter<"Module"> | string
  title?: Prisma.StringFilter<"Module"> | string
  description?: Prisma.StringNullableFilter<"Module"> | string | null
  order?: Prisma.IntFilter<"Module"> | number
  courseId?: Prisma.StringFilter<"Module"> | string
  createdAt?: Prisma.DateTimeFilter<"Module"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Module"> | Date | string
}

export type ModuleCreateWithoutLessonsInput = {
  id?: string
  title: string
  description?: string | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  course: Prisma.CourseCreateNestedOneWithoutModulesInput
}

export type ModuleUncheckedCreateWithoutLessonsInput = {
  id?: string
  title: string
  description?: string | null
  order: number
  courseId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ModuleCreateOrConnectWithoutLessonsInput = {
  where: Prisma.ModuleWhereUniqueInput
  create: Prisma.XOR<Prisma.ModuleCreateWithoutLessonsInput, Prisma.ModuleUncheckedCreateWithoutLessonsInput>
}

export type ModuleUpsertWithoutLessonsInput = {
  update: Prisma.XOR<Prisma.ModuleUpdateWithoutLessonsInput, Prisma.ModuleUncheckedUpdateWithoutLessonsInput>
  create: Prisma.XOR<Prisma.ModuleCreateWithoutLessonsInput, Prisma.ModuleUncheckedCreateWithoutLessonsInput>
  where?: Prisma.ModuleWhereInput
}

export type ModuleUpdateToOneWithWhereWithoutLessonsInput = {
  where?: Prisma.ModuleWhereInput
  data: Prisma.XOR<Prisma.ModuleUpdateWithoutLessonsInput, Prisma.ModuleUncheckedUpdateWithoutLessonsInput>
}

export type ModuleUpdateWithoutLessonsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  course?: Prisma.CourseUpdateOneRequiredWithoutModulesNestedInput
}

export type ModuleUncheckedUpdateWithoutLessonsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  courseId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ModuleCreateManyCourseInput = {
  id?: string
  title: string
  description?: string | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ModuleUpdateWithoutCourseInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lessons?: Prisma.LessonUpdateManyWithoutModuleNestedInput
}

export type ModuleUncheckedUpdateWithoutCourseInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lessons?: Prisma.LessonUncheckedUpdateManyWithoutModuleNestedInput
}

export type ModuleUncheckedUpdateManyWithoutCourseInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type ModuleCountOutputType
 */

export type ModuleCountOutputType = {
  lessons: number
}

export type ModuleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  lessons?: boolean | ModuleCountOutputTypeCountLessonsArgs
}

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

/**
 * ModuleCountOutputType without action
 */
export type ModuleCountOutputTypeCountLessonsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.LessonWhereInput
}


export type ModuleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  title?: boolean
  description?: boolean
  order?: boolean
  courseId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  lessons?: boolean | Prisma.Module$lessonsArgs<ExtArgs>
  course?: boolean | Prisma.CourseDefaultArgs<ExtArgs>
  _count?: boolean | Prisma.ModuleCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["module"]>



export type ModuleSelectScalar = {
  id?: boolean
  title?: boolean
  description?: boolean
  order?: boolean
  courseId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type ModuleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "order" | "courseId" | "createdAt" | "updatedAt", ExtArgs["result"]["module"]>
export type ModuleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  lessons?: boolean | Prisma.Module$lessonsArgs<ExtArgs>
  course?: boolean | Prisma.CourseDefaultArgs<ExtArgs>
  _count?: boolean | Prisma.ModuleCountOutputTypeDefaultArgs<ExtArgs>
}

export type $ModulePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Module"
  objects: {
    lessons: Prisma.$LessonPayload<ExtArgs>[]
    course: Prisma.$CoursePayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    title: string
    description: string | null
    order: number
    courseId: string
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["module"]>
  composites: {}
}

export type ModuleGetPayload<S extends boolean | null | undefined | ModuleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ModulePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Module.
 * 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__ModuleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  lessons<T extends Prisma.Module$lessonsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Module$lessonsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LessonPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  course<T extends Prisma.CourseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CourseDefaultArgs<ExtArgs>>): Prisma.Prisma__CourseClient<runtime.Types.Result.GetResult<Prisma.$CoursePayload<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 Module model
 */
export interface ModuleFieldRefs {
  readonly id: Prisma.FieldRef<"Module", 'String'>
  readonly title: Prisma.FieldRef<"Module", 'String'>
  readonly description: Prisma.FieldRef<"Module", 'String'>
  readonly order: Prisma.FieldRef<"Module", 'Int'>
  readonly courseId: Prisma.FieldRef<"Module", 'String'>
  readonly createdAt: Prisma.FieldRef<"Module", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Module", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Module findUnique
 */
export type ModuleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Module
   */
  select?: Prisma.ModuleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Module
   */
  omit?: Prisma.ModuleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ModuleInclude<ExtArgs> | null
  /**
   * Filter, which Module to fetch.
   */
  where: Prisma.ModuleWhereUniqueInput
}

/**
 * Module findUniqueOrThrow
 */
export type ModuleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Module
   */
  select?: Prisma.ModuleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Module
   */
  omit?: Prisma.ModuleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ModuleInclude<ExtArgs> | null
  /**
   * Filter, which Module to fetch.
   */
  where: Prisma.ModuleWhereUniqueInput
}

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

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

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

/**
 * Module create
 */
export type ModuleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Module
   */
  select?: Prisma.ModuleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Module
   */
  omit?: Prisma.ModuleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ModuleInclude<ExtArgs> | null
  /**
   * The data needed to create a Module.
   */
  data: Prisma.XOR<Prisma.ModuleCreateInput, Prisma.ModuleUncheckedCreateInput>
}

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

/**
 * Module update
 */
export type ModuleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Module
   */
  select?: Prisma.ModuleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Module
   */
  omit?: Prisma.ModuleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ModuleInclude<ExtArgs> | null
  /**
   * The data needed to update a Module.
   */
  data: Prisma.XOR<Prisma.ModuleUpdateInput, Prisma.ModuleUncheckedUpdateInput>
  /**
   * Choose, which Module to update.
   */
  where: Prisma.ModuleWhereUniqueInput
}

/**
 * Module updateMany
 */
export type ModuleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Modules.
   */
  data: Prisma.XOR<Prisma.ModuleUpdateManyMutationInput, Prisma.ModuleUncheckedUpdateManyInput>
  /**
   * Filter which Modules to update
   */
  where?: Prisma.ModuleWhereInput
  /**
   * Limit how many Modules to update.
   */
  limit?: number
}

/**
 * Module upsert
 */
export type ModuleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Module
   */
  select?: Prisma.ModuleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Module
   */
  omit?: Prisma.ModuleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ModuleInclude<ExtArgs> | null
  /**
   * The filter to search for the Module to update in case it exists.
   */
  where: Prisma.ModuleWhereUniqueInput
  /**
   * In case the Module found by the `where` argument doesn't exist, create a new Module with this data.
   */
  create: Prisma.XOR<Prisma.ModuleCreateInput, Prisma.ModuleUncheckedCreateInput>
  /**
   * In case the Module was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ModuleUpdateInput, Prisma.ModuleUncheckedUpdateInput>
}

/**
 * Module delete
 */
export type ModuleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Module
   */
  select?: Prisma.ModuleSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Module
   */
  omit?: Prisma.ModuleOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ModuleInclude<ExtArgs> | null
  /**
   * Filter which Module to delete.
   */
  where: Prisma.ModuleWhereUniqueInput
}

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

/**
 * Module.lessons
 */
export type Module$lessonsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Lesson
   */
  select?: Prisma.LessonSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Lesson
   */
  omit?: Prisma.LessonOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LessonInclude<ExtArgs> | null
  where?: Prisma.LessonWhereInput
  orderBy?: Prisma.LessonOrderByWithRelationInput | Prisma.LessonOrderByWithRelationInput[]
  cursor?: Prisma.LessonWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.LessonScalarFieldEnum | Prisma.LessonScalarFieldEnum[]
}

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