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

export type AggregateProject_manager_comment = {
  _count: Project_manager_commentCountAggregateOutputType | null
  _avg: Project_manager_commentAvgAggregateOutputType | null
  _sum: Project_manager_commentSumAggregateOutputType | null
  _min: Project_manager_commentMinAggregateOutputType | null
  _max: Project_manager_commentMaxAggregateOutputType | null
}

export type Project_manager_commentAvgAggregateOutputType = {
  id: number | null
  task_id: number | null
  staff_id: number | null
}

export type Project_manager_commentSumAggregateOutputType = {
  id: number | null
  task_id: number | null
  staff_id: number | null
}

export type Project_manager_commentMinAggregateOutputType = {
  id: number | null
  task_id: number | null
  comment: string | null
  staff_id: number | null
  date: string | null
  unread: string | null
}

export type Project_manager_commentMaxAggregateOutputType = {
  id: number | null
  task_id: number | null
  comment: string | null
  staff_id: number | null
  date: string | null
  unread: string | null
}

export type Project_manager_commentCountAggregateOutputType = {
  id: number
  task_id: number
  comment: number
  staff_id: number
  date: number
  unread: number
  _all: number
}


export type Project_manager_commentAvgAggregateInputType = {
  id?: true
  task_id?: true
  staff_id?: true
}

export type Project_manager_commentSumAggregateInputType = {
  id?: true
  task_id?: true
  staff_id?: true
}

export type Project_manager_commentMinAggregateInputType = {
  id?: true
  task_id?: true
  comment?: true
  staff_id?: true
  date?: true
  unread?: true
}

export type Project_manager_commentMaxAggregateInputType = {
  id?: true
  task_id?: true
  comment?: true
  staff_id?: true
  date?: true
  unread?: true
}

export type Project_manager_commentCountAggregateInputType = {
  id?: true
  task_id?: true
  comment?: true
  staff_id?: true
  date?: true
  unread?: true
  _all?: true
}

export type Project_manager_commentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which project_manager_comment to aggregate.
   */
  where?: Prisma.project_manager_commentWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of project_manager_comments to fetch.
   */
  orderBy?: Prisma.project_manager_commentOrderByWithRelationInput | Prisma.project_manager_commentOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.project_manager_commentWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` project_manager_comments 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` project_manager_comments.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned project_manager_comments
  **/
  _count?: true | Project_manager_commentCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Project_manager_commentAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Project_manager_commentSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Project_manager_commentMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Project_manager_commentMaxAggregateInputType
}

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




export type project_manager_commentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.project_manager_commentWhereInput
  orderBy?: Prisma.project_manager_commentOrderByWithAggregationInput | Prisma.project_manager_commentOrderByWithAggregationInput[]
  by: Prisma.Project_manager_commentScalarFieldEnum[] | Prisma.Project_manager_commentScalarFieldEnum
  having?: Prisma.project_manager_commentScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Project_manager_commentCountAggregateInputType | true
  _avg?: Project_manager_commentAvgAggregateInputType
  _sum?: Project_manager_commentSumAggregateInputType
  _min?: Project_manager_commentMinAggregateInputType
  _max?: Project_manager_commentMaxAggregateInputType
}

export type Project_manager_commentGroupByOutputType = {
  id: number
  task_id: number
  comment: string
  staff_id: number
  date: string
  unread: string
  _count: Project_manager_commentCountAggregateOutputType | null
  _avg: Project_manager_commentAvgAggregateOutputType | null
  _sum: Project_manager_commentSumAggregateOutputType | null
  _min: Project_manager_commentMinAggregateOutputType | null
  _max: Project_manager_commentMaxAggregateOutputType | null
}

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



export type project_manager_commentWhereInput = {
  AND?: Prisma.project_manager_commentWhereInput | Prisma.project_manager_commentWhereInput[]
  OR?: Prisma.project_manager_commentWhereInput[]
  NOT?: Prisma.project_manager_commentWhereInput | Prisma.project_manager_commentWhereInput[]
  id?: Prisma.IntFilter<"project_manager_comment"> | number
  task_id?: Prisma.IntFilter<"project_manager_comment"> | number
  comment?: Prisma.StringFilter<"project_manager_comment"> | string
  staff_id?: Prisma.IntFilter<"project_manager_comment"> | number
  date?: Prisma.StringFilter<"project_manager_comment"> | string
  unread?: Prisma.StringFilter<"project_manager_comment"> | string
}

export type project_manager_commentOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  task_id?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  unread?: Prisma.SortOrder
  _relevance?: Prisma.project_manager_commentOrderByRelevanceInput
}

