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

export type AggregateProject_cmd = {
  _count: Project_cmdCountAggregateOutputType | null
  _avg: Project_cmdAvgAggregateOutputType | null
  _sum: Project_cmdSumAggregateOutputType | null
  _min: Project_cmdMinAggregateOutputType | null
  _max: Project_cmdMaxAggregateOutputType | null
}

export type Project_cmdAvgAggregateOutputType = {
  id: number | null
  project_id: number | null
  date: number | null
  staff_id: number | null
}

export type Project_cmdSumAggregateOutputType = {
  id: number | null
  project_id: number | null
  date: bigint | null
  staff_id: number | null
}

export type Project_cmdMinAggregateOutputType = {
  id: number | null
  project_id: number | null
  date: bigint | null
  vendeur: string | null
  no_cmd: string | null
  po: string | null
  staff_id: number | null
}

export type Project_cmdMaxAggregateOutputType = {
  id: number | null
  project_id: number | null
  date: bigint | null
  vendeur: string | null
  no_cmd: string | null
  po: string | null
  staff_id: number | null
}

export type Project_cmdCountAggregateOutputType = {
  id: number
  project_id: number
  date: number
  vendeur: number
  no_cmd: number
  po: number
  staff_id: number
  _all: number
}


export type Project_cmdAvgAggregateInputType = {
  id?: true
  project_id?: true
  date?: true
  staff_id?: true
}

export type Project_cmdSumAggregateInputType = {
  id?: true
  project_id?: true
  date?: true
  staff_id?: true
}

export type Project_cmdMinAggregateInputType = {
  id?: true
  project_id?: true
  date?: true
  vendeur?: true
  no_cmd?: true
  po?: true
  staff_id?: true
}

export type Project_cmdMaxAggregateInputType = {
  id?: true
  project_id?: true
  date?: true
  vendeur?: true
  no_cmd?: true
  po?: true
  staff_id?: true
}

export type Project_cmdCountAggregateInputType = {
  id?: true
  project_id?: true
  date?: true
  vendeur?: true
  no_cmd?: true
  po?: true
  staff_id?: true
  _all?: true
}

