
/* !!! 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_archive` 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_archive
 * 
 */
export type conso_archiveModel = runtime.Types.Result.DefaultSelection<Prisma.$conso_archivePayload>

export type AggregateConso_archive = {
  _count: Conso_archiveCountAggregateOutputType | null
  _avg: Conso_archiveAvgAggregateOutputType | null
  _sum: Conso_archiveSumAggregateOutputType | null
  _min: Conso_archiveMinAggregateOutputType | null
  _max: Conso_archiveMaxAggregateOutputType | null
}

export type Conso_archiveAvgAggregateOutputType = {
  id: number | null
  date: number | null
  total: number | null
  total_day: number | null
  total_night: number | null
}

export type Conso_archiveSumAggregateOutputType = {
  id: bigint | null
  date: bigint | null
  total: bigint | null
  total_day: bigint | null
  total_night: bigint | null
}

export type Conso_archiveMinAggregateOutputType = {
  id: bigint | null
  ip_id: string | null
  date: bigint | null
  total: bigint | null
  total_day: bigint | null
  total_night: bigint | null
}

export type Conso_archiveMaxAggregateOutputType = {
  id: bigint | null
  ip_id: string | null
  date: bigint | null
  total: bigint | null
  total_day: bigint | null
  total_night: bigint | null
}

export type Conso_archiveCountAggregateOutputType = {
  id: number
  ip_id: number
  date: number
  total: number
  total_day: number
  total_night: number
  _all: number
}


export type Conso_archiveAvgAggregateInputType = {
  id?: true
  date?: true
  total?: true
  total_day?: true
  total_night?: true
}

export type Conso_archiveSumAggregateInputType = {
  id?: true
  date?: true
  total?: true
  total_day?: true
  total_night?: true
}

export type Conso_archiveMinAggregateInputType = {
  id?: true
  ip_id?: true
  date?: true
  total?: true
  total_day?: true
  total_night?: true
}

export type Conso_archiveMaxAggregateInputType = {
  id?: true
  ip_id?: true
  date?: true
  total?: true
  total_day?: true
  total_night?: true
}

export type Conso_archiveCountAggregateInputType = {
  id?: true
  ip_id?: true
  date?: true
  total?: true
  total_day?: true
  total_night?: true
  _all?: true
}

