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

export type AggregateLesson = {
  _count: LessonCountAggregateOutputType | null
  _avg: LessonAvgAggregateOutputType | null
  _sum: LessonSumAggregateOutputType | null
  _min: LessonMinAggregateOutputType | null
  _max: LessonMaxAggregateOutputType | null
}

export type LessonAvgAggregateOutputType = {
  duration: number | null
  order: number | null
}

export type LessonSumAggregateOutputType = {
  duration: number | null
  order: number | null
}

export type LessonMinAggregateOutputType = {
  id: string | null
  title: string | null
  contentType: string | null
  content: string | null
  duration: number | null
  order: number | null
  moduleId: string | null
  quizId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type LessonMaxAggregateOutputType = {
  id: string | null
  title: string | null
  contentType: string | null
  content: string | null
  duration: number | null
  order: number | null
  moduleId: string | null
  quizId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type LessonCountAggregateOutputType = {
  id: number
  title: number
  contentType: number
  content: number
  duration: number
  order: number
  moduleId: number
  quizId: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type LessonAvgAggregateInputType = {
  duration?: true
  order?: true
}

export type LessonSumAggregateInputType = {
  duration?: true
  order?: true
}

export type LessonMinAggregateInputType = {
  id?: true
  title?: true
  contentType?: true
  content?: true
  duration?: true
  order?: true
  moduleId?: true
  quizId?: true
  createdAt?: true
  updatedAt?: true
}

export type LessonMaxAggregateInputType = {
  id?: true
  title?: true
  contentType?: true
  content?: true
  duration?: true
  order?: true
  moduleId?: true
  quizId?: true
  createdAt?: true
  updatedAt?: true
}

export type LessonCountAggregateInputType = {
  id?: true
  title?: true
  contentType?: true
  content?: true
  duration?: true
  order?: true
  moduleId?: true
  quizId?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type LessonGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.LessonWhereInput
  orderBy?: Prisma.LessonOrderByWithAggregationInput | Prisma.LessonOrderByWithAggregationInput[]
  by: Prisma.LessonScalarFieldEnum[] | Prisma.LessonScalarFieldEnum
  having?: Prisma.LessonScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: LessonCountAggregateInputType | true
  _avg?: LessonAvgAggregateInputType
  _sum?: LessonSumAggregateInputType
  _min?: LessonMinAggregateInputType
  _max?: LessonMaxAggregateInputType
}

export type LessonGroupByOutputType = {
  id: string
  title: string
  contentType: string
  content: string | null
  duration: number | null
  order: number
  moduleId: string
  quizId: string | null
  createdAt: Date
  updatedAt: Date
  _count: LessonCountAggregateOutputType | null
  _avg: LessonAvgAggregateOutputType | null
  _sum: LessonSumAggregateOutputType | null
  _min: LessonMinAggregateOutputType | null
  _max: LessonMaxAggregateOutputType | null
}

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



export type LessonWhereInput = {
  AND?: Prisma.LessonWhereInput | Prisma.LessonWhereInput[]
  OR?: Prisma.LessonWhereInput[]
  NOT?: Prisma.LessonWhereInput | Prisma.LessonWhereInput[]
  id?: Prisma.StringFilter<"Lesson"> | string
  title?: Prisma.StringFilter<"Lesson"> | string
  contentType?: Prisma.StringFilter<"Lesson"> | string
  content?: Prisma.StringNullableFilter<"Lesson"> | string | null
  duration?: Prisma.IntNullableFilter<"Lesson"> | number | null
  order?: Prisma.IntFilter<"Lesson"> | number
  moduleId?: Prisma.StringFilter<"Lesson"> | string
  quizId?: Prisma.StringNullableFilter<"Lesson"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Lesson"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Lesson"> | Date | string
  module?: Prisma.XOR<Prisma.ModuleScalarRelationFilter, Prisma.ModuleWhereInput>
  quiz?: Prisma.XOR<Prisma.QuizNullableScalarRelationFilter, Prisma.QuizWhereInput> | null
  notes?: Prisma.NoteListRelationFilter
  userProgress?: Prisma.UserProgressListRelationFilter
}

export type LessonOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  contentType?: Prisma.SortOrder
  content?: Prisma.SortOrderInput | Prisma.SortOrder
  duration?: Prisma.SortOrderInput | Prisma.SortOrder
  order?: Prisma.SortOrder
  moduleId?: Prisma.SortOrder
  quizId?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  module?: Prisma.ModuleOrderByWithRelationInput
  quiz?: Prisma.QuizOrderByWithRelationInput
  notes?: Prisma.NoteOrderByRelationAggregateInput
  userProgress?: Prisma.UserProgressOrderByRelationAggregateInput
  _relevance?: Prisma.LessonOrderByRelevanceInput
}

export type LessonWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.LessonWhereInput | Prisma.LessonWhereInput[]
  OR?: Prisma.LessonWhereInput[]
  NOT?: Prisma.LessonWhereInput | Prisma.LessonWhereInput[]
  title?: Prisma.StringFilter<"Lesson"> | string
  contentType?: Prisma.StringFilter<"Lesson"> | string
  content?: Prisma.StringNullableFilter<"Lesson"> | string | null
  duration?: Prisma.IntNullableFilter<"Lesson"> | number | null
  order?: Prisma.IntFilter<"Lesson"> | number
  moduleId?: Prisma.StringFilter<"Lesson"> | string
  quizId?: Prisma.StringNullableFilter<"Lesson"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Lesson"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Lesson"> | Date | string
  module?: Prisma.XOR<Prisma.ModuleScalarRelationFilter, Prisma.ModuleWhereInput>
  quiz?: Prisma.XOR<Prisma.QuizNullableScalarRelationFilter, Prisma.QuizWhereInput> | null
  notes?: Prisma.NoteListRelationFilter
  userProgress?: Prisma.UserProgressListRelationFilter
}, "id">

export type LessonOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  contentType?: Prisma.SortOrder
  content?: Prisma.SortOrderInput | Prisma.SortOrder
  duration?: Prisma.SortOrderInput | Prisma.SortOrder
  order?: Prisma.SortOrder
  moduleId?: Prisma.SortOrder
  quizId?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.LessonCountOrderByAggregateInput
  _avg?: Prisma.LessonAvgOrderByAggregateInput
  _max?: Prisma.LessonMaxOrderByAggregateInput
  _min?: Prisma.LessonMinOrderByAggregateInput
  _sum?: Prisma.LessonSumOrderByAggregateInput
}

