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

export type AggregateProduct_cat = {
  _count: Product_catCountAggregateOutputType | null
  _avg: Product_catAvgAggregateOutputType | null
  _sum: Product_catSumAggregateOutputType | null
  _min: Product_catMinAggregateOutputType | null
  _max: Product_catMaxAggregateOutputType | null
}

export type Product_catAvgAggregateOutputType = {
  id: number | null
  status: number | null
  num_compte: number | null
  combo_dispo: number | null
}

export type Product_catSumAggregateOutputType = {
  id: number | null
  status: number | null
  num_compte: bigint | null
  combo_dispo: number | null
}

export type Product_catMinAggregateOutputType = {
  id: number | null
  name: string | null
  notes: string | null
  status: number | null
  num_compte: bigint | null
  combo_dispo: number | null
}

export type Product_catMaxAggregateOutputType = {
  id: number | null
  name: string | null
  notes: string | null
  status: number | null
  num_compte: bigint | null
  combo_dispo: number | null
}

export type Product_catCountAggregateOutputType = {
  id: number
  name: number
  notes: number
  status: number
  num_compte: number
  combo_dispo: number
  _all: number
}


export type Product_catAvgAggregateInputType = {
  id?: true
  status?: true
  num_compte?: true
  combo_dispo?: true
}

export type Product_catSumAggregateInputType = {
  id?: true
  status?: true
  num_compte?: true
  combo_dispo?: true
}

export type Product_catMinAggregateInputType = {
  id?: true
  name?: true
  notes?: true
  status?: true
  num_compte?: true
  combo_dispo?: true
}

export type Product_catMaxAggregateInputType = {
  id?: true
  name?: true
  notes?: true
  status?: true
  num_compte?: true
  combo_dispo?: true
}

export type Product_catCountAggregateInputType = {
  id?: true
  name?: true
  notes?: true
  status?: true
  num_compte?: true
  combo_dispo?: true
  _all?: true
}

export type Product_catAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which product_cat to aggregate.
   */
  where?: Prisma.product_catWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of product_cats to fetch.
   */
  orderBy?: Prisma.product_catOrderByWithRelationInput | Prisma.product_catOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.product_catWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` product_cats 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` product_cats.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned product_cats
  **/
  _count?: true | Product_catCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Product_catAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Product_catSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Product_catMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Product_catMaxAggregateInputType
}

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




export type product_catGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.product_catWhereInput
  orderBy?: Prisma.product_catOrderByWithAggregationInput | Prisma.product_catOrderByWithAggregationInput[]
  by: Prisma.Product_catScalarFieldEnum[] | Prisma.Product_catScalarFieldEnum
  having?: Prisma.product_catScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Product_catCountAggregateInputType | true
  _avg?: Product_catAvgAggregateInputType
  _sum?: Product_catSumAggregateInputType
  _min?: Product_catMinAggregateInputType
  _max?: Product_catMaxAggregateInputType
}

export type Product_catGroupByOutputType = {
  id: number
  name: string | null
  notes: string | null
  status: number | null
  num_compte: bigint | null
  combo_dispo: number
  _count: Product_catCountAggregateOutputType | null
  _avg: Product_catAvgAggregateOutputType | null
  _sum: Product_catSumAggregateOutputType | null
  _min: Product_catMinAggregateOutputType | null
  _max: Product_catMaxAggregateOutputType | null
}

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



export type product_catWhereInput = {
  AND?: Prisma.product_catWhereInput | Prisma.product_catWhereInput[]
  OR?: Prisma.product_catWhereInput[]
  NOT?: Prisma.product_catWhereInput | Prisma.product_catWhereInput[]
  id?: Prisma.IntFilter<"product_cat"> | number
  name?: Prisma.StringNullableFilter<"product_cat"> | string | null
  notes?: Prisma.StringNullableFilter<"product_cat"> | string | null
  status?: Prisma.IntNullableFilter<"product_cat"> | number | null
  num_compte?: Prisma.BigIntNullableFilter<"product_cat"> | bigint | number | null
  combo_dispo?: Prisma.IntFilter<"product_cat"> | number
}

export type product_catOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  notes?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrderInput | Prisma.SortOrder
  num_compte?: Prisma.SortOrderInput | Prisma.SortOrder
  combo_dispo?: Prisma.SortOrder
  _relevance?: Prisma.product_catOrderByRelevanceInput
}

