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

export type AggregateProduct_fournisseur = {
  _count: Product_fournisseurCountAggregateOutputType | null
  _avg: Product_fournisseurAvgAggregateOutputType | null
  _sum: Product_fournisseurSumAggregateOutputType | null
  _min: Product_fournisseurMinAggregateOutputType | null
  _max: Product_fournisseurMaxAggregateOutputType | null
}

export type Product_fournisseurAvgAggregateOutputType = {
  id: number | null
  product_id: number | null
  prix_achat: number | null
}

export type Product_fournisseurSumAggregateOutputType = {
  id: number | null
  product_id: number | null
  prix_achat: number | null
}

export type Product_fournisseurMinAggregateOutputType = {
  id: number | null
  product_id: number | null
  nom_fournisseur: string | null
  prix_us: boolean | null
  prix_achat: number | null
  prix_livr: string | null
  delais_livr: string | null
  comment: string | null
}

export type Product_fournisseurMaxAggregateOutputType = {
  id: number | null
  product_id: number | null
  nom_fournisseur: string | null
  prix_us: boolean | null
  prix_achat: number | null
  prix_livr: string | null
  delais_livr: string | null
  comment: string | null
}

export type Product_fournisseurCountAggregateOutputType = {
  id: number
  product_id: number
  nom_fournisseur: number
  prix_us: number
  prix_achat: number
  prix_livr: number
  delais_livr: number
  comment: number
  _all: number
}


export type Product_fournisseurAvgAggregateInputType = {
  id?: true
  product_id?: true
  prix_achat?: true
}

export type Product_fournisseurSumAggregateInputType = {
  id?: true
  product_id?: true
  prix_achat?: true
}

export type Product_fournisseurMinAggregateInputType = {
  id?: true
  product_id?: true
  nom_fournisseur?: true
  prix_us?: true
  prix_achat?: true
  prix_livr?: true
  delais_livr?: true
  comment?: true
}

export type Product_fournisseurMaxAggregateInputType = {
  id?: true
  product_id?: true
  nom_fournisseur?: true
  prix_us?: true
  prix_achat?: true
  prix_livr?: true
  delais_livr?: true
  comment?: true
}

export type Product_fournisseurCountAggregateInputType = {
  id?: true
  product_id?: true
  nom_fournisseur?: true
  prix_us?: true
  prix_achat?: true
  prix_livr?: true
  delais_livr?: true
  comment?: true
  _all?: true
}