export type LessonScalarWhereWithAggregatesInput = {
  AND?: Prisma.LessonScalarWhereWithAggregatesInput | Prisma.LessonScalarWhereWithAggregatesInput[]
  OR?: Prisma.LessonScalarWhereWithAggregatesInput[]
  NOT?: Prisma.LessonScalarWhereWithAggregatesInput | Prisma.LessonScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"Lesson"> | string
  title?: Prisma.StringWithAggregatesFilter<"Lesson"> | string
  contentType?: Prisma.StringWithAggregatesFilter<"Lesson"> | string
  content?: Prisma.StringNullableWithAggregatesFilter<"Lesson"> | string | null
  duration?: Prisma.IntNullableWithAggregatesFilter<"Lesson"> | number | null
  order?: Prisma.IntWithAggregatesFilter<"Lesson"> | number
  moduleId?: Prisma.StringWithAggregatesFilter<"Lesson"> | string
  quizId?: Prisma.StringNullableWithAggregatesFilter<"Lesson"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Lesson"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Lesson"> | Date | string
}

export type LessonCreateInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  module: Prisma.ModuleCreateNestedOneWithoutLessonsInput
  quiz?: Prisma.QuizCreateNestedOneWithoutLessonsInput
  notes?: Prisma.NoteCreateNestedManyWithoutLessonInput
  userProgress?: Prisma.UserProgressCreateNestedManyWithoutLessonInput
}

export type LessonUncheckedCreateInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  moduleId: string
  quizId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  notes?: Prisma.NoteUncheckedCreateNestedManyWithoutLessonInput
  userProgress?: Prisma.UserProgressUncheckedCreateNestedManyWithoutLessonInput
}

export type LessonUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  module?: Prisma.ModuleUpdateOneRequiredWithoutLessonsNestedInput
  quiz?: Prisma.QuizUpdateOneWithoutLessonsNestedInput
  notes?: Prisma.NoteUpdateManyWithoutLessonNestedInput
  userProgress?: Prisma.UserProgressUpdateManyWithoutLessonNestedInput
}

export type LessonUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  moduleId?: Prisma.StringFieldUpdateOperationsInput | string
  quizId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  notes?: Prisma.NoteUncheckedUpdateManyWithoutLessonNestedInput
  userProgress?: Prisma.UserProgressUncheckedUpdateManyWithoutLessonNestedInput
}

export type LessonCreateManyInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  moduleId: string
  quizId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type LessonUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type LessonUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  moduleId?: Prisma.StringFieldUpdateOperationsInput | string
  quizId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type LessonListRelationFilter = {
  every?: Prisma.LessonWhereInput
  some?: Prisma.LessonWhereInput
  none?: Prisma.LessonWhereInput
}

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

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

