
/* !!! 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
  entityType: $Enums.NoteEntityType | null
  entityId: string | null
  type: $Enums.NoteType | null
  content: string | null
  createdBy: string | null
  createdAt: Date | null
}

export type NoteMaxAggregateOutputType = {
  id: string | null
  entityType: $Enums.NoteEntityType | null
  entityId: string | null
  type: $Enums.NoteType | null
  content: string | null
  createdBy: string | null
  createdAt: Date | null
}

export type NoteCountAggregateOutputType = {
  id: number
  entityType: number
  entityId: number
  type: number
  content: number
  createdBy: number
  createdAt: number
  _all: number
}


export type NoteMinAggregateInputType = {
  id?: true
  entityType?: true
  entityId?: true
  type?: true
  content?: true
  createdBy?: true
  createdAt?: true
}

export type NoteMaxAggregateInputType = {
  id?: true
  entityType?: true
  entityId?: true
  type?: true
  content?: true
  createdBy?: true
  createdAt?: true
}

export type NoteCountAggregateInputType = {
  id?: true
  entityType?: true
  entityId?: true
  type?: true
  content?: true
  createdBy?: true
  createdAt?: 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
  entityType: $Enums.NoteEntityType
  entityId: string
  type: $Enums.NoteType
  content: string
  createdBy: string
  createdAt: 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.UuidFilter<"Note"> | string
  entityType?: Prisma.EnumNoteEntityTypeFilter<"Note"> | $Enums.NoteEntityType
  entityId?: Prisma.UuidFilter<"Note"> | string
  type?: Prisma.EnumNoteTypeFilter<"Note"> | $Enums.NoteType
  content?: Prisma.StringFilter<"Note"> | string
  createdBy?: Prisma.UuidFilter<"Note"> | string
  createdAt?: Prisma.DateTimeFilter<"Note"> | Date | string
}

export type NoteOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  entityType?: Prisma.SortOrder
  entityId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  content?: Prisma.SortOrder
  createdBy?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type NoteWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.NoteWhereInput | Prisma.NoteWhereInput[]
  OR?: Prisma.NoteWhereInput[]
  NOT?: Prisma.NoteWhereInput | Prisma.NoteWhereInput[]
  entityType?: Prisma.EnumNoteEntityTypeFilter<"Note"> | $Enums.NoteEntityType
  entityId?: Prisma.UuidFilter<"Note"> | string
  type?: Prisma.EnumNoteTypeFilter<"Note"> | $Enums.NoteType
  content?: Prisma.StringFilter<"Note"> | string
  createdBy?: Prisma.UuidFilter<"Note"> | string
  createdAt?: Prisma.DateTimeFilter<"Note"> | Date | string
}, "id">

export type NoteOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  entityType?: Prisma.SortOrder
  entityId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  content?: Prisma.SortOrder
  createdBy?: Prisma.SortOrder
  createdAt?: 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.UuidWithAggregatesFilter<"Note"> | string
  entityType?: Prisma.EnumNoteEntityTypeWithAggregatesFilter<"Note"> | $Enums.NoteEntityType
  entityId?: Prisma.UuidWithAggregatesFilter<"Note"> | string
  type?: Prisma.EnumNoteTypeWithAggregatesFilter<"Note"> | $Enums.NoteType
  content?: Prisma.StringWithAggregatesFilter<"Note"> | string
  createdBy?: Prisma.UuidWithAggregatesFilter<"Note"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Note"> | Date | string
}

export type NoteCreateInput = {
  id?: string
  entityType: $Enums.NoteEntityType
  entityId: string
  type: $Enums.NoteType
  content: string
  createdBy: string
  createdAt?: Date | string
}

export type NoteUncheckedCreateInput = {
  id?: string
  entityType: $Enums.NoteEntityType
  entityId: string
  type: $Enums.NoteType
  content: string
  createdBy: string
  createdAt?: Date | string
}

export type NoteUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  entityType?: Prisma.EnumNoteEntityTypeFieldUpdateOperationsInput | $Enums.NoteEntityType
  entityId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumNoteTypeFieldUpdateOperationsInput | $Enums.NoteType
  content?: Prisma.StringFieldUpdateOperationsInput | string
  createdBy?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  entityType?: Prisma.EnumNoteEntityTypeFieldUpdateOperationsInput | $Enums.NoteEntityType
  entityId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumNoteTypeFieldUpdateOperationsInput | $Enums.NoteType
  content?: Prisma.StringFieldUpdateOperationsInput | string
  createdBy?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteCreateManyInput = {
  id?: string
  entityType: $Enums.NoteEntityType
  entityId: string
  type: $Enums.NoteType
  content: string
  createdBy: string
  createdAt?: Date | string
}

export type NoteUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  entityType?: Prisma.EnumNoteEntityTypeFieldUpdateOperationsInput | $Enums.NoteEntityType
  entityId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumNoteTypeFieldUpdateOperationsInput | $Enums.NoteType
  content?: Prisma.StringFieldUpdateOperationsInput | string
  createdBy?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  entityType?: Prisma.EnumNoteEntityTypeFieldUpdateOperationsInput | $Enums.NoteEntityType
  entityId?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.EnumNoteTypeFieldUpdateOperationsInput | $Enums.NoteType
  content?: Prisma.StringFieldUpdateOperationsInput | string
  createdBy?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type NoteCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  entityType?: Prisma.SortOrder
  entityId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  content?: Prisma.SortOrder
  createdBy?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type NoteMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  entityType?: Prisma.SortOrder
  entityId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  content?: Prisma.SortOrder
  createdBy?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type NoteMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  entityType?: Prisma.SortOrder
  entityId?: Prisma.SortOrder
  type?: Prisma.SortOrder
  content?: Prisma.SortOrder
  createdBy?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type EnumNoteEntityTypeFieldUpdateOperationsInput = {
  set?: $Enums.NoteEntityType
}

export type EnumNoteTypeFieldUpdateOperationsInput = {
  set?: $Enums.NoteType
}



export type NoteSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  entityType?: boolean
  entityId?: boolean
  type?: boolean
  content?: boolean
  createdBy?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["note"]>

export type NoteSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  entityType?: boolean
  entityId?: boolean
  type?: boolean
  content?: boolean
  createdBy?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["note"]>

export type NoteSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  entityType?: boolean
  entityId?: boolean
  type?: boolean
  content?: boolean
  createdBy?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["note"]>

export type NoteSelectScalar = {
  id?: boolean
  entityType?: boolean
  entityId?: boolean
  type?: boolean
  content?: boolean
  createdBy?: boolean
  createdAt?: boolean
}

export type NoteOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "entityType" | "entityId" | "type" | "content" | "createdBy" | "createdAt", ExtArgs["result"]["note"]>

export type $NotePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Note"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    entityType: $Enums.NoteEntityType
    entityId: string
    type: $Enums.NoteType
    content: string
    createdBy: string
    createdAt: 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>

  /**
   * Create many Notes and returns the data saved in the database.
   * @param {NoteCreateManyAndReturnArgs} args - Arguments to create many Notes.
   * @example
   * // Create many Notes
   * const note = await prisma.note.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Notes and only return the `id`
   * const noteWithIdOnly = await prisma.note.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends NoteCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, NoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * 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>

  /**
   * Update zero or more Notes and returns the data updated in the database.
   * @param {NoteUpdateManyAndReturnArgs} args - Arguments to update many Notes.
   * @example
   * // Update many Notes
   * const note = await prisma.note.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Notes and only return the `id`
   * const noteWithIdOnly = await prisma.note.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends NoteUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, NoteUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * 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"
  /**
   * 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 entityType: Prisma.FieldRef<"Note", 'NoteEntityType'>
  readonly entityId: Prisma.FieldRef<"Note", 'String'>
  readonly type: Prisma.FieldRef<"Note", 'NoteType'>
  readonly content: Prisma.FieldRef<"Note", 'String'>
  readonly createdBy: Prisma.FieldRef<"Note", 'String'>
  readonly createdAt: 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
  /**
   * 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
  /**
   * 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
  /**
   * 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
  /**
   * 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
  /**
   * 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
  /**
   * 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 createManyAndReturn
 */
export type NoteCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Note
   */
  select?: Prisma.NoteSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Note
   */
  omit?: Prisma.NoteOmit<ExtArgs> | null
  /**
   * 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
  /**
   * 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 updateManyAndReturn
 */
export type NoteUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Note
   */
  select?: Prisma.NoteSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Note
   */
  omit?: Prisma.NoteOmit<ExtArgs> | null
  /**
   * 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
  /**
   * 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
  /**
   * 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
}