export type product_catWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.product_catWhereInput | Prisma.product_catWhereInput[]
  OR?: Prisma.product_catWhereInput[]
  NOT?: Prisma.product_catWhereInput | Prisma.product_catWhereInput[]
  name?: Prisma.StringNullableFilter<"product_cat"> | string | null
  notes?: Prisma.StringNullableFilter<"product_cat"> | string | null
  status?: Prisma.IntNullableFilter<"product_cat"> | number | null
  num_compte?: Prisma.BigIntNullableFilter<"product_cat"> | bigint | number | null
  combo_dispo?: Prisma.IntFilter<"product_cat"> | number
}, "id">

export type product_catOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  notes?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrderInput | Prisma.SortOrder
  num_compte?: Prisma.SortOrderInput | Prisma.SortOrder
  combo_dispo?: Prisma.SortOrder
  _count?: Prisma.product_catCountOrderByAggregateInput
  _avg?: Prisma.product_catAvgOrderByAggregateInput
  _max?: Prisma.product_catMaxOrderByAggregateInput
  _min?: Prisma.product_catMinOrderByAggregateInput
  _sum?: Prisma.product_catSumOrderByAggregateInput
}

export type product_catScalarWhereWithAggregatesInput = {
  AND?: Prisma.product_catScalarWhereWithAggregatesInput | Prisma.product_catScalarWhereWithAggregatesInput[]
  OR?: Prisma.product_catScalarWhereWithAggregatesInput[]
  NOT?: Prisma.product_catScalarWhereWithAggregatesInput | Prisma.product_catScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"product_cat"> | number
  name?: Prisma.StringNullableWithAggregatesFilter<"product_cat"> | string | null
  notes?: Prisma.StringNullableWithAggregatesFilter<"product_cat"> | string | null
  status?: Prisma.IntNullableWithAggregatesFilter<"product_cat"> | number | null
  num_compte?: Prisma.BigIntNullableWithAggregatesFilter<"product_cat"> | bigint | number | null
  combo_dispo?: Prisma.IntWithAggregatesFilter<"product_cat"> | number
}

export type product_catCreateInput = {
  name?: string | null
  notes?: string | null
  status?: number | null
  num_compte?: bigint | number | null
  combo_dispo?: number
}

export type product_catUncheckedCreateInput = {
  id?: number
  name?: string | null
  notes?: string | null
  status?: number | null
  num_compte?: bigint | number | null
  combo_dispo?: number
}

export type product_catUpdateInput = {
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  combo_dispo?: Prisma.IntFieldUpdateOperationsInput | number
}

export type product_catUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  combo_dispo?: Prisma.IntFieldUpdateOperationsInput | number
}

export type product_catCreateManyInput = {
  id?: number
  name?: string | null
  notes?: string | null
  status?: number | null
  num_compte?: bigint | number | null
  combo_dispo?: number
}

export type product_catUpdateManyMutationInput = {
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  combo_dispo?: Prisma.IntFieldUpdateOperationsInput | number
}

export type product_catUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  combo_dispo?: Prisma.IntFieldUpdateOperationsInput | number
}

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

export type product_catCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  notes?: Prisma.SortOrder
  status?: Prisma.SortOrder
  num_compte?: Prisma.SortOrder
  combo_dispo?: Prisma.SortOrder
}

export type product_catAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  status?: Prisma.SortOrder
  num_compte?: Prisma.SortOrder
  combo_dispo?: Prisma.SortOrder
}

export type product_catMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  notes?: Prisma.SortOrder
  status?: Prisma.SortOrder
  num_compte?: Prisma.SortOrder
  combo_dispo?: Prisma.SortOrder
}

export type product_catMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  notes?: Prisma.SortOrder
  status?: Prisma.SortOrder
  num_compte?: Prisma.SortOrder
  combo_dispo?: Prisma.SortOrder
}

export type product_catSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  status?: Prisma.SortOrder
  num_compte?: Prisma.SortOrder
  combo_dispo?: Prisma.SortOrder
}



export type product_catSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  notes?: boolean
  status?: boolean
  num_compte?: boolean
  combo_dispo?: boolean
}, ExtArgs["result"]["product_cat"]>