export type LessonCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  contentType?: Prisma.SortOrder
  content?: Prisma.SortOrder
  duration?: Prisma.SortOrder
  order?: Prisma.SortOrder
  moduleId?: Prisma.SortOrder
  quizId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type LessonAvgOrderByAggregateInput = {
  duration?: Prisma.SortOrder
  order?: Prisma.SortOrder
}

export type LessonMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  contentType?: Prisma.SortOrder
  content?: Prisma.SortOrder
  duration?: Prisma.SortOrder
  order?: Prisma.SortOrder
  moduleId?: Prisma.SortOrder
  quizId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type LessonMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  contentType?: Prisma.SortOrder
  content?: Prisma.SortOrder
  duration?: Prisma.SortOrder
  order?: Prisma.SortOrder
  moduleId?: Prisma.SortOrder
  quizId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type LessonSumOrderByAggregateInput = {
  duration?: Prisma.SortOrder
  order?: Prisma.SortOrder
}

export type LessonScalarRelationFilter = {
  is?: Prisma.LessonWhereInput
  isNot?: Prisma.LessonWhereInput
}

export type LessonCreateNestedManyWithoutModuleInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutModuleInput, Prisma.LessonUncheckedCreateWithoutModuleInput> | Prisma.LessonCreateWithoutModuleInput[] | Prisma.LessonUncheckedCreateWithoutModuleInput[]
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutModuleInput | Prisma.LessonCreateOrConnectWithoutModuleInput[]
  createMany?: Prisma.LessonCreateManyModuleInputEnvelope
  connect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
}

export type LessonUncheckedCreateNestedManyWithoutModuleInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutModuleInput, Prisma.LessonUncheckedCreateWithoutModuleInput> | Prisma.LessonCreateWithoutModuleInput[] | Prisma.LessonUncheckedCreateWithoutModuleInput[]
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutModuleInput | Prisma.LessonCreateOrConnectWithoutModuleInput[]
  createMany?: Prisma.LessonCreateManyModuleInputEnvelope
  connect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
}

export type LessonUpdateManyWithoutModuleNestedInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutModuleInput, Prisma.LessonUncheckedCreateWithoutModuleInput> | Prisma.LessonCreateWithoutModuleInput[] | Prisma.LessonUncheckedCreateWithoutModuleInput[]
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutModuleInput | Prisma.LessonCreateOrConnectWithoutModuleInput[]
  upsert?: Prisma.LessonUpsertWithWhereUniqueWithoutModuleInput | Prisma.LessonUpsertWithWhereUniqueWithoutModuleInput[]
  createMany?: Prisma.LessonCreateManyModuleInputEnvelope
  set?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  disconnect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  delete?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  connect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  update?: Prisma.LessonUpdateWithWhereUniqueWithoutModuleInput | Prisma.LessonUpdateWithWhereUniqueWithoutModuleInput[]
  updateMany?: Prisma.LessonUpdateManyWithWhereWithoutModuleInput | Prisma.LessonUpdateManyWithWhereWithoutModuleInput[]
  deleteMany?: Prisma.LessonScalarWhereInput | Prisma.LessonScalarWhereInput[]
}

export type LessonUncheckedUpdateManyWithoutModuleNestedInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutModuleInput, Prisma.LessonUncheckedCreateWithoutModuleInput> | Prisma.LessonCreateWithoutModuleInput[] | Prisma.LessonUncheckedCreateWithoutModuleInput[]
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutModuleInput | Prisma.LessonCreateOrConnectWithoutModuleInput[]
  upsert?: Prisma.LessonUpsertWithWhereUniqueWithoutModuleInput | Prisma.LessonUpsertWithWhereUniqueWithoutModuleInput[]
  createMany?: Prisma.LessonCreateManyModuleInputEnvelope
  set?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  disconnect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  delete?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  connect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  update?: Prisma.LessonUpdateWithWhereUniqueWithoutModuleInput | Prisma.LessonUpdateWithWhereUniqueWithoutModuleInput[]
  updateMany?: Prisma.LessonUpdateManyWithWhereWithoutModuleInput | Prisma.LessonUpdateManyWithWhereWithoutModuleInput[]
  deleteMany?: Prisma.LessonScalarWhereInput | Prisma.LessonScalarWhereInput[]
}

export type NullableIntFieldUpdateOperationsInput = {
  set?: number | null
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type LessonCreateNestedManyWithoutQuizInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutQuizInput, Prisma.LessonUncheckedCreateWithoutQuizInput> | Prisma.LessonCreateWithoutQuizInput[] | Prisma.LessonUncheckedCreateWithoutQuizInput[]
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutQuizInput | Prisma.LessonCreateOrConnectWithoutQuizInput[]
  createMany?: Prisma.LessonCreateManyQuizInputEnvelope
  connect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
}