export type Project_cmdAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which project_cmd to aggregate.
   */
  where?: Prisma.project_cmdWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of project_cmds to fetch.
   */
  orderBy?: Prisma.project_cmdOrderByWithRelationInput | Prisma.project_cmdOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.project_cmdWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` project_cmds 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_cmds.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned project_cmds
  **/
  _count?: true | Project_cmdCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Project_cmdAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Project_cmdSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Project_cmdMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Project_cmdMaxAggregateInputType
}

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




export type project_cmdGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.project_cmdWhereInput
  orderBy?: Prisma.project_cmdOrderByWithAggregationInput | Prisma.project_cmdOrderByWithAggregationInput[]
  by: Prisma.Project_cmdScalarFieldEnum[] | Prisma.Project_cmdScalarFieldEnum
  having?: Prisma.project_cmdScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Project_cmdCountAggregateInputType | true
  _avg?: Project_cmdAvgAggregateInputType
  _sum?: Project_cmdSumAggregateInputType
  _min?: Project_cmdMinAggregateInputType
  _max?: Project_cmdMaxAggregateInputType
}

export type Project_cmdGroupByOutputType = {
  id: number
  project_id: number
  date: bigint
  vendeur: string | null
  no_cmd: string | null
  po: string | null
  staff_id: number
  _count: Project_cmdCountAggregateOutputType | null
  _avg: Project_cmdAvgAggregateOutputType | null
  _sum: Project_cmdSumAggregateOutputType | null
  _min: Project_cmdMinAggregateOutputType | null
  _max: Project_cmdMaxAggregateOutputType | null
}

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



export type project_cmdWhereInput = {
  AND?: Prisma.project_cmdWhereInput | Prisma.project_cmdWhereInput[]
  OR?: Prisma.project_cmdWhereInput[]
  NOT?: Prisma.project_cmdWhereInput | Prisma.project_cmdWhereInput[]
  id?: Prisma.IntFilter<"project_cmd"> | number
  project_id?: Prisma.IntFilter<"project_cmd"> | number
  date?: Prisma.BigIntFilter<"project_cmd"> | bigint | number
  vendeur?: Prisma.StringNullableFilter<"project_cmd"> | string | null
  no_cmd?: Prisma.StringNullableFilter<"project_cmd"> | string | null
  po?: Prisma.StringNullableFilter<"project_cmd"> | string | null
  staff_id?: Prisma.IntFilter<"project_cmd"> | number
}

export type project_cmdOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  project_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  vendeur?: Prisma.SortOrderInput | Prisma.SortOrder
  no_cmd?: Prisma.SortOrderInput | Prisma.SortOrder
  po?: Prisma.SortOrderInput | Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  _relevance?: Prisma.project_cmdOrderByRelevanceInput
}

export type project_cmdWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.project_cmdWhereInput | Prisma.project_cmdWhereInput[]
  OR?: Prisma.project_cmdWhereInput[]
  NOT?: Prisma.project_cmdWhereInput | Prisma.project_cmdWhereInput[]
  project_id?: Prisma.IntFilter<"project_cmd"> | number
  date?: Prisma.BigIntFilter<"project_cmd"> | bigint | number
  vendeur?: Prisma.StringNullableFilter<"project_cmd"> | string | null
  no_cmd?: Prisma.StringNullableFilter<"project_cmd"> | string | null
  po?: Prisma.StringNullableFilter<"project_cmd"> | string | null
  staff_id?: Prisma.IntFilter<"project_cmd"> | number
}, "id">

export type project_cmdOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  project_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  vendeur?: Prisma.SortOrderInput | Prisma.SortOrder
  no_cmd?: Prisma.SortOrderInput | Prisma.SortOrder
  po?: Prisma.SortOrderInput | Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  _count?: Prisma.project_cmdCountOrderByAggregateInput
  _avg?: Prisma.project_cmdAvgOrderByAggregateInput
  _max?: Prisma.project_cmdMaxOrderByAggregateInput
  _min?: Prisma.project_cmdMinOrderByAggregateInput
  _sum?: Prisma.project_cmdSumOrderByAggregateInput
}

export type project_cmdScalarWhereWithAggregatesInput = {
  AND?: Prisma.project_cmdScalarWhereWithAggregatesInput | Prisma.project_cmdScalarWhereWithAggregatesInput[]
  OR?: Prisma.project_cmdScalarWhereWithAggregatesInput[]
  NOT?: Prisma.project_cmdScalarWhereWithAggregatesInput | Prisma.project_cmdScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"project_cmd"> | number
  project_id?: Prisma.IntWithAggregatesFilter<"project_cmd"> | number
  date?: Prisma.BigIntWithAggregatesFilter<"project_cmd"> | bigint | number
  vendeur?: Prisma.StringNullableWithAggregatesFilter<"project_cmd"> | string | null
  no_cmd?: Prisma.StringNullableWithAggregatesFilter<"project_cmd"> | string | null
  po?: Prisma.StringNullableWithAggregatesFilter<"project_cmd"> | string | null
  staff_id?: Prisma.IntWithAggregatesFilter<"project_cmd"> | number
}

export type project_cmdCreateInput = {
  project_id: number
  date: bigint | number
  vendeur?: string | null
  no_cmd?: string | null
  po?: string | null
  staff_id?: number
}

export type project_cmdUncheckedCreateInput = {
  id?: number
  project_id: number
  date: bigint | number
  vendeur?: string | null
  no_cmd?: string | null
  po?: string | null
  staff_id?: number
}

export type project_cmdUpdateInput = {
  project_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  vendeur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  no_cmd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
}

export type project_cmdUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  project_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  vendeur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  no_cmd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
}

export type project_cmdCreateManyInput = {
  id?: number
  project_id: number
  date: bigint | number
  vendeur?: string | null
  no_cmd?: string | null
  po?: string | null
  staff_id?: number
}

export type project_cmdUpdateManyMutationInput = {
  project_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  vendeur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  no_cmd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
}

export type project_cmdUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  project_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  vendeur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  no_cmd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
}

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

export type project_cmdCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  project_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  vendeur?: Prisma.SortOrder
  no_cmd?: Prisma.SortOrder
  po?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type project_cmdAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  project_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type project_cmdMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  project_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  vendeur?: Prisma.SortOrder
  no_cmd?: Prisma.SortOrder
  po?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type project_cmdMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  project_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  vendeur?: Prisma.SortOrder
  no_cmd?: Prisma.SortOrder
  po?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type project_cmdSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  project_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}



export type project_cmdSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  project_id?: boolean
  date?: boolean
  vendeur?: boolean
  no_cmd?: boolean
  po?: boolean
  staff_id?: boolean
}, ExtArgs["result"]["project_cmd"]>



export type project_cmdSelectScalar = {
  id?: boolean
  project_id?: boolean
  date?: boolean
  vendeur?: boolean
  no_cmd?: boolean
  po?: boolean
  staff_id?: boolean
}

export type project_cmdOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "project_id" | "date" | "vendeur" | "no_cmd" | "po" | "staff_id", ExtArgs["result"]["project_cmd"]>

export type $project_cmdPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "project_cmd"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    project_id: number
    date: bigint
    vendeur: string | null
    no_cmd: string | null
    po: string | null
    staff_id: number
  }, ExtArgs["result"]["project_cmd"]>
  composites: {}
}

export type project_cmdGetPayload<S extends boolean | null | undefined | project_cmdDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$project_cmdPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for project_cmd.
 * 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_cmdClient<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_cmd model
 */
export interface project_cmdFieldRefs {
  readonly id: Prisma.FieldRef<"project_cmd", 'Int'>
  readonly project_id: Prisma.FieldRef<"project_cmd", 'Int'>
  readonly date: Prisma.FieldRef<"project_cmd", 'BigInt'>
  readonly vendeur: Prisma.FieldRef<"project_cmd", 'String'>
  readonly no_cmd: Prisma.FieldRef<"project_cmd", 'String'>
  readonly po: Prisma.FieldRef<"project_cmd", 'String'>
  readonly staff_id: Prisma.FieldRef<"project_cmd", 'Int'>
}
    

// Custom InputTypes
/**
 * project_cmd findUnique
 */
export type project_cmdFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_cmd
   */
  select?: Prisma.project_cmdSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_cmd
   */
  omit?: Prisma.project_cmdOmit<ExtArgs> | null
  /**
   * Filter, which project_cmd to fetch.
   */
  where: Prisma.project_cmdWhereUniqueInput
}

/**
 * project_cmd findUniqueOrThrow
 */
export type project_cmdFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_cmd
   */
  select?: Prisma.project_cmdSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_cmd
   */
  omit?: Prisma.project_cmdOmit<ExtArgs> | null
  /**
   * Filter, which project_cmd to fetch.
   */
  where: Prisma.project_cmdWhereUniqueInput
}

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

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

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

/**
 * project_cmd create
 */
export type project_cmdCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_cmd
   */
  select?: Prisma.project_cmdSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_cmd
   */
  omit?: Prisma.project_cmdOmit<ExtArgs> | null
  /**
   * The data needed to create a project_cmd.
   */
  data: Prisma.XOR<Prisma.project_cmdCreateInput, Prisma.project_cmdUncheckedCreateInput>
}

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

/**
 * project_cmd update
 */
export type project_cmdUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_cmd
   */
  select?: Prisma.project_cmdSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_cmd
   */
  omit?: Prisma.project_cmdOmit<ExtArgs> | null
  /**
   * The data needed to update a project_cmd.
   */
  data: Prisma.XOR<Prisma.project_cmdUpdateInput, Prisma.project_cmdUncheckedUpdateInput>
  /**
   * Choose, which project_cmd to update.
   */
  where: Prisma.project_cmdWhereUniqueInput
}

/**
 * project_cmd updateMany
 */
export type project_cmdUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update project_cmds.
   */
  data: Prisma.XOR<Prisma.project_cmdUpdateManyMutationInput, Prisma.project_cmdUncheckedUpdateManyInput>
  /**
   * Filter which project_cmds to update
   */
  where?: Prisma.project_cmdWhereInput
  /**
   * Limit how many project_cmds to update.
   */
  limit?: number
}

/**
 * project_cmd upsert
 */
export type project_cmdUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_cmd
   */
  select?: Prisma.project_cmdSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_cmd
   */
  omit?: Prisma.project_cmdOmit<ExtArgs> | null
  /**
   * The filter to search for the project_cmd to update in case it exists.
   */
  where: Prisma.project_cmdWhereUniqueInput
  /**
   * In case the project_cmd found by the `where` argument doesn't exist, create a new project_cmd with this data.
   */
  create: Prisma.XOR<Prisma.project_cmdCreateInput, Prisma.project_cmdUncheckedCreateInput>
  /**
   * In case the project_cmd was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.project_cmdUpdateInput, Prisma.project_cmdUncheckedUpdateInput>
}

/**
 * project_cmd delete
 */
export type project_cmdDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the project_cmd
   */
  select?: Prisma.project_cmdSelect<ExtArgs> | null
  /**
   * Omit specific fields from the project_cmd
   */
  omit?: Prisma.project_cmdOmit<ExtArgs> | null
  /**
   * Filter which project_cmd to delete.
   */
  where: Prisma.project_cmdWhereUniqueInput
}

/**
 * project_cmd deleteMany
 */
export type project_cmdDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which project_cmds to delete
   */
  where?: Prisma.project_cmdWhereInput
  /**
   * Limit how many project_cmds to delete.
   */
  limit?: number
}

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