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

export type AggregateNote = {
  _count: NoteCountAggregateOutputType | null
  _min: NoteMinAggregateOutputType | null
  _max: NoteMaxAggregateOutputType | null
}

export type NoteMinAggregateOutputType = {
  id: string | null
  content: string | null
  userId: string | null
  lessonId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type NoteMaxAggregateOutputType = {
  id: string | null
  content: string | null
  userId: string | null
  lessonId: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type NoteCountAggregateOutputType = {
  id: number
  content: number
  userId: number
  lessonId: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type NoteMinAggregateInputType = {
  id?: true
  content?: true
  userId?: true
  lessonId?: true
  createdAt?: true
  updatedAt?: true
}

export type NoteMaxAggregateInputType = {
  id?: true
  content?: true
  userId?: true
  lessonId?: true
  createdAt?: true
  updatedAt?: true
}

export type NoteCountAggregateInputType = {
  id?: true
  content?: true
  userId?: true
  lessonId?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type NoteGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.NoteWhereInput
  orderBy?: Prisma.NoteOrderByWithAggregationInput | Prisma.NoteOrderByWithAggregationInput[]
  by: Prisma.NoteScalarFieldEnum[] | Prisma.NoteScalarFieldEnum
  having?: Prisma.NoteScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: NoteCountAggregateInputType | true
  _min?: NoteMinAggregateInputType
  _max?: NoteMaxAggregateInputType
}

export type NoteGroupByOutputType = {
  id: string
  content: string
  userId: string
  lessonId: string
  createdAt: Date
  updatedAt: Date
  _count: NoteCountAggregateOutputType | null
  _min: NoteMinAggregateOutputType | null
  _max: NoteMaxAggregateOutputType | null
}

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



export type NoteWhereInput = {
  AND?: Prisma.NoteWhereInput | Prisma.NoteWhereInput[]
  OR?: Prisma.NoteWhereInput[]
  NOT?: Prisma.NoteWhereInput | Prisma.NoteWhereInput[]
  id?: Prisma.StringFilter<"Note"> | string
  content?: Prisma.StringFilter<"Note"> | string
  userId?: Prisma.StringFilter<"Note"> | string
  lessonId?: Prisma.StringFilter<"Note"> | string
  createdAt?: Prisma.DateTimeFilter<"Note"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Note"> | Date | string
  lesson?: Prisma.XOR<Prisma.LessonScalarRelationFilter, Prisma.LessonWhereInput>
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}

export type NoteOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  content?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  lessonId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  lesson?: Prisma.LessonOrderByWithRelationInput
  user?: Prisma.UserOrderByWithRelationInput
  _relevance?: Prisma.NoteOrderByRelevanceInput
}

export type NoteWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  userId_lessonId?: Prisma.NoteUserIdLessonIdCompoundUniqueInput
  AND?: Prisma.NoteWhereInput | Prisma.NoteWhereInput[]
  OR?: Prisma.NoteWhereInput[]
  NOT?: Prisma.NoteWhereInput | Prisma.NoteWhereInput[]
  content?: Prisma.StringFilter<"Note"> | string
  userId?: Prisma.StringFilter<"Note"> | string
  lessonId?: Prisma.StringFilter<"Note"> | string
  createdAt?: Prisma.DateTimeFilter<"Note"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Note"> | Date | string
  lesson?: Prisma.XOR<Prisma.LessonScalarRelationFilter, Prisma.LessonWhereInput>
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id" | "userId_lessonId">

export type NoteOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  content?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  lessonId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.NoteCountOrderByAggregateInput
  _max?: Prisma.NoteMaxOrderByAggregateInput
  _min?: Prisma.NoteMinOrderByAggregateInput
}

export type NoteScalarWhereWithAggregatesInput = {
  AND?: Prisma.NoteScalarWhereWithAggregatesInput | Prisma.NoteScalarWhereWithAggregatesInput[]
  OR?: Prisma.NoteScalarWhereWithAggregatesInput[]
  NOT?: Prisma.NoteScalarWhereWithAggregatesInput | Prisma.NoteScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"Note"> | string
  content?: Prisma.StringWithAggregatesFilter<"Note"> | string
  userId?: Prisma.StringWithAggregatesFilter<"Note"> | string
  lessonId?: Prisma.StringWithAggregatesFilter<"Note"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Note"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Note"> | Date | string
}

export type NoteCreateInput = {
  id?: string
  content: string
  createdAt?: Date | string
  updatedAt?: Date | string
  lesson: Prisma.LessonCreateNestedOneWithoutNotesInput
  user: Prisma.UserCreateNestedOneWithoutNotesInput
}

export type NoteUncheckedCreateInput = {
  id?: string
  content: string
  userId: string
  lessonId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type NoteUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lesson?: Prisma.LessonUpdateOneRequiredWithoutNotesNestedInput
  user?: Prisma.UserUpdateOneRequiredWithoutNotesNestedInput
}

export type NoteUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  lessonId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteCreateManyInput = {
  id?: string
  content: string
  userId: string
  lessonId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type NoteUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  lessonId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteListRelationFilter = {
  every?: Prisma.NoteWhereInput
  some?: Prisma.NoteWhereInput
  none?: Prisma.NoteWhereInput
}

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

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

export type NoteUserIdLessonIdCompoundUniqueInput = {
  userId: string
  lessonId: string
}

export type NoteCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  content?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  lessonId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type NoteMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  content?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  lessonId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type NoteMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  content?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  lessonId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type NoteCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.NoteCreateWithoutUserInput, Prisma.NoteUncheckedCreateWithoutUserInput> | Prisma.NoteCreateWithoutUserInput[] | Prisma.NoteUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.NoteCreateOrConnectWithoutUserInput | Prisma.NoteCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.NoteCreateManyUserInputEnvelope
  connect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
}

export type NoteUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.NoteCreateWithoutUserInput, Prisma.NoteUncheckedCreateWithoutUserInput> | Prisma.NoteCreateWithoutUserInput[] | Prisma.NoteUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.NoteCreateOrConnectWithoutUserInput | Prisma.NoteCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.NoteCreateManyUserInputEnvelope
  connect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
}