export type LessonUncheckedCreateNestedManyWithoutQuizInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutQuizInput, Prisma.LessonUncheckedCreateWithoutQuizInput> | Prisma.LessonCreateWithoutQuizInput[] | Prisma.LessonUncheckedCreateWithoutQuizInput[]
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutQuizInput | Prisma.LessonCreateOrConnectWithoutQuizInput[]
  createMany?: Prisma.LessonCreateManyQuizInputEnvelope
  connect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
}

export type LessonUpdateManyWithoutQuizNestedInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutQuizInput, Prisma.LessonUncheckedCreateWithoutQuizInput> | Prisma.LessonCreateWithoutQuizInput[] | Prisma.LessonUncheckedCreateWithoutQuizInput[]
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutQuizInput | Prisma.LessonCreateOrConnectWithoutQuizInput[]
  upsert?: Prisma.LessonUpsertWithWhereUniqueWithoutQuizInput | Prisma.LessonUpsertWithWhereUniqueWithoutQuizInput[]
  createMany?: Prisma.LessonCreateManyQuizInputEnvelope
  set?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  disconnect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  delete?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  connect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  update?: Prisma.LessonUpdateWithWhereUniqueWithoutQuizInput | Prisma.LessonUpdateWithWhereUniqueWithoutQuizInput[]
  updateMany?: Prisma.LessonUpdateManyWithWhereWithoutQuizInput | Prisma.LessonUpdateManyWithWhereWithoutQuizInput[]
  deleteMany?: Prisma.LessonScalarWhereInput | Prisma.LessonScalarWhereInput[]
}

export type LessonUncheckedUpdateManyWithoutQuizNestedInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutQuizInput, Prisma.LessonUncheckedCreateWithoutQuizInput> | Prisma.LessonCreateWithoutQuizInput[] | Prisma.LessonUncheckedCreateWithoutQuizInput[]
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutQuizInput | Prisma.LessonCreateOrConnectWithoutQuizInput[]
  upsert?: Prisma.LessonUpsertWithWhereUniqueWithoutQuizInput | Prisma.LessonUpsertWithWhereUniqueWithoutQuizInput[]
  createMany?: Prisma.LessonCreateManyQuizInputEnvelope
  set?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  disconnect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  delete?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  connect?: Prisma.LessonWhereUniqueInput | Prisma.LessonWhereUniqueInput[]
  update?: Prisma.LessonUpdateWithWhereUniqueWithoutQuizInput | Prisma.LessonUpdateWithWhereUniqueWithoutQuizInput[]
  updateMany?: Prisma.LessonUpdateManyWithWhereWithoutQuizInput | Prisma.LessonUpdateManyWithWhereWithoutQuizInput[]
  deleteMany?: Prisma.LessonScalarWhereInput | Prisma.LessonScalarWhereInput[]
}

export type LessonCreateNestedOneWithoutNotesInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutNotesInput, Prisma.LessonUncheckedCreateWithoutNotesInput>
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutNotesInput
  connect?: Prisma.LessonWhereUniqueInput
}

export type LessonUpdateOneRequiredWithoutNotesNestedInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutNotesInput, Prisma.LessonUncheckedCreateWithoutNotesInput>
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutNotesInput
  upsert?: Prisma.LessonUpsertWithoutNotesInput
  connect?: Prisma.LessonWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.LessonUpdateToOneWithWhereWithoutNotesInput, Prisma.LessonUpdateWithoutNotesInput>, Prisma.LessonUncheckedUpdateWithoutNotesInput>
}

export type LessonCreateNestedOneWithoutUserProgressInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutUserProgressInput, Prisma.LessonUncheckedCreateWithoutUserProgressInput>
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutUserProgressInput
  connect?: Prisma.LessonWhereUniqueInput
}

export type LessonUpdateOneRequiredWithoutUserProgressNestedInput = {
  create?: Prisma.XOR<Prisma.LessonCreateWithoutUserProgressInput, Prisma.LessonUncheckedCreateWithoutUserProgressInput>
  connectOrCreate?: Prisma.LessonCreateOrConnectWithoutUserProgressInput
  upsert?: Prisma.LessonUpsertWithoutUserProgressInput
  connect?: Prisma.LessonWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.LessonUpdateToOneWithWhereWithoutUserProgressInput, Prisma.LessonUpdateWithoutUserProgressInput>, Prisma.LessonUncheckedUpdateWithoutUserProgressInput>
}

export type LessonCreateWithoutModuleInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  quiz?: Prisma.QuizCreateNestedOneWithoutLessonsInput
  notes?: Prisma.NoteCreateNestedManyWithoutLessonInput
  userProgress?: Prisma.UserProgressCreateNestedManyWithoutLessonInput
}

export type LessonUncheckedCreateWithoutModuleInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  quizId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  notes?: Prisma.NoteUncheckedCreateNestedManyWithoutLessonInput
  userProgress?: Prisma.UserProgressUncheckedCreateNestedManyWithoutLessonInput
}

export type LessonCreateOrConnectWithoutModuleInput = {
  where: Prisma.LessonWhereUniqueInput
  create: Prisma.XOR<Prisma.LessonCreateWithoutModuleInput, Prisma.LessonUncheckedCreateWithoutModuleInput>
}

export type LessonCreateManyModuleInputEnvelope = {
  data: Prisma.LessonCreateManyModuleInput | Prisma.LessonCreateManyModuleInput[]
  skipDuplicates?: boolean
}

export type LessonUpsertWithWhereUniqueWithoutModuleInput = {
  where: Prisma.LessonWhereUniqueInput
  update: Prisma.XOR<Prisma.LessonUpdateWithoutModuleInput, Prisma.LessonUncheckedUpdateWithoutModuleInput>
  create: Prisma.XOR<Prisma.LessonCreateWithoutModuleInput, Prisma.LessonUncheckedCreateWithoutModuleInput>
}

export type LessonUpdateWithWhereUniqueWithoutModuleInput = {
  where: Prisma.LessonWhereUniqueInput
  data: Prisma.XOR<Prisma.LessonUpdateWithoutModuleInput, Prisma.LessonUncheckedUpdateWithoutModuleInput>
}

export type LessonUpdateManyWithWhereWithoutModuleInput = {
  where: Prisma.LessonScalarWhereInput
  data: Prisma.XOR<Prisma.LessonUpdateManyMutationInput, Prisma.LessonUncheckedUpdateManyWithoutModuleInput>
}

export type LessonScalarWhereInput = {
  AND?: Prisma.LessonScalarWhereInput | Prisma.LessonScalarWhereInput[]
  OR?: Prisma.LessonScalarWhereInput[]
  NOT?: Prisma.LessonScalarWhereInput | Prisma.LessonScalarWhereInput[]
  id?: Prisma.StringFilter<"Lesson"> | string
  title?: Prisma.StringFilter<"Lesson"> | string
  contentType?: Prisma.StringFilter<"Lesson"> | string
  content?: Prisma.StringNullableFilter<"Lesson"> | string | null
  duration?: Prisma.IntNullableFilter<"Lesson"> | number | null
  order?: Prisma.IntFilter<"Lesson"> | number
  moduleId?: Prisma.StringFilter<"Lesson"> | string
  quizId?: Prisma.StringNullableFilter<"Lesson"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Lesson"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Lesson"> | Date | string
}

export type LessonCreateWithoutQuizInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  module: Prisma.ModuleCreateNestedOneWithoutLessonsInput
  notes?: Prisma.NoteCreateNestedManyWithoutLessonInput
  userProgress?: Prisma.UserProgressCreateNestedManyWithoutLessonInput
}

export type LessonUncheckedCreateWithoutQuizInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  moduleId: string
  createdAt?: Date | string
  updatedAt?: Date | string
  notes?: Prisma.NoteUncheckedCreateNestedManyWithoutLessonInput
  userProgress?: Prisma.UserProgressUncheckedCreateNestedManyWithoutLessonInput
}

export type LessonCreateOrConnectWithoutQuizInput = {
  where: Prisma.LessonWhereUniqueInput
  create: Prisma.XOR<Prisma.LessonCreateWithoutQuizInput, Prisma.LessonUncheckedCreateWithoutQuizInput>
}

export type LessonCreateManyQuizInputEnvelope = {
  data: Prisma.LessonCreateManyQuizInput | Prisma.LessonCreateManyQuizInput[]
  skipDuplicates?: boolean
}

export type LessonUpsertWithWhereUniqueWithoutQuizInput = {
  where: Prisma.LessonWhereUniqueInput
  update: Prisma.XOR<Prisma.LessonUpdateWithoutQuizInput, Prisma.LessonUncheckedUpdateWithoutQuizInput>
  create: Prisma.XOR<Prisma.LessonCreateWithoutQuizInput, Prisma.LessonUncheckedCreateWithoutQuizInput>
}

