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

export type AggregateConso_avis = {
  _count: Conso_avisCountAggregateOutputType | null
  _avg: Conso_avisAvgAggregateOutputType | null
  _sum: Conso_avisSumAggregateOutputType | null
  _min: Conso_avisMinAggregateOutputType | null
  _max: Conso_avisMaxAggregateOutputType | null
}

export type Conso_avisAvgAggregateOutputType = {
  id: number | null
  date: number | null
  account_id: number | null
  delivery_id: number | null
  service_id: number | null
  ip_id: number | null
}

export type Conso_avisSumAggregateOutputType = {
  id: number | null
  date: bigint | null
  account_id: number | null
  delivery_id: number | null
  service_id: number | null
  ip_id: number | null
}

export type Conso_avisMinAggregateOutputType = {
  id: number | null
  date: bigint | null
  account_id: number | null
  delivery_id: number | null
  service_id: number | null
  ip_id: number | null
  avis: string | null
}

export type Conso_avisMaxAggregateOutputType = {
  id: number | null
  date: bigint | null
  account_id: number | null
  delivery_id: number | null
  service_id: number | null
  ip_id: number | null
  avis: string | null
}

export type Conso_avisCountAggregateOutputType = {
  id: number
  date: number
  account_id: number
  delivery_id: number
  service_id: number
  ip_id: number
  avis: number
  _all: number
}


export type Conso_avisAvgAggregateInputType = {
  id?: true
  date?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  ip_id?: true
}

export type Conso_avisSumAggregateInputType = {
  id?: true
  date?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  ip_id?: true
}

export type Conso_avisMinAggregateInputType = {
  id?: true
  date?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  ip_id?: true
  avis?: true
}

export type Conso_avisMaxAggregateInputType = {
  id?: true
  date?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  ip_id?: true
  avis?: true
}

export type Conso_avisCountAggregateInputType = {
  id?: true
  date?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  ip_id?: true
  avis?: true
  _all?: true
}

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

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




export type conso_avisGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.conso_avisWhereInput
  orderBy?: Prisma.conso_avisOrderByWithAggregationInput | Prisma.conso_avisOrderByWithAggregationInput[]
  by: Prisma.Conso_avisScalarFieldEnum[] | Prisma.Conso_avisScalarFieldEnum
  having?: Prisma.conso_avisScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Conso_avisCountAggregateInputType | true
  _avg?: Conso_avisAvgAggregateInputType
  _sum?: Conso_avisSumAggregateInputType
  _min?: Conso_avisMinAggregateInputType
  _max?: Conso_avisMaxAggregateInputType
}

export type Conso_avisGroupByOutputType = {
  id: number
  date: bigint
  account_id: number
  delivery_id: number
  service_id: number
  ip_id: number
  avis: string
  _count: Conso_avisCountAggregateOutputType | null
  _avg: Conso_avisAvgAggregateOutputType | null
  _sum: Conso_avisSumAggregateOutputType | null
  _min: Conso_avisMinAggregateOutputType | null
  _max: Conso_avisMaxAggregateOutputType | null
}

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



export type conso_avisWhereInput = {
  AND?: Prisma.conso_avisWhereInput | Prisma.conso_avisWhereInput[]
  OR?: Prisma.conso_avisWhereInput[]
  NOT?: Prisma.conso_avisWhereInput | Prisma.conso_avisWhereInput[]
  id?: Prisma.IntFilter<"conso_avis"> | number
  date?: Prisma.BigIntFilter<"conso_avis"> | bigint | number
  account_id?: Prisma.IntFilter<"conso_avis"> | number
  delivery_id?: Prisma.IntFilter<"conso_avis"> | number
  service_id?: Prisma.IntFilter<"conso_avis"> | number
  ip_id?: Prisma.IntFilter<"conso_avis"> | number
  avis?: Prisma.StringFilter<"conso_avis"> | string
}

export type conso_avisOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
  avis?: Prisma.SortOrder
  _relevance?: Prisma.conso_avisOrderByRelevanceInput
}

