
/* !!! 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` 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
 * 
 */
export type projectModel = runtime.Types.Result.DefaultSelection<Prisma.$projectPayload>

export type AggregateProject = {
  _count: ProjectCountAggregateOutputType | null
  _avg: ProjectAvgAggregateOutputType | null
  _sum: ProjectSumAggregateOutputType | null
  _min: ProjectMinAggregateOutputType | null
  _max: ProjectMaxAggregateOutputType | null
}

export type ProjectAvgAggregateOutputType = {
  id: number | null
  date_start: number | null
  date_end: number | null
}

export type ProjectSumAggregateOutputType = {
  id: number | null
  date_start: bigint | null
  date_end: bigint | null
}

export type ProjectMinAggregateOutputType = {
  id: number | null
  name: string | null
  status: string | null
  desc: string | null
  date_start: bigint | null
  date_end: bigint | null
  manager_name: string | null
}

export type ProjectMaxAggregateOutputType = {
  id: number | null
  name: string | null
  status: string | null
  desc: string | null
  date_start: bigint | null
  date_end: bigint | null
  manager_name: string | null
}

export type ProjectCountAggregateOutputType = {
  id: number
  name: number
  status: number
  desc: number
  date_start: number
  date_end: number
  manager_name: number
  _all: number
}


export type ProjectAvgAggregateInputType = {
  id?: true
  date_start?: true
  date_end?: true
}

export type ProjectSumAggregateInputType = {
  id?: true
  date_start?: true
  date_end?: true
}

export type ProjectMinAggregateInputType = {
  id?: true
  name?: true
  status?: true
  desc?: true
  date_start?: true
  date_end?: true
  manager_name?: true
}

export type ProjectMaxAggregateInputType = {
  id?: true
  name?: true
  status?: true
  desc?: true
  date_start?: true
  date_end?: true
  manager_name?: true
}

export type ProjectCountAggregateInputType = {
  id?: true
  name?: true
  status?: true
  desc?: true
  date_start?: true
  date_end?: true
  manager_name?: true
  _all?: true
}

export type ProjectAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which project to aggregate.
   */
  where?: Prisma.projectWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of projects to fetch.
   */
  orderBy?: Prisma.projectOrderByWithRelationInput | Prisma.projectOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.projectWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` projects 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` projects.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned projects
  **/
  _count?: true | ProjectCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ProjectAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ProjectSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ProjectMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ProjectMaxAggregateInputType
}

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




export type projectGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.projectWhereInput
  orderBy?: Prisma.projectOrderByWithAggregationInput | Prisma.projectOrderByWithAggregationInput[]
  by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum
  having?: Prisma.projectScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ProjectCountAggregateInputType | true
  _avg?: ProjectAvgAggregateInputType
  _sum?: ProjectSumAggregateInputType
  _min?: ProjectMinAggregateInputType
  _max?: ProjectMaxAggregateInputType
}

export type ProjectGroupByOutputType = {
  id: number
  name: string
  status: string
  desc: string | null
  date_start: bigint | null
  date_end: bigint | null
  manager_name: string | null
  _count: ProjectCountAggregateOutputType | null
  _avg: ProjectAvgAggregateOutputType | null
  _sum: ProjectSumAggregateOutputType | null
  _min: ProjectMinAggregateOutputType | null
  _max: ProjectMaxAggregateOutputType | null
}

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



export type projectWhereInput = {
  AND?: Prisma.projectWhereInput | Prisma.projectWhereInput[]
  OR?: Prisma.projectWhereInput[]
  NOT?: Prisma.projectWhereInput | Prisma.projectWhereInput[]
  id?: Prisma.IntFilter<"project"> | number
  name?: Prisma.StringFilter<"project"> | string
  status?: Prisma.StringFilter<"project"> | string
  desc?: Prisma.StringNullableFilter<"project"> | string | null
  date_start?: Prisma.BigIntNullableFilter<"project"> | bigint | number | null
  date_end?: Prisma.BigIntNullableFilter<"project"> | bigint | number | null
  manager_name?: Prisma.StringNullableFilter<"project"> | string | null
}

