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

export type AggregateConso_radius = {
  _count: Conso_radiusCountAggregateOutputType | null
  _avg: Conso_radiusAvgAggregateOutputType | null
  _sum: Conso_radiusSumAggregateOutputType | null
  _min: Conso_radiusMinAggregateOutputType | null
  _max: Conso_radiusMaxAggregateOutputType | null
}

export type Conso_radiusAvgAggregateOutputType = {
  id: number | null
  nb_sess: number | null
}

export type Conso_radiusSumAggregateOutputType = {
  id: bigint | null
  nb_sess: number | null
}

export type Conso_radiusMinAggregateOutputType = {
  id: bigint | null
  username: string | null
  date: string | null
  download: string | null
  upload: string | null
  nb_sess: number | null
}

export type Conso_radiusMaxAggregateOutputType = {
  id: bigint | null
  username: string | null
  date: string | null
  download: string | null
  upload: string | null
  nb_sess: number | null
}

export type Conso_radiusCountAggregateOutputType = {
  id: number
  username: number
  date: number
  download: number
  upload: number
  nb_sess: number
  _all: number
}


export type Conso_radiusAvgAggregateInputType = {
  id?: true
  nb_sess?: true
}

export type Conso_radiusSumAggregateInputType = {
  id?: true
  nb_sess?: true
}

export type Conso_radiusMinAggregateInputType = {
  id?: true
  username?: true
  date?: true
  download?: true
  upload?: true
  nb_sess?: true
}

export type Conso_radiusMaxAggregateInputType = {
  id?: true
  username?: true
  date?: true
  download?: true
  upload?: true
  nb_sess?: true
}

export type Conso_radiusCountAggregateInputType = {
  id?: true
  username?: true
  date?: true
  download?: true
  upload?: true
  nb_sess?: true
  _all?: true
}