export type conso_avisWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.conso_avisWhereInput | Prisma.conso_avisWhereInput[]
  OR?: Prisma.conso_avisWhereInput[]
  NOT?: Prisma.conso_avisWhereInput | Prisma.conso_avisWhereInput[]
  date?: Prisma.BigIntFilter<"conso_avis"> | bigint | number
  account_id?: Prisma.IntFilter<"conso_avis"> | number
  delivery_id?: Prisma.IntFilter<"conso_avis"> | number
  service_id?: Prisma.IntFilter<"conso_avis"> | number
  ip_id?: Prisma.IntFilter<"conso_avis"> | number
  avis?: Prisma.StringFilter<"conso_avis"> | string
}, "id">

export type conso_avisOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
  avis?: Prisma.SortOrder
  _count?: Prisma.conso_avisCountOrderByAggregateInput
  _avg?: Prisma.conso_avisAvgOrderByAggregateInput
  _max?: Prisma.conso_avisMaxOrderByAggregateInput
  _min?: Prisma.conso_avisMinOrderByAggregateInput
  _sum?: Prisma.conso_avisSumOrderByAggregateInput
}

export type conso_avisScalarWhereWithAggregatesInput = {
  AND?: Prisma.conso_avisScalarWhereWithAggregatesInput | Prisma.conso_avisScalarWhereWithAggregatesInput[]
  OR?: Prisma.conso_avisScalarWhereWithAggregatesInput[]
  NOT?: Prisma.conso_avisScalarWhereWithAggregatesInput | Prisma.conso_avisScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number
  date?: Prisma.BigIntWithAggregatesFilter<"conso_avis"> | bigint | number
  account_id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number
  delivery_id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number
  service_id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number
  ip_id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number
  avis?: Prisma.StringWithAggregatesFilter<"conso_avis"> | string
}

export type conso_avisCreateInput = {
  date: bigint | number
  account_id: number
  delivery_id?: number
  service_id?: number
  ip_id: number
  avis: string
}

export type conso_avisUncheckedCreateInput = {
  id?: number
  date: bigint | number
  account_id: number
  delivery_id?: number
  service_id?: number
  ip_id: number
  avis: string
}

export type conso_avisUpdateInput = {
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  ip_id?: Prisma.IntFieldUpdateOperationsInput | number
  avis?: Prisma.StringFieldUpdateOperationsInput | string
}

export type conso_avisUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  ip_id?: Prisma.IntFieldUpdateOperationsInput | number
  avis?: Prisma.StringFieldUpdateOperationsInput | string
}

export type conso_avisCreateManyInput = {
  id?: number
  date: bigint | number
  account_id: number
  delivery_id?: number
  service_id?: number
  ip_id: number
  avis: string
}

export type conso_avisUpdateManyMutationInput = {
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  ip_id?: Prisma.IntFieldUpdateOperationsInput | number
  avis?: Prisma.StringFieldUpdateOperationsInput | string
}

export type conso_avisUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  ip_id?: Prisma.IntFieldUpdateOperationsInput | number
  avis?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type conso_avisCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
  avis?: Prisma.SortOrder
}

export type conso_avisAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
}

export type conso_avisMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
  avis?: Prisma.SortOrder
}

export type conso_avisMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
  avis?: Prisma.SortOrder
}

export type conso_avisSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
}



export type conso_avisSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  date?: boolean
  account_id?: boolean
  delivery_id?: boolean
  service_id?: boolean
  ip_id?: boolean
  avis?: boolean
}, ExtArgs["result"]["conso_avis"]>



export type conso_avisSelectScalar = {
  id?: boolean
  date?: boolean
  account_id?: boolean
  delivery_id?: boolean
  service_id?: boolean
  ip_id?: boolean
  avis?: boolean
}

export type conso_avisOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date" | "account_id" | "delivery_id" | "service_id" | "ip_id" | "avis", ExtArgs["result"]["conso_avis"]>

export type $conso_avisPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "conso_avis"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    date: bigint
    account_id: number
    delivery_id: number
    service_id: number
    ip_id: number
    avis: string
  }, ExtArgs["result"]["conso_avis"]>
  composites: {}
}