export type projectOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  status?: Prisma.SortOrder
  desc?: Prisma.SortOrderInput | Prisma.SortOrder
  date_start?: Prisma.SortOrderInput | Prisma.SortOrder
  date_end?: Prisma.SortOrderInput | Prisma.SortOrder
  manager_name?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.projectOrderByRelevanceInput
}

export type projectWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.projectWhereInput | Prisma.projectWhereInput[]
  OR?: Prisma.projectWhereInput[]
  NOT?: Prisma.projectWhereInput | Prisma.projectWhereInput[]
  name?: Prisma.StringFilter<"project"> | string
  status?: Prisma.StringFilter<"project"> | string
  desc?: Prisma.StringNullableFilter<"project"> | string | null
  date_start?: Prisma.BigIntNullableFilter<"project"> | bigint | number | null
  date_end?: Prisma.BigIntNullableFilter<"project"> | bigint | number | null
  manager_name?: Prisma.StringNullableFilter<"project"> | string | null
}, "id">

export type projectOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  status?: Prisma.SortOrder
  desc?: Prisma.SortOrderInput | Prisma.SortOrder
  date_start?: Prisma.SortOrderInput | Prisma.SortOrder
  date_end?: Prisma.SortOrderInput | Prisma.SortOrder
  manager_name?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.projectCountOrderByAggregateInput
  _avg?: Prisma.projectAvgOrderByAggregateInput
  _max?: Prisma.projectMaxOrderByAggregateInput
  _min?: Prisma.projectMinOrderByAggregateInput
  _sum?: Prisma.projectSumOrderByAggregateInput
}

export type projectScalarWhereWithAggregatesInput = {
  AND?: Prisma.projectScalarWhereWithAggregatesInput | Prisma.projectScalarWhereWithAggregatesInput[]
  OR?: Prisma.projectScalarWhereWithAggregatesInput[]
  NOT?: Prisma.projectScalarWhereWithAggregatesInput | Prisma.projectScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"project"> | number
  name?: Prisma.StringWithAggregatesFilter<"project"> | string
  status?: Prisma.StringWithAggregatesFilter<"project"> | string
  desc?: Prisma.StringNullableWithAggregatesFilter<"project"> | string | null
  date_start?: Prisma.BigIntNullableWithAggregatesFilter<"project"> | bigint | number | null
  date_end?: Prisma.BigIntNullableWithAggregatesFilter<"project"> | bigint | number | null
  manager_name?: Prisma.StringNullableWithAggregatesFilter<"project"> | string | null
}

export type projectCreateInput = {
  name: string
  status: string
  desc?: string | null
  date_start?: bigint | number | null
  date_end?: bigint | number | null
  manager_name?: string | null
}

export type projectUncheckedCreateInput = {
  id?: number
  name: string
  status: string
  desc?: string | null
  date_start?: bigint | number | null
  date_end?: bigint | number | null
  manager_name?: string | null
}

export type projectUpdateInput = {
  name?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  manager_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type projectUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  manager_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type projectCreateManyInput = {
  id?: number
  name: string
  status: string
  desc?: string | null
  date_start?: bigint | number | null
  date_end?: bigint | number | null
  manager_name?: string | null
}

export type projectUpdateManyMutationInput = {
  name?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  manager_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type projectUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  manager_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

export type projectCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  status?: Prisma.SortOrder
  desc?: Prisma.SortOrder
  date_start?: Prisma.SortOrder
  date_end?: Prisma.SortOrder
  manager_name?: Prisma.SortOrder
}

export type projectAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_start?: Prisma.SortOrder
  date_end?: Prisma.SortOrder
}

export type projectMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  status?: Prisma.SortOrder
  desc?: Prisma.SortOrder
  date_start?: Prisma.SortOrder
  date_end?: Prisma.SortOrder
  manager_name?: Prisma.SortOrder
}

export type projectMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  status?: Prisma.SortOrder
  desc?: Prisma.SortOrder
  date_start?: Prisma.SortOrder
  date_end?: Prisma.SortOrder
  manager_name?: Prisma.SortOrder
}

export type projectSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_start?: Prisma.SortOrder
  date_end?: Prisma.SortOrder
}



