1473 lines
56 KiB
TypeScript
1473 lines
56 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 `MihomeEnvHour` 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 MihomeEnvHour
|
|
*
|
|
*/
|
|
export type MihomeEnvHourModel = runtime.Types.Result.DefaultSelection<Prisma.$MihomeEnvHourPayload>
|
|
|
|
export type AggregateMihomeEnvHour = {
|
|
_count: MihomeEnvHourCountAggregateOutputType | null
|
|
_avg: MihomeEnvHourAvgAggregateOutputType | null
|
|
_sum: MihomeEnvHourSumAggregateOutputType | null
|
|
_min: MihomeEnvHourMinAggregateOutputType | null
|
|
_max: MihomeEnvHourMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MihomeEnvHourAvgAggregateOutputType = {
|
|
id: number | null
|
|
deviceId: number | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
}
|
|
|
|
export type MihomeEnvHourSumAggregateOutputType = {
|
|
id: number | null
|
|
deviceId: number | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
}
|
|
|
|
export type MihomeEnvHourMinAggregateOutputType = {
|
|
id: number | null
|
|
deviceId: number | null
|
|
hour: Date | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type MihomeEnvHourMaxAggregateOutputType = {
|
|
id: number | null
|
|
deviceId: number | null
|
|
hour: Date | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type MihomeEnvHourCountAggregateOutputType = {
|
|
id: number
|
|
deviceId: number
|
|
hour: number
|
|
temperatureAvg: number
|
|
humidityAvg: number
|
|
raw: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MihomeEnvHourAvgAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
}
|
|
|
|
export type MihomeEnvHourSumAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
}
|
|
|
|
export type MihomeEnvHourMinAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
hour?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type MihomeEnvHourMaxAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
hour?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type MihomeEnvHourCountAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
hour?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
raw?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MihomeEnvHourAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MihomeEnvHour to aggregate.
|
|
*/
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeEnvHours to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeEnvHourOrderByWithRelationInput | Prisma.MihomeEnvHourOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.MihomeEnvHourWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeEnvHours 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` MihomeEnvHours.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MihomeEnvHours
|
|
**/
|
|
_count?: true | MihomeEnvHourCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MihomeEnvHourAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MihomeEnvHourSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MihomeEnvHourMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MihomeEnvHourMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMihomeEnvHourAggregateType<T extends MihomeEnvHourAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMihomeEnvHour]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMihomeEnvHour[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMihomeEnvHour[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MihomeEnvHourGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
orderBy?: Prisma.MihomeEnvHourOrderByWithAggregationInput | Prisma.MihomeEnvHourOrderByWithAggregationInput[]
|
|
by: Prisma.MihomeEnvHourScalarFieldEnum[] | Prisma.MihomeEnvHourScalarFieldEnum
|
|
having?: Prisma.MihomeEnvHourScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MihomeEnvHourCountAggregateInputType | true
|
|
_avg?: MihomeEnvHourAvgAggregateInputType
|
|
_sum?: MihomeEnvHourSumAggregateInputType
|
|
_min?: MihomeEnvHourMinAggregateInputType
|
|
_max?: MihomeEnvHourMaxAggregateInputType
|
|
}
|
|
|
|
export type MihomeEnvHourGroupByOutputType = {
|
|
id: number
|
|
deviceId: number
|
|
hour: Date
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
raw: runtime.JsonValue | null
|
|
createdAt: Date
|
|
_count: MihomeEnvHourCountAggregateOutputType | null
|
|
_avg: MihomeEnvHourAvgAggregateOutputType | null
|
|
_sum: MihomeEnvHourSumAggregateOutputType | null
|
|
_min: MihomeEnvHourMinAggregateOutputType | null
|
|
_max: MihomeEnvHourMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetMihomeEnvHourGroupByPayload<T extends MihomeEnvHourGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<MihomeEnvHourGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MihomeEnvHourGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], MihomeEnvHourGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], MihomeEnvHourGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type MihomeEnvHourWhereInput = {
|
|
AND?: Prisma.MihomeEnvHourWhereInput | Prisma.MihomeEnvHourWhereInput[]
|
|
OR?: Prisma.MihomeEnvHourWhereInput[]
|
|
NOT?: Prisma.MihomeEnvHourWhereInput | Prisma.MihomeEnvHourWhereInput[]
|
|
id?: Prisma.IntFilter<"MihomeEnvHour"> | number
|
|
deviceId?: Prisma.IntFilter<"MihomeEnvHour"> | number
|
|
hour?: Prisma.DateTimeFilter<"MihomeEnvHour"> | Date | string
|
|
temperatureAvg?: Prisma.FloatNullableFilter<"MihomeEnvHour"> | number | null
|
|
humidityAvg?: Prisma.FloatNullableFilter<"MihomeEnvHour"> | number | null
|
|
raw?: Prisma.JsonNullableFilter<"MihomeEnvHour">
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeEnvHour"> | Date | string
|
|
device?: Prisma.XOR<Prisma.MihomeDeviceScalarRelationFilter, Prisma.MihomeDeviceWhereInput>
|
|
}
|
|
|
|
export type MihomeEnvHourOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
hour?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
raw?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
device?: Prisma.MihomeDeviceOrderByWithRelationInput
|
|
}
|
|
|
|
export type MihomeEnvHourWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
deviceId_hour?: Prisma.MihomeEnvHourDeviceIdHourCompoundUniqueInput
|
|
AND?: Prisma.MihomeEnvHourWhereInput | Prisma.MihomeEnvHourWhereInput[]
|
|
OR?: Prisma.MihomeEnvHourWhereInput[]
|
|
NOT?: Prisma.MihomeEnvHourWhereInput | Prisma.MihomeEnvHourWhereInput[]
|
|
deviceId?: Prisma.IntFilter<"MihomeEnvHour"> | number
|
|
hour?: Prisma.DateTimeFilter<"MihomeEnvHour"> | Date | string
|
|
temperatureAvg?: Prisma.FloatNullableFilter<"MihomeEnvHour"> | number | null
|
|
humidityAvg?: Prisma.FloatNullableFilter<"MihomeEnvHour"> | number | null
|
|
raw?: Prisma.JsonNullableFilter<"MihomeEnvHour">
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeEnvHour"> | Date | string
|
|
device?: Prisma.XOR<Prisma.MihomeDeviceScalarRelationFilter, Prisma.MihomeDeviceWhereInput>
|
|
}, "id" | "deviceId_hour">
|
|
|
|
export type MihomeEnvHourOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
hour?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
raw?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
_count?: Prisma.MihomeEnvHourCountOrderByAggregateInput
|
|
_avg?: Prisma.MihomeEnvHourAvgOrderByAggregateInput
|
|
_max?: Prisma.MihomeEnvHourMaxOrderByAggregateInput
|
|
_min?: Prisma.MihomeEnvHourMinOrderByAggregateInput
|
|
_sum?: Prisma.MihomeEnvHourSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MihomeEnvHourScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.MihomeEnvHourScalarWhereWithAggregatesInput | Prisma.MihomeEnvHourScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.MihomeEnvHourScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.MihomeEnvHourScalarWhereWithAggregatesInput | Prisma.MihomeEnvHourScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"MihomeEnvHour"> | number
|
|
deviceId?: Prisma.IntWithAggregatesFilter<"MihomeEnvHour"> | number
|
|
hour?: Prisma.DateTimeWithAggregatesFilter<"MihomeEnvHour"> | Date | string
|
|
temperatureAvg?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvHour"> | number | null
|
|
humidityAvg?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvHour"> | number | null
|
|
raw?: Prisma.JsonNullableWithAggregatesFilter<"MihomeEnvHour">
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"MihomeEnvHour"> | Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourCreateInput = {
|
|
hour: Date | string
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
device: Prisma.MihomeDeviceCreateNestedOneWithoutHoursInput
|
|
}
|
|
|
|
export type MihomeEnvHourUncheckedCreateInput = {
|
|
id?: number
|
|
deviceId: number
|
|
hour: Date | string
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourUpdateInput = {
|
|
hour?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
device?: Prisma.MihomeDeviceUpdateOneRequiredWithoutHoursNestedInput
|
|
}
|
|
|
|
export type MihomeEnvHourUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
deviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
hour?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourCreateManyInput = {
|
|
id?: number
|
|
deviceId: number
|
|
hour: Date | string
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourUpdateManyMutationInput = {
|
|
hour?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
deviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
hour?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourListRelationFilter = {
|
|
every?: Prisma.MihomeEnvHourWhereInput
|
|
some?: Prisma.MihomeEnvHourWhereInput
|
|
none?: Prisma.MihomeEnvHourWhereInput
|
|
}
|
|
|
|
export type MihomeEnvHourOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvHourDeviceIdHourCompoundUniqueInput = {
|
|
deviceId: number
|
|
hour: Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
hour?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
raw?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvHourAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvHourMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
hour?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvHourMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
hour?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvHourSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvHourCreateNestedManyWithoutDeviceInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeEnvHourCreateWithoutDeviceInput, Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput> | Prisma.MihomeEnvHourCreateWithoutDeviceInput[] | Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.MihomeEnvHourCreateOrConnectWithoutDeviceInput | Prisma.MihomeEnvHourCreateOrConnectWithoutDeviceInput[]
|
|
createMany?: Prisma.MihomeEnvHourCreateManyDeviceInputEnvelope
|
|
connect?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
}
|
|
|
|
export type MihomeEnvHourUncheckedCreateNestedManyWithoutDeviceInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeEnvHourCreateWithoutDeviceInput, Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput> | Prisma.MihomeEnvHourCreateWithoutDeviceInput[] | Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.MihomeEnvHourCreateOrConnectWithoutDeviceInput | Prisma.MihomeEnvHourCreateOrConnectWithoutDeviceInput[]
|
|
createMany?: Prisma.MihomeEnvHourCreateManyDeviceInputEnvelope
|
|
connect?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
}
|
|
|
|
export type MihomeEnvHourUpdateManyWithoutDeviceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeEnvHourCreateWithoutDeviceInput, Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput> | Prisma.MihomeEnvHourCreateWithoutDeviceInput[] | Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.MihomeEnvHourCreateOrConnectWithoutDeviceInput | Prisma.MihomeEnvHourCreateOrConnectWithoutDeviceInput[]
|
|
upsert?: Prisma.MihomeEnvHourUpsertWithWhereUniqueWithoutDeviceInput | Prisma.MihomeEnvHourUpsertWithWhereUniqueWithoutDeviceInput[]
|
|
createMany?: Prisma.MihomeEnvHourCreateManyDeviceInputEnvelope
|
|
set?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
disconnect?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
delete?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
connect?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
update?: Prisma.MihomeEnvHourUpdateWithWhereUniqueWithoutDeviceInput | Prisma.MihomeEnvHourUpdateWithWhereUniqueWithoutDeviceInput[]
|
|
updateMany?: Prisma.MihomeEnvHourUpdateManyWithWhereWithoutDeviceInput | Prisma.MihomeEnvHourUpdateManyWithWhereWithoutDeviceInput[]
|
|
deleteMany?: Prisma.MihomeEnvHourScalarWhereInput | Prisma.MihomeEnvHourScalarWhereInput[]
|
|
}
|
|
|
|
export type MihomeEnvHourUncheckedUpdateManyWithoutDeviceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeEnvHourCreateWithoutDeviceInput, Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput> | Prisma.MihomeEnvHourCreateWithoutDeviceInput[] | Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.MihomeEnvHourCreateOrConnectWithoutDeviceInput | Prisma.MihomeEnvHourCreateOrConnectWithoutDeviceInput[]
|
|
upsert?: Prisma.MihomeEnvHourUpsertWithWhereUniqueWithoutDeviceInput | Prisma.MihomeEnvHourUpsertWithWhereUniqueWithoutDeviceInput[]
|
|
createMany?: Prisma.MihomeEnvHourCreateManyDeviceInputEnvelope
|
|
set?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
disconnect?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
delete?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
connect?: Prisma.MihomeEnvHourWhereUniqueInput | Prisma.MihomeEnvHourWhereUniqueInput[]
|
|
update?: Prisma.MihomeEnvHourUpdateWithWhereUniqueWithoutDeviceInput | Prisma.MihomeEnvHourUpdateWithWhereUniqueWithoutDeviceInput[]
|
|
updateMany?: Prisma.MihomeEnvHourUpdateManyWithWhereWithoutDeviceInput | Prisma.MihomeEnvHourUpdateManyWithWhereWithoutDeviceInput[]
|
|
deleteMany?: Prisma.MihomeEnvHourScalarWhereInput | Prisma.MihomeEnvHourScalarWhereInput[]
|
|
}
|
|
|
|
export type MihomeEnvHourCreateWithoutDeviceInput = {
|
|
hour: Date | string
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourUncheckedCreateWithoutDeviceInput = {
|
|
id?: number
|
|
hour: Date | string
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourCreateOrConnectWithoutDeviceInput = {
|
|
where: Prisma.MihomeEnvHourWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MihomeEnvHourCreateWithoutDeviceInput, Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput>
|
|
}
|
|
|
|
export type MihomeEnvHourCreateManyDeviceInputEnvelope = {
|
|
data: Prisma.MihomeEnvHourCreateManyDeviceInput | Prisma.MihomeEnvHourCreateManyDeviceInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MihomeEnvHourUpsertWithWhereUniqueWithoutDeviceInput = {
|
|
where: Prisma.MihomeEnvHourWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MihomeEnvHourUpdateWithoutDeviceInput, Prisma.MihomeEnvHourUncheckedUpdateWithoutDeviceInput>
|
|
create: Prisma.XOR<Prisma.MihomeEnvHourCreateWithoutDeviceInput, Prisma.MihomeEnvHourUncheckedCreateWithoutDeviceInput>
|
|
}
|
|
|
|
export type MihomeEnvHourUpdateWithWhereUniqueWithoutDeviceInput = {
|
|
where: Prisma.MihomeEnvHourWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MihomeEnvHourUpdateWithoutDeviceInput, Prisma.MihomeEnvHourUncheckedUpdateWithoutDeviceInput>
|
|
}
|
|
|
|
export type MihomeEnvHourUpdateManyWithWhereWithoutDeviceInput = {
|
|
where: Prisma.MihomeEnvHourScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MihomeEnvHourUpdateManyMutationInput, Prisma.MihomeEnvHourUncheckedUpdateManyWithoutDeviceInput>
|
|
}
|
|
|
|
export type MihomeEnvHourScalarWhereInput = {
|
|
AND?: Prisma.MihomeEnvHourScalarWhereInput | Prisma.MihomeEnvHourScalarWhereInput[]
|
|
OR?: Prisma.MihomeEnvHourScalarWhereInput[]
|
|
NOT?: Prisma.MihomeEnvHourScalarWhereInput | Prisma.MihomeEnvHourScalarWhereInput[]
|
|
id?: Prisma.IntFilter<"MihomeEnvHour"> | number
|
|
deviceId?: Prisma.IntFilter<"MihomeEnvHour"> | number
|
|
hour?: Prisma.DateTimeFilter<"MihomeEnvHour"> | Date | string
|
|
temperatureAvg?: Prisma.FloatNullableFilter<"MihomeEnvHour"> | number | null
|
|
humidityAvg?: Prisma.FloatNullableFilter<"MihomeEnvHour"> | number | null
|
|
raw?: Prisma.JsonNullableFilter<"MihomeEnvHour">
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeEnvHour"> | Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourCreateManyDeviceInput = {
|
|
id?: number
|
|
hour: Date | string
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourUpdateWithoutDeviceInput = {
|
|
hour?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourUncheckedUpdateWithoutDeviceInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
hour?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvHourUncheckedUpdateManyWithoutDeviceInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
hour?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type MihomeEnvHourSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
hour?: boolean
|
|
temperatureAvg?: boolean
|
|
humidityAvg?: boolean
|
|
raw?: boolean
|
|
createdAt?: boolean
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeEnvHour"]>
|
|
|
|
export type MihomeEnvHourSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
hour?: boolean
|
|
temperatureAvg?: boolean
|
|
humidityAvg?: boolean
|
|
raw?: boolean
|
|
createdAt?: boolean
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeEnvHour"]>
|
|
|
|
export type MihomeEnvHourSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
hour?: boolean
|
|
temperatureAvg?: boolean
|
|
humidityAvg?: boolean
|
|
raw?: boolean
|
|
createdAt?: boolean
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeEnvHour"]>
|
|
|
|
export type MihomeEnvHourSelectScalar = {
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
hour?: boolean
|
|
temperatureAvg?: boolean
|
|
humidityAvg?: boolean
|
|
raw?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type MihomeEnvHourOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "deviceId" | "hour" | "temperatureAvg" | "humidityAvg" | "raw" | "createdAt", ExtArgs["result"]["mihomeEnvHour"]>
|
|
export type MihomeEnvHourInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}
|
|
export type MihomeEnvHourIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}
|
|
export type MihomeEnvHourIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MihomeEnvHourPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "MihomeEnvHour"
|
|
objects: {
|
|
device: Prisma.$MihomeDevicePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
deviceId: number
|
|
hour: Date
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
raw: runtime.JsonValue | null
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["mihomeEnvHour"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type MihomeEnvHourGetPayload<S extends boolean | null | undefined | MihomeEnvHourDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload, S>
|
|
|
|
export type MihomeEnvHourCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<MihomeEnvHourFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: MihomeEnvHourCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MihomeEnvHourDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MihomeEnvHour'], meta: { name: 'MihomeEnvHour' } }
|
|
/**
|
|
* Find zero or one MihomeEnvHour that matches the filter.
|
|
* @param {MihomeEnvHourFindUniqueArgs} args - Arguments to find a MihomeEnvHour
|
|
* @example
|
|
* // Get one MihomeEnvHour
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MihomeEnvHourFindUniqueArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvHourClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one MihomeEnvHour that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MihomeEnvHourFindUniqueOrThrowArgs} args - Arguments to find a MihomeEnvHour
|
|
* @example
|
|
* // Get one MihomeEnvHour
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MihomeEnvHourFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvHourClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MihomeEnvHour 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 {MihomeEnvHourFindFirstArgs} args - Arguments to find a MihomeEnvHour
|
|
* @example
|
|
* // Get one MihomeEnvHour
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MihomeEnvHourFindFirstArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourFindFirstArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvHourClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MihomeEnvHour 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 {MihomeEnvHourFindFirstOrThrowArgs} args - Arguments to find a MihomeEnvHour
|
|
* @example
|
|
* // Get one MihomeEnvHour
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MihomeEnvHourFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvHourClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more MihomeEnvHours 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 {MihomeEnvHourFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MihomeEnvHours
|
|
* const mihomeEnvHours = await prisma.mihomeEnvHour.findMany()
|
|
*
|
|
* // Get first 10 MihomeEnvHours
|
|
* const mihomeEnvHours = await prisma.mihomeEnvHour.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const mihomeEnvHourWithIdOnly = await prisma.mihomeEnvHour.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MihomeEnvHourFindManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a MihomeEnvHour.
|
|
* @param {MihomeEnvHourCreateArgs} args - Arguments to create a MihomeEnvHour.
|
|
* @example
|
|
* // Create one MihomeEnvHour
|
|
* const MihomeEnvHour = await prisma.mihomeEnvHour.create({
|
|
* data: {
|
|
* // ... data to create a MihomeEnvHour
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MihomeEnvHourCreateArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourCreateArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvHourClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many MihomeEnvHours.
|
|
* @param {MihomeEnvHourCreateManyArgs} args - Arguments to create many MihomeEnvHours.
|
|
* @example
|
|
* // Create many MihomeEnvHours
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MihomeEnvHourCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many MihomeEnvHours and returns the data saved in the database.
|
|
* @param {MihomeEnvHourCreateManyAndReturnArgs} args - Arguments to create many MihomeEnvHours.
|
|
* @example
|
|
* // Create many MihomeEnvHours
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many MihomeEnvHours and only return the `id`
|
|
* const mihomeEnvHourWithIdOnly = await prisma.mihomeEnvHour.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends MihomeEnvHourCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a MihomeEnvHour.
|
|
* @param {MihomeEnvHourDeleteArgs} args - Arguments to delete one MihomeEnvHour.
|
|
* @example
|
|
* // Delete one MihomeEnvHour
|
|
* const MihomeEnvHour = await prisma.mihomeEnvHour.delete({
|
|
* where: {
|
|
* // ... filter to delete one MihomeEnvHour
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MihomeEnvHourDeleteArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourDeleteArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvHourClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one MihomeEnvHour.
|
|
* @param {MihomeEnvHourUpdateArgs} args - Arguments to update one MihomeEnvHour.
|
|
* @example
|
|
* // Update one MihomeEnvHour
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MihomeEnvHourUpdateArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpdateArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvHourClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more MihomeEnvHours.
|
|
* @param {MihomeEnvHourDeleteManyArgs} args - Arguments to filter MihomeEnvHours to delete.
|
|
* @example
|
|
* // Delete a few MihomeEnvHours
|
|
* const { count } = await prisma.mihomeEnvHour.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MihomeEnvHourDeleteManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MihomeEnvHours.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeEnvHourUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MihomeEnvHours
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MihomeEnvHourUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MihomeEnvHours and returns the data updated in the database.
|
|
* @param {MihomeEnvHourUpdateManyAndReturnArgs} args - Arguments to update many MihomeEnvHours.
|
|
* @example
|
|
* // Update many MihomeEnvHours
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more MihomeEnvHours and only return the `id`
|
|
* const mihomeEnvHourWithIdOnly = await prisma.mihomeEnvHour.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends MihomeEnvHourUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one MihomeEnvHour.
|
|
* @param {MihomeEnvHourUpsertArgs} args - Arguments to update or create a MihomeEnvHour.
|
|
* @example
|
|
* // Update or create a MihomeEnvHour
|
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.upsert({
|
|
* create: {
|
|
* // ... data to create a MihomeEnvHour
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MihomeEnvHour we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MihomeEnvHourUpsertArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpsertArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvHourClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of MihomeEnvHours.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeEnvHourCountArgs} args - Arguments to filter MihomeEnvHours to count.
|
|
* @example
|
|
* // Count the number of MihomeEnvHours
|
|
* const count = await prisma.mihomeEnvHour.count({
|
|
* where: {
|
|
* // ... the filter for the MihomeEnvHours we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MihomeEnvHourCountArgs>(
|
|
args?: Prisma.Subset<T, MihomeEnvHourCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], MihomeEnvHourCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MihomeEnvHour.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeEnvHourAggregateArgs} 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 MihomeEnvHourAggregateArgs>(args: Prisma.Subset<T, MihomeEnvHourAggregateArgs>): Prisma.PrismaPromise<GetMihomeEnvHourAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MihomeEnvHour.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeEnvHourGroupByArgs} 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 MihomeEnvHourGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: MihomeEnvHourGroupByArgs['orderBy'] }
|
|
: { orderBy?: MihomeEnvHourGroupByArgs['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, MihomeEnvHourGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMihomeEnvHourGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MihomeEnvHour model
|
|
*/
|
|
readonly fields: MihomeEnvHourFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MihomeEnvHour.
|
|
* 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__MihomeEnvHourClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
device<T extends Prisma.MihomeDeviceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MihomeDeviceDefaultArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 MihomeEnvHour model
|
|
*/
|
|
export interface MihomeEnvHourFieldRefs {
|
|
readonly id: Prisma.FieldRef<"MihomeEnvHour", 'Int'>
|
|
readonly deviceId: Prisma.FieldRef<"MihomeEnvHour", 'Int'>
|
|
readonly hour: Prisma.FieldRef<"MihomeEnvHour", 'DateTime'>
|
|
readonly temperatureAvg: Prisma.FieldRef<"MihomeEnvHour", 'Float'>
|
|
readonly humidityAvg: Prisma.FieldRef<"MihomeEnvHour", 'Float'>
|
|
readonly raw: Prisma.FieldRef<"MihomeEnvHour", 'Json'>
|
|
readonly createdAt: Prisma.FieldRef<"MihomeEnvHour", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MihomeEnvHour findUnique
|
|
*/
|
|
export type MihomeEnvHourFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeEnvHour to fetch.
|
|
*/
|
|
where: Prisma.MihomeEnvHourWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour findUniqueOrThrow
|
|
*/
|
|
export type MihomeEnvHourFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeEnvHour to fetch.
|
|
*/
|
|
where: Prisma.MihomeEnvHourWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour findFirst
|
|
*/
|
|
export type MihomeEnvHourFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeEnvHour to fetch.
|
|
*/
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeEnvHours to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeEnvHourOrderByWithRelationInput | Prisma.MihomeEnvHourOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MihomeEnvHours.
|
|
*/
|
|
cursor?: Prisma.MihomeEnvHourWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeEnvHours 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` MihomeEnvHours.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeEnvHours.
|
|
*/
|
|
distinct?: Prisma.MihomeEnvHourScalarFieldEnum | Prisma.MihomeEnvHourScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour findFirstOrThrow
|
|
*/
|
|
export type MihomeEnvHourFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeEnvHour to fetch.
|
|
*/
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeEnvHours to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeEnvHourOrderByWithRelationInput | Prisma.MihomeEnvHourOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MihomeEnvHours.
|
|
*/
|
|
cursor?: Prisma.MihomeEnvHourWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeEnvHours 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` MihomeEnvHours.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeEnvHours.
|
|
*/
|
|
distinct?: Prisma.MihomeEnvHourScalarFieldEnum | Prisma.MihomeEnvHourScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour findMany
|
|
*/
|
|
export type MihomeEnvHourFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeEnvHours to fetch.
|
|
*/
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeEnvHours to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeEnvHourOrderByWithRelationInput | Prisma.MihomeEnvHourOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MihomeEnvHours.
|
|
*/
|
|
cursor?: Prisma.MihomeEnvHourWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeEnvHours 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` MihomeEnvHours.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeEnvHours.
|
|
*/
|
|
distinct?: Prisma.MihomeEnvHourScalarFieldEnum | Prisma.MihomeEnvHourScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour create
|
|
*/
|
|
export type MihomeEnvHourCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MihomeEnvHour.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeEnvHourCreateInput, Prisma.MihomeEnvHourUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour createMany
|
|
*/
|
|
export type MihomeEnvHourCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MihomeEnvHours.
|
|
*/
|
|
data: Prisma.MihomeEnvHourCreateManyInput | Prisma.MihomeEnvHourCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour createManyAndReturn
|
|
*/
|
|
export type MihomeEnvHourCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many MihomeEnvHours.
|
|
*/
|
|
data: Prisma.MihomeEnvHourCreateManyInput | Prisma.MihomeEnvHourCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour update
|
|
*/
|
|
export type MihomeEnvHourUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MihomeEnvHour.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeEnvHourUpdateInput, Prisma.MihomeEnvHourUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MihomeEnvHour to update.
|
|
*/
|
|
where: Prisma.MihomeEnvHourWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour updateMany
|
|
*/
|
|
export type MihomeEnvHourUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MihomeEnvHours.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeEnvHourUpdateManyMutationInput, Prisma.MihomeEnvHourUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MihomeEnvHours to update
|
|
*/
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
/**
|
|
* Limit how many MihomeEnvHours to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour updateManyAndReturn
|
|
*/
|
|
export type MihomeEnvHourUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update MihomeEnvHours.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeEnvHourUpdateManyMutationInput, Prisma.MihomeEnvHourUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MihomeEnvHours to update
|
|
*/
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
/**
|
|
* Limit how many MihomeEnvHours to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour upsert
|
|
*/
|
|
export type MihomeEnvHourUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the MihomeEnvHour to update in case it exists.
|
|
*/
|
|
where: Prisma.MihomeEnvHourWhereUniqueInput
|
|
/**
|
|
* In case the MihomeEnvHour found by the `where` argument doesn't exist, create a new MihomeEnvHour with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.MihomeEnvHourCreateInput, Prisma.MihomeEnvHourUncheckedCreateInput>
|
|
/**
|
|
* In case the MihomeEnvHour was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.MihomeEnvHourUpdateInput, Prisma.MihomeEnvHourUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour delete
|
|
*/
|
|
export type MihomeEnvHourDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MihomeEnvHour to delete.
|
|
*/
|
|
where: Prisma.MihomeEnvHourWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour deleteMany
|
|
*/
|
|
export type MihomeEnvHourDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MihomeEnvHours to delete
|
|
*/
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
/**
|
|
* Limit how many MihomeEnvHours to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvHour without action
|
|
*/
|
|
export type MihomeEnvHourDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
}
|