iboard/generated/prisma/models/OilPriceHistory.ts
2026-08-07 14:36:57 +08:00

1150 lines
41 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 `OilPriceHistory` 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.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model OilPriceHistory
*
*/
export type OilPriceHistoryModel = runtime.Types.Result.DefaultSelection<Prisma.$OilPriceHistoryPayload>
export type AggregateOilPriceHistory = {
_count: OilPriceHistoryCountAggregateOutputType | null
_avg: OilPriceHistoryAvgAggregateOutputType | null
_sum: OilPriceHistorySumAggregateOutputType | null
_min: OilPriceHistoryMinAggregateOutputType | null
_max: OilPriceHistoryMaxAggregateOutputType | null
}
export type OilPriceHistoryAvgAggregateOutputType = {
id: number | null
price: number | null
}
export type OilPriceHistorySumAggregateOutputType = {
id: number | null
price: number | null
}
export type OilPriceHistoryMinAggregateOutputType = {
id: number | null
date: Date | null
province: string | null
fuel: string | null
price: number | null
source: string | null
createdAt: Date | null
}
export type OilPriceHistoryMaxAggregateOutputType = {
id: number | null
date: Date | null
province: string | null
fuel: string | null
price: number | null
source: string | null
createdAt: Date | null
}
export type OilPriceHistoryCountAggregateOutputType = {
id: number
date: number
province: number
fuel: number
price: number
source: number
createdAt: number
_all: number
}
export type OilPriceHistoryAvgAggregateInputType = {
id?: true
price?: true
}
export type OilPriceHistorySumAggregateInputType = {
id?: true
price?: true
}
export type OilPriceHistoryMinAggregateInputType = {
id?: true
date?: true
province?: true
fuel?: true
price?: true
source?: true
createdAt?: true
}
export type OilPriceHistoryMaxAggregateInputType = {
id?: true
date?: true
province?: true
fuel?: true
price?: true
source?: true
createdAt?: true
}
export type OilPriceHistoryCountAggregateInputType = {
id?: true
date?: true
province?: true
fuel?: true
price?: true
source?: true
createdAt?: true
_all?: true
}
export type OilPriceHistoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which OilPriceHistory to aggregate.
*/
where?: Prisma.OilPriceHistoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of OilPriceHistories to fetch.
*/
orderBy?: Prisma.OilPriceHistoryOrderByWithRelationInput | Prisma.OilPriceHistoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.OilPriceHistoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` OilPriceHistories 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` OilPriceHistories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned OilPriceHistories
**/
_count?: true | OilPriceHistoryCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: OilPriceHistoryAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: OilPriceHistorySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: OilPriceHistoryMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: OilPriceHistoryMaxAggregateInputType
}
export type GetOilPriceHistoryAggregateType<T extends OilPriceHistoryAggregateArgs> = {
[P in keyof T & keyof AggregateOilPriceHistory]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateOilPriceHistory[P]>
: Prisma.GetScalarType<T[P], AggregateOilPriceHistory[P]>
}
export type OilPriceHistoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.OilPriceHistoryWhereInput
orderBy?: Prisma.OilPriceHistoryOrderByWithAggregationInput | Prisma.OilPriceHistoryOrderByWithAggregationInput[]
by: Prisma.OilPriceHistoryScalarFieldEnum[] | Prisma.OilPriceHistoryScalarFieldEnum
having?: Prisma.OilPriceHistoryScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: OilPriceHistoryCountAggregateInputType | true
_avg?: OilPriceHistoryAvgAggregateInputType
_sum?: OilPriceHistorySumAggregateInputType
_min?: OilPriceHistoryMinAggregateInputType
_max?: OilPriceHistoryMaxAggregateInputType
}
export type OilPriceHistoryGroupByOutputType = {
id: number
date: Date
province: string
fuel: string
price: number
source: string
createdAt: Date
_count: OilPriceHistoryCountAggregateOutputType | null
_avg: OilPriceHistoryAvgAggregateOutputType | null
_sum: OilPriceHistorySumAggregateOutputType | null
_min: OilPriceHistoryMinAggregateOutputType | null
_max: OilPriceHistoryMaxAggregateOutputType | null
}
export type GetOilPriceHistoryGroupByPayload<T extends OilPriceHistoryGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<OilPriceHistoryGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof OilPriceHistoryGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], OilPriceHistoryGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], OilPriceHistoryGroupByOutputType[P]>
}
>
>
export type OilPriceHistoryWhereInput = {
AND?: Prisma.OilPriceHistoryWhereInput | Prisma.OilPriceHistoryWhereInput[]
OR?: Prisma.OilPriceHistoryWhereInput[]
NOT?: Prisma.OilPriceHistoryWhereInput | Prisma.OilPriceHistoryWhereInput[]
id?: Prisma.IntFilter<"OilPriceHistory"> | number
date?: Prisma.DateTimeFilter<"OilPriceHistory"> | Date | string
province?: Prisma.StringFilter<"OilPriceHistory"> | string
fuel?: Prisma.StringFilter<"OilPriceHistory"> | string
price?: Prisma.FloatFilter<"OilPriceHistory"> | number
source?: Prisma.StringFilter<"OilPriceHistory"> | string
createdAt?: Prisma.DateTimeFilter<"OilPriceHistory"> | Date | string
}
export type OilPriceHistoryOrderByWithRelationInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
province?: Prisma.SortOrder
fuel?: Prisma.SortOrder
price?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
_relevance?: Prisma.OilPriceHistoryOrderByRelevanceInput
}
export type OilPriceHistoryWhereUniqueInput = Prisma.AtLeast<{
id?: number
date_province_fuel?: Prisma.OilPriceHistoryDateProvinceFuelCompoundUniqueInput
AND?: Prisma.OilPriceHistoryWhereInput | Prisma.OilPriceHistoryWhereInput[]
OR?: Prisma.OilPriceHistoryWhereInput[]
NOT?: Prisma.OilPriceHistoryWhereInput | Prisma.OilPriceHistoryWhereInput[]
date?: Prisma.DateTimeFilter<"OilPriceHistory"> | Date | string
province?: Prisma.StringFilter<"OilPriceHistory"> | string
fuel?: Prisma.StringFilter<"OilPriceHistory"> | string
price?: Prisma.FloatFilter<"OilPriceHistory"> | number
source?: Prisma.StringFilter<"OilPriceHistory"> | string
createdAt?: Prisma.DateTimeFilter<"OilPriceHistory"> | Date | string
}, "id" | "date_province_fuel">
export type OilPriceHistoryOrderByWithAggregationInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
province?: Prisma.SortOrder
fuel?: Prisma.SortOrder
price?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
_count?: Prisma.OilPriceHistoryCountOrderByAggregateInput
_avg?: Prisma.OilPriceHistoryAvgOrderByAggregateInput
_max?: Prisma.OilPriceHistoryMaxOrderByAggregateInput
_min?: Prisma.OilPriceHistoryMinOrderByAggregateInput
_sum?: Prisma.OilPriceHistorySumOrderByAggregateInput
}
export type OilPriceHistoryScalarWhereWithAggregatesInput = {
AND?: Prisma.OilPriceHistoryScalarWhereWithAggregatesInput | Prisma.OilPriceHistoryScalarWhereWithAggregatesInput[]
OR?: Prisma.OilPriceHistoryScalarWhereWithAggregatesInput[]
NOT?: Prisma.OilPriceHistoryScalarWhereWithAggregatesInput | Prisma.OilPriceHistoryScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"OilPriceHistory"> | number
date?: Prisma.DateTimeWithAggregatesFilter<"OilPriceHistory"> | Date | string
province?: Prisma.StringWithAggregatesFilter<"OilPriceHistory"> | string
fuel?: Prisma.StringWithAggregatesFilter<"OilPriceHistory"> | string
price?: Prisma.FloatWithAggregatesFilter<"OilPriceHistory"> | number
source?: Prisma.StringWithAggregatesFilter<"OilPriceHistory"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"OilPriceHistory"> | Date | string
}
export type OilPriceHistoryCreateInput = {
date: Date | string
province: string
fuel: string
price: number
source?: string
createdAt?: Date | string
}
export type OilPriceHistoryUncheckedCreateInput = {
id?: number
date: Date | string
province: string
fuel: string
price: number
source?: string
createdAt?: Date | string
}
export type OilPriceHistoryUpdateInput = {
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
province?: Prisma.StringFieldUpdateOperationsInput | string
fuel?: Prisma.StringFieldUpdateOperationsInput | string
price?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OilPriceHistoryUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
province?: Prisma.StringFieldUpdateOperationsInput | string
fuel?: Prisma.StringFieldUpdateOperationsInput | string
price?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OilPriceHistoryCreateManyInput = {
id?: number
date: Date | string
province: string
fuel: string
price: number
source?: string
createdAt?: Date | string
}
export type OilPriceHistoryUpdateManyMutationInput = {
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
province?: Prisma.StringFieldUpdateOperationsInput | string
fuel?: Prisma.StringFieldUpdateOperationsInput | string
price?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OilPriceHistoryUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
province?: Prisma.StringFieldUpdateOperationsInput | string
fuel?: Prisma.StringFieldUpdateOperationsInput | string
price?: Prisma.FloatFieldUpdateOperationsInput | number
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OilPriceHistoryOrderByRelevanceInput = {
fields: Prisma.OilPriceHistoryOrderByRelevanceFieldEnum | Prisma.OilPriceHistoryOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type OilPriceHistoryDateProvinceFuelCompoundUniqueInput = {
date: Date | string
province: string
fuel: string
}
export type OilPriceHistoryCountOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
province?: Prisma.SortOrder
fuel?: Prisma.SortOrder
price?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type OilPriceHistoryAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
price?: Prisma.SortOrder
}
export type OilPriceHistoryMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
province?: Prisma.SortOrder
fuel?: Prisma.SortOrder
price?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type OilPriceHistoryMinOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
province?: Prisma.SortOrder
fuel?: Prisma.SortOrder
price?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type OilPriceHistorySumOrderByAggregateInput = {
id?: Prisma.SortOrder
price?: Prisma.SortOrder
}
export type OilPriceHistorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
date?: boolean
province?: boolean
fuel?: boolean
price?: boolean
source?: boolean
createdAt?: boolean
}, ExtArgs["result"]["oilPriceHistory"]>
export type OilPriceHistorySelectScalar = {
id?: boolean
date?: boolean
province?: boolean
fuel?: boolean
price?: boolean
source?: boolean
createdAt?: boolean
}
export type OilPriceHistoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date" | "province" | "fuel" | "price" | "source" | "createdAt", ExtArgs["result"]["oilPriceHistory"]>
export type $OilPriceHistoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "OilPriceHistory"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
date: Date
province: string
fuel: string
price: number
source: string
createdAt: Date
}, ExtArgs["result"]["oilPriceHistory"]>
composites: {}
}
export type OilPriceHistoryGetPayload<S extends boolean | null | undefined | OilPriceHistoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload, S>
export type OilPriceHistoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<OilPriceHistoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: OilPriceHistoryCountAggregateInputType | true
}
export interface OilPriceHistoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['OilPriceHistory'], meta: { name: 'OilPriceHistory' } }
/**
* Find zero or one OilPriceHistory that matches the filter.
* @param {OilPriceHistoryFindUniqueArgs} args - Arguments to find a OilPriceHistory
* @example
* // Get one OilPriceHistory
* const oilPriceHistory = await prisma.oilPriceHistory.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends OilPriceHistoryFindUniqueArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OilPriceHistoryClient<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one OilPriceHistory that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {OilPriceHistoryFindUniqueOrThrowArgs} args - Arguments to find a OilPriceHistory
* @example
* // Get one OilPriceHistory
* const oilPriceHistory = await prisma.oilPriceHistory.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends OilPriceHistoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OilPriceHistoryClient<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first OilPriceHistory 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 {OilPriceHistoryFindFirstArgs} args - Arguments to find a OilPriceHistory
* @example
* // Get one OilPriceHistory
* const oilPriceHistory = await prisma.oilPriceHistory.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends OilPriceHistoryFindFirstArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__OilPriceHistoryClient<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first OilPriceHistory 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 {OilPriceHistoryFindFirstOrThrowArgs} args - Arguments to find a OilPriceHistory
* @example
* // Get one OilPriceHistory
* const oilPriceHistory = await prisma.oilPriceHistory.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends OilPriceHistoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OilPriceHistoryClient<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more OilPriceHistories 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 {OilPriceHistoryFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all OilPriceHistories
* const oilPriceHistories = await prisma.oilPriceHistory.findMany()
*
* // Get first 10 OilPriceHistories
* const oilPriceHistories = await prisma.oilPriceHistory.findMany({ take: 10 })
*
* // Only select the `id`
* const oilPriceHistoryWithIdOnly = await prisma.oilPriceHistory.findMany({ select: { id: true } })
*
*/
findMany<T extends OilPriceHistoryFindManyArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a OilPriceHistory.
* @param {OilPriceHistoryCreateArgs} args - Arguments to create a OilPriceHistory.
* @example
* // Create one OilPriceHistory
* const OilPriceHistory = await prisma.oilPriceHistory.create({
* data: {
* // ... data to create a OilPriceHistory
* }
* })
*
*/
create<T extends OilPriceHistoryCreateArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryCreateArgs<ExtArgs>>): Prisma.Prisma__OilPriceHistoryClient<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many OilPriceHistories.
* @param {OilPriceHistoryCreateManyArgs} args - Arguments to create many OilPriceHistories.
* @example
* // Create many OilPriceHistories
* const oilPriceHistory = await prisma.oilPriceHistory.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends OilPriceHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a OilPriceHistory.
* @param {OilPriceHistoryDeleteArgs} args - Arguments to delete one OilPriceHistory.
* @example
* // Delete one OilPriceHistory
* const OilPriceHistory = await prisma.oilPriceHistory.delete({
* where: {
* // ... filter to delete one OilPriceHistory
* }
* })
*
*/
delete<T extends OilPriceHistoryDeleteArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryDeleteArgs<ExtArgs>>): Prisma.Prisma__OilPriceHistoryClient<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one OilPriceHistory.
* @param {OilPriceHistoryUpdateArgs} args - Arguments to update one OilPriceHistory.
* @example
* // Update one OilPriceHistory
* const oilPriceHistory = await prisma.oilPriceHistory.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends OilPriceHistoryUpdateArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateArgs<ExtArgs>>): Prisma.Prisma__OilPriceHistoryClient<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more OilPriceHistories.
* @param {OilPriceHistoryDeleteManyArgs} args - Arguments to filter OilPriceHistories to delete.
* @example
* // Delete a few OilPriceHistories
* const { count } = await prisma.oilPriceHistory.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends OilPriceHistoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more OilPriceHistories.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {OilPriceHistoryUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many OilPriceHistories
* const oilPriceHistory = await prisma.oilPriceHistory.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends OilPriceHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one OilPriceHistory.
* @param {OilPriceHistoryUpsertArgs} args - Arguments to update or create a OilPriceHistory.
* @example
* // Update or create a OilPriceHistory
* const oilPriceHistory = await prisma.oilPriceHistory.upsert({
* create: {
* // ... data to create a OilPriceHistory
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the OilPriceHistory we want to update
* }
* })
*/
upsert<T extends OilPriceHistoryUpsertArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpsertArgs<ExtArgs>>): Prisma.Prisma__OilPriceHistoryClient<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of OilPriceHistories.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {OilPriceHistoryCountArgs} args - Arguments to filter OilPriceHistories to count.
* @example
* // Count the number of OilPriceHistories
* const count = await prisma.oilPriceHistory.count({
* where: {
* // ... the filter for the OilPriceHistories we want to count
* }
* })
**/
count<T extends OilPriceHistoryCountArgs>(
args?: Prisma.Subset<T, OilPriceHistoryCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], OilPriceHistoryCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a OilPriceHistory.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {OilPriceHistoryAggregateArgs} 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 OilPriceHistoryAggregateArgs>(args: Prisma.Subset<T, OilPriceHistoryAggregateArgs>): Prisma.PrismaPromise<GetOilPriceHistoryAggregateType<T>>
/**
* Group by OilPriceHistory.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {OilPriceHistoryGroupByArgs} 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 OilPriceHistoryGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: OilPriceHistoryGroupByArgs['orderBy'] }
: { orderBy?: OilPriceHistoryGroupByArgs['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, OilPriceHistoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOilPriceHistoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the OilPriceHistory model
*/
readonly fields: OilPriceHistoryFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for OilPriceHistory.
* 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__OilPriceHistoryClient<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 OilPriceHistory model
*/
export interface OilPriceHistoryFieldRefs {
readonly id: Prisma.FieldRef<"OilPriceHistory", 'Int'>
readonly date: Prisma.FieldRef<"OilPriceHistory", 'DateTime'>
readonly province: Prisma.FieldRef<"OilPriceHistory", 'String'>
readonly fuel: Prisma.FieldRef<"OilPriceHistory", 'String'>
readonly price: Prisma.FieldRef<"OilPriceHistory", 'Float'>
readonly source: Prisma.FieldRef<"OilPriceHistory", 'String'>
readonly createdAt: Prisma.FieldRef<"OilPriceHistory", 'DateTime'>
}
// Custom InputTypes
/**
* OilPriceHistory findUnique
*/
export type OilPriceHistoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* Filter, which OilPriceHistory to fetch.
*/
where: Prisma.OilPriceHistoryWhereUniqueInput
}
/**
* OilPriceHistory findUniqueOrThrow
*/
export type OilPriceHistoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* Filter, which OilPriceHistory to fetch.
*/
where: Prisma.OilPriceHistoryWhereUniqueInput
}
/**
* OilPriceHistory findFirst
*/
export type OilPriceHistoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* Filter, which OilPriceHistory to fetch.
*/
where?: Prisma.OilPriceHistoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of OilPriceHistories to fetch.
*/
orderBy?: Prisma.OilPriceHistoryOrderByWithRelationInput | Prisma.OilPriceHistoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for OilPriceHistories.
*/
cursor?: Prisma.OilPriceHistoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` OilPriceHistories 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` OilPriceHistories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of OilPriceHistories.
*/
distinct?: Prisma.OilPriceHistoryScalarFieldEnum | Prisma.OilPriceHistoryScalarFieldEnum[]
}
/**
* OilPriceHistory findFirstOrThrow
*/
export type OilPriceHistoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* Filter, which OilPriceHistory to fetch.
*/
where?: Prisma.OilPriceHistoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of OilPriceHistories to fetch.
*/
orderBy?: Prisma.OilPriceHistoryOrderByWithRelationInput | Prisma.OilPriceHistoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for OilPriceHistories.
*/
cursor?: Prisma.OilPriceHistoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` OilPriceHistories 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` OilPriceHistories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of OilPriceHistories.
*/
distinct?: Prisma.OilPriceHistoryScalarFieldEnum | Prisma.OilPriceHistoryScalarFieldEnum[]
}
/**
* OilPriceHistory findMany
*/
export type OilPriceHistoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* Filter, which OilPriceHistories to fetch.
*/
where?: Prisma.OilPriceHistoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of OilPriceHistories to fetch.
*/
orderBy?: Prisma.OilPriceHistoryOrderByWithRelationInput | Prisma.OilPriceHistoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing OilPriceHistories.
*/
cursor?: Prisma.OilPriceHistoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` OilPriceHistories 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` OilPriceHistories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of OilPriceHistories.
*/
distinct?: Prisma.OilPriceHistoryScalarFieldEnum | Prisma.OilPriceHistoryScalarFieldEnum[]
}
/**
* OilPriceHistory create
*/
export type OilPriceHistoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* The data needed to create a OilPriceHistory.
*/
data: Prisma.XOR<Prisma.OilPriceHistoryCreateInput, Prisma.OilPriceHistoryUncheckedCreateInput>
}
/**
* OilPriceHistory createMany
*/
export type OilPriceHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many OilPriceHistories.
*/
data: Prisma.OilPriceHistoryCreateManyInput | Prisma.OilPriceHistoryCreateManyInput[]
skipDuplicates?: boolean
}
/**
* OilPriceHistory update
*/
export type OilPriceHistoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* The data needed to update a OilPriceHistory.
*/
data: Prisma.XOR<Prisma.OilPriceHistoryUpdateInput, Prisma.OilPriceHistoryUncheckedUpdateInput>
/**
* Choose, which OilPriceHistory to update.
*/
where: Prisma.OilPriceHistoryWhereUniqueInput
}
/**
* OilPriceHistory updateMany
*/
export type OilPriceHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update OilPriceHistories.
*/
data: Prisma.XOR<Prisma.OilPriceHistoryUpdateManyMutationInput, Prisma.OilPriceHistoryUncheckedUpdateManyInput>
/**
* Filter which OilPriceHistories to update
*/
where?: Prisma.OilPriceHistoryWhereInput
/**
* Limit how many OilPriceHistories to update.
*/
limit?: number
}
/**
* OilPriceHistory upsert
*/
export type OilPriceHistoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* The filter to search for the OilPriceHistory to update in case it exists.
*/
where: Prisma.OilPriceHistoryWhereUniqueInput
/**
* In case the OilPriceHistory found by the `where` argument doesn't exist, create a new OilPriceHistory with this data.
*/
create: Prisma.XOR<Prisma.OilPriceHistoryCreateInput, Prisma.OilPriceHistoryUncheckedCreateInput>
/**
* In case the OilPriceHistory was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.OilPriceHistoryUpdateInput, Prisma.OilPriceHistoryUncheckedUpdateInput>
}
/**
* OilPriceHistory delete
*/
export type OilPriceHistoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
/**
* Filter which OilPriceHistory to delete.
*/
where: Prisma.OilPriceHistoryWhereUniqueInput
}
/**
* OilPriceHistory deleteMany
*/
export type OilPriceHistoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which OilPriceHistories to delete
*/
where?: Prisma.OilPriceHistoryWhereInput
/**
* Limit how many OilPriceHistories to delete.
*/
limit?: number
}
/**
* OilPriceHistory without action
*/
export type OilPriceHistoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OilPriceHistory
*/
select?: Prisma.OilPriceHistorySelect<ExtArgs> | null
/**
* Omit specific fields from the OilPriceHistory
*/
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
}