/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateConso_archive]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type conso_archiveGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Conso_archiveGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "ip_id" | "date" | "total" | "total_day" | "total_night", ExtArgs["result"]["conso_archive"]> export type $conso_archivePayload = { 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 = runtime.Types.Result.GetResult export type conso_archiveCountArgs = Omit & { select?: Conso_archiveCountAggregateInputType | true } export interface conso_archiveDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: conso_archiveGroupByArgs['orderBy'] } : { orderBy?: conso_archiveGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetConso_archiveGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | null /** * Filter, which conso_archive to fetch. */ where: Prisma.conso_archiveWhereUniqueInput } /** * conso_archive findUniqueOrThrow */ export type conso_archiveFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | null /** * Filter, which conso_archive to fetch. */ where: Prisma.conso_archiveWhereUniqueInput } /** * conso_archive findFirst */ export type conso_archiveFindFirstArgs = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | 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 = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | 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 = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | 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 = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | null /** * The data needed to create a conso_archive. */ data?: Prisma.XOR } /** * conso_archive createMany */ export type conso_archiveCreateManyArgs = { /** * The data used to create many conso_archives. */ data: Prisma.conso_archiveCreateManyInput | Prisma.conso_archiveCreateManyInput[] skipDuplicates?: boolean } /** * conso_archive update */ export type conso_archiveUpdateArgs = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | null /** * The data needed to update a conso_archive. */ data: Prisma.XOR /** * Choose, which conso_archive to update. */ where: Prisma.conso_archiveWhereUniqueInput } /** * conso_archive updateMany */ export type conso_archiveUpdateManyArgs = { /** * The data used to update conso_archives. */ data: Prisma.XOR /** * 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 = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | 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 /** * In case the conso_archive was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * conso_archive delete */ export type conso_archiveDeleteArgs = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | null /** * Filter which conso_archive to delete. */ where: Prisma.conso_archiveWhereUniqueInput } /** * conso_archive deleteMany */ export type conso_archiveDeleteManyArgs = { /** * 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 = { /** * Select specific fields to fetch from the conso_archive */ select?: Prisma.conso_archiveSelect | null /** * Omit specific fields from the conso_archive */ omit?: Prisma.conso_archiveOmit | null }