export type LessonUpdateWithWhereUniqueWithoutQuizInput = {
  where: Prisma.LessonWhereUniqueInput
  data: Prisma.XOR<Prisma.LessonUpdateWithoutQuizInput, Prisma.LessonUncheckedUpdateWithoutQuizInput>
}

export type LessonUpdateManyWithWhereWithoutQuizInput = {
  where: Prisma.LessonScalarWhereInput
  data: Prisma.XOR<Prisma.LessonUpdateManyMutationInput, Prisma.LessonUncheckedUpdateManyWithoutQuizInput>
}

export type LessonCreateWithoutNotesInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  module: Prisma.ModuleCreateNestedOneWithoutLessonsInput
  quiz?: Prisma.QuizCreateNestedOneWithoutLessonsInput
  userProgress?: Prisma.UserProgressCreateNestedManyWithoutLessonInput
}

export type LessonUncheckedCreateWithoutNotesInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  moduleId: string
  quizId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  userProgress?: Prisma.UserProgressUncheckedCreateNestedManyWithoutLessonInput
}

export type LessonCreateOrConnectWithoutNotesInput = {
  where: Prisma.LessonWhereUniqueInput
  create: Prisma.XOR<Prisma.LessonCreateWithoutNotesInput, Prisma.LessonUncheckedCreateWithoutNotesInput>
}

export type LessonUpsertWithoutNotesInput = {
  update: Prisma.XOR<Prisma.LessonUpdateWithoutNotesInput, Prisma.LessonUncheckedUpdateWithoutNotesInput>
  create: Prisma.XOR<Prisma.LessonCreateWithoutNotesInput, Prisma.LessonUncheckedCreateWithoutNotesInput>
  where?: Prisma.LessonWhereInput
}

export type LessonUpdateToOneWithWhereWithoutNotesInput = {
  where?: Prisma.LessonWhereInput
  data: Prisma.XOR<Prisma.LessonUpdateWithoutNotesInput, Prisma.LessonUncheckedUpdateWithoutNotesInput>
}

export type LessonUpdateWithoutNotesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  module?: Prisma.ModuleUpdateOneRequiredWithoutLessonsNestedInput
  quiz?: Prisma.QuizUpdateOneWithoutLessonsNestedInput
  userProgress?: Prisma.UserProgressUpdateManyWithoutLessonNestedInput
}

export type LessonUncheckedUpdateWithoutNotesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  moduleId?: Prisma.StringFieldUpdateOperationsInput | string
  quizId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userProgress?: Prisma.UserProgressUncheckedUpdateManyWithoutLessonNestedInput
}

export type LessonCreateWithoutUserProgressInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  createdAt?: Date | string
  updatedAt?: Date | string
  module: Prisma.ModuleCreateNestedOneWithoutLessonsInput
  quiz?: Prisma.QuizCreateNestedOneWithoutLessonsInput
  notes?: Prisma.NoteCreateNestedManyWithoutLessonInput
}

export type LessonUncheckedCreateWithoutUserProgressInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  moduleId: string
  quizId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  notes?: Prisma.NoteUncheckedCreateNestedManyWithoutLessonInput
}

export type LessonCreateOrConnectWithoutUserProgressInput = {
  where: Prisma.LessonWhereUniqueInput
  create: Prisma.XOR<Prisma.LessonCreateWithoutUserProgressInput, Prisma.LessonUncheckedCreateWithoutUserProgressInput>
}

export type LessonUpsertWithoutUserProgressInput = {
  update: Prisma.XOR<Prisma.LessonUpdateWithoutUserProgressInput, Prisma.LessonUncheckedUpdateWithoutUserProgressInput>
  create: Prisma.XOR<Prisma.LessonCreateWithoutUserProgressInput, Prisma.LessonUncheckedCreateWithoutUserProgressInput>
  where?: Prisma.LessonWhereInput
}

export type LessonUpdateToOneWithWhereWithoutUserProgressInput = {
  where?: Prisma.LessonWhereInput
  data: Prisma.XOR<Prisma.LessonUpdateWithoutUserProgressInput, Prisma.LessonUncheckedUpdateWithoutUserProgressInput>
}

export type LessonUpdateWithoutUserProgressInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  module?: Prisma.ModuleUpdateOneRequiredWithoutLessonsNestedInput
  quiz?: Prisma.QuizUpdateOneWithoutLessonsNestedInput
  notes?: Prisma.NoteUpdateManyWithoutLessonNestedInput
}

export type LessonUncheckedUpdateWithoutUserProgressInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  moduleId?: Prisma.StringFieldUpdateOperationsInput | string
  quizId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  notes?: Prisma.NoteUncheckedUpdateManyWithoutLessonNestedInput
}