export type Conso_radiusAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which conso_radius to aggregate.
   */
  where?: Prisma.conso_radiusWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of conso_radii to fetch.
   */
  orderBy?: Prisma.conso_radiusOrderByWithRelationInput | Prisma.conso_radiusOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.conso_radiusWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` conso_radii 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_radii.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned conso_radii
  **/
  _count?: true | Conso_radiusCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Conso_radiusAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Conso_radiusSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Conso_radiusMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Conso_radiusMaxAggregateInputType
}

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




export type conso_radiusGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.conso_radiusWhereInput
  orderBy?: Prisma.conso_radiusOrderByWithAggregationInput | Prisma.conso_radiusOrderByWithAggregationInput[]
  by: Prisma.Conso_radiusScalarFieldEnum[] | Prisma.Conso_radiusScalarFieldEnum
  having?: Prisma.conso_radiusScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Conso_radiusCountAggregateInputType | true
  _avg?: Conso_radiusAvgAggregateInputType
  _sum?: Conso_radiusSumAggregateInputType
  _min?: Conso_radiusMinAggregateInputType
  _max?: Conso_radiusMaxAggregateInputType
}

export type Conso_radiusGroupByOutputType = {
  id: bigint
  username: string
  date: string
  download: string
  upload: string
  nb_sess: number
  _count: Conso_radiusCountAggregateOutputType | null
  _avg: Conso_radiusAvgAggregateOutputType | null
  _sum: Conso_radiusSumAggregateOutputType | null
  _min: Conso_radiusMinAggregateOutputType | null
  _max: Conso_radiusMaxAggregateOutputType | null
}

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



export type conso_radiusWhereInput = {
  AND?: Prisma.conso_radiusWhereInput | Prisma.conso_radiusWhereInput[]
  OR?: Prisma.conso_radiusWhereInput[]
  NOT?: Prisma.conso_radiusWhereInput | Prisma.conso_radiusWhereInput[]
  id?: Prisma.BigIntFilter<"conso_radius"> | bigint | number
  username?: Prisma.StringFilter<"conso_radius"> | string
  date?: Prisma.StringFilter<"conso_radius"> | string
  download?: Prisma.StringFilter<"conso_radius"> | string
  upload?: Prisma.StringFilter<"conso_radius"> | string
  nb_sess?: Prisma.IntFilter<"conso_radius"> | number
}

export type conso_radiusOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  username?: Prisma.SortOrder
  date?: Prisma.SortOrder
  download?: Prisma.SortOrder
  upload?: Prisma.SortOrder
  nb_sess?: Prisma.SortOrder
  _relevance?: Prisma.conso_radiusOrderByRelevanceInput
}

export type conso_radiusWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.conso_radiusWhereInput | Prisma.conso_radiusWhereInput[]
  OR?: Prisma.conso_radiusWhereInput[]
  NOT?: Prisma.conso_radiusWhereInput | Prisma.conso_radiusWhereInput[]
  username?: Prisma.StringFilter<"conso_radius"> | string
  date?: Prisma.StringFilter<"conso_radius"> | string
  download?: Prisma.StringFilter<"conso_radius"> | string
  upload?: Prisma.StringFilter<"conso_radius"> | string
  nb_sess?: Prisma.IntFilter<"conso_radius"> | number
}, "id">

export type conso_radiusOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  username?: Prisma.SortOrder
  date?: Prisma.SortOrder
  download?: Prisma.SortOrder
  upload?: Prisma.SortOrder
  nb_sess?: Prisma.SortOrder
  _count?: Prisma.conso_radiusCountOrderByAggregateInput
  _avg?: Prisma.conso_radiusAvgOrderByAggregateInput
  _max?: Prisma.conso_radiusMaxOrderByAggregateInput
  _min?: Prisma.conso_radiusMinOrderByAggregateInput
  _sum?: Prisma.conso_radiusSumOrderByAggregateInput
}

export type conso_radiusScalarWhereWithAggregatesInput = {
  AND?: Prisma.conso_radiusScalarWhereWithAggregatesInput | Prisma.conso_radiusScalarWhereWithAggregatesInput[]
  OR?: Prisma.conso_radiusScalarWhereWithAggregatesInput[]
  NOT?: Prisma.conso_radiusScalarWhereWithAggregatesInput | Prisma.conso_radiusScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"conso_radius"> | bigint | number
  username?: Prisma.StringWithAggregatesFilter<"conso_radius"> | string
  date?: Prisma.StringWithAggregatesFilter<"conso_radius"> | string
  download?: Prisma.StringWithAggregatesFilter<"conso_radius"> | string
  upload?: Prisma.StringWithAggregatesFilter<"conso_radius"> | string
  nb_sess?: Prisma.IntWithAggregatesFilter<"conso_radius"> | number
}

export type conso_radiusCreateInput = {
  id?: bigint | number
  username: string
  date: string
  download: string
  upload: string
  nb_sess?: number
}

export type conso_radiusUncheckedCreateInput = {
  id?: bigint | number
  username: string
  date: string
  download: string
  upload: string
  nb_sess?: number
}

export type conso_radiusUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  username?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  download?: Prisma.StringFieldUpdateOperationsInput | string
  upload?: Prisma.StringFieldUpdateOperationsInput | string
  nb_sess?: Prisma.IntFieldUpdateOperationsInput | number
}

export type conso_radiusUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  username?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  download?: Prisma.StringFieldUpdateOperationsInput | string
  upload?: Prisma.StringFieldUpdateOperationsInput | string
  nb_sess?: Prisma.IntFieldUpdateOperationsInput | number
}

export type conso_radiusCreateManyInput = {
  id?: bigint | number
  username: string
  date: string
  download: string
  upload: string
  nb_sess?: number
}

export type conso_radiusUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  username?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  download?: Prisma.StringFieldUpdateOperationsInput | string
  upload?: Prisma.StringFieldUpdateOperationsInput | string
  nb_sess?: Prisma.IntFieldUpdateOperationsInput | number
}

export type conso_radiusUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  username?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  download?: Prisma.StringFieldUpdateOperationsInput | string
  upload?: Prisma.StringFieldUpdateOperationsInput | string
  nb_sess?: Prisma.IntFieldUpdateOperationsInput | number
}

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

export type conso_radiusCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  username?: Prisma.SortOrder
  date?: Prisma.SortOrder
  download?: Prisma.SortOrder
  upload?: Prisma.SortOrder
  nb_sess?: Prisma.SortOrder
}

export type conso_radiusAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  nb_sess?: Prisma.SortOrder
}

export type conso_radiusMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  username?: Prisma.SortOrder
  date?: Prisma.SortOrder
  download?: Prisma.SortOrder
  upload?: Prisma.SortOrder
  nb_sess?: Prisma.SortOrder
}

export type conso_radiusMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  username?: Prisma.SortOrder
  date?: Prisma.SortOrder
  download?: Prisma.SortOrder
  upload?: Prisma.SortOrder
  nb_sess?: Prisma.SortOrder
}

export type conso_radiusSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  nb_sess?: Prisma.SortOrder
}



export type conso_radiusSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  username?: boolean
  date?: boolean
  download?: boolean
  upload?: boolean
  nb_sess?: boolean
}, ExtArgs["result"]["conso_radius"]>



export type conso_radiusSelectScalar = {
  id?: boolean
  username?: boolean
  date?: boolean
  download?: boolean
  upload?: boolean
  nb_sess?: boolean
}

export type conso_radiusOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "username" | "date" | "download" | "upload" | "nb_sess", ExtArgs["result"]["conso_radius"]>

export type $conso_radiusPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "conso_radius"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    username: string
    date: string
    download: string
    upload: string
    nb_sess: number
  }, ExtArgs["result"]["conso_radius"]>
  composites: {}
}

export type conso_radiusGetPayload<S extends boolean | null | undefined | conso_radiusDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$conso_radiusPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for conso_radius.
 * 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_radiusClient<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_radius model
 */
export interface conso_radiusFieldRefs {
  readonly id: Prisma.FieldRef<"conso_radius", 'BigInt'>
  readonly username: Prisma.FieldRef<"conso_radius", 'String'>
  readonly date: Prisma.FieldRef<"conso_radius", 'String'>
  readonly download: Prisma.FieldRef<"conso_radius", 'String'>
  readonly upload: Prisma.FieldRef<"conso_radius", 'String'>
  readonly nb_sess: Prisma.FieldRef<"conso_radius", 'Int'>
}
    

// Custom InputTypes
/**
 * conso_radius findUnique
 */
export type conso_radiusFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_radius
   */
  select?: Prisma.conso_radiusSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_radius
   */
  omit?: Prisma.conso_radiusOmit<ExtArgs> | null
  /**
   * Filter, which conso_radius to fetch.
   */
  where: Prisma.conso_radiusWhereUniqueInput
}

/**
 * conso_radius findUniqueOrThrow
 */
export type conso_radiusFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_radius
   */
  select?: Prisma.conso_radiusSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_radius
   */
  omit?: Prisma.conso_radiusOmit<ExtArgs> | null
  /**
   * Filter, which conso_radius to fetch.
   */
  where: Prisma.conso_radiusWhereUniqueInput
}

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

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

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

/**
 * conso_radius create
 */
export type conso_radiusCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_radius
   */
  select?: Prisma.conso_radiusSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_radius
   */
  omit?: Prisma.conso_radiusOmit<ExtArgs> | null
  /**
   * The data needed to create a conso_radius.
   */
  data: Prisma.XOR<Prisma.conso_radiusCreateInput, Prisma.conso_radiusUncheckedCreateInput>
}

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

/**
 * conso_radius update
 */
export type conso_radiusUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_radius
   */
  select?: Prisma.conso_radiusSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_radius
   */
  omit?: Prisma.conso_radiusOmit<ExtArgs> | null
  /**
   * The data needed to update a conso_radius.
   */
  data: Prisma.XOR<Prisma.conso_radiusUpdateInput, Prisma.conso_radiusUncheckedUpdateInput>
  /**
   * Choose, which conso_radius to update.
   */
  where: Prisma.conso_radiusWhereUniqueInput
}

/**
 * conso_radius updateMany
 */
export type conso_radiusUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update conso_radii.
   */
  data: Prisma.XOR<Prisma.conso_radiusUpdateManyMutationInput, Prisma.conso_radiusUncheckedUpdateManyInput>
  /**
   * Filter which conso_radii to update
   */
  where?: Prisma.conso_radiusWhereInput
  /**
   * Limit how many conso_radii to update.
   */
  limit?: number
}

/**
 * conso_radius upsert
 */
export type conso_radiusUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_radius
   */
  select?: Prisma.conso_radiusSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_radius
   */
  omit?: Prisma.conso_radiusOmit<ExtArgs> | null
  /**
   * The filter to search for the conso_radius to update in case it exists.
   */
  where: Prisma.conso_radiusWhereUniqueInput
  /**
   * In case the conso_radius found by the `where` argument doesn't exist, create a new conso_radius with this data.
   */
  create: Prisma.XOR<Prisma.conso_radiusCreateInput, Prisma.conso_radiusUncheckedCreateInput>
  /**
   * In case the conso_radius was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.conso_radiusUpdateInput, Prisma.conso_radiusUncheckedUpdateInput>
}

/**
 * conso_radius delete
 */
export type conso_radiusDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_radius
   */
  select?: Prisma.conso_radiusSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_radius
   */
  omit?: Prisma.conso_radiusOmit<ExtArgs> | null
  /**
   * Filter which conso_radius to delete.
   */
  where: Prisma.conso_radiusWhereUniqueInput
}

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

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