export type project_manager_commentWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.project_manager_commentWhereInput | Prisma.project_manager_commentWhereInput[]
  OR?: Prisma.project_manager_commentWhereInput[]
  NOT?: Prisma.project_manager_commentWhereInput | Prisma.project_manager_commentWhereInput[]
  task_id?: Prisma.IntFilter<"project_manager_comment"> | number
  comment?: Prisma.StringFilter<"project_manager_comment"> | string
  staff_id?: Prisma.IntFilter<"project_manager_comment"> | number
  date?: Prisma.StringFilter<"project_manager_comment"> | string
  unread?: Prisma.StringFilter<"project_manager_comment"> | string
}, "id">

export type project_manager_commentOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  task_id?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  unread?: Prisma.SortOrder
  _count?: Prisma.project_manager_commentCountOrderByAggregateInput
  _avg?: Prisma.project_manager_commentAvgOrderByAggregateInput
  _max?: Prisma.project_manager_commentMaxOrderByAggregateInput
  _min?: Prisma.project_manager_commentMinOrderByAggregateInput
  _sum?: Prisma.project_manager_commentSumOrderByAggregateInput
}

export type project_manager_commentScalarWhereWithAggregatesInput = {
  AND?: Prisma.project_manager_commentScalarWhereWithAggregatesInput | Prisma.project_manager_commentScalarWhereWithAggregatesInput[]
  OR?: Prisma.project_manager_commentScalarWhereWithAggregatesInput[]
  NOT?: Prisma.project_manager_commentScalarWhereWithAggregatesInput | Prisma.project_manager_commentScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"project_manager_comment"> | number
  task_id?: Prisma.IntWithAggregatesFilter<"project_manager_comment"> | number
  comment?: Prisma.StringWithAggregatesFilter<"project_manager_comment"> | string
  staff_id?: Prisma.IntWithAggregatesFilter<"project_manager_comment"> | number
  date?: Prisma.StringWithAggregatesFilter<"project_manager_comment"> | string
  unread?: Prisma.StringWithAggregatesFilter<"project_manager_comment"> | string
}

export type project_manager_commentCreateInput = {
  task_id: number
  comment: string
  staff_id: number
  date: string
  unread: string
}

export type project_manager_commentUncheckedCreateInput = {
  id?: number
  task_id: number
  comment: string
  staff_id: number
  date: string
  unread: string
}

export type project_manager_commentUpdateInput = {
  task_id?: Prisma.IntFieldUpdateOperationsInput | number
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.StringFieldUpdateOperationsInput | string
  unread?: Prisma.StringFieldUpdateOperationsInput | string
}

export type project_manager_commentUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  task_id?: Prisma.IntFieldUpdateOperationsInput | number
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.StringFieldUpdateOperationsInput | string
  unread?: Prisma.StringFieldUpdateOperationsInput | string
}

export type project_manager_commentCreateManyInput = {
  id?: number
  task_id: number
  comment: string
  staff_id: number
  date: string
  unread: string
}

export type project_manager_commentUpdateManyMutationInput = {
  task_id?: Prisma.IntFieldUpdateOperationsInput | number
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.StringFieldUpdateOperationsInput | string
  unread?: Prisma.StringFieldUpdateOperationsInput | string
}

export type project_manager_commentUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  task_id?: Prisma.IntFieldUpdateOperationsInput | number
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.StringFieldUpdateOperationsInput | string
  unread?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type project_manager_commentCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  task_id?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  unread?: Prisma.SortOrder
}

export type project_manager_commentAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  task_id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type project_manager_commentMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  task_id?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  unread?: Prisma.SortOrder
}

export type project_manager_commentMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  task_id?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  unread?: Prisma.SortOrder
}

export type project_manager_commentSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  task_id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}



export type project_manager_commentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  task_id?: boolean
  comment?: boolean
  staff_id?: boolean
  date?: boolean
  unread?: boolean
}, ExtArgs["result"]["project_manager_comment"]>



export type project_manager_commentSelectScalar = {
  id?: boolean
  task_id?: boolean
  comment?: boolean
  staff_id?: boolean
  date?: boolean
  unread?: boolean
}

export type project_manager_commentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "task_id" | "comment" | "staff_id" | "date" | "unread", ExtArgs["result"]["project_manager_comment"]>

export type $project_manager_commentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "project_manager_comment"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    task_id: number
    comment: string
    staff_id: number
    date: string
    unread: string
  }, ExtArgs["result"]["project_manager_comment"]>
  composites: {}
}

export type project_manager_commentGetPayload<S extends boolean | null | undefined | project_manager_commentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$project_manager_commentPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for project_manager_comment.
 * 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__project_manager_commentClient<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 project_manager_comment model
 */
export interface project_manager_commentFieldRefs {
  readonly id: Prisma.FieldRef<"project_manager_comment", 'Int'>
  readonly task_id: Prisma.FieldRef<"project_manager_comment", 'Int'>
  readonly comment: Prisma.FieldRef<"project_manager_comment", 'String'>
  readonly staff_id: Prisma.FieldRef<"project_manager_comment", 'Int'>
  readonly date: Prisma.FieldRef<"project_manager_comment", 'String'>
  readonly unread: Prisma.FieldRef<"project_manager_comment", 'String'>
}
    