export type Product_fournisseurAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which product_fournisseur to aggregate.
   */
  where?: Prisma.product_fournisseurWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of product_fournisseurs to fetch.
   */
  orderBy?: Prisma.product_fournisseurOrderByWithRelationInput | Prisma.product_fournisseurOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.product_fournisseurWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` product_fournisseurs 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_fournisseurs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned product_fournisseurs
  **/
  _count?: true | Product_fournisseurCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Product_fournisseurAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Product_fournisseurSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Product_fournisseurMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Product_fournisseurMaxAggregateInputType
}

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




export type product_fournisseurGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.product_fournisseurWhereInput
  orderBy?: Prisma.product_fournisseurOrderByWithAggregationInput | Prisma.product_fournisseurOrderByWithAggregationInput[]
  by: Prisma.Product_fournisseurScalarFieldEnum[] | Prisma.Product_fournisseurScalarFieldEnum
  having?: Prisma.product_fournisseurScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Product_fournisseurCountAggregateInputType | true
  _avg?: Product_fournisseurAvgAggregateInputType
  _sum?: Product_fournisseurSumAggregateInputType
  _min?: Product_fournisseurMinAggregateInputType
  _max?: Product_fournisseurMaxAggregateInputType
}

export type Product_fournisseurGroupByOutputType = {
  id: number
  product_id: number
  nom_fournisseur: string
  prix_us: boolean
  prix_achat: number
  prix_livr: string
  delais_livr: string
  comment: string
  _count: Product_fournisseurCountAggregateOutputType | null
  _avg: Product_fournisseurAvgAggregateOutputType | null
  _sum: Product_fournisseurSumAggregateOutputType | null
  _min: Product_fournisseurMinAggregateOutputType | null
  _max: Product_fournisseurMaxAggregateOutputType | null
}

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



export type product_fournisseurWhereInput = {
  AND?: Prisma.product_fournisseurWhereInput | Prisma.product_fournisseurWhereInput[]
  OR?: Prisma.product_fournisseurWhereInput[]
  NOT?: Prisma.product_fournisseurWhereInput | Prisma.product_fournisseurWhereInput[]
  id?: Prisma.IntFilter<"product_fournisseur"> | number
  product_id?: Prisma.IntFilter<"product_fournisseur"> | number
  nom_fournisseur?: Prisma.StringFilter<"product_fournisseur"> | string
  prix_us?: Prisma.BoolFilter<"product_fournisseur"> | boolean
  prix_achat?: Prisma.FloatFilter<"product_fournisseur"> | number
  prix_livr?: Prisma.StringFilter<"product_fournisseur"> | string
  delais_livr?: Prisma.StringFilter<"product_fournisseur"> | string
  comment?: Prisma.StringFilter<"product_fournisseur"> | string
}

export type product_fournisseurOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  nom_fournisseur?: Prisma.SortOrder
  prix_us?: Prisma.SortOrder
  prix_achat?: Prisma.SortOrder
  prix_livr?: Prisma.SortOrder
  delais_livr?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  _relevance?: Prisma.product_fournisseurOrderByRelevanceInput
}

export type product_fournisseurWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.product_fournisseurWhereInput | Prisma.product_fournisseurWhereInput[]
  OR?: Prisma.product_fournisseurWhereInput[]
  NOT?: Prisma.product_fournisseurWhereInput | Prisma.product_fournisseurWhereInput[]
  product_id?: Prisma.IntFilter<"product_fournisseur"> | number
  nom_fournisseur?: Prisma.StringFilter<"product_fournisseur"> | string
  prix_us?: Prisma.BoolFilter<"product_fournisseur"> | boolean
  prix_achat?: Prisma.FloatFilter<"product_fournisseur"> | number
  prix_livr?: Prisma.StringFilter<"product_fournisseur"> | string
  delais_livr?: Prisma.StringFilter<"product_fournisseur"> | string
  comment?: Prisma.StringFilter<"product_fournisseur"> | string
}, "id">

export type product_fournisseurOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  nom_fournisseur?: Prisma.SortOrder
  prix_us?: Prisma.SortOrder
  prix_achat?: Prisma.SortOrder
  prix_livr?: Prisma.SortOrder
  delais_livr?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  _count?: Prisma.product_fournisseurCountOrderByAggregateInput
  _avg?: Prisma.product_fournisseurAvgOrderByAggregateInput
  _max?: Prisma.product_fournisseurMaxOrderByAggregateInput
  _min?: Prisma.product_fournisseurMinOrderByAggregateInput
  _sum?: Prisma.product_fournisseurSumOrderByAggregateInput
}

export type product_fournisseurScalarWhereWithAggregatesInput = {
  AND?: Prisma.product_fournisseurScalarWhereWithAggregatesInput | Prisma.product_fournisseurScalarWhereWithAggregatesInput[]
  OR?: Prisma.product_fournisseurScalarWhereWithAggregatesInput[]
  NOT?: Prisma.product_fournisseurScalarWhereWithAggregatesInput | Prisma.product_fournisseurScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"product_fournisseur"> | number
  product_id?: Prisma.IntWithAggregatesFilter<"product_fournisseur"> | number
  nom_fournisseur?: Prisma.StringWithAggregatesFilter<"product_fournisseur"> | string
  prix_us?: Prisma.BoolWithAggregatesFilter<"product_fournisseur"> | boolean
  prix_achat?: Prisma.FloatWithAggregatesFilter<"product_fournisseur"> | number
  prix_livr?: Prisma.StringWithAggregatesFilter<"product_fournisseur"> | string
  delais_livr?: Prisma.StringWithAggregatesFilter<"product_fournisseur"> | string
  comment?: Prisma.StringWithAggregatesFilter<"product_fournisseur"> | string
}

export type product_fournisseurCreateInput = {
  product_id: number
  nom_fournisseur: string
  prix_us?: boolean
  prix_achat?: number
  prix_livr?: string
  delais_livr?: string
  comment?: string
}

export type product_fournisseurUncheckedCreateInput = {
  id?: number
  product_id: number
  nom_fournisseur: string
  prix_us?: boolean
  prix_achat?: number
  prix_livr?: string
  delais_livr?: string
  comment?: string
}

export type product_fournisseurUpdateInput = {
  product_id?: Prisma.IntFieldUpdateOperationsInput | number
  nom_fournisseur?: Prisma.StringFieldUpdateOperationsInput | string
  prix_us?: Prisma.BoolFieldUpdateOperationsInput | boolean
  prix_achat?: Prisma.FloatFieldUpdateOperationsInput | number
  prix_livr?: Prisma.StringFieldUpdateOperationsInput | string
  delais_livr?: Prisma.StringFieldUpdateOperationsInput | string
  comment?: Prisma.StringFieldUpdateOperationsInput | string
}

export type product_fournisseurUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  product_id?: Prisma.IntFieldUpdateOperationsInput | number
  nom_fournisseur?: Prisma.StringFieldUpdateOperationsInput | string
  prix_us?: Prisma.BoolFieldUpdateOperationsInput | boolean
  prix_achat?: Prisma.FloatFieldUpdateOperationsInput | number
  prix_livr?: Prisma.StringFieldUpdateOperationsInput | string
  delais_livr?: Prisma.StringFieldUpdateOperationsInput | string
  comment?: Prisma.StringFieldUpdateOperationsInput | string
}

export type product_fournisseurCreateManyInput = {
  id?: number
  product_id: number
  nom_fournisseur: string
  prix_us?: boolean
  prix_achat?: number
  prix_livr?: string
  delais_livr?: string
  comment?: string
}

export type product_fournisseurUpdateManyMutationInput = {
  product_id?: Prisma.IntFieldUpdateOperationsInput | number
  nom_fournisseur?: Prisma.StringFieldUpdateOperationsInput | string
  prix_us?: Prisma.BoolFieldUpdateOperationsInput | boolean
  prix_achat?: Prisma.FloatFieldUpdateOperationsInput | number
  prix_livr?: Prisma.StringFieldUpdateOperationsInput | string
  delais_livr?: Prisma.StringFieldUpdateOperationsInput | string
  comment?: Prisma.StringFieldUpdateOperationsInput | string
}

export type product_fournisseurUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  product_id?: Prisma.IntFieldUpdateOperationsInput | number
  nom_fournisseur?: Prisma.StringFieldUpdateOperationsInput | string
  prix_us?: Prisma.BoolFieldUpdateOperationsInput | boolean
  prix_achat?: Prisma.FloatFieldUpdateOperationsInput | number
  prix_livr?: Prisma.StringFieldUpdateOperationsInput | string
  delais_livr?: Prisma.StringFieldUpdateOperationsInput | string
  comment?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type product_fournisseurCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  nom_fournisseur?: Prisma.SortOrder
  prix_us?: Prisma.SortOrder
  prix_achat?: Prisma.SortOrder
  prix_livr?: Prisma.SortOrder
  delais_livr?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type product_fournisseurAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  prix_achat?: Prisma.SortOrder
}

export type product_fournisseurMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  nom_fournisseur?: Prisma.SortOrder
  prix_us?: Prisma.SortOrder
  prix_achat?: Prisma.SortOrder
  prix_livr?: Prisma.SortOrder
  delais_livr?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type product_fournisseurMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  nom_fournisseur?: Prisma.SortOrder
  prix_us?: Prisma.SortOrder
  prix_achat?: Prisma.SortOrder
  prix_livr?: Prisma.SortOrder
  delais_livr?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type product_fournisseurSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  prix_achat?: Prisma.SortOrder
}



export type product_fournisseurSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  product_id?: boolean
  nom_fournisseur?: boolean
  prix_us?: boolean
  prix_achat?: boolean
  prix_livr?: boolean
  delais_livr?: boolean
  comment?: boolean
}, ExtArgs["result"]["product_fournisseur"]>



export type product_fournisseurSelectScalar = {
  id?: boolean
  product_id?: boolean
  nom_fournisseur?: boolean
  prix_us?: boolean
  prix_achat?: boolean
  prix_livr?: boolean
  delais_livr?: boolean
  comment?: boolean
}

export type product_fournisseurOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "product_id" | "nom_fournisseur" | "prix_us" | "prix_achat" | "prix_livr" | "delais_livr" | "comment", ExtArgs["result"]["product_fournisseur"]>

export type $product_fournisseurPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "product_fournisseur"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    product_id: number
    nom_fournisseur: string
    prix_us: boolean
    prix_achat: number
    prix_livr: string
    delais_livr: string
    comment: string
  }, ExtArgs["result"]["product_fournisseur"]>
  composites: {}
}

export type product_fournisseurGetPayload<S extends boolean | null | undefined | product_fournisseurDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$product_fournisseurPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for product_fournisseur.
 * 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_fournisseurClient<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_fournisseur model
 */
export interface product_fournisseurFieldRefs {
  readonly id: Prisma.FieldRef<"product_fournisseur", 'Int'>
  readonly product_id: Prisma.FieldRef<"product_fournisseur", 'Int'>
  readonly nom_fournisseur: Prisma.FieldRef<"product_fournisseur", 'String'>
  readonly prix_us: Prisma.FieldRef<"product_fournisseur", 'Boolean'>
  readonly prix_achat: Prisma.FieldRef<"product_fournisseur", 'Float'>
  readonly prix_livr: Prisma.FieldRef<"product_fournisseur", 'String'>
  readonly delais_livr: Prisma.FieldRef<"product_fournisseur", 'String'>
  readonly comment: Prisma.FieldRef<"product_fournisseur", 'String'>
}
    

// Custom InputTypes
/**
 * product_fournisseur findUnique
 */
export type product_fournisseurFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_fournisseur
   */
  select?: Prisma.product_fournisseurSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_fournisseur
   */
  omit?: Prisma.product_fournisseurOmit<ExtArgs> | null
  /**
   * Filter, which product_fournisseur to fetch.
   */
  where: Prisma.product_fournisseurWhereUniqueInput
}

/**
 * product_fournisseur findUniqueOrThrow
 */
export type product_fournisseurFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_fournisseur
   */
  select?: Prisma.product_fournisseurSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_fournisseur
   */
  omit?: Prisma.product_fournisseurOmit<ExtArgs> | null
  /**
   * Filter, which product_fournisseur to fetch.
   */
  where: Prisma.product_fournisseurWhereUniqueInput
}

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

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

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

/**
 * product_fournisseur create
 */
export type product_fournisseurCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_fournisseur
   */
  select?: Prisma.product_fournisseurSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_fournisseur
   */
  omit?: Prisma.product_fournisseurOmit<ExtArgs> | null
  /**
   * The data needed to create a product_fournisseur.
   */
  data: Prisma.XOR<Prisma.product_fournisseurCreateInput, Prisma.product_fournisseurUncheckedCreateInput>
}

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

/**
 * product_fournisseur update
 */
export type product_fournisseurUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_fournisseur
   */
  select?: Prisma.product_fournisseurSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_fournisseur
   */
  omit?: Prisma.product_fournisseurOmit<ExtArgs> | null
  /**
   * The data needed to update a product_fournisseur.
   */
  data: Prisma.XOR<Prisma.product_fournisseurUpdateInput, Prisma.product_fournisseurUncheckedUpdateInput>
  /**
   * Choose, which product_fournisseur to update.
   */
  where: Prisma.product_fournisseurWhereUniqueInput
}

/**
 * product_fournisseur updateMany
 */
export type product_fournisseurUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update product_fournisseurs.
   */
  data: Prisma.XOR<Prisma.product_fournisseurUpdateManyMutationInput, Prisma.product_fournisseurUncheckedUpdateManyInput>
  /**
   * Filter which product_fournisseurs to update
   */
  where?: Prisma.product_fournisseurWhereInput
  /**
   * Limit how many product_fournisseurs to update.
   */
  limit?: number
}

/**
 * product_fournisseur upsert
 */
export type product_fournisseurUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_fournisseur
   */
  select?: Prisma.product_fournisseurSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_fournisseur
   */
  omit?: Prisma.product_fournisseurOmit<ExtArgs> | null
  /**
   * The filter to search for the product_fournisseur to update in case it exists.
   */
  where: Prisma.product_fournisseurWhereUniqueInput
  /**
   * In case the product_fournisseur found by the `where` argument doesn't exist, create a new product_fournisseur with this data.
   */
  create: Prisma.XOR<Prisma.product_fournisseurCreateInput, Prisma.product_fournisseurUncheckedCreateInput>
  /**
   * In case the product_fournisseur was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.product_fournisseurUpdateInput, Prisma.product_fournisseurUncheckedUpdateInput>
}

/**
 * product_fournisseur delete
 */
export type product_fournisseurDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_fournisseur
   */
  select?: Prisma.product_fournisseurSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_fournisseur
   */
  omit?: Prisma.product_fournisseurOmit<ExtArgs> | null
  /**
   * Filter which product_fournisseur to delete.
   */
  where: Prisma.product_fournisseurWhereUniqueInput
}

/**
 * product_fournisseur deleteMany
 */
export type product_fournisseurDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which product_fournisseurs to delete
   */
  where?: Prisma.product_fournisseurWhereInput
  /**
   * Limit how many product_fournisseurs to delete.
   */
  limit?: number
}

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