1538 lines
62 KiB
TypeScript
1538 lines
62 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 `DeviceHistory` 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 DeviceHistory
|
|
*
|
|
*/
|
|
export type DeviceHistoryModel = runtime.Types.Result.DefaultSelection<Prisma.$DeviceHistoryPayload>
|
|
|
|
export type AggregateDeviceHistory = {
|
|
_count: DeviceHistoryCountAggregateOutputType | null
|
|
_min: DeviceHistoryMinAggregateOutputType | null
|
|
_max: DeviceHistoryMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type DeviceHistoryMinAggregateOutputType = {
|
|
id: string | null
|
|
deviceId: string | null
|
|
changeType: $Enums.DeviceChangeType | null
|
|
changedAt: Date | null
|
|
changedById: string | null
|
|
}
|
|
|
|
export type DeviceHistoryMaxAggregateOutputType = {
|
|
id: string | null
|
|
deviceId: string | null
|
|
changeType: $Enums.DeviceChangeType | null
|
|
changedAt: Date | null
|
|
changedById: string | null
|
|
}
|
|
|
|
export type DeviceHistoryCountAggregateOutputType = {
|
|
id: number
|
|
deviceId: number
|
|
changeType: number
|
|
snapshot: number
|
|
changedAt: number
|
|
changedById: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type DeviceHistoryMinAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
changeType?: true
|
|
changedAt?: true
|
|
changedById?: true
|
|
}
|
|
|
|
export type DeviceHistoryMaxAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
changeType?: true
|
|
changedAt?: true
|
|
changedById?: true
|
|
}
|
|
|
|
export type DeviceHistoryCountAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
changeType?: true
|
|
snapshot?: true
|
|
changedAt?: true
|
|
changedById?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type DeviceHistoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which DeviceHistory to aggregate.
|
|
*/
|
|
where?: Prisma.DeviceHistoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of DeviceHistories to fetch.
|
|
*/
|
|
orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.DeviceHistoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` DeviceHistories 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` DeviceHistories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned DeviceHistories
|
|
**/
|
|
_count?: true | DeviceHistoryCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: DeviceHistoryMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: DeviceHistoryMaxAggregateInputType
|
|
}
|
|
|
|
export type GetDeviceHistoryAggregateType<T extends DeviceHistoryAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateDeviceHistory]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateDeviceHistory[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateDeviceHistory[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type DeviceHistoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.DeviceHistoryWhereInput
|
|
orderBy?: Prisma.DeviceHistoryOrderByWithAggregationInput | Prisma.DeviceHistoryOrderByWithAggregationInput[]
|
|
by: Prisma.DeviceHistoryScalarFieldEnum[] | Prisma.DeviceHistoryScalarFieldEnum
|
|
having?: Prisma.DeviceHistoryScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: DeviceHistoryCountAggregateInputType | true
|
|
_min?: DeviceHistoryMinAggregateInputType
|
|
_max?: DeviceHistoryMaxAggregateInputType
|
|
}
|
|
|
|
export type DeviceHistoryGroupByOutputType = {
|
|
id: string
|
|
deviceId: string | null
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: runtime.JsonValue
|
|
changedAt: Date
|
|
changedById: string | null
|
|
_count: DeviceHistoryCountAggregateOutputType | null
|
|
_min: DeviceHistoryMinAggregateOutputType | null
|
|
_max: DeviceHistoryMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetDeviceHistoryGroupByPayload<T extends DeviceHistoryGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<DeviceHistoryGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof DeviceHistoryGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], DeviceHistoryGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], DeviceHistoryGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type DeviceHistoryWhereInput = {
|
|
AND?: Prisma.DeviceHistoryWhereInput | Prisma.DeviceHistoryWhereInput[]
|
|
OR?: Prisma.DeviceHistoryWhereInput[]
|
|
NOT?: Prisma.DeviceHistoryWhereInput | Prisma.DeviceHistoryWhereInput[]
|
|
id?: Prisma.StringFilter<"DeviceHistory"> | string
|
|
deviceId?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null
|
|
changeType?: Prisma.EnumDeviceChangeTypeFilter<"DeviceHistory"> | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonFilter<"DeviceHistory">
|
|
changedAt?: Prisma.DateTimeFilter<"DeviceHistory"> | Date | string
|
|
changedById?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null
|
|
changedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
|
}
|
|
|
|
export type DeviceHistoryOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
changeType?: Prisma.SortOrder
|
|
snapshot?: Prisma.SortOrder
|
|
changedAt?: Prisma.SortOrder
|
|
changedById?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
changedBy?: Prisma.UserOrderByWithRelationInput
|
|
device?: Prisma.DeviceOrderByWithRelationInput
|
|
}
|
|
|
|
export type DeviceHistoryWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.DeviceHistoryWhereInput | Prisma.DeviceHistoryWhereInput[]
|
|
OR?: Prisma.DeviceHistoryWhereInput[]
|
|
NOT?: Prisma.DeviceHistoryWhereInput | Prisma.DeviceHistoryWhereInput[]
|
|
deviceId?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null
|
|
changeType?: Prisma.EnumDeviceChangeTypeFilter<"DeviceHistory"> | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonFilter<"DeviceHistory">
|
|
changedAt?: Prisma.DateTimeFilter<"DeviceHistory"> | Date | string
|
|
changedById?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null
|
|
changedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
|
}, "id">
|
|
|
|
export type DeviceHistoryOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
changeType?: Prisma.SortOrder
|
|
snapshot?: Prisma.SortOrder
|
|
changedAt?: Prisma.SortOrder
|
|
changedById?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.DeviceHistoryCountOrderByAggregateInput
|
|
_max?: Prisma.DeviceHistoryMaxOrderByAggregateInput
|
|
_min?: Prisma.DeviceHistoryMinOrderByAggregateInput
|
|
}
|
|
|
|
export type DeviceHistoryScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.DeviceHistoryScalarWhereWithAggregatesInput | Prisma.DeviceHistoryScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.DeviceHistoryScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.DeviceHistoryScalarWhereWithAggregatesInput | Prisma.DeviceHistoryScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"DeviceHistory"> | string
|
|
deviceId?: Prisma.StringNullableWithAggregatesFilter<"DeviceHistory"> | string | null
|
|
changeType?: Prisma.EnumDeviceChangeTypeWithAggregatesFilter<"DeviceHistory"> | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonWithAggregatesFilter<"DeviceHistory">
|
|
changedAt?: Prisma.DateTimeWithAggregatesFilter<"DeviceHistory"> | Date | string
|
|
changedById?: Prisma.StringNullableWithAggregatesFilter<"DeviceHistory"> | string | null
|
|
}
|
|
|
|
export type DeviceHistoryCreateInput = {
|
|
id?: string
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
changedBy?: Prisma.UserCreateNestedOneWithoutHistoryEntriesInput
|
|
device?: Prisma.DeviceCreateNestedOneWithoutHistoryInput
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedCreateInput = {
|
|
id?: string
|
|
deviceId?: string | null
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
changedById?: string | null
|
|
}
|
|
|
|
export type DeviceHistoryUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
changedBy?: Prisma.UserUpdateOneWithoutHistoryEntriesNestedInput
|
|
device?: Prisma.DeviceUpdateOneWithoutHistoryNestedInput
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
changedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type DeviceHistoryCreateManyInput = {
|
|
id?: string
|
|
deviceId?: string | null
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
changedById?: string | null
|
|
}
|
|
|
|
export type DeviceHistoryUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
changedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type DeviceHistoryListRelationFilter = {
|
|
every?: Prisma.DeviceHistoryWhereInput
|
|
some?: Prisma.DeviceHistoryWhereInput
|
|
none?: Prisma.DeviceHistoryWhereInput
|
|
}
|
|
|
|
export type DeviceHistoryOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeviceHistoryCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
changeType?: Prisma.SortOrder
|
|
snapshot?: Prisma.SortOrder
|
|
changedAt?: Prisma.SortOrder
|
|
changedById?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeviceHistoryMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
changeType?: Prisma.SortOrder
|
|
changedAt?: Prisma.SortOrder
|
|
changedById?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeviceHistoryMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
changeType?: Prisma.SortOrder
|
|
changedAt?: Prisma.SortOrder
|
|
changedById?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeviceHistoryCreateNestedManyWithoutChangedByInput = {
|
|
create?: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutChangedByInput, Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput> | Prisma.DeviceHistoryCreateWithoutChangedByInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput[]
|
|
connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput | Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput[]
|
|
createMany?: Prisma.DeviceHistoryCreateManyChangedByInputEnvelope
|
|
connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedCreateNestedManyWithoutChangedByInput = {
|
|
create?: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutChangedByInput, Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput> | Prisma.DeviceHistoryCreateWithoutChangedByInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput[]
|
|
connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput | Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput[]
|
|
createMany?: Prisma.DeviceHistoryCreateManyChangedByInputEnvelope
|
|
connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
}
|
|
|
|
export type DeviceHistoryUpdateManyWithoutChangedByNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutChangedByInput, Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput> | Prisma.DeviceHistoryCreateWithoutChangedByInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput[]
|
|
connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput | Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput[]
|
|
upsert?: Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput | Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput[]
|
|
createMany?: Prisma.DeviceHistoryCreateManyChangedByInputEnvelope
|
|
set?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
disconnect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
delete?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
update?: Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput | Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput[]
|
|
updateMany?: Prisma.DeviceHistoryUpdateManyWithWhereWithoutChangedByInput | Prisma.DeviceHistoryUpdateManyWithWhereWithoutChangedByInput[]
|
|
deleteMany?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[]
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedUpdateManyWithoutChangedByNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutChangedByInput, Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput> | Prisma.DeviceHistoryCreateWithoutChangedByInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput[]
|
|
connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput | Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput[]
|
|
upsert?: Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput | Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput[]
|
|
createMany?: Prisma.DeviceHistoryCreateManyChangedByInputEnvelope
|
|
set?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
disconnect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
delete?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
update?: Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput | Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput[]
|
|
updateMany?: Prisma.DeviceHistoryUpdateManyWithWhereWithoutChangedByInput | Prisma.DeviceHistoryUpdateManyWithWhereWithoutChangedByInput[]
|
|
deleteMany?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[]
|
|
}
|
|
|
|
export type DeviceHistoryCreateNestedManyWithoutDeviceInput = {
|
|
create?: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutDeviceInput, Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput> | Prisma.DeviceHistoryCreateWithoutDeviceInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput | Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput[]
|
|
createMany?: Prisma.DeviceHistoryCreateManyDeviceInputEnvelope
|
|
connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput = {
|
|
create?: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutDeviceInput, Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput> | Prisma.DeviceHistoryCreateWithoutDeviceInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput | Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput[]
|
|
createMany?: Prisma.DeviceHistoryCreateManyDeviceInputEnvelope
|
|
connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
}
|
|
|
|
export type DeviceHistoryUpdateManyWithoutDeviceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutDeviceInput, Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput> | Prisma.DeviceHistoryCreateWithoutDeviceInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput | Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput[]
|
|
upsert?: Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput | Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput[]
|
|
createMany?: Prisma.DeviceHistoryCreateManyDeviceInputEnvelope
|
|
set?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
disconnect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
delete?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
update?: Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput | Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput[]
|
|
updateMany?: Prisma.DeviceHistoryUpdateManyWithWhereWithoutDeviceInput | Prisma.DeviceHistoryUpdateManyWithWhereWithoutDeviceInput[]
|
|
deleteMany?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[]
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutDeviceInput, Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput> | Prisma.DeviceHistoryCreateWithoutDeviceInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput | Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput[]
|
|
upsert?: Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput | Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput[]
|
|
createMany?: Prisma.DeviceHistoryCreateManyDeviceInputEnvelope
|
|
set?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
disconnect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
delete?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[]
|
|
update?: Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput | Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput[]
|
|
updateMany?: Prisma.DeviceHistoryUpdateManyWithWhereWithoutDeviceInput | Prisma.DeviceHistoryUpdateManyWithWhereWithoutDeviceInput[]
|
|
deleteMany?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumDeviceChangeTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.DeviceChangeType
|
|
}
|
|
|
|
export type DeviceHistoryCreateWithoutChangedByInput = {
|
|
id?: string
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
device?: Prisma.DeviceCreateNestedOneWithoutHistoryInput
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedCreateWithoutChangedByInput = {
|
|
id?: string
|
|
deviceId?: string | null
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
}
|
|
|
|
export type DeviceHistoryCreateOrConnectWithoutChangedByInput = {
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutChangedByInput, Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput>
|
|
}
|
|
|
|
export type DeviceHistoryCreateManyChangedByInputEnvelope = {
|
|
data: Prisma.DeviceHistoryCreateManyChangedByInput | Prisma.DeviceHistoryCreateManyChangedByInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput = {
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.DeviceHistoryUpdateWithoutChangedByInput, Prisma.DeviceHistoryUncheckedUpdateWithoutChangedByInput>
|
|
create: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutChangedByInput, Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput>
|
|
}
|
|
|
|
export type DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput = {
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.DeviceHistoryUpdateWithoutChangedByInput, Prisma.DeviceHistoryUncheckedUpdateWithoutChangedByInput>
|
|
}
|
|
|
|
export type DeviceHistoryUpdateManyWithWhereWithoutChangedByInput = {
|
|
where: Prisma.DeviceHistoryScalarWhereInput
|
|
data: Prisma.XOR<Prisma.DeviceHistoryUpdateManyMutationInput, Prisma.DeviceHistoryUncheckedUpdateManyWithoutChangedByInput>
|
|
}
|
|
|
|
export type DeviceHistoryScalarWhereInput = {
|
|
AND?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[]
|
|
OR?: Prisma.DeviceHistoryScalarWhereInput[]
|
|
NOT?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"DeviceHistory"> | string
|
|
deviceId?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null
|
|
changeType?: Prisma.EnumDeviceChangeTypeFilter<"DeviceHistory"> | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonFilter<"DeviceHistory">
|
|
changedAt?: Prisma.DateTimeFilter<"DeviceHistory"> | Date | string
|
|
changedById?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null
|
|
}
|
|
|
|
export type DeviceHistoryCreateWithoutDeviceInput = {
|
|
id?: string
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
changedBy?: Prisma.UserCreateNestedOneWithoutHistoryEntriesInput
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedCreateWithoutDeviceInput = {
|
|
id?: string
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
changedById?: string | null
|
|
}
|
|
|
|
export type DeviceHistoryCreateOrConnectWithoutDeviceInput = {
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutDeviceInput, Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput>
|
|
}
|
|
|
|
export type DeviceHistoryCreateManyDeviceInputEnvelope = {
|
|
data: Prisma.DeviceHistoryCreateManyDeviceInput | Prisma.DeviceHistoryCreateManyDeviceInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput = {
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.DeviceHistoryUpdateWithoutDeviceInput, Prisma.DeviceHistoryUncheckedUpdateWithoutDeviceInput>
|
|
create: Prisma.XOR<Prisma.DeviceHistoryCreateWithoutDeviceInput, Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput>
|
|
}
|
|
|
|
export type DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput = {
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.DeviceHistoryUpdateWithoutDeviceInput, Prisma.DeviceHistoryUncheckedUpdateWithoutDeviceInput>
|
|
}
|
|
|
|
export type DeviceHistoryUpdateManyWithWhereWithoutDeviceInput = {
|
|
where: Prisma.DeviceHistoryScalarWhereInput
|
|
data: Prisma.XOR<Prisma.DeviceHistoryUpdateManyMutationInput, Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceInput>
|
|
}
|
|
|
|
export type DeviceHistoryCreateManyChangedByInput = {
|
|
id?: string
|
|
deviceId?: string | null
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
}
|
|
|
|
export type DeviceHistoryUpdateWithoutChangedByInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
device?: Prisma.DeviceUpdateOneWithoutHistoryNestedInput
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedUpdateWithoutChangedByInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedUpdateManyWithoutChangedByInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
deviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type DeviceHistoryCreateManyDeviceInput = {
|
|
id?: string
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Date | string
|
|
changedById?: string | null
|
|
}
|
|
|
|
export type DeviceHistoryUpdateWithoutDeviceInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
changedBy?: Prisma.UserUpdateOneWithoutHistoryEntriesNestedInput
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedUpdateWithoutDeviceInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
changedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type DeviceHistoryUncheckedUpdateManyWithoutDeviceInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType
|
|
snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
changedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
|
|
|
|
export type DeviceHistorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
changeType?: boolean
|
|
snapshot?: boolean
|
|
changedAt?: boolean
|
|
changedById?: boolean
|
|
changedBy?: boolean | Prisma.DeviceHistory$changedByArgs<ExtArgs>
|
|
device?: boolean | Prisma.DeviceHistory$deviceArgs<ExtArgs>
|
|
}, ExtArgs["result"]["deviceHistory"]>
|
|
|
|
export type DeviceHistorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
changeType?: boolean
|
|
snapshot?: boolean
|
|
changedAt?: boolean
|
|
changedById?: boolean
|
|
changedBy?: boolean | Prisma.DeviceHistory$changedByArgs<ExtArgs>
|
|
device?: boolean | Prisma.DeviceHistory$deviceArgs<ExtArgs>
|
|
}, ExtArgs["result"]["deviceHistory"]>
|
|
|
|
export type DeviceHistorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
changeType?: boolean
|
|
snapshot?: boolean
|
|
changedAt?: boolean
|
|
changedById?: boolean
|
|
changedBy?: boolean | Prisma.DeviceHistory$changedByArgs<ExtArgs>
|
|
device?: boolean | Prisma.DeviceHistory$deviceArgs<ExtArgs>
|
|
}, ExtArgs["result"]["deviceHistory"]>
|
|
|
|
export type DeviceHistorySelectScalar = {
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
changeType?: boolean
|
|
snapshot?: boolean
|
|
changedAt?: boolean
|
|
changedById?: boolean
|
|
}
|
|
|
|
export type DeviceHistoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "deviceId" | "changeType" | "snapshot" | "changedAt" | "changedById", ExtArgs["result"]["deviceHistory"]>
|
|
export type DeviceHistoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
changedBy?: boolean | Prisma.DeviceHistory$changedByArgs<ExtArgs>
|
|
device?: boolean | Prisma.DeviceHistory$deviceArgs<ExtArgs>
|
|
}
|
|
export type DeviceHistoryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
changedBy?: boolean | Prisma.DeviceHistory$changedByArgs<ExtArgs>
|
|
device?: boolean | Prisma.DeviceHistory$deviceArgs<ExtArgs>
|
|
}
|
|
export type DeviceHistoryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
changedBy?: boolean | Prisma.DeviceHistory$changedByArgs<ExtArgs>
|
|
device?: boolean | Prisma.DeviceHistory$deviceArgs<ExtArgs>
|
|
}
|
|
|
|
export type $DeviceHistoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "DeviceHistory"
|
|
objects: {
|
|
changedBy: Prisma.$UserPayload<ExtArgs> | null
|
|
device: Prisma.$DevicePayload<ExtArgs> | null
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
deviceId: string | null
|
|
changeType: $Enums.DeviceChangeType
|
|
snapshot: runtime.JsonValue
|
|
changedAt: Date
|
|
changedById: string | null
|
|
}, ExtArgs["result"]["deviceHistory"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type DeviceHistoryGetPayload<S extends boolean | null | undefined | DeviceHistoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload, S>
|
|
|
|
export type DeviceHistoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<DeviceHistoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: DeviceHistoryCountAggregateInputType | true
|
|
}
|
|
|
|
export interface DeviceHistoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DeviceHistory'], meta: { name: 'DeviceHistory' } }
|
|
/**
|
|
* Find zero or one DeviceHistory that matches the filter.
|
|
* @param {DeviceHistoryFindUniqueArgs} args - Arguments to find a DeviceHistory
|
|
* @example
|
|
* // Get one DeviceHistory
|
|
* const deviceHistory = await prisma.deviceHistory.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends DeviceHistoryFindUniqueArgs>(args: Prisma.SelectSubset<T, DeviceHistoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DeviceHistoryClient<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one DeviceHistory that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {DeviceHistoryFindUniqueOrThrowArgs} args - Arguments to find a DeviceHistory
|
|
* @example
|
|
* // Get one DeviceHistory
|
|
* const deviceHistory = await prisma.deviceHistory.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends DeviceHistoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DeviceHistoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeviceHistoryClient<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first DeviceHistory 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 {DeviceHistoryFindFirstArgs} args - Arguments to find a DeviceHistory
|
|
* @example
|
|
* // Get one DeviceHistory
|
|
* const deviceHistory = await prisma.deviceHistory.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends DeviceHistoryFindFirstArgs>(args?: Prisma.SelectSubset<T, DeviceHistoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__DeviceHistoryClient<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first DeviceHistory 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 {DeviceHistoryFindFirstOrThrowArgs} args - Arguments to find a DeviceHistory
|
|
* @example
|
|
* // Get one DeviceHistory
|
|
* const deviceHistory = await prisma.deviceHistory.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends DeviceHistoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DeviceHistoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeviceHistoryClient<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more DeviceHistories 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 {DeviceHistoryFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all DeviceHistories
|
|
* const deviceHistories = await prisma.deviceHistory.findMany()
|
|
*
|
|
* // Get first 10 DeviceHistories
|
|
* const deviceHistories = await prisma.deviceHistory.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const deviceHistoryWithIdOnly = await prisma.deviceHistory.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends DeviceHistoryFindManyArgs>(args?: Prisma.SelectSubset<T, DeviceHistoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a DeviceHistory.
|
|
* @param {DeviceHistoryCreateArgs} args - Arguments to create a DeviceHistory.
|
|
* @example
|
|
* // Create one DeviceHistory
|
|
* const DeviceHistory = await prisma.deviceHistory.create({
|
|
* data: {
|
|
* // ... data to create a DeviceHistory
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends DeviceHistoryCreateArgs>(args: Prisma.SelectSubset<T, DeviceHistoryCreateArgs<ExtArgs>>): Prisma.Prisma__DeviceHistoryClient<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many DeviceHistories.
|
|
* @param {DeviceHistoryCreateManyArgs} args - Arguments to create many DeviceHistories.
|
|
* @example
|
|
* // Create many DeviceHistories
|
|
* const deviceHistory = await prisma.deviceHistory.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends DeviceHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, DeviceHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many DeviceHistories and returns the data saved in the database.
|
|
* @param {DeviceHistoryCreateManyAndReturnArgs} args - Arguments to create many DeviceHistories.
|
|
* @example
|
|
* // Create many DeviceHistories
|
|
* const deviceHistory = await prisma.deviceHistory.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many DeviceHistories and only return the `id`
|
|
* const deviceHistoryWithIdOnly = await prisma.deviceHistory.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 DeviceHistoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DeviceHistoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a DeviceHistory.
|
|
* @param {DeviceHistoryDeleteArgs} args - Arguments to delete one DeviceHistory.
|
|
* @example
|
|
* // Delete one DeviceHistory
|
|
* const DeviceHistory = await prisma.deviceHistory.delete({
|
|
* where: {
|
|
* // ... filter to delete one DeviceHistory
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends DeviceHistoryDeleteArgs>(args: Prisma.SelectSubset<T, DeviceHistoryDeleteArgs<ExtArgs>>): Prisma.Prisma__DeviceHistoryClient<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one DeviceHistory.
|
|
* @param {DeviceHistoryUpdateArgs} args - Arguments to update one DeviceHistory.
|
|
* @example
|
|
* // Update one DeviceHistory
|
|
* const deviceHistory = await prisma.deviceHistory.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends DeviceHistoryUpdateArgs>(args: Prisma.SelectSubset<T, DeviceHistoryUpdateArgs<ExtArgs>>): Prisma.Prisma__DeviceHistoryClient<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more DeviceHistories.
|
|
* @param {DeviceHistoryDeleteManyArgs} args - Arguments to filter DeviceHistories to delete.
|
|
* @example
|
|
* // Delete a few DeviceHistories
|
|
* const { count } = await prisma.deviceHistory.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends DeviceHistoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, DeviceHistoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more DeviceHistories.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeviceHistoryUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many DeviceHistories
|
|
* const deviceHistory = await prisma.deviceHistory.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends DeviceHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, DeviceHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more DeviceHistories and returns the data updated in the database.
|
|
* @param {DeviceHistoryUpdateManyAndReturnArgs} args - Arguments to update many DeviceHistories.
|
|
* @example
|
|
* // Update many DeviceHistories
|
|
* const deviceHistory = await prisma.deviceHistory.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more DeviceHistories and only return the `id`
|
|
* const deviceHistoryWithIdOnly = await prisma.deviceHistory.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 DeviceHistoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DeviceHistoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one DeviceHistory.
|
|
* @param {DeviceHistoryUpsertArgs} args - Arguments to update or create a DeviceHistory.
|
|
* @example
|
|
* // Update or create a DeviceHistory
|
|
* const deviceHistory = await prisma.deviceHistory.upsert({
|
|
* create: {
|
|
* // ... data to create a DeviceHistory
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the DeviceHistory we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends DeviceHistoryUpsertArgs>(args: Prisma.SelectSubset<T, DeviceHistoryUpsertArgs<ExtArgs>>): Prisma.Prisma__DeviceHistoryClient<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of DeviceHistories.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeviceHistoryCountArgs} args - Arguments to filter DeviceHistories to count.
|
|
* @example
|
|
* // Count the number of DeviceHistories
|
|
* const count = await prisma.deviceHistory.count({
|
|
* where: {
|
|
* // ... the filter for the DeviceHistories we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends DeviceHistoryCountArgs>(
|
|
args?: Prisma.Subset<T, DeviceHistoryCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], DeviceHistoryCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a DeviceHistory.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeviceHistoryAggregateArgs} 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 DeviceHistoryAggregateArgs>(args: Prisma.Subset<T, DeviceHistoryAggregateArgs>): Prisma.PrismaPromise<GetDeviceHistoryAggregateType<T>>
|
|
|
|
/**
|
|
* Group by DeviceHistory.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeviceHistoryGroupByArgs} 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 DeviceHistoryGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: DeviceHistoryGroupByArgs['orderBy'] }
|
|
: { orderBy?: DeviceHistoryGroupByArgs['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, DeviceHistoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDeviceHistoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the DeviceHistory model
|
|
*/
|
|
readonly fields: DeviceHistoryFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for DeviceHistory.
|
|
* 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__DeviceHistoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
changedBy<T extends Prisma.DeviceHistory$changedByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DeviceHistory$changedByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
device<T extends Prisma.DeviceHistory$deviceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DeviceHistory$deviceArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<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 DeviceHistory model
|
|
*/
|
|
export interface DeviceHistoryFieldRefs {
|
|
readonly id: Prisma.FieldRef<"DeviceHistory", 'String'>
|
|
readonly deviceId: Prisma.FieldRef<"DeviceHistory", 'String'>
|
|
readonly changeType: Prisma.FieldRef<"DeviceHistory", 'DeviceChangeType'>
|
|
readonly snapshot: Prisma.FieldRef<"DeviceHistory", 'Json'>
|
|
readonly changedAt: Prisma.FieldRef<"DeviceHistory", 'DateTime'>
|
|
readonly changedById: Prisma.FieldRef<"DeviceHistory", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* DeviceHistory findUnique
|
|
*/
|
|
export type DeviceHistoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which DeviceHistory to fetch.
|
|
*/
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory findUniqueOrThrow
|
|
*/
|
|
export type DeviceHistoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which DeviceHistory to fetch.
|
|
*/
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory findFirst
|
|
*/
|
|
export type DeviceHistoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which DeviceHistory to fetch.
|
|
*/
|
|
where?: Prisma.DeviceHistoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of DeviceHistories to fetch.
|
|
*/
|
|
orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for DeviceHistories.
|
|
*/
|
|
cursor?: Prisma.DeviceHistoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` DeviceHistories 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` DeviceHistories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of DeviceHistories.
|
|
*/
|
|
distinct?: Prisma.DeviceHistoryScalarFieldEnum | Prisma.DeviceHistoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory findFirstOrThrow
|
|
*/
|
|
export type DeviceHistoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which DeviceHistory to fetch.
|
|
*/
|
|
where?: Prisma.DeviceHistoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of DeviceHistories to fetch.
|
|
*/
|
|
orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for DeviceHistories.
|
|
*/
|
|
cursor?: Prisma.DeviceHistoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` DeviceHistories 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` DeviceHistories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of DeviceHistories.
|
|
*/
|
|
distinct?: Prisma.DeviceHistoryScalarFieldEnum | Prisma.DeviceHistoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory findMany
|
|
*/
|
|
export type DeviceHistoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which DeviceHistories to fetch.
|
|
*/
|
|
where?: Prisma.DeviceHistoryWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of DeviceHistories to fetch.
|
|
*/
|
|
orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing DeviceHistories.
|
|
*/
|
|
cursor?: Prisma.DeviceHistoryWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` DeviceHistories 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` DeviceHistories.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.DeviceHistoryScalarFieldEnum | Prisma.DeviceHistoryScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory create
|
|
*/
|
|
export type DeviceHistoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a DeviceHistory.
|
|
*/
|
|
data: Prisma.XOR<Prisma.DeviceHistoryCreateInput, Prisma.DeviceHistoryUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory createMany
|
|
*/
|
|
export type DeviceHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many DeviceHistories.
|
|
*/
|
|
data: Prisma.DeviceHistoryCreateManyInput | Prisma.DeviceHistoryCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory createManyAndReturn
|
|
*/
|
|
export type DeviceHistoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many DeviceHistories.
|
|
*/
|
|
data: Prisma.DeviceHistoryCreateManyInput | Prisma.DeviceHistoryCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory update
|
|
*/
|
|
export type DeviceHistoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a DeviceHistory.
|
|
*/
|
|
data: Prisma.XOR<Prisma.DeviceHistoryUpdateInput, Prisma.DeviceHistoryUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which DeviceHistory to update.
|
|
*/
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory updateMany
|
|
*/
|
|
export type DeviceHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update DeviceHistories.
|
|
*/
|
|
data: Prisma.XOR<Prisma.DeviceHistoryUpdateManyMutationInput, Prisma.DeviceHistoryUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which DeviceHistories to update
|
|
*/
|
|
where?: Prisma.DeviceHistoryWhereInput
|
|
/**
|
|
* Limit how many DeviceHistories to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory updateManyAndReturn
|
|
*/
|
|
export type DeviceHistoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update DeviceHistories.
|
|
*/
|
|
data: Prisma.XOR<Prisma.DeviceHistoryUpdateManyMutationInput, Prisma.DeviceHistoryUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which DeviceHistories to update
|
|
*/
|
|
where?: Prisma.DeviceHistoryWhereInput
|
|
/**
|
|
* Limit how many DeviceHistories to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory upsert
|
|
*/
|
|
export type DeviceHistoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the DeviceHistory to update in case it exists.
|
|
*/
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
/**
|
|
* In case the DeviceHistory found by the `where` argument doesn't exist, create a new DeviceHistory with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.DeviceHistoryCreateInput, Prisma.DeviceHistoryUncheckedCreateInput>
|
|
/**
|
|
* In case the DeviceHistory was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.DeviceHistoryUpdateInput, Prisma.DeviceHistoryUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory delete
|
|
*/
|
|
export type DeviceHistoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which DeviceHistory to delete.
|
|
*/
|
|
where: Prisma.DeviceHistoryWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory deleteMany
|
|
*/
|
|
export type DeviceHistoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which DeviceHistories to delete
|
|
*/
|
|
where?: Prisma.DeviceHistoryWhereInput
|
|
/**
|
|
* Limit how many DeviceHistories to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory.changedBy
|
|
*/
|
|
export type DeviceHistory$changedByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory.device
|
|
*/
|
|
export type DeviceHistory$deviceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Device
|
|
*/
|
|
select?: Prisma.DeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Device
|
|
*/
|
|
omit?: Prisma.DeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceInclude<ExtArgs> | null
|
|
where?: Prisma.DeviceWhereInput
|
|
}
|
|
|
|
/**
|
|
* DeviceHistory without action
|
|
*/
|
|
export type DeviceHistoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeviceHistory
|
|
*/
|
|
select?: Prisma.DeviceHistorySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the DeviceHistory
|
|
*/
|
|
omit?: Prisma.DeviceHistoryOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeviceHistoryInclude<ExtArgs> | null
|
|
}
|