export type projectSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  status?: boolean
  desc?: boolean
  date_start?: boolean
  date_end?: boolean
  manager_name?: boolean
}, ExtArgs["result"]["project"]>



export type projectSelectScalar = {
  id?: boolean
  name?: boolean
  status?: boolean
  desc?: boolean
  date_start?: boolean
  date_end?: boolean
  manager_name?: boolean
}

export type projectOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "status" | "desc" | "date_start" | "date_end" | "manager_name", ExtArgs["result"]["project"]>

export type $projectPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "project"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    name: string
    status: string
    desc: string | null
    date_start: bigint | null
    date_end: bigint | null
    manager_name: string | null
  }, ExtArgs["result"]["project"]>
  composites: {}
}

export type projectGetPayload<S extends boolean | null | undefined | projectDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$projectPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for project.
 * 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__projectClient<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 model
 */
export interface projectFieldRefs {
  readonly id: Prisma.FieldRef<"project", 'Int'>
  readonly name: Prisma.FieldRef<"project", 'String'>
  readonly status: Prisma.FieldRef<"project", 'String'>
  readonly desc: Prisma.FieldRef<"project", 'String'>
  readonly date_start: Prisma.FieldRef<"project", 'BigInt'>
  readonly date_end: Prisma.FieldRef<"project", 'BigInt'>
  readonly manager_name: Prisma.FieldRef<"project", 'String'>
}
    

// Custom InputTypes
/**
 * project findUnique
 */
export type projectFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project
   */
  select?: Prisma.projectSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project
   */
  omit?: Prisma.projectOmit<ExtArgs> | null
  /**
   * Filter, which project to fetch.
   */
  where: Prisma.projectWhereUniqueInput
}

/**
 * project findUniqueOrThrow
 */
export type projectFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project
   */
  select?: Prisma.projectSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project
   */
  omit?: Prisma.projectOmit<ExtArgs> | null
  /**
   * Filter, which project to fetch.
   */
  where: Prisma.projectWhereUniqueInput
}

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

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

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

/**
 * project create
 */
export type projectCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project
   */
  select?: Prisma.projectSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project
   */
  omit?: Prisma.projectOmit<ExtArgs> | null
  /**
   * The data needed to create a project.
   */
  data: Prisma.XOR<Prisma.projectCreateInput, Prisma.projectUncheckedCreateInput>
}

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

/**
 * project update
 */
export type projectUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project
   */
  select?: Prisma.projectSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project
   */
  omit?: Prisma.projectOmit<ExtArgs> | null
  /**
   * The data needed to update a project.
   */
  data: Prisma.XOR<Prisma.projectUpdateInput, Prisma.projectUncheckedUpdateInput>
  /**
   * Choose, which project to update.
   */
  where: Prisma.projectWhereUniqueInput
}

/**
 * project updateMany
 */
export type projectUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update projects.
   */
  data: Prisma.XOR<Prisma.projectUpdateManyMutationInput, Prisma.projectUncheckedUpdateManyInput>
  /**
   * Filter which projects to update
   */
  where?: Prisma.projectWhereInput
  /**
   * Limit how many projects to update.
   */
  limit?: number
}

/**
 * project upsert
 */
export type projectUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project
   */
  select?: Prisma.projectSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project
   */
  omit?: Prisma.projectOmit<ExtArgs> | null
  /**
   * The filter to search for the project to update in case it exists.
   */
  where: Prisma.projectWhereUniqueInput
  /**
   * In case the project found by the `where` argument doesn't exist, create a new project with this data.
   */
  create: Prisma.XOR<Prisma.projectCreateInput, Prisma.projectUncheckedCreateInput>
  /**
   * In case the project was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.projectUpdateInput, Prisma.projectUncheckedUpdateInput>
}

/**
 * project delete
 */
export type projectDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project
   */
  select?: Prisma.projectSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project
   */
  omit?: Prisma.projectOmit<ExtArgs> | null
  /**
   * Filter which project to delete.
   */
  where: Prisma.projectWhereUniqueInput
}

/**
 * project deleteMany
 */
export type projectDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which projects to delete
   */
  where?: Prisma.projectWhereInput
  /**
   * Limit how many projects to delete.
   */
  limit?: number
}

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