export type Conso_archiveAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which conso_archive to aggregate.
   */
  where?: Prisma.conso_archiveWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of conso_archives to fetch.
   */
  orderBy?: Prisma.conso_archiveOrderByWithRelationInput | Prisma.conso_archiveOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.conso_archiveWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` conso_archives 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_archives.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned conso_archives
  **/
  _count?: true | Conso_archiveCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Conso_archiveAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Conso_archiveSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Conso_archiveMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Conso_archiveMaxAggregateInputType
}

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




export type conso_archiveGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.conso_archiveWhereInput
  orderBy?: Prisma.conso_archiveOrderByWithAggregationInput | Prisma.conso_archiveOrderByWithAggregationInput[]
  by: Prisma.Conso_archiveScalarFieldEnum[] | Prisma.Conso_archiveScalarFieldEnum
  having?: Prisma.conso_archiveScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Conso_archiveCountAggregateInputType | true
  _avg?: Conso_archiveAvgAggregateInputType
  _sum?: Conso_archiveSumAggregateInputType
  _min?: Conso_archiveMinAggregateInputType
  _max?: Conso_archiveMaxAggregateInputType
}

export type Conso_archiveGroupByOutputType = {
  id: bigint
  ip_id: string | null
  date: bigint | null
  total: bigint | null
  total_day: bigint | null
  total_night: bigint | null
  _count: Conso_archiveCountAggregateOutputType | null
  _avg: Conso_archiveAvgAggregateOutputType | null
  _sum: Conso_archiveSumAggregateOutputType | null
  _min: Conso_archiveMinAggregateOutputType | null
  _max: Conso_archiveMaxAggregateOutputType | null
}

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



export type conso_archiveWhereInput = {
  AND?: Prisma.conso_archiveWhereInput | Prisma.conso_archiveWhereInput[]
  OR?: Prisma.conso_archiveWhereInput[]
  NOT?: Prisma.conso_archiveWhereInput | Prisma.conso_archiveWhereInput[]
  id?: Prisma.BigIntFilter<"conso_archive"> | bigint | number
  ip_id?: Prisma.StringNullableFilter<"conso_archive"> | string | null
  date?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null
  total?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null
  total_day?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null
  total_night?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null
}

export type conso_archiveOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrderInput | Prisma.SortOrder
  date?: Prisma.SortOrderInput | Prisma.SortOrder
  total?: Prisma.SortOrderInput | Prisma.SortOrder
  total_day?: Prisma.SortOrderInput | Prisma.SortOrder
  total_night?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.conso_archiveOrderByRelevanceInput
}

export type conso_archiveWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.conso_archiveWhereInput | Prisma.conso_archiveWhereInput[]
  OR?: Prisma.conso_archiveWhereInput[]
  NOT?: Prisma.conso_archiveWhereInput | Prisma.conso_archiveWhereInput[]
  ip_id?: Prisma.StringNullableFilter<"conso_archive"> | string | null
  date?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null
  total?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null
  total_day?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null
  total_night?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null
}, "id">

export type conso_archiveOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrderInput | Prisma.SortOrder
  date?: Prisma.SortOrderInput | Prisma.SortOrder
  total?: Prisma.SortOrderInput | Prisma.SortOrder
  total_day?: Prisma.SortOrderInput | Prisma.SortOrder
  total_night?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.conso_archiveCountOrderByAggregateInput
  _avg?: Prisma.conso_archiveAvgOrderByAggregateInput
  _max?: Prisma.conso_archiveMaxOrderByAggregateInput
  _min?: Prisma.conso_archiveMinOrderByAggregateInput
  _sum?: Prisma.conso_archiveSumOrderByAggregateInput
}

export type conso_archiveScalarWhereWithAggregatesInput = {
  AND?: Prisma.conso_archiveScalarWhereWithAggregatesInput | Prisma.conso_archiveScalarWhereWithAggregatesInput[]
  OR?: Prisma.conso_archiveScalarWhereWithAggregatesInput[]
  NOT?: Prisma.conso_archiveScalarWhereWithAggregatesInput | Prisma.conso_archiveScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"conso_archive"> | bigint | number
  ip_id?: Prisma.StringNullableWithAggregatesFilter<"conso_archive"> | string | null
  date?: Prisma.BigIntNullableWithAggregatesFilter<"conso_archive"> | bigint | number | null
  total?: Prisma.BigIntNullableWithAggregatesFilter<"conso_archive"> | bigint | number | null
  total_day?: Prisma.BigIntNullableWithAggregatesFilter<"conso_archive"> | bigint | number | null
  total_night?: Prisma.BigIntNullableWithAggregatesFilter<"conso_archive"> | bigint | number | null
}

export type conso_archiveCreateInput = {
  id?: bigint | number
  ip_id?: string | null
  date?: bigint | number | null
  total?: bigint | number | null
  total_day?: bigint | number | null
  total_night?: bigint | number | null
}

export type conso_archiveUncheckedCreateInput = {
  id?: bigint | number
  ip_id?: string | null
  date?: bigint | number | null
  total?: bigint | number | null
  total_day?: bigint | number | null
  total_night?: bigint | number | null
}

export type conso_archiveUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}

export type conso_archiveUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}

export type conso_archiveCreateManyInput = {
  id?: bigint | number
  ip_id?: string | null
  date?: bigint | number | null
  total?: bigint | number | null
  total_day?: bigint | number | null
  total_night?: bigint | number | null
}

export type conso_archiveUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}

export type conso_archiveUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}

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

export type conso_archiveCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  total?: Prisma.SortOrder
  total_day?: Prisma.SortOrder
  total_night?: Prisma.SortOrder
}

export type conso_archiveAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  total?: Prisma.SortOrder
  total_day?: Prisma.SortOrder
  total_night?: Prisma.SortOrder
}

export type conso_archiveMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  total?: Prisma.SortOrder
  total_day?: Prisma.SortOrder
  total_night?: Prisma.SortOrder
}

export type conso_archiveMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  ip_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  total?: Prisma.SortOrder
  total_day?: Prisma.SortOrder
  total_night?: Prisma.SortOrder
}

export type conso_archiveSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  total?: Prisma.SortOrder
  total_day?: Prisma.SortOrder
  total_night?: Prisma.SortOrder
}



export type conso_archiveSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  ip_id?: boolean
  date?: boolean
  total?: boolean
  total_day?: boolean
  total_night?: boolean
}, ExtArgs["result"]["conso_archive"]>



export type conso_archiveSelectScalar = {
  id?: boolean
  ip_id?: boolean
  date?: boolean
  total?: boolean
  total_day?: boolean
  total_night?: boolean
}

export type conso_archiveOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "ip_id" | "date" | "total" | "total_day" | "total_night", ExtArgs["result"]["conso_archive"]>

export type $conso_archivePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "conso_archive"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    ip_id: string | null
    date: bigint | null
    total: bigint | null
    total_day: bigint | null
    total_night: bigint | null
  }, ExtArgs["result"]["conso_archive"]>
  composites: {}
}

export type conso_archiveGetPayload<S extends boolean | null | undefined | conso_archiveDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$conso_archivePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for conso_archive.
 * 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_archiveClient<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_archive model
 */
export interface conso_archiveFieldRefs {
  readonly id: Prisma.FieldRef<"conso_archive", 'BigInt'>
  readonly ip_id: Prisma.FieldRef<"conso_archive", 'String'>
  readonly date: Prisma.FieldRef<"conso_archive", 'BigInt'>
  readonly total: Prisma.FieldRef<"conso_archive", 'BigInt'>
  readonly total_day: Prisma.FieldRef<"conso_archive", 'BigInt'>
  readonly total_night: Prisma.FieldRef<"conso_archive", 'BigInt'>
}
    

// Custom InputTypes
/**
 * conso_archive findUnique
 */
export type conso_archiveFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_archive
   */
  select?: Prisma.conso_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_archive
   */
  omit?: Prisma.conso_archiveOmit<ExtArgs> | null
  /**
   * Filter, which conso_archive to fetch.
   */
  where: Prisma.conso_archiveWhereUniqueInput
}

/**
 * conso_archive findUniqueOrThrow
 */
export type conso_archiveFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_archive
   */
  select?: Prisma.conso_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_archive
   */
  omit?: Prisma.conso_archiveOmit<ExtArgs> | null
  /**
   * Filter, which conso_archive to fetch.
   */
  where: Prisma.conso_archiveWhereUniqueInput
}

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

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

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

/**
 * conso_archive create
 */
export type conso_archiveCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_archive
   */
  select?: Prisma.conso_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_archive
   */
  omit?: Prisma.conso_archiveOmit<ExtArgs> | null
  /**
   * The data needed to create a conso_archive.
   */
  data?: Prisma.XOR<Prisma.conso_archiveCreateInput, Prisma.conso_archiveUncheckedCreateInput>
}

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

/**
 * conso_archive update
 */
export type conso_archiveUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_archive
   */
  select?: Prisma.conso_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_archive
   */
  omit?: Prisma.conso_archiveOmit<ExtArgs> | null
  /**
   * The data needed to update a conso_archive.
   */
  data: Prisma.XOR<Prisma.conso_archiveUpdateInput, Prisma.conso_archiveUncheckedUpdateInput>
  /**
   * Choose, which conso_archive to update.
   */
  where: Prisma.conso_archiveWhereUniqueInput
}

/**
 * conso_archive updateMany
 */
export type conso_archiveUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update conso_archives.
   */
  data: Prisma.XOR<Prisma.conso_archiveUpdateManyMutationInput, Prisma.conso_archiveUncheckedUpdateManyInput>
  /**
   * Filter which conso_archives to update
   */
  where?: Prisma.conso_archiveWhereInput
  /**
   * Limit how many conso_archives to update.
   */
  limit?: number
}

/**
 * conso_archive upsert
 */
export type conso_archiveUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_archive
   */
  select?: Prisma.conso_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_archive
   */
  omit?: Prisma.conso_archiveOmit<ExtArgs> | null
  /**
   * The filter to search for the conso_archive to update in case it exists.
   */
  where: Prisma.conso_archiveWhereUniqueInput
  /**
   * In case the conso_archive found by the `where` argument doesn't exist, create a new conso_archive with this data.
   */
  create: Prisma.XOR<Prisma.conso_archiveCreateInput, Prisma.conso_archiveUncheckedCreateInput>
  /**
   * In case the conso_archive was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.conso_archiveUpdateInput, Prisma.conso_archiveUncheckedUpdateInput>
}

/**
 * conso_archive delete
 */
export type conso_archiveDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the conso_archive
   */
  select?: Prisma.conso_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the conso_archive
   */
  omit?: Prisma.conso_archiveOmit<ExtArgs> | null
  /**
   * Filter which conso_archive to delete.
   */
  where: Prisma.conso_archiveWhereUniqueInput
}

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

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