export type NoteUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.NoteCreateWithoutUserInput, Prisma.NoteUncheckedCreateWithoutUserInput> | Prisma.NoteCreateWithoutUserInput[] | Prisma.NoteUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.NoteCreateOrConnectWithoutUserInput | Prisma.NoteCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.NoteUpsertWithWhereUniqueWithoutUserInput | Prisma.NoteUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.NoteCreateManyUserInputEnvelope
  set?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  disconnect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  delete?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  connect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  update?: Prisma.NoteUpdateWithWhereUniqueWithoutUserInput | Prisma.NoteUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.NoteUpdateManyWithWhereWithoutUserInput | Prisma.NoteUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.NoteScalarWhereInput | Prisma.NoteScalarWhereInput[]
}

export type NoteUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.NoteCreateWithoutUserInput, Prisma.NoteUncheckedCreateWithoutUserInput> | Prisma.NoteCreateWithoutUserInput[] | Prisma.NoteUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.NoteCreateOrConnectWithoutUserInput | Prisma.NoteCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.NoteUpsertWithWhereUniqueWithoutUserInput | Prisma.NoteUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.NoteCreateManyUserInputEnvelope
  set?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  disconnect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  delete?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  connect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  update?: Prisma.NoteUpdateWithWhereUniqueWithoutUserInput | Prisma.NoteUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.NoteUpdateManyWithWhereWithoutUserInput | Prisma.NoteUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.NoteScalarWhereInput | Prisma.NoteScalarWhereInput[]
}

export type NoteCreateNestedManyWithoutLessonInput = {
  create?: Prisma.XOR<Prisma.NoteCreateWithoutLessonInput, Prisma.NoteUncheckedCreateWithoutLessonInput> | Prisma.NoteCreateWithoutLessonInput[] | Prisma.NoteUncheckedCreateWithoutLessonInput[]
  connectOrCreate?: Prisma.NoteCreateOrConnectWithoutLessonInput | Prisma.NoteCreateOrConnectWithoutLessonInput[]
  createMany?: Prisma.NoteCreateManyLessonInputEnvelope
  connect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
}

export type NoteUncheckedCreateNestedManyWithoutLessonInput = {
  create?: Prisma.XOR<Prisma.NoteCreateWithoutLessonInput, Prisma.NoteUncheckedCreateWithoutLessonInput> | Prisma.NoteCreateWithoutLessonInput[] | Prisma.NoteUncheckedCreateWithoutLessonInput[]
  connectOrCreate?: Prisma.NoteCreateOrConnectWithoutLessonInput | Prisma.NoteCreateOrConnectWithoutLessonInput[]
  createMany?: Prisma.NoteCreateManyLessonInputEnvelope
  connect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
}

export type NoteUpdateManyWithoutLessonNestedInput = {
  create?: Prisma.XOR<Prisma.NoteCreateWithoutLessonInput, Prisma.NoteUncheckedCreateWithoutLessonInput> | Prisma.NoteCreateWithoutLessonInput[] | Prisma.NoteUncheckedCreateWithoutLessonInput[]
  connectOrCreate?: Prisma.NoteCreateOrConnectWithoutLessonInput | Prisma.NoteCreateOrConnectWithoutLessonInput[]
  upsert?: Prisma.NoteUpsertWithWhereUniqueWithoutLessonInput | Prisma.NoteUpsertWithWhereUniqueWithoutLessonInput[]
  createMany?: Prisma.NoteCreateManyLessonInputEnvelope
  set?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  disconnect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  delete?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  connect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  update?: Prisma.NoteUpdateWithWhereUniqueWithoutLessonInput | Prisma.NoteUpdateWithWhereUniqueWithoutLessonInput[]
  updateMany?: Prisma.NoteUpdateManyWithWhereWithoutLessonInput | Prisma.NoteUpdateManyWithWhereWithoutLessonInput[]
  deleteMany?: Prisma.NoteScalarWhereInput | Prisma.NoteScalarWhereInput[]
}