export type LessonCreateManyModuleInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  quizId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type LessonUpdateWithoutModuleInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  quiz?: Prisma.QuizUpdateOneWithoutLessonsNestedInput
  notes?: Prisma.NoteUpdateManyWithoutLessonNestedInput
  userProgress?: Prisma.UserProgressUpdateManyWithoutLessonNestedInput
}

export type LessonUncheckedUpdateWithoutModuleInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  quizId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  notes?: Prisma.NoteUncheckedUpdateManyWithoutLessonNestedInput
  userProgress?: Prisma.UserProgressUncheckedUpdateManyWithoutLessonNestedInput
}

export type LessonUncheckedUpdateManyWithoutModuleInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  quizId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type LessonCreateManyQuizInput = {
  id?: string
  title: string
  contentType: string
  content?: string | null
  duration?: number | null
  order: number
  moduleId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type LessonUpdateWithoutQuizInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  module?: Prisma.ModuleUpdateOneRequiredWithoutLessonsNestedInput
  notes?: Prisma.NoteUpdateManyWithoutLessonNestedInput
  userProgress?: Prisma.UserProgressUpdateManyWithoutLessonNestedInput
}

export type LessonUncheckedUpdateWithoutQuizInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  moduleId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  notes?: Prisma.NoteUncheckedUpdateManyWithoutLessonNestedInput
  userProgress?: Prisma.UserProgressUncheckedUpdateManyWithoutLessonNestedInput
}

export type LessonUncheckedUpdateManyWithoutQuizInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  contentType?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  order?: Prisma.IntFieldUpdateOperationsInput | number
  moduleId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type LessonCountOutputType
 */

export type LessonCountOutputType = {
  notes: number
  userProgress: number
}

export type LessonCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  notes?: boolean | LessonCountOutputTypeCountNotesArgs
  userProgress?: boolean | LessonCountOutputTypeCountUserProgressArgs
}

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

/**
 * LessonCountOutputType without action
 */
export type LessonCountOutputTypeCountNotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.NoteWhereInput
}

/**
 * LessonCountOutputType without action
 */
export type LessonCountOutputTypeCountUserProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.UserProgressWhereInput
}


export type LessonSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  title?: boolean
  contentType?: boolean
  content?: boolean
  duration?: boolean
  order?: boolean
  moduleId?: boolean
  quizId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  module?: boolean | Prisma.ModuleDefaultArgs<ExtArgs>
  quiz?: boolean | Prisma.Lesson$quizArgs<ExtArgs>
  notes?: boolean | Prisma.Lesson$notesArgs<ExtArgs>
  userProgress?: boolean | Prisma.Lesson$userProgressArgs<ExtArgs>
  _count?: boolean | Prisma.LessonCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["lesson"]>



export type LessonSelectScalar = {
  id?: boolean
  title?: boolean
  contentType?: boolean
  content?: boolean
  duration?: boolean
  order?: boolean
  moduleId?: boolean
  quizId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type LessonOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "contentType" | "content" | "duration" | "order" | "moduleId" | "quizId" | "createdAt" | "updatedAt", ExtArgs["result"]["lesson"]>
export type LessonInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  module?: boolean | Prisma.ModuleDefaultArgs<ExtArgs>
  quiz?: boolean | Prisma.Lesson$quizArgs<ExtArgs>
  notes?: boolean | Prisma.Lesson$notesArgs<ExtArgs>
  userProgress?: boolean | Prisma.Lesson$userProgressArgs<ExtArgs>
  _count?: boolean | Prisma.LessonCountOutputTypeDefaultArgs<ExtArgs>
}

export type $LessonPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Lesson"
  objects: {
    module: Prisma.$ModulePayload<ExtArgs>
    quiz: Prisma.$QuizPayload<ExtArgs> | null
    notes: Prisma.$NotePayload<ExtArgs>[]
    userProgress: Prisma.$UserProgressPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    title: string
    contentType: string
    content: string | null
    duration: number | null
    order: number
    moduleId: string
    quizId: string | null
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["lesson"]>
  composites: {}
}

export type LessonGetPayload<S extends boolean | null | undefined | LessonDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LessonPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Lesson.
 * 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__LessonClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  module<T extends Prisma.ModuleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ModuleDefaultArgs<ExtArgs>>): Prisma.Prisma__ModuleClient<runtime.Types.Result.GetResult<Prisma.$ModulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  quiz<T extends Prisma.Lesson$quizArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Lesson$quizArgs<ExtArgs>>): Prisma.Prisma__QuizClient<runtime.Types.Result.GetResult<Prisma.$QuizPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  notes<T extends Prisma.Lesson$notesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Lesson$notesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  userProgress<T extends Prisma.Lesson$userProgressArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Lesson$userProgressArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * 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 Lesson model
 */