export type product_catSelectScalar = {
  id?: boolean
  name?: boolean
  notes?: boolean
  status?: boolean
  num_compte?: boolean
  combo_dispo?: boolean
}

export type product_catOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "notes" | "status" | "num_compte" | "combo_dispo", ExtArgs["result"]["product_cat"]>

export type $product_catPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "product_cat"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    name: string | null
    notes: string | null
    status: number | null
    num_compte: bigint | null
    combo_dispo: number
  }, ExtArgs["result"]["product_cat"]>
  composites: {}
}

export type product_catGetPayload<S extends boolean | null | undefined | product_catDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$product_catPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for product_cat.
 * 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__product_catClient<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 product_cat model
 */
export interface product_catFieldRefs {
  readonly id: Prisma.FieldRef<"product_cat", 'Int'>
  readonly name: Prisma.FieldRef<"product_cat", 'String'>
  readonly notes: Prisma.FieldRef<"product_cat", 'String'>
  readonly status: Prisma.FieldRef<"product_cat", 'Int'>
  readonly num_compte: Prisma.FieldRef<"product_cat", 'BigInt'>
  readonly combo_dispo: Prisma.FieldRef<"product_cat", 'Int'>
}
    

// Custom InputTypes
/**
 * product_cat findUnique
 */
export type product_catFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_cat
   */
  select?: Prisma.product_catSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_cat
   */
  omit?: Prisma.product_catOmit<ExtArgs> | null
  /**
   * Filter, which product_cat to fetch.
   */
  where: Prisma.product_catWhereUniqueInput
}

/**
 * product_cat findUniqueOrThrow
 */
export type product_catFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_cat
   */
  select?: Prisma.product_catSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_cat
   */
  omit?: Prisma.product_catOmit<ExtArgs> | null
  /**
   * Filter, which product_cat to fetch.
   */
  where: Prisma.product_catWhereUniqueInput
}

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

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

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

/**
 * product_cat create
 */
export type product_catCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_cat
   */
  select?: Prisma.product_catSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_cat
   */
  omit?: Prisma.product_catOmit<ExtArgs> | null
  /**
   * The data needed to create a product_cat.
   */
  data?: Prisma.XOR<Prisma.product_catCreateInput, Prisma.product_catUncheckedCreateInput>
}

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

/**
 * product_cat update
 */
export type product_catUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_cat
   */
  select?: Prisma.product_catSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_cat
   */
  omit?: Prisma.product_catOmit<ExtArgs> | null
  /**
   * The data needed to update a product_cat.
   */
  data: Prisma.XOR<Prisma.product_catUpdateInput, Prisma.product_catUncheckedUpdateInput>
  /**
   * Choose, which product_cat to update.
   */
  where: Prisma.product_catWhereUniqueInput
}

/**
 * product_cat updateMany
 */
export type product_catUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update product_cats.
   */
  data: Prisma.XOR<Prisma.product_catUpdateManyMutationInput, Prisma.product_catUncheckedUpdateManyInput>
  /**
   * Filter which product_cats to update
   */
  where?: Prisma.product_catWhereInput
  /**
   * Limit how many product_cats to update.
   */
  limit?: number
}

/**
 * product_cat upsert
 */
export type product_catUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_cat
   */
  select?: Prisma.product_catSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_cat
   */
  omit?: Prisma.product_catOmit<ExtArgs> | null
  /**
   * The filter to search for the product_cat to update in case it exists.
   */
  where: Prisma.product_catWhereUniqueInput
  /**
   * In case the product_cat found by the `where` argument doesn't exist, create a new product_cat with this data.
   */
  create: Prisma.XOR<Prisma.product_catCreateInput, Prisma.product_catUncheckedCreateInput>
  /**
   * In case the product_cat was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.product_catUpdateInput, Prisma.product_catUncheckedUpdateInput>
}

/**
 * product_cat delete
 */
export type product_catDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_cat
   */
  select?: Prisma.product_catSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_cat
   */
  omit?: Prisma.product_catOmit<ExtArgs> | null
  /**
   * Filter which product_cat to delete.
   */
  where: Prisma.product_catWhereUniqueInput
}

/**
 * product_cat deleteMany
 */
export type product_catDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which product_cats to delete
   */
  where?: Prisma.product_catWhereInput
  /**
   * Limit how many product_cats to delete.
   */
  limit?: number
}

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