export type NoteUncheckedUpdateManyWithoutLessonNestedInput = {
  create?: Prisma.XOR<Prisma.NoteCreateWithoutLessonInput, Prisma.NoteUncheckedCreateWithoutLessonInput> | Prisma.NoteCreateWithoutLessonInput[] | Prisma.NoteUncheckedCreateWithoutLessonInput[]
  connectOrCreate?: Prisma.NoteCreateOrConnectWithoutLessonInput | Prisma.NoteCreateOrConnectWithoutLessonInput[]
  upsert?: Prisma.NoteUpsertWithWhereUniqueWithoutLessonInput | Prisma.NoteUpsertWithWhereUniqueWithoutLessonInput[]
  createMany?: Prisma.NoteCreateManyLessonInputEnvelope
  set?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  disconnect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  delete?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  connect?: Prisma.NoteWhereUniqueInput | Prisma.NoteWhereUniqueInput[]
  update?: Prisma.NoteUpdateWithWhereUniqueWithoutLessonInput | Prisma.NoteUpdateWithWhereUniqueWithoutLessonInput[]
  updateMany?: Prisma.NoteUpdateManyWithWhereWithoutLessonInput | Prisma.NoteUpdateManyWithWhereWithoutLessonInput[]
  deleteMany?: Prisma.NoteScalarWhereInput | Prisma.NoteScalarWhereInput[]
}

export type NoteCreateWithoutUserInput = {
  id?: string
  content: string
  createdAt?: Date | string
  updatedAt?: Date | string
  lesson: Prisma.LessonCreateNestedOneWithoutNotesInput
}

export type NoteUncheckedCreateWithoutUserInput = {
  id?: string
  content: string
  lessonId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type NoteCreateOrConnectWithoutUserInput = {
  where: Prisma.NoteWhereUniqueInput
  create: Prisma.XOR<Prisma.NoteCreateWithoutUserInput, Prisma.NoteUncheckedCreateWithoutUserInput>
}

export type NoteCreateManyUserInputEnvelope = {
  data: Prisma.NoteCreateManyUserInput | Prisma.NoteCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type NoteUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.NoteWhereUniqueInput
  update: Prisma.XOR<Prisma.NoteUpdateWithoutUserInput, Prisma.NoteUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.NoteCreateWithoutUserInput, Prisma.NoteUncheckedCreateWithoutUserInput>
}

export type NoteUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.NoteWhereUniqueInput
  data: Prisma.XOR<Prisma.NoteUpdateWithoutUserInput, Prisma.NoteUncheckedUpdateWithoutUserInput>
}

export type NoteUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.NoteScalarWhereInput
  data: Prisma.XOR<Prisma.NoteUpdateManyMutationInput, Prisma.NoteUncheckedUpdateManyWithoutUserInput>
}

export type NoteScalarWhereInput = {
  AND?: Prisma.NoteScalarWhereInput | Prisma.NoteScalarWhereInput[]
  OR?: Prisma.NoteScalarWhereInput[]
  NOT?: Prisma.NoteScalarWhereInput | Prisma.NoteScalarWhereInput[]
  id?: Prisma.StringFilter<"Note"> | string
  content?: Prisma.StringFilter<"Note"> | string
  userId?: Prisma.StringFilter<"Note"> | string
  lessonId?: Prisma.StringFilter<"Note"> | string
  createdAt?: Prisma.DateTimeFilter<"Note"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Note"> | Date | string
}

export type NoteCreateWithoutLessonInput = {
  id?: string
  content: string
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.UserCreateNestedOneWithoutNotesInput
}