export interface LessonFieldRefs {
  readonly id: Prisma.FieldRef<"Lesson", 'String'>
  readonly title: Prisma.FieldRef<"Lesson", 'String'>
  readonly contentType: Prisma.FieldRef<"Lesson", 'String'>
  readonly content: Prisma.FieldRef<"Lesson", 'String'>
  readonly duration: Prisma.FieldRef<"Lesson", 'Int'>
  readonly order: Prisma.FieldRef<"Lesson", 'Int'>
  readonly moduleId: Prisma.FieldRef<"Lesson", 'String'>
  readonly quizId: Prisma.FieldRef<"Lesson", 'String'>
  readonly createdAt: Prisma.FieldRef<"Lesson", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Lesson", 'DateTime'>
}
    

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

/**
 * Lesson findUniqueOrThrow
 */
export type LessonFindUniqueOrThrowArgs<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
  /**
   * Filter, which Lesson to fetch.
   */
  where: Prisma.LessonWhereUniqueInput
}

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

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

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

/**
 * Lesson create
 */
export type LessonCreateArgs<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
  /**
   * The data needed to create a Lesson.
   */
  data: Prisma.XOR<Prisma.LessonCreateInput, Prisma.LessonUncheckedCreateInput>
}

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

/**
 * Lesson update
 */
export type LessonUpdateArgs<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
  /**
   * The data needed to update a Lesson.
   */
  data: Prisma.XOR<Prisma.LessonUpdateInput, Prisma.LessonUncheckedUpdateInput>
  /**
   * Choose, which Lesson to update.
   */
  where: Prisma.LessonWhereUniqueInput
}

/**
 * Lesson updateMany
 */
export type LessonUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Lessons.
   */
  data: Prisma.XOR<Prisma.LessonUpdateManyMutationInput, Prisma.LessonUncheckedUpdateManyInput>
  /**
   * Filter which Lessons to update
   */
  where?: Prisma.LessonWhereInput
  /**
   * Limit how many Lessons to update.
   */
  limit?: number
}

/**
 * Lesson upsert
 */
export type LessonUpsertArgs<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
  /**
   * The filter to search for the Lesson to update in case it exists.
   */
  where: Prisma.LessonWhereUniqueInput
  /**
   * In case the Lesson found by the `where` argument doesn't exist, create a new Lesson with this data.
   */
  create: Prisma.XOR<Prisma.LessonCreateInput, Prisma.LessonUncheckedCreateInput>
  /**
   * In case the Lesson was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.LessonUpdateInput, Prisma.LessonUncheckedUpdateInput>
}

/**
 * Lesson delete
 */
export type LessonDeleteArgs<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
  /**
   * Filter which Lesson to delete.
   */
  where: Prisma.LessonWhereUniqueInput
}

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

/**
 * Lesson.quiz
 */
export type Lesson$quizArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Quiz
   */
  select?: Prisma.QuizSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Quiz
   */
  omit?: Prisma.QuizOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.QuizInclude<ExtArgs> | null
  where?: Prisma.QuizWhereInput
}

/**
 * Lesson.notes
 */
export type Lesson$notesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Note
   */
  select?: Prisma.NoteSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Note
   */
  omit?: Prisma.NoteOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.NoteInclude<ExtArgs> | null
  where?: Prisma.NoteWhereInput
  orderBy?: Prisma.NoteOrderByWithRelationInput | Prisma.NoteOrderByWithRelationInput[]
  cursor?: Prisma.NoteWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.NoteScalarFieldEnum | Prisma.NoteScalarFieldEnum[]
}

/**
 * Lesson.userProgress
 */
export type Lesson$userProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the UserProgress
   */
  select?: Prisma.UserProgressSelect<ExtArgs> | null
  /**
   * Omit specific fields from the UserProgress
   */
  omit?: Prisma.UserProgressOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserProgressInclude<ExtArgs> | null
  where?: Prisma.UserProgressWhereInput
  orderBy?: Prisma.UserProgressOrderByWithRelationInput | Prisma.UserProgressOrderByWithRelationInput[]
  cursor?: Prisma.UserProgressWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.UserProgressScalarFieldEnum | Prisma.UserProgressScalarFieldEnum[]
}

/**
 * Lesson without action
 */
export type LessonDefaultArgs<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
}
