targo-backend/prisma/generated/mariadb/models/conso_radius_hourly.ts

1080 lines
40 KiB
TypeScript

/* !!! 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_hourly` 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_hourly
*
*/
export type conso_radius_hourlyModel = runtime.Types.Result.DefaultSelection<Prisma.$conso_radius_hourlyPayload>
export type AggregateConso_radius_hourly = {
_count: Conso_radius_hourlyCountAggregateOutputType | null
_avg: Conso_radius_hourlyAvgAggregateOutputType | null
_sum: Conso_radius_hourlySumAggregateOutputType | null
_min: Conso_radius_hourlyMinAggregateOutputType | null
_max: Conso_radius_hourlyMaxAggregateOutputType | null
}
export type Conso_radius_hourlyAvgAggregateOutputType = {
id: number | null
}
export type Conso_radius_hourlySumAggregateOutputType = {
id: number | null
}
export type Conso_radius_hourlyMinAggregateOutputType = {
id: number | null
username: string | null
date: string | null
download: string | null
upload: string | null
}
export type Conso_radius_hourlyMaxAggregateOutputType = {
id: number | null
username: string | null
date: string | null
download: string | null
upload: string | null
}
export type Conso_radius_hourlyCountAggregateOutputType = {
id: number
username: number
date: number
download: number
upload: number
_all: number
}
export type Conso_radius_hourlyAvgAggregateInputType = {
id?: true
}
export type Conso_radius_hourlySumAggregateInputType = {
id?: true
}
export type Conso_radius_hourlyMinAggregateInputType = {
id?: true
username?: true
date?: true
download?: true
upload?: true
}
export type Conso_radius_hourlyMaxAggregateInputType = {
id?: true
username?: true
date?: true
download?: true
upload?: true
}
export type Conso_radius_hourlyCountAggregateInputType = {
id?: true
username?: true
date?: true
download?: true
upload?: true
_all?: true
}
export type Conso_radius_hourlyAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which conso_radius_hourly to aggregate.
*/
where?: Prisma.conso_radius_hourlyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conso_radius_hourlies to fetch.
*/
orderBy?: Prisma.conso_radius_hourlyOrderByWithRelationInput | Prisma.conso_radius_hourlyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.conso_radius_hourlyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conso_radius_hourlies 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_radius_hourlies.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned conso_radius_hourlies
**/
_count?: true | Conso_radius_hourlyCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Conso_radius_hourlyAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Conso_radius_hourlySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Conso_radius_hourlyMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Conso_radius_hourlyMaxAggregateInputType
}
export type GetConso_radius_hourlyAggregateType<T extends Conso_radius_hourlyAggregateArgs> = {
[P in keyof T & keyof AggregateConso_radius_hourly]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateConso_radius_hourly[P]>
: Prisma.GetScalarType<T[P], AggregateConso_radius_hourly[P]>
}
export type conso_radius_hourlyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.conso_radius_hourlyWhereInput
orderBy?: Prisma.conso_radius_hourlyOrderByWithAggregationInput | Prisma.conso_radius_hourlyOrderByWithAggregationInput[]
by: Prisma.Conso_radius_hourlyScalarFieldEnum[] | Prisma.Conso_radius_hourlyScalarFieldEnum
having?: Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Conso_radius_hourlyCountAggregateInputType | true
_avg?: Conso_radius_hourlyAvgAggregateInputType
_sum?: Conso_radius_hourlySumAggregateInputType
_min?: Conso_radius_hourlyMinAggregateInputType
_max?: Conso_radius_hourlyMaxAggregateInputType
}
export type Conso_radius_hourlyGroupByOutputType = {
id: number
username: string
date: string
download: string
upload: string
_count: Conso_radius_hourlyCountAggregateOutputType | null
_avg: Conso_radius_hourlyAvgAggregateOutputType | null
_sum: Conso_radius_hourlySumAggregateOutputType | null
_min: Conso_radius_hourlyMinAggregateOutputType | null
_max: Conso_radius_hourlyMaxAggregateOutputType | null
}
type GetConso_radius_hourlyGroupByPayload<T extends conso_radius_hourlyGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Conso_radius_hourlyGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Conso_radius_hourlyGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Conso_radius_hourlyGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Conso_radius_hourlyGroupByOutputType[P]>
}
>
>
export type conso_radius_hourlyWhereInput = {
AND?: Prisma.conso_radius_hourlyWhereInput | Prisma.conso_radius_hourlyWhereInput[]
OR?: Prisma.conso_radius_hourlyWhereInput[]
NOT?: Prisma.conso_radius_hourlyWhereInput | Prisma.conso_radius_hourlyWhereInput[]
id?: Prisma.IntFilter<"conso_radius_hourly"> | number
username?: Prisma.StringFilter<"conso_radius_hourly"> | string
date?: Prisma.StringFilter<"conso_radius_hourly"> | string
download?: Prisma.StringFilter<"conso_radius_hourly"> | string
upload?: Prisma.StringFilter<"conso_radius_hourly"> | string
}
export type conso_radius_hourlyOrderByWithRelationInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
date?: Prisma.SortOrder
download?: Prisma.SortOrder
upload?: Prisma.SortOrder
_relevance?: Prisma.conso_radius_hourlyOrderByRelevanceInput
}
export type conso_radius_hourlyWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.conso_radius_hourlyWhereInput | Prisma.conso_radius_hourlyWhereInput[]
OR?: Prisma.conso_radius_hourlyWhereInput[]
NOT?: Prisma.conso_radius_hourlyWhereInput | Prisma.conso_radius_hourlyWhereInput[]
username?: Prisma.StringFilter<"conso_radius_hourly"> | string
date?: Prisma.StringFilter<"conso_radius_hourly"> | string
download?: Prisma.StringFilter<"conso_radius_hourly"> | string
upload?: Prisma.StringFilter<"conso_radius_hourly"> | string
}, "id">
export type conso_radius_hourlyOrderByWithAggregationInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
date?: Prisma.SortOrder
download?: Prisma.SortOrder
upload?: Prisma.SortOrder
_count?: Prisma.conso_radius_hourlyCountOrderByAggregateInput
_avg?: Prisma.conso_radius_hourlyAvgOrderByAggregateInput
_max?: Prisma.conso_radius_hourlyMaxOrderByAggregateInput
_min?: Prisma.conso_radius_hourlyMinOrderByAggregateInput
_sum?: Prisma.conso_radius_hourlySumOrderByAggregateInput
}
export type conso_radius_hourlyScalarWhereWithAggregatesInput = {
AND?: Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput | Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput[]
OR?: Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput[]
NOT?: Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput | Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"conso_radius_hourly"> | number
username?: Prisma.StringWithAggregatesFilter<"conso_radius_hourly"> | string
date?: Prisma.StringWithAggregatesFilter<"conso_radius_hourly"> | string
download?: Prisma.StringWithAggregatesFilter<"conso_radius_hourly"> | string
upload?: Prisma.StringWithAggregatesFilter<"conso_radius_hourly"> | string
}
export type conso_radius_hourlyCreateInput = {
username: string
date: string
download: string
upload: string
}
export type conso_radius_hourlyUncheckedCreateInput = {
id?: number
username: string
date: string
download: string
upload: string
}
export type conso_radius_hourlyUpdateInput = {
username?: Prisma.StringFieldUpdateOperationsInput | string
date?: Prisma.StringFieldUpdateOperationsInput | string
download?: Prisma.StringFieldUpdateOperationsInput | string
upload?: Prisma.StringFieldUpdateOperationsInput | string
}
export type conso_radius_hourlyUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
username?: Prisma.StringFieldUpdateOperationsInput | string
date?: Prisma.StringFieldUpdateOperationsInput | string
download?: Prisma.StringFieldUpdateOperationsInput | string
upload?: Prisma.StringFieldUpdateOperationsInput | string
}
export type conso_radius_hourlyCreateManyInput = {
id?: number
username: string
date: string
download: string
upload: string
}
export type conso_radius_hourlyUpdateManyMutationInput = {
username?: Prisma.StringFieldUpdateOperationsInput | string
date?: Prisma.StringFieldUpdateOperationsInput | string
download?: Prisma.StringFieldUpdateOperationsInput | string
upload?: Prisma.StringFieldUpdateOperationsInput | string
}
export type conso_radius_hourlyUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
username?: Prisma.StringFieldUpdateOperationsInput | string
date?: Prisma.StringFieldUpdateOperationsInput | string
download?: Prisma.StringFieldUpdateOperationsInput | string
upload?: Prisma.StringFieldUpdateOperationsInput | string
}
export type conso_radius_hourlyOrderByRelevanceInput = {
fields: Prisma.conso_radius_hourlyOrderByRelevanceFieldEnum | Prisma.conso_radius_hourlyOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type conso_radius_hourlyCountOrderByAggregateInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
date?: Prisma.SortOrder
download?: Prisma.SortOrder
upload?: Prisma.SortOrder
}
export type conso_radius_hourlyAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type conso_radius_hourlyMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
date?: Prisma.SortOrder
download?: Prisma.SortOrder
upload?: Prisma.SortOrder
}
export type conso_radius_hourlyMinOrderByAggregateInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
date?: Prisma.SortOrder
download?: Prisma.SortOrder
upload?: Prisma.SortOrder
}
export type conso_radius_hourlySumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type conso_radius_hourlySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
username?: boolean
date?: boolean
download?: boolean
upload?: boolean
}, ExtArgs["result"]["conso_radius_hourly"]>
export type conso_radius_hourlySelectScalar = {
id?: boolean
username?: boolean
date?: boolean
download?: boolean
upload?: boolean
}
export type conso_radius_hourlyOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "username" | "date" | "download" | "upload", ExtArgs["result"]["conso_radius_hourly"]>
export type $conso_radius_hourlyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "conso_radius_hourly"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
username: string
date: string
download: string
upload: string
}, ExtArgs["result"]["conso_radius_hourly"]>
composites: {}
}
export type conso_radius_hourlyGetPayload<S extends boolean | null | undefined | conso_radius_hourlyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload, S>
export type conso_radius_hourlyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<conso_radius_hourlyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Conso_radius_hourlyCountAggregateInputType | true
}
export interface conso_radius_hourlyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['conso_radius_hourly'], meta: { name: 'conso_radius_hourly' } }
/**
* Find zero or one Conso_radius_hourly that matches the filter.
* @param {conso_radius_hourlyFindUniqueArgs} args - Arguments to find a Conso_radius_hourly
* @example
* // Get one Conso_radius_hourly
* const conso_radius_hourly = await prisma.conso_radius_hourly.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends conso_radius_hourlyFindUniqueArgs>(args: Prisma.SelectSubset<T, conso_radius_hourlyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__conso_radius_hourlyClient<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Conso_radius_hourly that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {conso_radius_hourlyFindUniqueOrThrowArgs} args - Arguments to find a Conso_radius_hourly
* @example
* // Get one Conso_radius_hourly
* const conso_radius_hourly = await prisma.conso_radius_hourly.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends conso_radius_hourlyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, conso_radius_hourlyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__conso_radius_hourlyClient<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Conso_radius_hourly 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_radius_hourlyFindFirstArgs} args - Arguments to find a Conso_radius_hourly
* @example
* // Get one Conso_radius_hourly
* const conso_radius_hourly = await prisma.conso_radius_hourly.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends conso_radius_hourlyFindFirstArgs>(args?: Prisma.SelectSubset<T, conso_radius_hourlyFindFirstArgs<ExtArgs>>): Prisma.Prisma__conso_radius_hourlyClient<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Conso_radius_hourly 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_radius_hourlyFindFirstOrThrowArgs} args - Arguments to find a Conso_radius_hourly
* @example
* // Get one Conso_radius_hourly
* const conso_radius_hourly = await prisma.conso_radius_hourly.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends conso_radius_hourlyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, conso_radius_hourlyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__conso_radius_hourlyClient<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Conso_radius_hourlies 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_radius_hourlyFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Conso_radius_hourlies
* const conso_radius_hourlies = await prisma.conso_radius_hourly.findMany()
*
* // Get first 10 Conso_radius_hourlies
* const conso_radius_hourlies = await prisma.conso_radius_hourly.findMany({ take: 10 })
*
* // Only select the `id`
* const conso_radius_hourlyWithIdOnly = await prisma.conso_radius_hourly.findMany({ select: { id: true } })
*
*/
findMany<T extends conso_radius_hourlyFindManyArgs>(args?: Prisma.SelectSubset<T, conso_radius_hourlyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Conso_radius_hourly.
* @param {conso_radius_hourlyCreateArgs} args - Arguments to create a Conso_radius_hourly.
* @example
* // Create one Conso_radius_hourly
* const Conso_radius_hourly = await prisma.conso_radius_hourly.create({
* data: {
* // ... data to create a Conso_radius_hourly
* }
* })
*
*/
create<T extends conso_radius_hourlyCreateArgs>(args: Prisma.SelectSubset<T, conso_radius_hourlyCreateArgs<ExtArgs>>): Prisma.Prisma__conso_radius_hourlyClient<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Conso_radius_hourlies.
* @param {conso_radius_hourlyCreateManyArgs} args - Arguments to create many Conso_radius_hourlies.
* @example
* // Create many Conso_radius_hourlies
* const conso_radius_hourly = await prisma.conso_radius_hourly.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends conso_radius_hourlyCreateManyArgs>(args?: Prisma.SelectSubset<T, conso_radius_hourlyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Conso_radius_hourly.
* @param {conso_radius_hourlyDeleteArgs} args - Arguments to delete one Conso_radius_hourly.
* @example
* // Delete one Conso_radius_hourly
* const Conso_radius_hourly = await prisma.conso_radius_hourly.delete({
* where: {
* // ... filter to delete one Conso_radius_hourly
* }
* })
*
*/
delete<T extends conso_radius_hourlyDeleteArgs>(args: Prisma.SelectSubset<T, conso_radius_hourlyDeleteArgs<ExtArgs>>): Prisma.Prisma__conso_radius_hourlyClient<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Conso_radius_hourly.
* @param {conso_radius_hourlyUpdateArgs} args - Arguments to update one Conso_radius_hourly.
* @example
* // Update one Conso_radius_hourly
* const conso_radius_hourly = await prisma.conso_radius_hourly.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends conso_radius_hourlyUpdateArgs>(args: Prisma.SelectSubset<T, conso_radius_hourlyUpdateArgs<ExtArgs>>): Prisma.Prisma__conso_radius_hourlyClient<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Conso_radius_hourlies.
* @param {conso_radius_hourlyDeleteManyArgs} args - Arguments to filter Conso_radius_hourlies to delete.
* @example
* // Delete a few Conso_radius_hourlies
* const { count } = await prisma.conso_radius_hourly.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends conso_radius_hourlyDeleteManyArgs>(args?: Prisma.SelectSubset<T, conso_radius_hourlyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Conso_radius_hourlies.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conso_radius_hourlyUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Conso_radius_hourlies
* const conso_radius_hourly = await prisma.conso_radius_hourly.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends conso_radius_hourlyUpdateManyArgs>(args: Prisma.SelectSubset<T, conso_radius_hourlyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Conso_radius_hourly.
* @param {conso_radius_hourlyUpsertArgs} args - Arguments to update or create a Conso_radius_hourly.
* @example
* // Update or create a Conso_radius_hourly
* const conso_radius_hourly = await prisma.conso_radius_hourly.upsert({
* create: {
* // ... data to create a Conso_radius_hourly
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Conso_radius_hourly we want to update
* }
* })
*/
upsert<T extends conso_radius_hourlyUpsertArgs>(args: Prisma.SelectSubset<T, conso_radius_hourlyUpsertArgs<ExtArgs>>): Prisma.Prisma__conso_radius_hourlyClient<runtime.Types.Result.GetResult<Prisma.$conso_radius_hourlyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Conso_radius_hourlies.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conso_radius_hourlyCountArgs} args - Arguments to filter Conso_radius_hourlies to count.
* @example
* // Count the number of Conso_radius_hourlies
* const count = await prisma.conso_radius_hourly.count({
* where: {
* // ... the filter for the Conso_radius_hourlies we want to count
* }
* })
**/
count<T extends conso_radius_hourlyCountArgs>(
args?: Prisma.Subset<T, conso_radius_hourlyCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Conso_radius_hourlyCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Conso_radius_hourly.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Conso_radius_hourlyAggregateArgs} 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_radius_hourlyAggregateArgs>(args: Prisma.Subset<T, Conso_radius_hourlyAggregateArgs>): Prisma.PrismaPromise<GetConso_radius_hourlyAggregateType<T>>
/**
* Group by Conso_radius_hourly.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conso_radius_hourlyGroupByArgs} 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_radius_hourlyGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: conso_radius_hourlyGroupByArgs['orderBy'] }
: { orderBy?: conso_radius_hourlyGroupByArgs['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_radius_hourlyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConso_radius_hourlyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the conso_radius_hourly model
*/
readonly fields: conso_radius_hourlyFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for conso_radius_hourly.
* 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_radius_hourlyClient<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_hourly model
*/
export interface conso_radius_hourlyFieldRefs {
readonly id: Prisma.FieldRef<"conso_radius_hourly", 'Int'>
readonly username: Prisma.FieldRef<"conso_radius_hourly", 'String'>
readonly date: Prisma.FieldRef<"conso_radius_hourly", 'String'>
readonly download: Prisma.FieldRef<"conso_radius_hourly", 'String'>
readonly upload: Prisma.FieldRef<"conso_radius_hourly", 'String'>
}
// Custom InputTypes
/**
* conso_radius_hourly findUnique
*/
export type conso_radius_hourlyFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* Filter, which conso_radius_hourly to fetch.
*/
where: Prisma.conso_radius_hourlyWhereUniqueInput
}
/**
* conso_radius_hourly findUniqueOrThrow
*/
export type conso_radius_hourlyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* Filter, which conso_radius_hourly to fetch.
*/
where: Prisma.conso_radius_hourlyWhereUniqueInput
}
/**
* conso_radius_hourly findFirst
*/
export type conso_radius_hourlyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* Filter, which conso_radius_hourly to fetch.
*/
where?: Prisma.conso_radius_hourlyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conso_radius_hourlies to fetch.
*/
orderBy?: Prisma.conso_radius_hourlyOrderByWithRelationInput | Prisma.conso_radius_hourlyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for conso_radius_hourlies.
*/
cursor?: Prisma.conso_radius_hourlyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conso_radius_hourlies 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_radius_hourlies.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of conso_radius_hourlies.
*/
distinct?: Prisma.Conso_radius_hourlyScalarFieldEnum | Prisma.Conso_radius_hourlyScalarFieldEnum[]
}
/**
* conso_radius_hourly findFirstOrThrow
*/
export type conso_radius_hourlyFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* Filter, which conso_radius_hourly to fetch.
*/
where?: Prisma.conso_radius_hourlyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conso_radius_hourlies to fetch.
*/
orderBy?: Prisma.conso_radius_hourlyOrderByWithRelationInput | Prisma.conso_radius_hourlyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for conso_radius_hourlies.
*/
cursor?: Prisma.conso_radius_hourlyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conso_radius_hourlies 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_radius_hourlies.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of conso_radius_hourlies.
*/
distinct?: Prisma.Conso_radius_hourlyScalarFieldEnum | Prisma.Conso_radius_hourlyScalarFieldEnum[]
}
/**
* conso_radius_hourly findMany
*/
export type conso_radius_hourlyFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* Filter, which conso_radius_hourlies to fetch.
*/
where?: Prisma.conso_radius_hourlyWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conso_radius_hourlies to fetch.
*/
orderBy?: Prisma.conso_radius_hourlyOrderByWithRelationInput | Prisma.conso_radius_hourlyOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing conso_radius_hourlies.
*/
cursor?: Prisma.conso_radius_hourlyWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conso_radius_hourlies 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_radius_hourlies.
*/
skip?: number
distinct?: Prisma.Conso_radius_hourlyScalarFieldEnum | Prisma.Conso_radius_hourlyScalarFieldEnum[]
}
/**
* conso_radius_hourly create
*/
export type conso_radius_hourlyCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* The data needed to create a conso_radius_hourly.
*/
data: Prisma.XOR<Prisma.conso_radius_hourlyCreateInput, Prisma.conso_radius_hourlyUncheckedCreateInput>
}
/**
* conso_radius_hourly createMany
*/
export type conso_radius_hourlyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many conso_radius_hourlies.
*/
data: Prisma.conso_radius_hourlyCreateManyInput | Prisma.conso_radius_hourlyCreateManyInput[]
skipDuplicates?: boolean
}
/**
* conso_radius_hourly update
*/
export type conso_radius_hourlyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* The data needed to update a conso_radius_hourly.
*/
data: Prisma.XOR<Prisma.conso_radius_hourlyUpdateInput, Prisma.conso_radius_hourlyUncheckedUpdateInput>
/**
* Choose, which conso_radius_hourly to update.
*/
where: Prisma.conso_radius_hourlyWhereUniqueInput
}
/**
* conso_radius_hourly updateMany
*/
export type conso_radius_hourlyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update conso_radius_hourlies.
*/
data: Prisma.XOR<Prisma.conso_radius_hourlyUpdateManyMutationInput, Prisma.conso_radius_hourlyUncheckedUpdateManyInput>
/**
* Filter which conso_radius_hourlies to update
*/
where?: Prisma.conso_radius_hourlyWhereInput
/**
* Limit how many conso_radius_hourlies to update.
*/
limit?: number
}
/**
* conso_radius_hourly upsert
*/
export type conso_radius_hourlyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* The filter to search for the conso_radius_hourly to update in case it exists.
*/
where: Prisma.conso_radius_hourlyWhereUniqueInput
/**
* In case the conso_radius_hourly found by the `where` argument doesn't exist, create a new conso_radius_hourly with this data.
*/
create: Prisma.XOR<Prisma.conso_radius_hourlyCreateInput, Prisma.conso_radius_hourlyUncheckedCreateInput>
/**
* In case the conso_radius_hourly was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.conso_radius_hourlyUpdateInput, Prisma.conso_radius_hourlyUncheckedUpdateInput>
}
/**
* conso_radius_hourly delete
*/
export type conso_radius_hourlyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
/**
* Filter which conso_radius_hourly to delete.
*/
where: Prisma.conso_radius_hourlyWhereUniqueInput
}
/**
* conso_radius_hourly deleteMany
*/
export type conso_radius_hourlyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which conso_radius_hourlies to delete
*/
where?: Prisma.conso_radius_hourlyWhereInput
/**
* Limit how many conso_radius_hourlies to delete.
*/
limit?: number
}
/**
* conso_radius_hourly without action
*/
export type conso_radius_hourlyDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conso_radius_hourly
*/
select?: Prisma.conso_radius_hourlySelect<ExtArgs> | null
/**
* Omit specific fields from the conso_radius_hourly
*/
omit?: Prisma.conso_radius_hourlyOmit<ExtArgs> | null
}