// Custom InputTypes
/**
 * project_manager_comment findUnique
 */
export type project_manager_commentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * Filter, which project_manager_comment to fetch.
   */
  where: Prisma.project_manager_commentWhereUniqueInput
}

/**
 * project_manager_comment findUniqueOrThrow
 */
export type project_manager_commentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * Filter, which project_manager_comment to fetch.
   */
  where: Prisma.project_manager_commentWhereUniqueInput
}

/**
 * project_manager_comment findFirst
 */
export type project_manager_commentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * Filter, which project_manager_comment to fetch.
   */
  where?: Prisma.project_manager_commentWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of project_manager_comments to fetch.
   */
  orderBy?: Prisma.project_manager_commentOrderByWithRelationInput | Prisma.project_manager_commentOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for project_manager_comments.
   */
  cursor?: Prisma.project_manager_commentWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` project_manager_comments 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` project_manager_comments.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of project_manager_comments.
   */
  distinct?: Prisma.Project_manager_commentScalarFieldEnum | Prisma.Project_manager_commentScalarFieldEnum[]
}

/**
 * project_manager_comment findFirstOrThrow
 */
export type project_manager_commentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * Filter, which project_manager_comment to fetch.
   */
  where?: Prisma.project_manager_commentWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of project_manager_comments to fetch.
   */
  orderBy?: Prisma.project_manager_commentOrderByWithRelationInput | Prisma.project_manager_commentOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for project_manager_comments.
   */
  cursor?: Prisma.project_manager_commentWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` project_manager_comments 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` project_manager_comments.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of project_manager_comments.
   */
  distinct?: Prisma.Project_manager_commentScalarFieldEnum | Prisma.Project_manager_commentScalarFieldEnum[]
}

/**
 * project_manager_comment findMany
 */
export type project_manager_commentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * Filter, which project_manager_comments to fetch.
   */
  where?: Prisma.project_manager_commentWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of project_manager_comments to fetch.
   */
  orderBy?: Prisma.project_manager_commentOrderByWithRelationInput | Prisma.project_manager_commentOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing project_manager_comments.
   */
  cursor?: Prisma.project_manager_commentWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` project_manager_comments 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` project_manager_comments.
   */
  skip?: number
  distinct?: Prisma.Project_manager_commentScalarFieldEnum | Prisma.Project_manager_commentScalarFieldEnum[]
}

/**
 * project_manager_comment create
 */
export type project_manager_commentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * The data needed to create a project_manager_comment.
   */
  data: Prisma.XOR<Prisma.project_manager_commentCreateInput, Prisma.project_manager_commentUncheckedCreateInput>
}

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

/**
 * project_manager_comment update
 */
export type project_manager_commentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * The data needed to update a project_manager_comment.
   */
  data: Prisma.XOR<Prisma.project_manager_commentUpdateInput, Prisma.project_manager_commentUncheckedUpdateInput>
  /**
   * Choose, which project_manager_comment to update.
   */
  where: Prisma.project_manager_commentWhereUniqueInput
}

/**
 * project_manager_comment updateMany
 */
export type project_manager_commentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update project_manager_comments.
   */
  data: Prisma.XOR<Prisma.project_manager_commentUpdateManyMutationInput, Prisma.project_manager_commentUncheckedUpdateManyInput>
  /**
   * Filter which project_manager_comments to update
   */
  where?: Prisma.project_manager_commentWhereInput
  /**
   * Limit how many project_manager_comments to update.
   */
  limit?: number
}

/**
 * project_manager_comment upsert
 */
export type project_manager_commentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * The filter to search for the project_manager_comment to update in case it exists.
   */
  where: Prisma.project_manager_commentWhereUniqueInput
  /**
   * In case the project_manager_comment found by the `where` argument doesn't exist, create a new project_manager_comment with this data.
   */
  create: Prisma.XOR<Prisma.project_manager_commentCreateInput, Prisma.project_manager_commentUncheckedCreateInput>
  /**
   * In case the project_manager_comment was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.project_manager_commentUpdateInput, Prisma.project_manager_commentUncheckedUpdateInput>
}

/**
 * project_manager_comment delete
 */
export type project_manager_commentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
  /**
   * Filter which project_manager_comment to delete.
   */
  where: Prisma.project_manager_commentWhereUniqueInput
}

/**
 * project_manager_comment deleteMany
 */
export type project_manager_commentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which project_manager_comments to delete
   */
  where?: Prisma.project_manager_commentWhereInput
  /**
   * Limit how many project_manager_comments to delete.
   */
  limit?: number
}

/**
 * project_manager_comment without action
 */
export type project_manager_commentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_manager_comment
   */
  select?: Prisma.project_manager_commentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_manager_comment
   */
  omit?: Prisma.project_manager_commentOmit<ExtArgs> | null
}
