Files
iboard/generated/prisma/models/MihomeHome.ts
T

1335 lines
46 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 `MihomeHome` 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 MihomeHome
*
*/
export type MihomeHomeModel = runtime.Types.Result.DefaultSelection<Prisma.$MihomeHomePayload>
export type AggregateMihomeHome = {
_count: MihomeHomeCountAggregateOutputType | null
_avg: MihomeHomeAvgAggregateOutputType | null
_sum: MihomeHomeSumAggregateOutputType | null
_min: MihomeHomeMinAggregateOutputType | null
_max: MihomeHomeMaxAggregateOutputType | null
}
export type MihomeHomeAvgAggregateOutputType = {
id: number | null
}
export type MihomeHomeSumAggregateOutputType = {
id: number | null
}
export type MihomeHomeMinAggregateOutputType = {
id: number | null
homeId: string | null
name: string | null
createdAt: Date | null
}
export type MihomeHomeMaxAggregateOutputType = {
id: number | null
homeId: string | null
name: string | null
createdAt: Date | null
}
export type MihomeHomeCountAggregateOutputType = {
id: number
homeId: number
name: number
createdAt: number
_all: number
}
export type MihomeHomeAvgAggregateInputType = {
id?: true
}
export type MihomeHomeSumAggregateInputType = {
id?: true
}
export type MihomeHomeMinAggregateInputType = {
id?: true
homeId?: true
name?: true
createdAt?: true
}
export type MihomeHomeMaxAggregateInputType = {
id?: true
homeId?: true
name?: true
createdAt?: true
}
export type MihomeHomeCountAggregateInputType = {
id?: true
homeId?: true
name?: true
createdAt?: true
_all?: true
}
export type MihomeHomeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which MihomeHome to aggregate.
*/
where?: Prisma.MihomeHomeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MihomeHomes to fetch.
*/
orderBy?: Prisma.MihomeHomeOrderByWithRelationInput | Prisma.MihomeHomeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.MihomeHomeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MihomeHomes 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` MihomeHomes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned MihomeHomes
**/
_count?: true | MihomeHomeCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: MihomeHomeAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: MihomeHomeSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: MihomeHomeMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: MihomeHomeMaxAggregateInputType
}
export type GetMihomeHomeAggregateType<T extends MihomeHomeAggregateArgs> = {
[P in keyof T & keyof AggregateMihomeHome]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateMihomeHome[P]>
: Prisma.GetScalarType<T[P], AggregateMihomeHome[P]>
}
export type MihomeHomeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.MihomeHomeWhereInput
orderBy?: Prisma.MihomeHomeOrderByWithAggregationInput | Prisma.MihomeHomeOrderByWithAggregationInput[]
by: Prisma.MihomeHomeScalarFieldEnum[] | Prisma.MihomeHomeScalarFieldEnum
having?: Prisma.MihomeHomeScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: MihomeHomeCountAggregateInputType | true
_avg?: MihomeHomeAvgAggregateInputType
_sum?: MihomeHomeSumAggregateInputType
_min?: MihomeHomeMinAggregateInputType
_max?: MihomeHomeMaxAggregateInputType
}
export type MihomeHomeGroupByOutputType = {
id: number
homeId: string
name: string
createdAt: Date
_count: MihomeHomeCountAggregateOutputType | null
_avg: MihomeHomeAvgAggregateOutputType | null
_sum: MihomeHomeSumAggregateOutputType | null
_min: MihomeHomeMinAggregateOutputType | null
_max: MihomeHomeMaxAggregateOutputType | null
}
export type GetMihomeHomeGroupByPayload<T extends MihomeHomeGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<MihomeHomeGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof MihomeHomeGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], MihomeHomeGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], MihomeHomeGroupByOutputType[P]>
}
>
>
export type MihomeHomeWhereInput = {
AND?: Prisma.MihomeHomeWhereInput | Prisma.MihomeHomeWhereInput[]
OR?: Prisma.MihomeHomeWhereInput[]
NOT?: Prisma.MihomeHomeWhereInput | Prisma.MihomeHomeWhereInput[]
id?: Prisma.IntFilter<"MihomeHome"> | number
homeId?: Prisma.StringFilter<"MihomeHome"> | string
name?: Prisma.StringFilter<"MihomeHome"> | string
createdAt?: Prisma.DateTimeFilter<"MihomeHome"> | Date | string
devices?: Prisma.MihomeDeviceListRelationFilter
}
export type MihomeHomeOrderByWithRelationInput = {
id?: Prisma.SortOrder
homeId?: Prisma.SortOrder
name?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
devices?: Prisma.MihomeDeviceOrderByRelationAggregateInput
}
export type MihomeHomeWhereUniqueInput = Prisma.AtLeast<{
id?: number
homeId?: string
AND?: Prisma.MihomeHomeWhereInput | Prisma.MihomeHomeWhereInput[]
OR?: Prisma.MihomeHomeWhereInput[]
NOT?: Prisma.MihomeHomeWhereInput | Prisma.MihomeHomeWhereInput[]
name?: Prisma.StringFilter<"MihomeHome"> | string
createdAt?: Prisma.DateTimeFilter<"MihomeHome"> | Date | string
devices?: Prisma.MihomeDeviceListRelationFilter
}, "id" | "homeId">
export type MihomeHomeOrderByWithAggregationInput = {
id?: Prisma.SortOrder
homeId?: Prisma.SortOrder
name?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
_count?: Prisma.MihomeHomeCountOrderByAggregateInput
_avg?: Prisma.MihomeHomeAvgOrderByAggregateInput
_max?: Prisma.MihomeHomeMaxOrderByAggregateInput
_min?: Prisma.MihomeHomeMinOrderByAggregateInput
_sum?: Prisma.MihomeHomeSumOrderByAggregateInput
}
export type MihomeHomeScalarWhereWithAggregatesInput = {
AND?: Prisma.MihomeHomeScalarWhereWithAggregatesInput | Prisma.MihomeHomeScalarWhereWithAggregatesInput[]
OR?: Prisma.MihomeHomeScalarWhereWithAggregatesInput[]
NOT?: Prisma.MihomeHomeScalarWhereWithAggregatesInput | Prisma.MihomeHomeScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"MihomeHome"> | number
homeId?: Prisma.StringWithAggregatesFilter<"MihomeHome"> | string
name?: Prisma.StringWithAggregatesFilter<"MihomeHome"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"MihomeHome"> | Date | string
}
export type MihomeHomeCreateInput = {
homeId: string
name: string
createdAt?: Date | string
devices?: Prisma.MihomeDeviceCreateNestedManyWithoutHomeInput
}
export type MihomeHomeUncheckedCreateInput = {
id?: number
homeId: string
name: string
createdAt?: Date | string
devices?: Prisma.MihomeDeviceUncheckedCreateNestedManyWithoutHomeInput
}
export type MihomeHomeUpdateInput = {
homeId?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
devices?: Prisma.MihomeDeviceUpdateManyWithoutHomeNestedInput
}
export type MihomeHomeUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
homeId?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
devices?: Prisma.MihomeDeviceUncheckedUpdateManyWithoutHomeNestedInput
}
export type MihomeHomeCreateManyInput = {
id?: number
homeId: string
name: string
createdAt?: Date | string
}
export type MihomeHomeUpdateManyMutationInput = {
homeId?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type MihomeHomeUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
homeId?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type MihomeHomeCountOrderByAggregateInput = {
id?: Prisma.SortOrder
homeId?: Prisma.SortOrder
name?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type MihomeHomeAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type MihomeHomeMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
homeId?: Prisma.SortOrder
name?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type MihomeHomeMinOrderByAggregateInput = {
id?: Prisma.SortOrder
homeId?: Prisma.SortOrder
name?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type MihomeHomeSumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type MihomeHomeScalarRelationFilter = {
is?: Prisma.MihomeHomeWhereInput
isNot?: Prisma.MihomeHomeWhereInput
}
export type MihomeHomeCreateNestedOneWithoutDevicesInput = {
create?: Prisma.XOR<Prisma.MihomeHomeCreateWithoutDevicesInput, Prisma.MihomeHomeUncheckedCreateWithoutDevicesInput>
connectOrCreate?: Prisma.MihomeHomeCreateOrConnectWithoutDevicesInput
connect?: Prisma.MihomeHomeWhereUniqueInput
}
export type MihomeHomeUpdateOneRequiredWithoutDevicesNestedInput = {
create?: Prisma.XOR<Prisma.MihomeHomeCreateWithoutDevicesInput, Prisma.MihomeHomeUncheckedCreateWithoutDevicesInput>
connectOrCreate?: Prisma.MihomeHomeCreateOrConnectWithoutDevicesInput
upsert?: Prisma.MihomeHomeUpsertWithoutDevicesInput
connect?: Prisma.MihomeHomeWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.MihomeHomeUpdateToOneWithWhereWithoutDevicesInput, Prisma.MihomeHomeUpdateWithoutDevicesInput>, Prisma.MihomeHomeUncheckedUpdateWithoutDevicesInput>
}
export type MihomeHomeCreateWithoutDevicesInput = {
homeId: string
name: string
createdAt?: Date | string
}
export type MihomeHomeUncheckedCreateWithoutDevicesInput = {
id?: number
homeId: string
name: string
createdAt?: Date | string
}
export type MihomeHomeCreateOrConnectWithoutDevicesInput = {
where: Prisma.MihomeHomeWhereUniqueInput
create: Prisma.XOR<Prisma.MihomeHomeCreateWithoutDevicesInput, Prisma.MihomeHomeUncheckedCreateWithoutDevicesInput>
}
export type MihomeHomeUpsertWithoutDevicesInput = {
update: Prisma.XOR<Prisma.MihomeHomeUpdateWithoutDevicesInput, Prisma.MihomeHomeUncheckedUpdateWithoutDevicesInput>
create: Prisma.XOR<Prisma.MihomeHomeCreateWithoutDevicesInput, Prisma.MihomeHomeUncheckedCreateWithoutDevicesInput>
where?: Prisma.MihomeHomeWhereInput
}
export type MihomeHomeUpdateToOneWithWhereWithoutDevicesInput = {
where?: Prisma.MihomeHomeWhereInput
data: Prisma.XOR<Prisma.MihomeHomeUpdateWithoutDevicesInput, Prisma.MihomeHomeUncheckedUpdateWithoutDevicesInput>
}
export type MihomeHomeUpdateWithoutDevicesInput = {
homeId?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type MihomeHomeUncheckedUpdateWithoutDevicesInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
homeId?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Count Type MihomeHomeCountOutputType
*/
export type MihomeHomeCountOutputType = {
devices: number
}
export type MihomeHomeCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
devices?: boolean | MihomeHomeCountOutputTypeCountDevicesArgs
}
/**
* MihomeHomeCountOutputType without action
*/
export type MihomeHomeCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHomeCountOutputType
*/
select?: Prisma.MihomeHomeCountOutputTypeSelect<ExtArgs> | null
}
/**
* MihomeHomeCountOutputType without action
*/
export type MihomeHomeCountOutputTypeCountDevicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.MihomeDeviceWhereInput
}
export type MihomeHomeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
homeId?: boolean
name?: boolean
createdAt?: boolean
devices?: boolean | Prisma.MihomeHome$devicesArgs<ExtArgs>
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mihomeHome"]>
export type MihomeHomeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
homeId?: boolean
name?: boolean
createdAt?: boolean
}, ExtArgs["result"]["mihomeHome"]>
export type MihomeHomeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
homeId?: boolean
name?: boolean
createdAt?: boolean
}, ExtArgs["result"]["mihomeHome"]>
export type MihomeHomeSelectScalar = {
id?: boolean
homeId?: boolean
name?: boolean
createdAt?: boolean
}
export type MihomeHomeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "homeId" | "name" | "createdAt", ExtArgs["result"]["mihomeHome"]>
export type MihomeHomeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
devices?: boolean | Prisma.MihomeHome$devicesArgs<ExtArgs>
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
}
export type MihomeHomeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type MihomeHomeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $MihomeHomePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "MihomeHome"
objects: {
devices: Prisma.$MihomeDevicePayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
homeId: string
name: string
createdAt: Date
}, ExtArgs["result"]["mihomeHome"]>
composites: {}
}
export type MihomeHomeGetPayload<S extends boolean | null | undefined | MihomeHomeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload, S>
export type MihomeHomeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<MihomeHomeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: MihomeHomeCountAggregateInputType | true
}
export interface MihomeHomeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MihomeHome'], meta: { name: 'MihomeHome' } }
/**
* Find zero or one MihomeHome that matches the filter.
* @param {MihomeHomeFindUniqueArgs} args - Arguments to find a MihomeHome
* @example
* // Get one MihomeHome
* const mihomeHome = await prisma.mihomeHome.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends MihomeHomeFindUniqueArgs>(args: Prisma.SelectSubset<T, MihomeHomeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one MihomeHome that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {MihomeHomeFindUniqueOrThrowArgs} args - Arguments to find a MihomeHome
* @example
* // Get one MihomeHome
* const mihomeHome = await prisma.mihomeHome.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends MihomeHomeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MihomeHomeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first MihomeHome 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 {MihomeHomeFindFirstArgs} args - Arguments to find a MihomeHome
* @example
* // Get one MihomeHome
* const mihomeHome = await prisma.mihomeHome.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends MihomeHomeFindFirstArgs>(args?: Prisma.SelectSubset<T, MihomeHomeFindFirstArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first MihomeHome 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 {MihomeHomeFindFirstOrThrowArgs} args - Arguments to find a MihomeHome
* @example
* // Get one MihomeHome
* const mihomeHome = await prisma.mihomeHome.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends MihomeHomeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MihomeHomeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more MihomeHomes 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 {MihomeHomeFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all MihomeHomes
* const mihomeHomes = await prisma.mihomeHome.findMany()
*
* // Get first 10 MihomeHomes
* const mihomeHomes = await prisma.mihomeHome.findMany({ take: 10 })
*
* // Only select the `id`
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.findMany({ select: { id: true } })
*
*/
findMany<T extends MihomeHomeFindManyArgs>(args?: Prisma.SelectSubset<T, MihomeHomeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a MihomeHome.
* @param {MihomeHomeCreateArgs} args - Arguments to create a MihomeHome.
* @example
* // Create one MihomeHome
* const MihomeHome = await prisma.mihomeHome.create({
* data: {
* // ... data to create a MihomeHome
* }
* })
*
*/
create<T extends MihomeHomeCreateArgs>(args: Prisma.SelectSubset<T, MihomeHomeCreateArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many MihomeHomes.
* @param {MihomeHomeCreateManyArgs} args - Arguments to create many MihomeHomes.
* @example
* // Create many MihomeHomes
* const mihomeHome = await prisma.mihomeHome.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends MihomeHomeCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many MihomeHomes and returns the data saved in the database.
* @param {MihomeHomeCreateManyAndReturnArgs} args - Arguments to create many MihomeHomes.
* @example
* // Create many MihomeHomes
* const mihomeHome = await prisma.mihomeHome.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many MihomeHomes and only return the `id`
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.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 MihomeHomeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a MihomeHome.
* @param {MihomeHomeDeleteArgs} args - Arguments to delete one MihomeHome.
* @example
* // Delete one MihomeHome
* const MihomeHome = await prisma.mihomeHome.delete({
* where: {
* // ... filter to delete one MihomeHome
* }
* })
*
*/
delete<T extends MihomeHomeDeleteArgs>(args: Prisma.SelectSubset<T, MihomeHomeDeleteArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one MihomeHome.
* @param {MihomeHomeUpdateArgs} args - Arguments to update one MihomeHome.
* @example
* // Update one MihomeHome
* const mihomeHome = await prisma.mihomeHome.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends MihomeHomeUpdateArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more MihomeHomes.
* @param {MihomeHomeDeleteManyArgs} args - Arguments to filter MihomeHomes to delete.
* @example
* // Delete a few MihomeHomes
* const { count } = await prisma.mihomeHome.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends MihomeHomeDeleteManyArgs>(args?: Prisma.SelectSubset<T, MihomeHomeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more MihomeHomes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MihomeHomeUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many MihomeHomes
* const mihomeHome = await prisma.mihomeHome.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends MihomeHomeUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more MihomeHomes and returns the data updated in the database.
* @param {MihomeHomeUpdateManyAndReturnArgs} args - Arguments to update many MihomeHomes.
* @example
* // Update many MihomeHomes
* const mihomeHome = await prisma.mihomeHome.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more MihomeHomes and only return the `id`
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.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 MihomeHomeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one MihomeHome.
* @param {MihomeHomeUpsertArgs} args - Arguments to update or create a MihomeHome.
* @example
* // Update or create a MihomeHome
* const mihomeHome = await prisma.mihomeHome.upsert({
* create: {
* // ... data to create a MihomeHome
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the MihomeHome we want to update
* }
* })
*/
upsert<T extends MihomeHomeUpsertArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpsertArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of MihomeHomes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MihomeHomeCountArgs} args - Arguments to filter MihomeHomes to count.
* @example
* // Count the number of MihomeHomes
* const count = await prisma.mihomeHome.count({
* where: {
* // ... the filter for the MihomeHomes we want to count
* }
* })
**/
count<T extends MihomeHomeCountArgs>(
args?: Prisma.Subset<T, MihomeHomeCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], MihomeHomeCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a MihomeHome.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MihomeHomeAggregateArgs} 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 MihomeHomeAggregateArgs>(args: Prisma.Subset<T, MihomeHomeAggregateArgs>): Prisma.PrismaPromise<GetMihomeHomeAggregateType<T>>
/**
* Group by MihomeHome.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MihomeHomeGroupByArgs} 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 MihomeHomeGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: MihomeHomeGroupByArgs['orderBy'] }
: { orderBy?: MihomeHomeGroupByArgs['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, MihomeHomeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMihomeHomeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the MihomeHome model
*/
readonly fields: MihomeHomeFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for MihomeHome.
* 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__MihomeHomeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
devices<T extends Prisma.MihomeHome$devicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MihomeHome$devicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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 MihomeHome model
*/
export interface MihomeHomeFieldRefs {
readonly id: Prisma.FieldRef<"MihomeHome", 'Int'>
readonly homeId: Prisma.FieldRef<"MihomeHome", 'String'>
readonly name: Prisma.FieldRef<"MihomeHome", 'String'>
readonly createdAt: Prisma.FieldRef<"MihomeHome", 'DateTime'>
}
// Custom InputTypes
/**
* MihomeHome findUnique
*/
export type MihomeHomeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* Filter, which MihomeHome to fetch.
*/
where: Prisma.MihomeHomeWhereUniqueInput
}
/**
* MihomeHome findUniqueOrThrow
*/
export type MihomeHomeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* Filter, which MihomeHome to fetch.
*/
where: Prisma.MihomeHomeWhereUniqueInput
}
/**
* MihomeHome findFirst
*/
export type MihomeHomeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* Filter, which MihomeHome to fetch.
*/
where?: Prisma.MihomeHomeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MihomeHomes to fetch.
*/
orderBy?: Prisma.MihomeHomeOrderByWithRelationInput | Prisma.MihomeHomeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for MihomeHomes.
*/
cursor?: Prisma.MihomeHomeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MihomeHomes 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` MihomeHomes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of MihomeHomes.
*/
distinct?: Prisma.MihomeHomeScalarFieldEnum | Prisma.MihomeHomeScalarFieldEnum[]
}
/**
* MihomeHome findFirstOrThrow
*/
export type MihomeHomeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* Filter, which MihomeHome to fetch.
*/
where?: Prisma.MihomeHomeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MihomeHomes to fetch.
*/
orderBy?: Prisma.MihomeHomeOrderByWithRelationInput | Prisma.MihomeHomeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for MihomeHomes.
*/
cursor?: Prisma.MihomeHomeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MihomeHomes 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` MihomeHomes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of MihomeHomes.
*/
distinct?: Prisma.MihomeHomeScalarFieldEnum | Prisma.MihomeHomeScalarFieldEnum[]
}
/**
* MihomeHome findMany
*/
export type MihomeHomeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* Filter, which MihomeHomes to fetch.
*/
where?: Prisma.MihomeHomeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MihomeHomes to fetch.
*/
orderBy?: Prisma.MihomeHomeOrderByWithRelationInput | Prisma.MihomeHomeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing MihomeHomes.
*/
cursor?: Prisma.MihomeHomeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MihomeHomes 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` MihomeHomes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of MihomeHomes.
*/
distinct?: Prisma.MihomeHomeScalarFieldEnum | Prisma.MihomeHomeScalarFieldEnum[]
}
/**
* MihomeHome create
*/
export type MihomeHomeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* The data needed to create a MihomeHome.
*/
data: Prisma.XOR<Prisma.MihomeHomeCreateInput, Prisma.MihomeHomeUncheckedCreateInput>
}
/**
* MihomeHome createMany
*/
export type MihomeHomeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many MihomeHomes.
*/
data: Prisma.MihomeHomeCreateManyInput | Prisma.MihomeHomeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* MihomeHome createManyAndReturn
*/
export type MihomeHomeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* The data used to create many MihomeHomes.
*/
data: Prisma.MihomeHomeCreateManyInput | Prisma.MihomeHomeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* MihomeHome update
*/
export type MihomeHomeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* The data needed to update a MihomeHome.
*/
data: Prisma.XOR<Prisma.MihomeHomeUpdateInput, Prisma.MihomeHomeUncheckedUpdateInput>
/**
* Choose, which MihomeHome to update.
*/
where: Prisma.MihomeHomeWhereUniqueInput
}
/**
* MihomeHome updateMany
*/
export type MihomeHomeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update MihomeHomes.
*/
data: Prisma.XOR<Prisma.MihomeHomeUpdateManyMutationInput, Prisma.MihomeHomeUncheckedUpdateManyInput>
/**
* Filter which MihomeHomes to update
*/
where?: Prisma.MihomeHomeWhereInput
/**
* Limit how many MihomeHomes to update.
*/
limit?: number
}
/**
* MihomeHome updateManyAndReturn
*/
export type MihomeHomeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* The data used to update MihomeHomes.
*/
data: Prisma.XOR<Prisma.MihomeHomeUpdateManyMutationInput, Prisma.MihomeHomeUncheckedUpdateManyInput>
/**
* Filter which MihomeHomes to update
*/
where?: Prisma.MihomeHomeWhereInput
/**
* Limit how many MihomeHomes to update.
*/
limit?: number
}
/**
* MihomeHome upsert
*/
export type MihomeHomeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* The filter to search for the MihomeHome to update in case it exists.
*/
where: Prisma.MihomeHomeWhereUniqueInput
/**
* In case the MihomeHome found by the `where` argument doesn't exist, create a new MihomeHome with this data.
*/
create: Prisma.XOR<Prisma.MihomeHomeCreateInput, Prisma.MihomeHomeUncheckedCreateInput>
/**
* In case the MihomeHome was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.MihomeHomeUpdateInput, Prisma.MihomeHomeUncheckedUpdateInput>
}
/**
* MihomeHome delete
*/
export type MihomeHomeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
/**
* Filter which MihomeHome to delete.
*/
where: Prisma.MihomeHomeWhereUniqueInput
}
/**
* MihomeHome deleteMany
*/
export type MihomeHomeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which MihomeHomes to delete
*/
where?: Prisma.MihomeHomeWhereInput
/**
* Limit how many MihomeHomes to delete.
*/
limit?: number
}
/**
* MihomeHome.devices
*/
export type MihomeHome$devicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeDevice
*/
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeDevice
*/
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
where?: Prisma.MihomeDeviceWhereInput
orderBy?: Prisma.MihomeDeviceOrderByWithRelationInput | Prisma.MihomeDeviceOrderByWithRelationInput[]
cursor?: Prisma.MihomeDeviceWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.MihomeDeviceScalarFieldEnum | Prisma.MihomeDeviceScalarFieldEnum[]
}
/**
* MihomeHome without action
*/
export type MihomeHomeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeHome
*/
select?: Prisma.MihomeHomeSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeHome
*/
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.MihomeHomeInclude<ExtArgs> | null
}