export type NoteUncheckedCreateWithoutLessonInput = {
  id?: string
  content: string
  userId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type NoteCreateOrConnectWithoutLessonInput = {
  where: Prisma.NoteWhereUniqueInput
  create: Prisma.XOR<Prisma.NoteCreateWithoutLessonInput, Prisma.NoteUncheckedCreateWithoutLessonInput>
}

export type NoteCreateManyLessonInputEnvelope = {
  data: Prisma.NoteCreateManyLessonInput | Prisma.NoteCreateManyLessonInput[]
  skipDuplicates?: boolean
}

export type NoteUpsertWithWhereUniqueWithoutLessonInput = {
  where: Prisma.NoteWhereUniqueInput
  update: Prisma.XOR<Prisma.NoteUpdateWithoutLessonInput, Prisma.NoteUncheckedUpdateWithoutLessonInput>
  create: Prisma.XOR<Prisma.NoteCreateWithoutLessonInput, Prisma.NoteUncheckedCreateWithoutLessonInput>
}

export type NoteUpdateWithWhereUniqueWithoutLessonInput = {
  where: Prisma.NoteWhereUniqueInput
  data: Prisma.XOR<Prisma.NoteUpdateWithoutLessonInput, Prisma.NoteUncheckedUpdateWithoutLessonInput>
}

export type NoteUpdateManyWithWhereWithoutLessonInput = {
  where: Prisma.NoteScalarWhereInput
  data: Prisma.XOR<Prisma.NoteUpdateManyMutationInput, Prisma.NoteUncheckedUpdateManyWithoutLessonInput>
}

export type NoteCreateManyUserInput = {
  id?: string
  content: string
  lessonId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type NoteUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  lesson?: Prisma.LessonUpdateOneRequiredWithoutNotesNestedInput
}

export type NoteUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  lessonId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  lessonId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteCreateManyLessonInput = {
  id?: string
  content: string
  userId: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type NoteUpdateWithoutLessonInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutNotesNestedInput
}

export type NoteUncheckedUpdateWithoutLessonInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteUncheckedUpdateManyWithoutLessonInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  content?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type NoteSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  content?: boolean
  userId?: boolean
  lessonId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  lesson?: boolean | Prisma.LessonDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["note"]>



export type NoteSelectScalar = {
  id?: boolean
  content?: boolean
  userId?: boolean
  lessonId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type NoteOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "content" | "userId" | "lessonId" | "createdAt" | "updatedAt", ExtArgs["result"]["note"]>
export type NoteInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  lesson?: boolean | Prisma.LessonDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}

export type $NotePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Note"
  objects: {
    lesson: Prisma.$LessonPayload<ExtArgs>
    user: Prisma.$UserPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    content: string
    userId: string
    lessonId: string
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["note"]>
  composites: {}
}

export type NoteGetPayload<S extends boolean | null | undefined | NoteDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$NotePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Note.
 * 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__NoteClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  lesson<T extends Prisma.LessonDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LessonDefaultArgs<ExtArgs>>): Prisma.Prisma__LessonClient<runtime.Types.Result.GetResult<Prisma.$LessonPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<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 Note model
 */
export interface NoteFieldRefs {
  readonly id: Prisma.FieldRef<"Note", 'String'>
  readonly content: Prisma.FieldRef<"Note", 'String'>
  readonly userId: Prisma.FieldRef<"Note", 'String'>
  readonly lessonId: Prisma.FieldRef<"Note", 'String'>
  readonly createdAt: Prisma.FieldRef<"Note", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Note", 'DateTime'>
}
    

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

/**
 * Note findUniqueOrThrow
 */
export type NoteFindUniqueOrThrowArgs<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
  /**
   * Filter, which Note to fetch.
   */
  where: Prisma.NoteWhereUniqueInput
}

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

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

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

/**
 * Note create
 */
export type NoteCreateArgs<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
  /**
   * The data needed to create a Note.
   */
  data: Prisma.XOR<Prisma.NoteCreateInput, Prisma.NoteUncheckedCreateInput>
}

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

/**
 * Note update
 */
export type NoteUpdateArgs<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
  /**
   * The data needed to update a Note.
   */
  data: Prisma.XOR<Prisma.NoteUpdateInput, Prisma.NoteUncheckedUpdateInput>
  /**
   * Choose, which Note to update.
   */
  where: Prisma.NoteWhereUniqueInput
}

/**
 * Note updateMany
 */
export type NoteUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Notes.
   */
  data: Prisma.XOR<Prisma.NoteUpdateManyMutationInput, Prisma.NoteUncheckedUpdateManyInput>
  /**
   * Filter which Notes to update
   */
  where?: Prisma.NoteWhereInput
  /**
   * Limit how many Notes to update.
   */
  limit?: number
}

/**
 * Note upsert
 */
export type NoteUpsertArgs<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
  /**
   * The filter to search for the Note to update in case it exists.
   */
  where: Prisma.NoteWhereUniqueInput
  /**
   * In case the Note found by the `where` argument doesn't exist, create a new Note with this data.
   */
  create: Prisma.XOR<Prisma.NoteCreateInput, Prisma.NoteUncheckedCreateInput>
  /**
   * In case the Note was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.NoteUpdateInput, Prisma.NoteUncheckedUpdateInput>
}

/**
 * Note delete
 */
export type NoteDeleteArgs<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
  /**
   * Filter which Note to delete.
   */
  where: Prisma.NoteWhereUniqueInput
}

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

/**
 * Note without action
 */
export type NoteDefaultArgs<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
}