export type conso_avisGetPayload<S extends boolean | null | undefined | conso_avisDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$conso_avisPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for conso_avis.
 * 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__conso_avisClient<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 conso_avis model
 */
export interface conso_avisFieldRefs {
  readonly id: Prisma.FieldRef<"conso_avis", 'Int'>
  readonly date: Prisma.FieldRef<"conso_avis", 'BigInt'>
  readonly account_id: Prisma.FieldRef<"conso_avis", 'Int'>
  readonly delivery_id: Prisma.FieldRef<"conso_avis", 'Int'>
  readonly service_id: Prisma.FieldRef<"conso_avis", 'Int'>
  readonly ip_id: Prisma.FieldRef<"conso_avis", 'Int'>
  readonly avis: Prisma.FieldRef<"conso_avis", 'String'>
}
    

// Custom InputTypes
/**
 * conso_avis findUnique
 */
export type conso_avisFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_avis
   */
  select?: Prisma.conso_avisSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_avis
   */
  omit?: Prisma.conso_avisOmit<ExtArgs> | null
  /**
   * Filter, which conso_avis to fetch.
   */
  where: Prisma.conso_avisWhereUniqueInput
}

/**
 * conso_avis findUniqueOrThrow
 */
export type conso_avisFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_avis
   */
  select?: Prisma.conso_avisSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_avis
   */
  omit?: Prisma.conso_avisOmit<ExtArgs> | null
  /**
   * Filter, which conso_avis to fetch.
   */
  where: Prisma.conso_avisWhereUniqueInput
}

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

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

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

/**
 * conso_avis create
 */
export type conso_avisCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_avis
   */
  select?: Prisma.conso_avisSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_avis
   */
  omit?: Prisma.conso_avisOmit<ExtArgs> | null
  /**
   * The data needed to create a conso_avis.
   */
  data: Prisma.XOR<Prisma.conso_avisCreateInput, Prisma.conso_avisUncheckedCreateInput>
}

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

/**
 * conso_avis update
 */
export type conso_avisUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_avis
   */
  select?: Prisma.conso_avisSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_avis
   */
  omit?: Prisma.conso_avisOmit<ExtArgs> | null
  /**
   * The data needed to update a conso_avis.
   */
  data: Prisma.XOR<Prisma.conso_avisUpdateInput, Prisma.conso_avisUncheckedUpdateInput>
  /**
   * Choose, which conso_avis to update.
   */
  where: Prisma.conso_avisWhereUniqueInput
}

/**
 * conso_avis updateMany
 */
export type conso_avisUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update conso_avis.
   */
  data: Prisma.XOR<Prisma.conso_avisUpdateManyMutationInput, Prisma.conso_avisUncheckedUpdateManyInput>
  /**
   * Filter which conso_avis to update
   */
  where?: Prisma.conso_avisWhereInput
  /**
   * Limit how many conso_avis to update.
   */
  limit?: number
}

/**
 * conso_avis upsert
 */
export type conso_avisUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_avis
   */
  select?: Prisma.conso_avisSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_avis
   */
  omit?: Prisma.conso_avisOmit<ExtArgs> | null
  /**
   * The filter to search for the conso_avis to update in case it exists.
   */
  where: Prisma.conso_avisWhereUniqueInput
  /**
   * In case the conso_avis found by the `where` argument doesn't exist, create a new conso_avis with this data.
   */
  create: Prisma.XOR<Prisma.conso_avisCreateInput, Prisma.conso_avisUncheckedCreateInput>
  /**
   * In case the conso_avis was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.conso_avisUpdateInput, Prisma.conso_avisUncheckedUpdateInput>
}

/**
 * conso_avis delete
 */
export type conso_avisDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_avis
   */
  select?: Prisma.conso_avisSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_avis
   */
  omit?: Prisma.conso_avisOmit<ExtArgs> | null
  /**
   * Filter which conso_avis to delete.
   */
  where: Prisma.conso_avisWhereUniqueInput
}

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

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