2025-11-26 08:02:48 +01:00

3686 lines
165 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 `Device` 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 Device
*
*/
export type DeviceModel = runtime.Types.Result.DefaultSelection<Prisma.$DevicePayload>
export type AggregateDevice = {
_count: DeviceCountAggregateOutputType | null
_min: DeviceMinAggregateOutputType | null
_max: DeviceMaxAggregateOutputType | null
}
export type DeviceMinAggregateOutputType = {
inventoryNumber: string | null
name: string | null
manufacturer: string | null
model: string | null
serialNumber: string | null
productNumber: string | null
comment: string | null
ipv4Address: string | null
ipv6Address: string | null
macAddress: string | null
username: string | null
passwordHash: string | null
groupId: string | null
locationId: string | null
loanedTo: string | null
loanedFrom: Date | null
loanedUntil: Date | null
loanComment: string | null
createdAt: Date | null
updatedAt: Date | null
createdById: string | null
updatedById: string | null
parentDeviceId: string | null
}
export type DeviceMaxAggregateOutputType = {
inventoryNumber: string | null
name: string | null
manufacturer: string | null
model: string | null
serialNumber: string | null
productNumber: string | null
comment: string | null
ipv4Address: string | null
ipv6Address: string | null
macAddress: string | null
username: string | null
passwordHash: string | null
groupId: string | null
locationId: string | null
loanedTo: string | null
loanedFrom: Date | null
loanedUntil: Date | null
loanComment: string | null
createdAt: Date | null
updatedAt: Date | null
createdById: string | null
updatedById: string | null
parentDeviceId: string | null
}
export type DeviceCountAggregateOutputType = {
inventoryNumber: number
name: number
manufacturer: number
model: number
serialNumber: number
productNumber: number
comment: number
ipv4Address: number
ipv6Address: number
macAddress: number
username: number
passwordHash: number
groupId: number
locationId: number
loanedTo: number
loanedFrom: number
loanedUntil: number
loanComment: number
createdAt: number
updatedAt: number
createdById: number
updatedById: number
parentDeviceId: number
_all: number
}
export type DeviceMinAggregateInputType = {
inventoryNumber?: true
name?: true
manufacturer?: true
model?: true
serialNumber?: true
productNumber?: true
comment?: true
ipv4Address?: true
ipv6Address?: true
macAddress?: true
username?: true
passwordHash?: true
groupId?: true
locationId?: true
loanedTo?: true
loanedFrom?: true
loanedUntil?: true
loanComment?: true
createdAt?: true
updatedAt?: true
createdById?: true
updatedById?: true
parentDeviceId?: true
}
export type DeviceMaxAggregateInputType = {
inventoryNumber?: true
name?: true
manufacturer?: true
model?: true
serialNumber?: true
productNumber?: true
comment?: true
ipv4Address?: true
ipv6Address?: true
macAddress?: true
username?: true
passwordHash?: true
groupId?: true
locationId?: true
loanedTo?: true
loanedFrom?: true
loanedUntil?: true
loanComment?: true
createdAt?: true
updatedAt?: true
createdById?: true
updatedById?: true
parentDeviceId?: true
}
export type DeviceCountAggregateInputType = {
inventoryNumber?: true
name?: true
manufacturer?: true
model?: true
serialNumber?: true
productNumber?: true
comment?: true
ipv4Address?: true
ipv6Address?: true
macAddress?: true
username?: true
passwordHash?: true
groupId?: true
locationId?: true
loanedTo?: true
loanedFrom?: true
loanedUntil?: true
loanComment?: true
createdAt?: true
updatedAt?: true
createdById?: true
updatedById?: true
parentDeviceId?: true
_all?: true
}
export type DeviceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Device to aggregate.
*/
where?: Prisma.DeviceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Devices to fetch.
*/
orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.DeviceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Devices 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` Devices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Devices
**/
_count?: true | DeviceCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: DeviceMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: DeviceMaxAggregateInputType
}
export type GetDeviceAggregateType<T extends DeviceAggregateArgs> = {
[P in keyof T & keyof AggregateDevice]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateDevice[P]>
: Prisma.GetScalarType<T[P], AggregateDevice[P]>
}
export type DeviceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.DeviceWhereInput
orderBy?: Prisma.DeviceOrderByWithAggregationInput | Prisma.DeviceOrderByWithAggregationInput[]
by: Prisma.DeviceScalarFieldEnum[] | Prisma.DeviceScalarFieldEnum
having?: Prisma.DeviceScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: DeviceCountAggregateInputType | true
_min?: DeviceMinAggregateInputType
_max?: DeviceMaxAggregateInputType
}
export type DeviceGroupByOutputType = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber: string | null
productNumber: string | null
comment: string | null
ipv4Address: string | null
ipv6Address: string | null
macAddress: string | null
username: string | null
passwordHash: string | null
groupId: string | null
locationId: string | null
loanedTo: string | null
loanedFrom: Date | null
loanedUntil: Date | null
loanComment: string | null
createdAt: Date
updatedAt: Date
createdById: string | null
updatedById: string | null
parentDeviceId: string | null
_count: DeviceCountAggregateOutputType | null
_min: DeviceMinAggregateOutputType | null
_max: DeviceMaxAggregateOutputType | null
}
type GetDeviceGroupByPayload<T extends DeviceGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<DeviceGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof DeviceGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], DeviceGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], DeviceGroupByOutputType[P]>
}
>
>
export type DeviceWhereInput = {
AND?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[]
OR?: Prisma.DeviceWhereInput[]
NOT?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[]
inventoryNumber?: Prisma.StringFilter<"Device"> | string
name?: Prisma.StringFilter<"Device"> | string
manufacturer?: Prisma.StringFilter<"Device"> | string
model?: Prisma.StringFilter<"Device"> | string
serialNumber?: Prisma.StringNullableFilter<"Device"> | string | null
productNumber?: Prisma.StringNullableFilter<"Device"> | string | null
comment?: Prisma.StringNullableFilter<"Device"> | string | null
ipv4Address?: Prisma.StringNullableFilter<"Device"> | string | null
ipv6Address?: Prisma.StringNullableFilter<"Device"> | string | null
macAddress?: Prisma.StringNullableFilter<"Device"> | string | null
username?: Prisma.StringNullableFilter<"Device"> | string | null
passwordHash?: Prisma.StringNullableFilter<"Device"> | string | null
groupId?: Prisma.StringNullableFilter<"Device"> | string | null
locationId?: Prisma.StringNullableFilter<"Device"> | string | null
loanedTo?: Prisma.StringNullableFilter<"Device"> | string | null
loanedFrom?: Prisma.DateTimeNullableFilter<"Device"> | Date | string | null
loanedUntil?: Prisma.DateTimeNullableFilter<"Device"> | Date | string | null
loanComment?: Prisma.StringNullableFilter<"Device"> | string | null
createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string
createdById?: Prisma.StringNullableFilter<"Device"> | string | null
updatedById?: Prisma.StringNullableFilter<"Device"> | string | null
parentDeviceId?: Prisma.StringNullableFilter<"Device"> | string | null
parentDevice?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
accessories?: Prisma.DeviceListRelationFilter
createdBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
updatedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
group?: Prisma.XOR<Prisma.DeviceGroupNullableScalarRelationFilter, Prisma.DeviceGroupWhereInput> | null
location?: Prisma.XOR<Prisma.LocationNullableScalarRelationFilter, Prisma.LocationWhereInput> | null
history?: Prisma.DeviceHistoryListRelationFilter
tags?: Prisma.TagListRelationFilter
}
export type DeviceOrderByWithRelationInput = {
inventoryNumber?: Prisma.SortOrder
name?: Prisma.SortOrder
manufacturer?: Prisma.SortOrder
model?: Prisma.SortOrder
serialNumber?: Prisma.SortOrderInput | Prisma.SortOrder
productNumber?: Prisma.SortOrderInput | Prisma.SortOrder
comment?: Prisma.SortOrderInput | Prisma.SortOrder
ipv4Address?: Prisma.SortOrderInput | Prisma.SortOrder
ipv6Address?: Prisma.SortOrderInput | Prisma.SortOrder
macAddress?: Prisma.SortOrderInput | Prisma.SortOrder
username?: Prisma.SortOrderInput | Prisma.SortOrder
passwordHash?: Prisma.SortOrderInput | Prisma.SortOrder
groupId?: Prisma.SortOrderInput | Prisma.SortOrder
locationId?: Prisma.SortOrderInput | Prisma.SortOrder
loanedTo?: Prisma.SortOrderInput | Prisma.SortOrder
loanedFrom?: Prisma.SortOrderInput | Prisma.SortOrder
loanedUntil?: Prisma.SortOrderInput | Prisma.SortOrder
loanComment?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
createdById?: Prisma.SortOrderInput | Prisma.SortOrder
updatedById?: Prisma.SortOrderInput | Prisma.SortOrder
parentDeviceId?: Prisma.SortOrderInput | Prisma.SortOrder
parentDevice?: Prisma.DeviceOrderByWithRelationInput
accessories?: Prisma.DeviceOrderByRelationAggregateInput
createdBy?: Prisma.UserOrderByWithRelationInput
updatedBy?: Prisma.UserOrderByWithRelationInput
group?: Prisma.DeviceGroupOrderByWithRelationInput
location?: Prisma.LocationOrderByWithRelationInput
history?: Prisma.DeviceHistoryOrderByRelationAggregateInput
tags?: Prisma.TagOrderByRelationAggregateInput
}
export type DeviceWhereUniqueInput = Prisma.AtLeast<{
inventoryNumber?: string
ipv4Address?: string
ipv6Address?: string
macAddress?: string
username?: string
passwordHash?: string
AND?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[]
OR?: Prisma.DeviceWhereInput[]
NOT?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[]
name?: Prisma.StringFilter<"Device"> | string
manufacturer?: Prisma.StringFilter<"Device"> | string
model?: Prisma.StringFilter<"Device"> | string
serialNumber?: Prisma.StringNullableFilter<"Device"> | string | null
productNumber?: Prisma.StringNullableFilter<"Device"> | string | null
comment?: Prisma.StringNullableFilter<"Device"> | string | null
groupId?: Prisma.StringNullableFilter<"Device"> | string | null
locationId?: Prisma.StringNullableFilter<"Device"> | string | null
loanedTo?: Prisma.StringNullableFilter<"Device"> | string | null
loanedFrom?: Prisma.DateTimeNullableFilter<"Device"> | Date | string | null
loanedUntil?: Prisma.DateTimeNullableFilter<"Device"> | Date | string | null
loanComment?: Prisma.StringNullableFilter<"Device"> | string | null
createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string
createdById?: Prisma.StringNullableFilter<"Device"> | string | null
updatedById?: Prisma.StringNullableFilter<"Device"> | string | null
parentDeviceId?: Prisma.StringNullableFilter<"Device"> | string | null
parentDevice?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
accessories?: Prisma.DeviceListRelationFilter
createdBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
updatedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
group?: Prisma.XOR<Prisma.DeviceGroupNullableScalarRelationFilter, Prisma.DeviceGroupWhereInput> | null
location?: Prisma.XOR<Prisma.LocationNullableScalarRelationFilter, Prisma.LocationWhereInput> | null
history?: Prisma.DeviceHistoryListRelationFilter
tags?: Prisma.TagListRelationFilter
}, "inventoryNumber" | "ipv4Address" | "ipv6Address" | "macAddress" | "username" | "passwordHash">
export type DeviceOrderByWithAggregationInput = {
inventoryNumber?: Prisma.SortOrder
name?: Prisma.SortOrder
manufacturer?: Prisma.SortOrder
model?: Prisma.SortOrder
serialNumber?: Prisma.SortOrderInput | Prisma.SortOrder
productNumber?: Prisma.SortOrderInput | Prisma.SortOrder
comment?: Prisma.SortOrderInput | Prisma.SortOrder
ipv4Address?: Prisma.SortOrderInput | Prisma.SortOrder
ipv6Address?: Prisma.SortOrderInput | Prisma.SortOrder
macAddress?: Prisma.SortOrderInput | Prisma.SortOrder
username?: Prisma.SortOrderInput | Prisma.SortOrder
passwordHash?: Prisma.SortOrderInput | Prisma.SortOrder
groupId?: Prisma.SortOrderInput | Prisma.SortOrder
locationId?: Prisma.SortOrderInput | Prisma.SortOrder
loanedTo?: Prisma.SortOrderInput | Prisma.SortOrder
loanedFrom?: Prisma.SortOrderInput | Prisma.SortOrder
loanedUntil?: Prisma.SortOrderInput | Prisma.SortOrder
loanComment?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
createdById?: Prisma.SortOrderInput | Prisma.SortOrder
updatedById?: Prisma.SortOrderInput | Prisma.SortOrder
parentDeviceId?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.DeviceCountOrderByAggregateInput
_max?: Prisma.DeviceMaxOrderByAggregateInput
_min?: Prisma.DeviceMinOrderByAggregateInput
}
export type DeviceScalarWhereWithAggregatesInput = {
AND?: Prisma.DeviceScalarWhereWithAggregatesInput | Prisma.DeviceScalarWhereWithAggregatesInput[]
OR?: Prisma.DeviceScalarWhereWithAggregatesInput[]
NOT?: Prisma.DeviceScalarWhereWithAggregatesInput | Prisma.DeviceScalarWhereWithAggregatesInput[]
inventoryNumber?: Prisma.StringWithAggregatesFilter<"Device"> | string
name?: Prisma.StringWithAggregatesFilter<"Device"> | string
manufacturer?: Prisma.StringWithAggregatesFilter<"Device"> | string
model?: Prisma.StringWithAggregatesFilter<"Device"> | string
serialNumber?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
productNumber?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
comment?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
ipv4Address?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
ipv6Address?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
macAddress?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
username?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
passwordHash?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
groupId?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
locationId?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
loanedTo?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
loanedFrom?: Prisma.DateTimeNullableWithAggregatesFilter<"Device"> | Date | string | null
loanedUntil?: Prisma.DateTimeNullableWithAggregatesFilter<"Device"> | Date | string | null
loanComment?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Device"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Device"> | Date | string
createdById?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
updatedById?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
parentDeviceId?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null
}
export type DeviceCreateInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
parentDevice?: Prisma.DeviceCreateNestedOneWithoutAccessoriesInput
accessories?: Prisma.DeviceCreateNestedManyWithoutParentDeviceInput
createdBy?: Prisma.UserCreateNestedOneWithoutDevicesCreatedInput
updatedBy?: Prisma.UserCreateNestedOneWithoutDevicesUpdatedInput
group?: Prisma.DeviceGroupCreateNestedOneWithoutDevicesInput
location?: Prisma.LocationCreateNestedOneWithoutDevicesInput
history?: Prisma.DeviceHistoryCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagCreateNestedManyWithoutDevicesInput
}
export type DeviceUncheckedCreateInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
accessories?: Prisma.DeviceUncheckedCreateNestedManyWithoutParentDeviceInput
history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput
}
export type DeviceUpdateInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
parentDevice?: Prisma.DeviceUpdateOneWithoutAccessoriesNestedInput
accessories?: Prisma.DeviceUpdateManyWithoutParentDeviceNestedInput
createdBy?: Prisma.UserUpdateOneWithoutDevicesCreatedNestedInput
updatedBy?: Prisma.UserUpdateOneWithoutDevicesUpdatedNestedInput
group?: Prisma.DeviceGroupUpdateOneWithoutDevicesNestedInput
location?: Prisma.LocationUpdateOneWithoutDevicesNestedInput
history?: Prisma.DeviceHistoryUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accessories?: Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput
history?: Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUncheckedUpdateManyWithoutDevicesNestedInput
}
export type DeviceCreateManyInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
}
export type DeviceUpdateManyMutationInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type DeviceUncheckedUpdateManyInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type DeviceListRelationFilter = {
every?: Prisma.DeviceWhereInput
some?: Prisma.DeviceWhereInput
none?: Prisma.DeviceWhereInput
}
export type DeviceOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type DeviceNullableScalarRelationFilter = {
is?: Prisma.DeviceWhereInput | null
isNot?: Prisma.DeviceWhereInput | null
}
export type DeviceCountOrderByAggregateInput = {
inventoryNumber?: Prisma.SortOrder
name?: Prisma.SortOrder
manufacturer?: Prisma.SortOrder
model?: Prisma.SortOrder
serialNumber?: Prisma.SortOrder
productNumber?: Prisma.SortOrder
comment?: Prisma.SortOrder
ipv4Address?: Prisma.SortOrder
ipv6Address?: Prisma.SortOrder
macAddress?: Prisma.SortOrder
username?: Prisma.SortOrder
passwordHash?: Prisma.SortOrder
groupId?: Prisma.SortOrder
locationId?: Prisma.SortOrder
loanedTo?: Prisma.SortOrder
loanedFrom?: Prisma.SortOrder
loanedUntil?: Prisma.SortOrder
loanComment?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
createdById?: Prisma.SortOrder
updatedById?: Prisma.SortOrder
parentDeviceId?: Prisma.SortOrder
}
export type DeviceMaxOrderByAggregateInput = {
inventoryNumber?: Prisma.SortOrder
name?: Prisma.SortOrder
manufacturer?: Prisma.SortOrder
model?: Prisma.SortOrder
serialNumber?: Prisma.SortOrder
productNumber?: Prisma.SortOrder
comment?: Prisma.SortOrder
ipv4Address?: Prisma.SortOrder
ipv6Address?: Prisma.SortOrder
macAddress?: Prisma.SortOrder
username?: Prisma.SortOrder
passwordHash?: Prisma.SortOrder
groupId?: Prisma.SortOrder
locationId?: Prisma.SortOrder
loanedTo?: Prisma.SortOrder
loanedFrom?: Prisma.SortOrder
loanedUntil?: Prisma.SortOrder
loanComment?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
createdById?: Prisma.SortOrder
updatedById?: Prisma.SortOrder
parentDeviceId?: Prisma.SortOrder
}
export type DeviceMinOrderByAggregateInput = {
inventoryNumber?: Prisma.SortOrder
name?: Prisma.SortOrder
manufacturer?: Prisma.SortOrder
model?: Prisma.SortOrder
serialNumber?: Prisma.SortOrder
productNumber?: Prisma.SortOrder
comment?: Prisma.SortOrder
ipv4Address?: Prisma.SortOrder
ipv6Address?: Prisma.SortOrder
macAddress?: Prisma.SortOrder
username?: Prisma.SortOrder
passwordHash?: Prisma.SortOrder
groupId?: Prisma.SortOrder
locationId?: Prisma.SortOrder
loanedTo?: Prisma.SortOrder
loanedFrom?: Prisma.SortOrder
loanedUntil?: Prisma.SortOrder
loanComment?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
createdById?: Prisma.SortOrder
updatedById?: Prisma.SortOrder
parentDeviceId?: Prisma.SortOrder
}
export type DeviceCreateNestedManyWithoutCreatedByInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutCreatedByInput, Prisma.DeviceUncheckedCreateWithoutCreatedByInput> | Prisma.DeviceCreateWithoutCreatedByInput[] | Prisma.DeviceUncheckedCreateWithoutCreatedByInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutCreatedByInput | Prisma.DeviceCreateOrConnectWithoutCreatedByInput[]
createMany?: Prisma.DeviceCreateManyCreatedByInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceCreateNestedManyWithoutUpdatedByInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutUpdatedByInput, Prisma.DeviceUncheckedCreateWithoutUpdatedByInput> | Prisma.DeviceCreateWithoutUpdatedByInput[] | Prisma.DeviceUncheckedCreateWithoutUpdatedByInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutUpdatedByInput | Prisma.DeviceCreateOrConnectWithoutUpdatedByInput[]
createMany?: Prisma.DeviceCreateManyUpdatedByInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUncheckedCreateNestedManyWithoutCreatedByInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutCreatedByInput, Prisma.DeviceUncheckedCreateWithoutCreatedByInput> | Prisma.DeviceCreateWithoutCreatedByInput[] | Prisma.DeviceUncheckedCreateWithoutCreatedByInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutCreatedByInput | Prisma.DeviceCreateOrConnectWithoutCreatedByInput[]
createMany?: Prisma.DeviceCreateManyCreatedByInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUncheckedCreateNestedManyWithoutUpdatedByInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutUpdatedByInput, Prisma.DeviceUncheckedCreateWithoutUpdatedByInput> | Prisma.DeviceCreateWithoutUpdatedByInput[] | Prisma.DeviceUncheckedCreateWithoutUpdatedByInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutUpdatedByInput | Prisma.DeviceCreateOrConnectWithoutUpdatedByInput[]
createMany?: Prisma.DeviceCreateManyUpdatedByInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUpdateManyWithoutCreatedByNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutCreatedByInput, Prisma.DeviceUncheckedCreateWithoutCreatedByInput> | Prisma.DeviceCreateWithoutCreatedByInput[] | Prisma.DeviceUncheckedCreateWithoutCreatedByInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutCreatedByInput | Prisma.DeviceCreateOrConnectWithoutCreatedByInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.DeviceUpsertWithWhereUniqueWithoutCreatedByInput[]
createMany?: Prisma.DeviceCreateManyCreatedByInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.DeviceUpdateWithWhereUniqueWithoutCreatedByInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutCreatedByInput | Prisma.DeviceUpdateManyWithWhereWithoutCreatedByInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceUpdateManyWithoutUpdatedByNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutUpdatedByInput, Prisma.DeviceUncheckedCreateWithoutUpdatedByInput> | Prisma.DeviceCreateWithoutUpdatedByInput[] | Prisma.DeviceUncheckedCreateWithoutUpdatedByInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutUpdatedByInput | Prisma.DeviceCreateOrConnectWithoutUpdatedByInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutUpdatedByInput | Prisma.DeviceUpsertWithWhereUniqueWithoutUpdatedByInput[]
createMany?: Prisma.DeviceCreateManyUpdatedByInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutUpdatedByInput | Prisma.DeviceUpdateWithWhereUniqueWithoutUpdatedByInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutUpdatedByInput | Prisma.DeviceUpdateManyWithWhereWithoutUpdatedByInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceUncheckedUpdateManyWithoutCreatedByNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutCreatedByInput, Prisma.DeviceUncheckedCreateWithoutCreatedByInput> | Prisma.DeviceCreateWithoutCreatedByInput[] | Prisma.DeviceUncheckedCreateWithoutCreatedByInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutCreatedByInput | Prisma.DeviceCreateOrConnectWithoutCreatedByInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.DeviceUpsertWithWhereUniqueWithoutCreatedByInput[]
createMany?: Prisma.DeviceCreateManyCreatedByInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.DeviceUpdateWithWhereUniqueWithoutCreatedByInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutCreatedByInput | Prisma.DeviceUpdateManyWithWhereWithoutCreatedByInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceUncheckedUpdateManyWithoutUpdatedByNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutUpdatedByInput, Prisma.DeviceUncheckedCreateWithoutUpdatedByInput> | Prisma.DeviceCreateWithoutUpdatedByInput[] | Prisma.DeviceUncheckedCreateWithoutUpdatedByInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutUpdatedByInput | Prisma.DeviceCreateOrConnectWithoutUpdatedByInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutUpdatedByInput | Prisma.DeviceUpsertWithWhereUniqueWithoutUpdatedByInput[]
createMany?: Prisma.DeviceCreateManyUpdatedByInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutUpdatedByInput | Prisma.DeviceUpdateWithWhereUniqueWithoutUpdatedByInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutUpdatedByInput | Prisma.DeviceUpdateManyWithWhereWithoutUpdatedByInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceCreateNestedManyWithoutGroupInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutGroupInput, Prisma.DeviceUncheckedCreateWithoutGroupInput> | Prisma.DeviceCreateWithoutGroupInput[] | Prisma.DeviceUncheckedCreateWithoutGroupInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutGroupInput | Prisma.DeviceCreateOrConnectWithoutGroupInput[]
createMany?: Prisma.DeviceCreateManyGroupInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUncheckedCreateNestedManyWithoutGroupInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutGroupInput, Prisma.DeviceUncheckedCreateWithoutGroupInput> | Prisma.DeviceCreateWithoutGroupInput[] | Prisma.DeviceUncheckedCreateWithoutGroupInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutGroupInput | Prisma.DeviceCreateOrConnectWithoutGroupInput[]
createMany?: Prisma.DeviceCreateManyGroupInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUpdateManyWithoutGroupNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutGroupInput, Prisma.DeviceUncheckedCreateWithoutGroupInput> | Prisma.DeviceCreateWithoutGroupInput[] | Prisma.DeviceUncheckedCreateWithoutGroupInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutGroupInput | Prisma.DeviceCreateOrConnectWithoutGroupInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutGroupInput | Prisma.DeviceUpsertWithWhereUniqueWithoutGroupInput[]
createMany?: Prisma.DeviceCreateManyGroupInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutGroupInput | Prisma.DeviceUpdateWithWhereUniqueWithoutGroupInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutGroupInput | Prisma.DeviceUpdateManyWithWhereWithoutGroupInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceUncheckedUpdateManyWithoutGroupNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutGroupInput, Prisma.DeviceUncheckedCreateWithoutGroupInput> | Prisma.DeviceCreateWithoutGroupInput[] | Prisma.DeviceUncheckedCreateWithoutGroupInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutGroupInput | Prisma.DeviceCreateOrConnectWithoutGroupInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutGroupInput | Prisma.DeviceUpsertWithWhereUniqueWithoutGroupInput[]
createMany?: Prisma.DeviceCreateManyGroupInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutGroupInput | Prisma.DeviceUpdateWithWhereUniqueWithoutGroupInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutGroupInput | Prisma.DeviceUpdateManyWithWhereWithoutGroupInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceCreateNestedManyWithoutLocationInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutLocationInput, Prisma.DeviceUncheckedCreateWithoutLocationInput> | Prisma.DeviceCreateWithoutLocationInput[] | Prisma.DeviceUncheckedCreateWithoutLocationInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutLocationInput | Prisma.DeviceCreateOrConnectWithoutLocationInput[]
createMany?: Prisma.DeviceCreateManyLocationInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUncheckedCreateNestedManyWithoutLocationInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutLocationInput, Prisma.DeviceUncheckedCreateWithoutLocationInput> | Prisma.DeviceCreateWithoutLocationInput[] | Prisma.DeviceUncheckedCreateWithoutLocationInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutLocationInput | Prisma.DeviceCreateOrConnectWithoutLocationInput[]
createMany?: Prisma.DeviceCreateManyLocationInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUpdateManyWithoutLocationNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutLocationInput, Prisma.DeviceUncheckedCreateWithoutLocationInput> | Prisma.DeviceCreateWithoutLocationInput[] | Prisma.DeviceUncheckedCreateWithoutLocationInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutLocationInput | Prisma.DeviceCreateOrConnectWithoutLocationInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutLocationInput | Prisma.DeviceUpsertWithWhereUniqueWithoutLocationInput[]
createMany?: Prisma.DeviceCreateManyLocationInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutLocationInput | Prisma.DeviceUpdateWithWhereUniqueWithoutLocationInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutLocationInput | Prisma.DeviceUpdateManyWithWhereWithoutLocationInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceUncheckedUpdateManyWithoutLocationNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutLocationInput, Prisma.DeviceUncheckedCreateWithoutLocationInput> | Prisma.DeviceCreateWithoutLocationInput[] | Prisma.DeviceUncheckedCreateWithoutLocationInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutLocationInput | Prisma.DeviceCreateOrConnectWithoutLocationInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutLocationInput | Prisma.DeviceUpsertWithWhereUniqueWithoutLocationInput[]
createMany?: Prisma.DeviceCreateManyLocationInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutLocationInput | Prisma.DeviceUpdateWithWhereUniqueWithoutLocationInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutLocationInput | Prisma.DeviceUpdateManyWithWhereWithoutLocationInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceCreateNestedOneWithoutAccessoriesInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAccessoriesInput, Prisma.DeviceUncheckedCreateWithoutAccessoriesInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccessoriesInput
connect?: Prisma.DeviceWhereUniqueInput
}
export type DeviceCreateNestedManyWithoutParentDeviceInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutParentDeviceInput, Prisma.DeviceUncheckedCreateWithoutParentDeviceInput> | Prisma.DeviceCreateWithoutParentDeviceInput[] | Prisma.DeviceUncheckedCreateWithoutParentDeviceInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutParentDeviceInput | Prisma.DeviceCreateOrConnectWithoutParentDeviceInput[]
createMany?: Prisma.DeviceCreateManyParentDeviceInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUncheckedCreateNestedManyWithoutParentDeviceInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutParentDeviceInput, Prisma.DeviceUncheckedCreateWithoutParentDeviceInput> | Prisma.DeviceCreateWithoutParentDeviceInput[] | Prisma.DeviceUncheckedCreateWithoutParentDeviceInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutParentDeviceInput | Prisma.DeviceCreateOrConnectWithoutParentDeviceInput[]
createMany?: Prisma.DeviceCreateManyParentDeviceInputEnvelope
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type DeviceUpdateOneWithoutAccessoriesNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutAccessoriesInput, Prisma.DeviceUncheckedCreateWithoutAccessoriesInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccessoriesInput
upsert?: Prisma.DeviceUpsertWithoutAccessoriesInput
disconnect?: Prisma.DeviceWhereInput | boolean
delete?: Prisma.DeviceWhereInput | boolean
connect?: Prisma.DeviceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.DeviceUpdateToOneWithWhereWithoutAccessoriesInput, Prisma.DeviceUpdateWithoutAccessoriesInput>, Prisma.DeviceUncheckedUpdateWithoutAccessoriesInput>
}
export type DeviceUpdateManyWithoutParentDeviceNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutParentDeviceInput, Prisma.DeviceUncheckedCreateWithoutParentDeviceInput> | Prisma.DeviceCreateWithoutParentDeviceInput[] | Prisma.DeviceUncheckedCreateWithoutParentDeviceInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutParentDeviceInput | Prisma.DeviceCreateOrConnectWithoutParentDeviceInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutParentDeviceInput | Prisma.DeviceUpsertWithWhereUniqueWithoutParentDeviceInput[]
createMany?: Prisma.DeviceCreateManyParentDeviceInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutParentDeviceInput | Prisma.DeviceUpdateWithWhereUniqueWithoutParentDeviceInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutParentDeviceInput | Prisma.DeviceUpdateManyWithWhereWithoutParentDeviceInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutParentDeviceInput, Prisma.DeviceUncheckedCreateWithoutParentDeviceInput> | Prisma.DeviceCreateWithoutParentDeviceInput[] | Prisma.DeviceUncheckedCreateWithoutParentDeviceInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutParentDeviceInput | Prisma.DeviceCreateOrConnectWithoutParentDeviceInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutParentDeviceInput | Prisma.DeviceUpsertWithWhereUniqueWithoutParentDeviceInput[]
createMany?: Prisma.DeviceCreateManyParentDeviceInputEnvelope
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutParentDeviceInput | Prisma.DeviceUpdateWithWhereUniqueWithoutParentDeviceInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutParentDeviceInput | Prisma.DeviceUpdateManyWithWhereWithoutParentDeviceInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceCreateNestedManyWithoutTagsInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutTagsInput, Prisma.DeviceUncheckedCreateWithoutTagsInput> | Prisma.DeviceCreateWithoutTagsInput[] | Prisma.DeviceUncheckedCreateWithoutTagsInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutTagsInput | Prisma.DeviceCreateOrConnectWithoutTagsInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUncheckedCreateNestedManyWithoutTagsInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutTagsInput, Prisma.DeviceUncheckedCreateWithoutTagsInput> | Prisma.DeviceCreateWithoutTagsInput[] | Prisma.DeviceUncheckedCreateWithoutTagsInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutTagsInput | Prisma.DeviceCreateOrConnectWithoutTagsInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
}
export type DeviceUpdateManyWithoutTagsNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutTagsInput, Prisma.DeviceUncheckedCreateWithoutTagsInput> | Prisma.DeviceCreateWithoutTagsInput[] | Prisma.DeviceUncheckedCreateWithoutTagsInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutTagsInput | Prisma.DeviceCreateOrConnectWithoutTagsInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutTagsInput | Prisma.DeviceUpsertWithWhereUniqueWithoutTagsInput[]
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutTagsInput | Prisma.DeviceUpdateWithWhereUniqueWithoutTagsInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutTagsInput | Prisma.DeviceUpdateManyWithWhereWithoutTagsInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceUncheckedUpdateManyWithoutTagsNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutTagsInput, Prisma.DeviceUncheckedCreateWithoutTagsInput> | Prisma.DeviceCreateWithoutTagsInput[] | Prisma.DeviceUncheckedCreateWithoutTagsInput[]
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutTagsInput | Prisma.DeviceCreateOrConnectWithoutTagsInput[]
upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutTagsInput | Prisma.DeviceUpsertWithWhereUniqueWithoutTagsInput[]
set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[]
update?: Prisma.DeviceUpdateWithWhereUniqueWithoutTagsInput | Prisma.DeviceUpdateWithWhereUniqueWithoutTagsInput[]
updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutTagsInput | Prisma.DeviceUpdateManyWithWhereWithoutTagsInput[]
deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
}
export type DeviceCreateNestedOneWithoutHistoryInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutHistoryInput, Prisma.DeviceUncheckedCreateWithoutHistoryInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutHistoryInput
connect?: Prisma.DeviceWhereUniqueInput
}
export type DeviceUpdateOneWithoutHistoryNestedInput = {
create?: Prisma.XOR<Prisma.DeviceCreateWithoutHistoryInput, Prisma.DeviceUncheckedCreateWithoutHistoryInput>
connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutHistoryInput
upsert?: Prisma.DeviceUpsertWithoutHistoryInput
disconnect?: Prisma.DeviceWhereInput | boolean
delete?: Prisma.DeviceWhereInput | boolean
connect?: Prisma.DeviceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.DeviceUpdateToOneWithWhereWithoutHistoryInput, Prisma.DeviceUpdateWithoutHistoryInput>, Prisma.DeviceUncheckedUpdateWithoutHistoryInput>
}
export type DeviceCreateWithoutCreatedByInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
parentDevice?: Prisma.DeviceCreateNestedOneWithoutAccessoriesInput
accessories?: Prisma.DeviceCreateNestedManyWithoutParentDeviceInput
updatedBy?: Prisma.UserCreateNestedOneWithoutDevicesUpdatedInput
group?: Prisma.DeviceGroupCreateNestedOneWithoutDevicesInput
location?: Prisma.LocationCreateNestedOneWithoutDevicesInput
history?: Prisma.DeviceHistoryCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagCreateNestedManyWithoutDevicesInput
}
export type DeviceUncheckedCreateWithoutCreatedByInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
updatedById?: string | null
parentDeviceId?: string | null
accessories?: Prisma.DeviceUncheckedCreateNestedManyWithoutParentDeviceInput
history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput
}
export type DeviceCreateOrConnectWithoutCreatedByInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutCreatedByInput, Prisma.DeviceUncheckedCreateWithoutCreatedByInput>
}
export type DeviceCreateManyCreatedByInputEnvelope = {
data: Prisma.DeviceCreateManyCreatedByInput | Prisma.DeviceCreateManyCreatedByInput[]
skipDuplicates?: boolean
}
export type DeviceCreateWithoutUpdatedByInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
parentDevice?: Prisma.DeviceCreateNestedOneWithoutAccessoriesInput
accessories?: Prisma.DeviceCreateNestedManyWithoutParentDeviceInput
createdBy?: Prisma.UserCreateNestedOneWithoutDevicesCreatedInput
group?: Prisma.DeviceGroupCreateNestedOneWithoutDevicesInput
location?: Prisma.LocationCreateNestedOneWithoutDevicesInput
history?: Prisma.DeviceHistoryCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagCreateNestedManyWithoutDevicesInput
}
export type DeviceUncheckedCreateWithoutUpdatedByInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
parentDeviceId?: string | null
accessories?: Prisma.DeviceUncheckedCreateNestedManyWithoutParentDeviceInput
history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput
}
export type DeviceCreateOrConnectWithoutUpdatedByInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutUpdatedByInput, Prisma.DeviceUncheckedCreateWithoutUpdatedByInput>
}
export type DeviceCreateManyUpdatedByInputEnvelope = {
data: Prisma.DeviceCreateManyUpdatedByInput | Prisma.DeviceCreateManyUpdatedByInput[]
skipDuplicates?: boolean
}
export type DeviceUpsertWithWhereUniqueWithoutCreatedByInput = {
where: Prisma.DeviceWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceUpdateWithoutCreatedByInput, Prisma.DeviceUncheckedUpdateWithoutCreatedByInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutCreatedByInput, Prisma.DeviceUncheckedCreateWithoutCreatedByInput>
}
export type DeviceUpdateWithWhereUniqueWithoutCreatedByInput = {
where: Prisma.DeviceWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutCreatedByInput, Prisma.DeviceUncheckedUpdateWithoutCreatedByInput>
}
export type DeviceUpdateManyWithWhereWithoutCreatedByInput = {
where: Prisma.DeviceScalarWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyWithoutCreatedByInput>
}
export type DeviceScalarWhereInput = {
AND?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
OR?: Prisma.DeviceScalarWhereInput[]
NOT?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[]
inventoryNumber?: Prisma.StringFilter<"Device"> | string
name?: Prisma.StringFilter<"Device"> | string
manufacturer?: Prisma.StringFilter<"Device"> | string
model?: Prisma.StringFilter<"Device"> | string
serialNumber?: Prisma.StringNullableFilter<"Device"> | string | null
productNumber?: Prisma.StringNullableFilter<"Device"> | string | null
comment?: Prisma.StringNullableFilter<"Device"> | string | null
ipv4Address?: Prisma.StringNullableFilter<"Device"> | string | null
ipv6Address?: Prisma.StringNullableFilter<"Device"> | string | null
macAddress?: Prisma.StringNullableFilter<"Device"> | string | null
username?: Prisma.StringNullableFilter<"Device"> | string | null
passwordHash?: Prisma.StringNullableFilter<"Device"> | string | null
groupId?: Prisma.StringNullableFilter<"Device"> | string | null
locationId?: Prisma.StringNullableFilter<"Device"> | string | null
loanedTo?: Prisma.StringNullableFilter<"Device"> | string | null
loanedFrom?: Prisma.DateTimeNullableFilter<"Device"> | Date | string | null
loanedUntil?: Prisma.DateTimeNullableFilter<"Device"> | Date | string | null
loanComment?: Prisma.StringNullableFilter<"Device"> | string | null
createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string
createdById?: Prisma.StringNullableFilter<"Device"> | string | null
updatedById?: Prisma.StringNullableFilter<"Device"> | string | null
parentDeviceId?: Prisma.StringNullableFilter<"Device"> | string | null
}
export type DeviceUpsertWithWhereUniqueWithoutUpdatedByInput = {
where: Prisma.DeviceWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceUpdateWithoutUpdatedByInput, Prisma.DeviceUncheckedUpdateWithoutUpdatedByInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutUpdatedByInput, Prisma.DeviceUncheckedCreateWithoutUpdatedByInput>
}
export type DeviceUpdateWithWhereUniqueWithoutUpdatedByInput = {
where: Prisma.DeviceWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutUpdatedByInput, Prisma.DeviceUncheckedUpdateWithoutUpdatedByInput>
}
export type DeviceUpdateManyWithWhereWithoutUpdatedByInput = {
where: Prisma.DeviceScalarWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyWithoutUpdatedByInput>
}
export type DeviceCreateWithoutGroupInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
parentDevice?: Prisma.DeviceCreateNestedOneWithoutAccessoriesInput
accessories?: Prisma.DeviceCreateNestedManyWithoutParentDeviceInput
createdBy?: Prisma.UserCreateNestedOneWithoutDevicesCreatedInput
updatedBy?: Prisma.UserCreateNestedOneWithoutDevicesUpdatedInput
location?: Prisma.LocationCreateNestedOneWithoutDevicesInput
history?: Prisma.DeviceHistoryCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagCreateNestedManyWithoutDevicesInput
}
export type DeviceUncheckedCreateWithoutGroupInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
accessories?: Prisma.DeviceUncheckedCreateNestedManyWithoutParentDeviceInput
history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput
}
export type DeviceCreateOrConnectWithoutGroupInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutGroupInput, Prisma.DeviceUncheckedCreateWithoutGroupInput>
}
export type DeviceCreateManyGroupInputEnvelope = {
data: Prisma.DeviceCreateManyGroupInput | Prisma.DeviceCreateManyGroupInput[]
skipDuplicates?: boolean
}
export type DeviceUpsertWithWhereUniqueWithoutGroupInput = {
where: Prisma.DeviceWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceUpdateWithoutGroupInput, Prisma.DeviceUncheckedUpdateWithoutGroupInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutGroupInput, Prisma.DeviceUncheckedCreateWithoutGroupInput>
}
export type DeviceUpdateWithWhereUniqueWithoutGroupInput = {
where: Prisma.DeviceWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutGroupInput, Prisma.DeviceUncheckedUpdateWithoutGroupInput>
}
export type DeviceUpdateManyWithWhereWithoutGroupInput = {
where: Prisma.DeviceScalarWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyWithoutGroupInput>
}
export type DeviceCreateWithoutLocationInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
parentDevice?: Prisma.DeviceCreateNestedOneWithoutAccessoriesInput
accessories?: Prisma.DeviceCreateNestedManyWithoutParentDeviceInput
createdBy?: Prisma.UserCreateNestedOneWithoutDevicesCreatedInput
updatedBy?: Prisma.UserCreateNestedOneWithoutDevicesUpdatedInput
group?: Prisma.DeviceGroupCreateNestedOneWithoutDevicesInput
history?: Prisma.DeviceHistoryCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagCreateNestedManyWithoutDevicesInput
}
export type DeviceUncheckedCreateWithoutLocationInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
accessories?: Prisma.DeviceUncheckedCreateNestedManyWithoutParentDeviceInput
history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput
}
export type DeviceCreateOrConnectWithoutLocationInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutLocationInput, Prisma.DeviceUncheckedCreateWithoutLocationInput>
}
export type DeviceCreateManyLocationInputEnvelope = {
data: Prisma.DeviceCreateManyLocationInput | Prisma.DeviceCreateManyLocationInput[]
skipDuplicates?: boolean
}
export type DeviceUpsertWithWhereUniqueWithoutLocationInput = {
where: Prisma.DeviceWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceUpdateWithoutLocationInput, Prisma.DeviceUncheckedUpdateWithoutLocationInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutLocationInput, Prisma.DeviceUncheckedCreateWithoutLocationInput>
}
export type DeviceUpdateWithWhereUniqueWithoutLocationInput = {
where: Prisma.DeviceWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutLocationInput, Prisma.DeviceUncheckedUpdateWithoutLocationInput>
}
export type DeviceUpdateManyWithWhereWithoutLocationInput = {
where: Prisma.DeviceScalarWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyWithoutLocationInput>
}
export type DeviceCreateWithoutAccessoriesInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
parentDevice?: Prisma.DeviceCreateNestedOneWithoutAccessoriesInput
createdBy?: Prisma.UserCreateNestedOneWithoutDevicesCreatedInput
updatedBy?: Prisma.UserCreateNestedOneWithoutDevicesUpdatedInput
group?: Prisma.DeviceGroupCreateNestedOneWithoutDevicesInput
location?: Prisma.LocationCreateNestedOneWithoutDevicesInput
history?: Prisma.DeviceHistoryCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagCreateNestedManyWithoutDevicesInput
}
export type DeviceUncheckedCreateWithoutAccessoriesInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput
}
export type DeviceCreateOrConnectWithoutAccessoriesInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutAccessoriesInput, Prisma.DeviceUncheckedCreateWithoutAccessoriesInput>
}
export type DeviceCreateWithoutParentDeviceInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
accessories?: Prisma.DeviceCreateNestedManyWithoutParentDeviceInput
createdBy?: Prisma.UserCreateNestedOneWithoutDevicesCreatedInput
updatedBy?: Prisma.UserCreateNestedOneWithoutDevicesUpdatedInput
group?: Prisma.DeviceGroupCreateNestedOneWithoutDevicesInput
location?: Prisma.LocationCreateNestedOneWithoutDevicesInput
history?: Prisma.DeviceHistoryCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagCreateNestedManyWithoutDevicesInput
}
export type DeviceUncheckedCreateWithoutParentDeviceInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
accessories?: Prisma.DeviceUncheckedCreateNestedManyWithoutParentDeviceInput
history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput
tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput
}
export type DeviceCreateOrConnectWithoutParentDeviceInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutParentDeviceInput, Prisma.DeviceUncheckedCreateWithoutParentDeviceInput>
}
export type DeviceCreateManyParentDeviceInputEnvelope = {
data: Prisma.DeviceCreateManyParentDeviceInput | Prisma.DeviceCreateManyParentDeviceInput[]
skipDuplicates?: boolean
}
export type DeviceUpsertWithoutAccessoriesInput = {
update: Prisma.XOR<Prisma.DeviceUpdateWithoutAccessoriesInput, Prisma.DeviceUncheckedUpdateWithoutAccessoriesInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutAccessoriesInput, Prisma.DeviceUncheckedCreateWithoutAccessoriesInput>
where?: Prisma.DeviceWhereInput
}
export type DeviceUpdateToOneWithWhereWithoutAccessoriesInput = {
where?: Prisma.DeviceWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutAccessoriesInput, Prisma.DeviceUncheckedUpdateWithoutAccessoriesInput>
}
export type DeviceUpdateWithoutAccessoriesInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
parentDevice?: Prisma.DeviceUpdateOneWithoutAccessoriesNestedInput
createdBy?: Prisma.UserUpdateOneWithoutDevicesCreatedNestedInput
updatedBy?: Prisma.UserUpdateOneWithoutDevicesUpdatedNestedInput
group?: Prisma.DeviceGroupUpdateOneWithoutDevicesNestedInput
location?: Prisma.LocationUpdateOneWithoutDevicesNestedInput
history?: Prisma.DeviceHistoryUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateWithoutAccessoriesInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
history?: Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUncheckedUpdateManyWithoutDevicesNestedInput
}
export type DeviceUpsertWithWhereUniqueWithoutParentDeviceInput = {
where: Prisma.DeviceWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceUpdateWithoutParentDeviceInput, Prisma.DeviceUncheckedUpdateWithoutParentDeviceInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutParentDeviceInput, Prisma.DeviceUncheckedCreateWithoutParentDeviceInput>
}
export type DeviceUpdateWithWhereUniqueWithoutParentDeviceInput = {
where: Prisma.DeviceWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutParentDeviceInput, Prisma.DeviceUncheckedUpdateWithoutParentDeviceInput>
}
export type DeviceUpdateManyWithWhereWithoutParentDeviceInput = {
where: Prisma.DeviceScalarWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceInput>
}
export type DeviceCreateWithoutTagsInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
parentDevice?: Prisma.DeviceCreateNestedOneWithoutAccessoriesInput
accessories?: Prisma.DeviceCreateNestedManyWithoutParentDeviceInput
createdBy?: Prisma.UserCreateNestedOneWithoutDevicesCreatedInput
updatedBy?: Prisma.UserCreateNestedOneWithoutDevicesUpdatedInput
group?: Prisma.DeviceGroupCreateNestedOneWithoutDevicesInput
location?: Prisma.LocationCreateNestedOneWithoutDevicesInput
history?: Prisma.DeviceHistoryCreateNestedManyWithoutDeviceInput
}
export type DeviceUncheckedCreateWithoutTagsInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
accessories?: Prisma.DeviceUncheckedCreateNestedManyWithoutParentDeviceInput
history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput
}
export type DeviceCreateOrConnectWithoutTagsInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutTagsInput, Prisma.DeviceUncheckedCreateWithoutTagsInput>
}
export type DeviceUpsertWithWhereUniqueWithoutTagsInput = {
where: Prisma.DeviceWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceUpdateWithoutTagsInput, Prisma.DeviceUncheckedUpdateWithoutTagsInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutTagsInput, Prisma.DeviceUncheckedCreateWithoutTagsInput>
}
export type DeviceUpdateWithWhereUniqueWithoutTagsInput = {
where: Prisma.DeviceWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutTagsInput, Prisma.DeviceUncheckedUpdateWithoutTagsInput>
}
export type DeviceUpdateManyWithWhereWithoutTagsInput = {
where: Prisma.DeviceScalarWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyWithoutTagsInput>
}
export type DeviceCreateWithoutHistoryInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
parentDevice?: Prisma.DeviceCreateNestedOneWithoutAccessoriesInput
accessories?: Prisma.DeviceCreateNestedManyWithoutParentDeviceInput
createdBy?: Prisma.UserCreateNestedOneWithoutDevicesCreatedInput
updatedBy?: Prisma.UserCreateNestedOneWithoutDevicesUpdatedInput
group?: Prisma.DeviceGroupCreateNestedOneWithoutDevicesInput
location?: Prisma.LocationCreateNestedOneWithoutDevicesInput
tags?: Prisma.TagCreateNestedManyWithoutDevicesInput
}
export type DeviceUncheckedCreateWithoutHistoryInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
accessories?: Prisma.DeviceUncheckedCreateNestedManyWithoutParentDeviceInput
tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput
}
export type DeviceCreateOrConnectWithoutHistoryInput = {
where: Prisma.DeviceWhereUniqueInput
create: Prisma.XOR<Prisma.DeviceCreateWithoutHistoryInput, Prisma.DeviceUncheckedCreateWithoutHistoryInput>
}
export type DeviceUpsertWithoutHistoryInput = {
update: Prisma.XOR<Prisma.DeviceUpdateWithoutHistoryInput, Prisma.DeviceUncheckedUpdateWithoutHistoryInput>
create: Prisma.XOR<Prisma.DeviceCreateWithoutHistoryInput, Prisma.DeviceUncheckedCreateWithoutHistoryInput>
where?: Prisma.DeviceWhereInput
}
export type DeviceUpdateToOneWithWhereWithoutHistoryInput = {
where?: Prisma.DeviceWhereInput
data: Prisma.XOR<Prisma.DeviceUpdateWithoutHistoryInput, Prisma.DeviceUncheckedUpdateWithoutHistoryInput>
}
export type DeviceUpdateWithoutHistoryInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
parentDevice?: Prisma.DeviceUpdateOneWithoutAccessoriesNestedInput
accessories?: Prisma.DeviceUpdateManyWithoutParentDeviceNestedInput
createdBy?: Prisma.UserUpdateOneWithoutDevicesCreatedNestedInput
updatedBy?: Prisma.UserUpdateOneWithoutDevicesUpdatedNestedInput
group?: Prisma.DeviceGroupUpdateOneWithoutDevicesNestedInput
location?: Prisma.LocationUpdateOneWithoutDevicesNestedInput
tags?: Prisma.TagUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateWithoutHistoryInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accessories?: Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput
tags?: Prisma.TagUncheckedUpdateManyWithoutDevicesNestedInput
}
export type DeviceCreateManyCreatedByInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
updatedById?: string | null
parentDeviceId?: string | null
}
export type DeviceCreateManyUpdatedByInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
parentDeviceId?: string | null
}
export type DeviceUpdateWithoutCreatedByInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
parentDevice?: Prisma.DeviceUpdateOneWithoutAccessoriesNestedInput
accessories?: Prisma.DeviceUpdateManyWithoutParentDeviceNestedInput
updatedBy?: Prisma.UserUpdateOneWithoutDevicesUpdatedNestedInput
group?: Prisma.DeviceGroupUpdateOneWithoutDevicesNestedInput
location?: Prisma.LocationUpdateOneWithoutDevicesNestedInput
history?: Prisma.DeviceHistoryUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateWithoutCreatedByInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accessories?: Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput
history?: Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUncheckedUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateManyWithoutCreatedByInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type DeviceUpdateWithoutUpdatedByInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
parentDevice?: Prisma.DeviceUpdateOneWithoutAccessoriesNestedInput
accessories?: Prisma.DeviceUpdateManyWithoutParentDeviceNestedInput
createdBy?: Prisma.UserUpdateOneWithoutDevicesCreatedNestedInput
group?: Prisma.DeviceGroupUpdateOneWithoutDevicesNestedInput
location?: Prisma.LocationUpdateOneWithoutDevicesNestedInput
history?: Prisma.DeviceHistoryUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateWithoutUpdatedByInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accessories?: Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput
history?: Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUncheckedUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateManyWithoutUpdatedByInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type DeviceCreateManyGroupInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
}
export type DeviceUpdateWithoutGroupInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
parentDevice?: Prisma.DeviceUpdateOneWithoutAccessoriesNestedInput
accessories?: Prisma.DeviceUpdateManyWithoutParentDeviceNestedInput
createdBy?: Prisma.UserUpdateOneWithoutDevicesCreatedNestedInput
updatedBy?: Prisma.UserUpdateOneWithoutDevicesUpdatedNestedInput
location?: Prisma.LocationUpdateOneWithoutDevicesNestedInput
history?: Prisma.DeviceHistoryUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateWithoutGroupInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accessories?: Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput
history?: Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUncheckedUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateManyWithoutGroupInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type DeviceCreateManyLocationInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
parentDeviceId?: string | null
}
export type DeviceUpdateWithoutLocationInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
parentDevice?: Prisma.DeviceUpdateOneWithoutAccessoriesNestedInput
accessories?: Prisma.DeviceUpdateManyWithoutParentDeviceNestedInput
createdBy?: Prisma.UserUpdateOneWithoutDevicesCreatedNestedInput
updatedBy?: Prisma.UserUpdateOneWithoutDevicesUpdatedNestedInput
group?: Prisma.DeviceGroupUpdateOneWithoutDevicesNestedInput
history?: Prisma.DeviceHistoryUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateWithoutLocationInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accessories?: Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput
history?: Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUncheckedUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateManyWithoutLocationInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type DeviceCreateManyParentDeviceInput = {
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber?: string | null
productNumber?: string | null
comment?: string | null
ipv4Address?: string | null
ipv6Address?: string | null
macAddress?: string | null
username?: string | null
passwordHash?: string | null
groupId?: string | null
locationId?: string | null
loanedTo?: string | null
loanedFrom?: Date | string | null
loanedUntil?: Date | string | null
loanComment?: string | null
createdAt?: Date | string
updatedAt?: Date | string
createdById?: string | null
updatedById?: string | null
}
export type DeviceUpdateWithoutParentDeviceInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
accessories?: Prisma.DeviceUpdateManyWithoutParentDeviceNestedInput
createdBy?: Prisma.UserUpdateOneWithoutDevicesCreatedNestedInput
updatedBy?: Prisma.UserUpdateOneWithoutDevicesUpdatedNestedInput
group?: Prisma.DeviceGroupUpdateOneWithoutDevicesNestedInput
location?: Prisma.LocationUpdateOneWithoutDevicesNestedInput
history?: Prisma.DeviceHistoryUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateWithoutParentDeviceInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accessories?: Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput
history?: Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput
tags?: Prisma.TagUncheckedUpdateManyWithoutDevicesNestedInput
}
export type DeviceUncheckedUpdateManyWithoutParentDeviceInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type DeviceUpdateWithoutTagsInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
parentDevice?: Prisma.DeviceUpdateOneWithoutAccessoriesNestedInput
accessories?: Prisma.DeviceUpdateManyWithoutParentDeviceNestedInput
createdBy?: Prisma.UserUpdateOneWithoutDevicesCreatedNestedInput
updatedBy?: Prisma.UserUpdateOneWithoutDevicesUpdatedNestedInput
group?: Prisma.DeviceGroupUpdateOneWithoutDevicesNestedInput
location?: Prisma.LocationUpdateOneWithoutDevicesNestedInput
history?: Prisma.DeviceHistoryUpdateManyWithoutDeviceNestedInput
}
export type DeviceUncheckedUpdateWithoutTagsInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
accessories?: Prisma.DeviceUncheckedUpdateManyWithoutParentDeviceNestedInput
history?: Prisma.DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput
}
export type DeviceUncheckedUpdateManyWithoutTagsInput = {
inventoryNumber?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
manufacturer?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
serialNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv4Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ipv6Address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
macAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedTo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
loanedFrom?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
loanComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
updatedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
parentDeviceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
/**
* Count Type DeviceCountOutputType
*/
export type DeviceCountOutputType = {
accessories: number
history: number
tags: number
}
export type DeviceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
accessories?: boolean | DeviceCountOutputTypeCountAccessoriesArgs
history?: boolean | DeviceCountOutputTypeCountHistoryArgs
tags?: boolean | DeviceCountOutputTypeCountTagsArgs
}
/**
* DeviceCountOutputType without action
*/
export type DeviceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceCountOutputType
*/
select?: Prisma.DeviceCountOutputTypeSelect<ExtArgs> | null
}
/**
* DeviceCountOutputType without action
*/
export type DeviceCountOutputTypeCountAccessoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.DeviceWhereInput
}
/**
* DeviceCountOutputType without action
*/
export type DeviceCountOutputTypeCountHistoryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.DeviceHistoryWhereInput
}
/**
* DeviceCountOutputType without action
*/
export type DeviceCountOutputTypeCountTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TagWhereInput
}
export type DeviceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
inventoryNumber?: boolean
name?: boolean
manufacturer?: boolean
model?: boolean
serialNumber?: boolean
productNumber?: boolean
comment?: boolean
ipv4Address?: boolean
ipv6Address?: boolean
macAddress?: boolean
username?: boolean
passwordHash?: boolean
groupId?: boolean
locationId?: boolean
loanedTo?: boolean
loanedFrom?: boolean
loanedUntil?: boolean
loanComment?: boolean
createdAt?: boolean
updatedAt?: boolean
createdById?: boolean
updatedById?: boolean
parentDeviceId?: boolean
parentDevice?: boolean | Prisma.Device$parentDeviceArgs<ExtArgs>
accessories?: boolean | Prisma.Device$accessoriesArgs<ExtArgs>
createdBy?: boolean | Prisma.Device$createdByArgs<ExtArgs>
updatedBy?: boolean | Prisma.Device$updatedByArgs<ExtArgs>
group?: boolean | Prisma.Device$groupArgs<ExtArgs>
location?: boolean | Prisma.Device$locationArgs<ExtArgs>
history?: boolean | Prisma.Device$historyArgs<ExtArgs>
tags?: boolean | Prisma.Device$tagsArgs<ExtArgs>
_count?: boolean | Prisma.DeviceCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["device"]>
export type DeviceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
inventoryNumber?: boolean
name?: boolean
manufacturer?: boolean
model?: boolean
serialNumber?: boolean
productNumber?: boolean
comment?: boolean
ipv4Address?: boolean
ipv6Address?: boolean
macAddress?: boolean
username?: boolean
passwordHash?: boolean
groupId?: boolean
locationId?: boolean
loanedTo?: boolean
loanedFrom?: boolean
loanedUntil?: boolean
loanComment?: boolean
createdAt?: boolean
updatedAt?: boolean
createdById?: boolean
updatedById?: boolean
parentDeviceId?: boolean
parentDevice?: boolean | Prisma.Device$parentDeviceArgs<ExtArgs>
createdBy?: boolean | Prisma.Device$createdByArgs<ExtArgs>
updatedBy?: boolean | Prisma.Device$updatedByArgs<ExtArgs>
group?: boolean | Prisma.Device$groupArgs<ExtArgs>
location?: boolean | Prisma.Device$locationArgs<ExtArgs>
}, ExtArgs["result"]["device"]>
export type DeviceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
inventoryNumber?: boolean
name?: boolean
manufacturer?: boolean
model?: boolean
serialNumber?: boolean
productNumber?: boolean
comment?: boolean
ipv4Address?: boolean
ipv6Address?: boolean
macAddress?: boolean
username?: boolean
passwordHash?: boolean
groupId?: boolean
locationId?: boolean
loanedTo?: boolean
loanedFrom?: boolean
loanedUntil?: boolean
loanComment?: boolean
createdAt?: boolean
updatedAt?: boolean
createdById?: boolean
updatedById?: boolean
parentDeviceId?: boolean
parentDevice?: boolean | Prisma.Device$parentDeviceArgs<ExtArgs>
createdBy?: boolean | Prisma.Device$createdByArgs<ExtArgs>
updatedBy?: boolean | Prisma.Device$updatedByArgs<ExtArgs>
group?: boolean | Prisma.Device$groupArgs<ExtArgs>
location?: boolean | Prisma.Device$locationArgs<ExtArgs>
}, ExtArgs["result"]["device"]>
export type DeviceSelectScalar = {
inventoryNumber?: boolean
name?: boolean
manufacturer?: boolean
model?: boolean
serialNumber?: boolean
productNumber?: boolean
comment?: boolean
ipv4Address?: boolean
ipv6Address?: boolean
macAddress?: boolean
username?: boolean
passwordHash?: boolean
groupId?: boolean
locationId?: boolean
loanedTo?: boolean
loanedFrom?: boolean
loanedUntil?: boolean
loanComment?: boolean
createdAt?: boolean
updatedAt?: boolean
createdById?: boolean
updatedById?: boolean
parentDeviceId?: boolean
}
export type DeviceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"inventoryNumber" | "name" | "manufacturer" | "model" | "serialNumber" | "productNumber" | "comment" | "ipv4Address" | "ipv6Address" | "macAddress" | "username" | "passwordHash" | "groupId" | "locationId" | "loanedTo" | "loanedFrom" | "loanedUntil" | "loanComment" | "createdAt" | "updatedAt" | "createdById" | "updatedById" | "parentDeviceId", ExtArgs["result"]["device"]>
export type DeviceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
parentDevice?: boolean | Prisma.Device$parentDeviceArgs<ExtArgs>
accessories?: boolean | Prisma.Device$accessoriesArgs<ExtArgs>
createdBy?: boolean | Prisma.Device$createdByArgs<ExtArgs>
updatedBy?: boolean | Prisma.Device$updatedByArgs<ExtArgs>
group?: boolean | Prisma.Device$groupArgs<ExtArgs>
location?: boolean | Prisma.Device$locationArgs<ExtArgs>
history?: boolean | Prisma.Device$historyArgs<ExtArgs>
tags?: boolean | Prisma.Device$tagsArgs<ExtArgs>
_count?: boolean | Prisma.DeviceCountOutputTypeDefaultArgs<ExtArgs>
}
export type DeviceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
parentDevice?: boolean | Prisma.Device$parentDeviceArgs<ExtArgs>
createdBy?: boolean | Prisma.Device$createdByArgs<ExtArgs>
updatedBy?: boolean | Prisma.Device$updatedByArgs<ExtArgs>
group?: boolean | Prisma.Device$groupArgs<ExtArgs>
location?: boolean | Prisma.Device$locationArgs<ExtArgs>
}
export type DeviceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
parentDevice?: boolean | Prisma.Device$parentDeviceArgs<ExtArgs>
createdBy?: boolean | Prisma.Device$createdByArgs<ExtArgs>
updatedBy?: boolean | Prisma.Device$updatedByArgs<ExtArgs>
group?: boolean | Prisma.Device$groupArgs<ExtArgs>
location?: boolean | Prisma.Device$locationArgs<ExtArgs>
}
export type $DevicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Device"
objects: {
parentDevice: Prisma.$DevicePayload<ExtArgs> | null
accessories: Prisma.$DevicePayload<ExtArgs>[]
createdBy: Prisma.$UserPayload<ExtArgs> | null
updatedBy: Prisma.$UserPayload<ExtArgs> | null
group: Prisma.$DeviceGroupPayload<ExtArgs> | null
location: Prisma.$LocationPayload<ExtArgs> | null
history: Prisma.$DeviceHistoryPayload<ExtArgs>[]
tags: Prisma.$TagPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
inventoryNumber: string
name: string
manufacturer: string
model: string
serialNumber: string | null
productNumber: string | null
comment: string | null
ipv4Address: string | null
ipv6Address: string | null
macAddress: string | null
username: string | null
passwordHash: string | null
groupId: string | null
locationId: string | null
loanedTo: string | null
loanedFrom: Date | null
loanedUntil: Date | null
loanComment: string | null
createdAt: Date
updatedAt: Date
createdById: string | null
updatedById: string | null
parentDeviceId: string | null
}, ExtArgs["result"]["device"]>
composites: {}
}
export type DeviceGetPayload<S extends boolean | null | undefined | DeviceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DevicePayload, S>
export type DeviceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<DeviceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: DeviceCountAggregateInputType | true
}
export interface DeviceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Device'], meta: { name: 'Device' } }
/**
* Find zero or one Device that matches the filter.
* @param {DeviceFindUniqueArgs} args - Arguments to find a Device
* @example
* // Get one Device
* const device = await prisma.device.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends DeviceFindUniqueArgs>(args: Prisma.SelectSubset<T, DeviceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Device that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {DeviceFindUniqueOrThrowArgs} args - Arguments to find a Device
* @example
* // Get one Device
* const device = await prisma.device.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends DeviceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DeviceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Device 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 {DeviceFindFirstArgs} args - Arguments to find a Device
* @example
* // Get one Device
* const device = await prisma.device.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends DeviceFindFirstArgs>(args?: Prisma.SelectSubset<T, DeviceFindFirstArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Device 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 {DeviceFindFirstOrThrowArgs} args - Arguments to find a Device
* @example
* // Get one Device
* const device = await prisma.device.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends DeviceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DeviceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Devices 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 {DeviceFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Devices
* const devices = await prisma.device.findMany()
*
* // Get first 10 Devices
* const devices = await prisma.device.findMany({ take: 10 })
*
* // Only select the `inventoryNumber`
* const deviceWithInventoryNumberOnly = await prisma.device.findMany({ select: { inventoryNumber: true } })
*
*/
findMany<T extends DeviceFindManyArgs>(args?: Prisma.SelectSubset<T, DeviceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Device.
* @param {DeviceCreateArgs} args - Arguments to create a Device.
* @example
* // Create one Device
* const Device = await prisma.device.create({
* data: {
* // ... data to create a Device
* }
* })
*
*/
create<T extends DeviceCreateArgs>(args: Prisma.SelectSubset<T, DeviceCreateArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Devices.
* @param {DeviceCreateManyArgs} args - Arguments to create many Devices.
* @example
* // Create many Devices
* const device = await prisma.device.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends DeviceCreateManyArgs>(args?: Prisma.SelectSubset<T, DeviceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Devices and returns the data saved in the database.
* @param {DeviceCreateManyAndReturnArgs} args - Arguments to create many Devices.
* @example
* // Create many Devices
* const device = await prisma.device.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Devices and only return the `inventoryNumber`
* const deviceWithInventoryNumberOnly = await prisma.device.createManyAndReturn({
* select: { inventoryNumber: 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 DeviceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DeviceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Device.
* @param {DeviceDeleteArgs} args - Arguments to delete one Device.
* @example
* // Delete one Device
* const Device = await prisma.device.delete({
* where: {
* // ... filter to delete one Device
* }
* })
*
*/
delete<T extends DeviceDeleteArgs>(args: Prisma.SelectSubset<T, DeviceDeleteArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Device.
* @param {DeviceUpdateArgs} args - Arguments to update one Device.
* @example
* // Update one Device
* const device = await prisma.device.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends DeviceUpdateArgs>(args: Prisma.SelectSubset<T, DeviceUpdateArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Devices.
* @param {DeviceDeleteManyArgs} args - Arguments to filter Devices to delete.
* @example
* // Delete a few Devices
* const { count } = await prisma.device.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends DeviceDeleteManyArgs>(args?: Prisma.SelectSubset<T, DeviceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Devices.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {DeviceUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Devices
* const device = await prisma.device.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends DeviceUpdateManyArgs>(args: Prisma.SelectSubset<T, DeviceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Devices and returns the data updated in the database.
* @param {DeviceUpdateManyAndReturnArgs} args - Arguments to update many Devices.
* @example
* // Update many Devices
* const device = await prisma.device.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Devices and only return the `inventoryNumber`
* const deviceWithInventoryNumberOnly = await prisma.device.updateManyAndReturn({
* select: { inventoryNumber: 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 DeviceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DeviceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Device.
* @param {DeviceUpsertArgs} args - Arguments to update or create a Device.
* @example
* // Update or create a Device
* const device = await prisma.device.upsert({
* create: {
* // ... data to create a Device
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Device we want to update
* }
* })
*/
upsert<T extends DeviceUpsertArgs>(args: Prisma.SelectSubset<T, DeviceUpsertArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Devices.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {DeviceCountArgs} args - Arguments to filter Devices to count.
* @example
* // Count the number of Devices
* const count = await prisma.device.count({
* where: {
* // ... the filter for the Devices we want to count
* }
* })
**/
count<T extends DeviceCountArgs>(
args?: Prisma.Subset<T, DeviceCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], DeviceCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Device.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {DeviceAggregateArgs} 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 DeviceAggregateArgs>(args: Prisma.Subset<T, DeviceAggregateArgs>): Prisma.PrismaPromise<GetDeviceAggregateType<T>>
/**
* Group by Device.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {DeviceGroupByArgs} 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 DeviceGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: DeviceGroupByArgs['orderBy'] }
: { orderBy?: DeviceGroupByArgs['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, DeviceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDeviceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Device model
*/
readonly fields: DeviceFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Device.
* 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__DeviceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
parentDevice<T extends Prisma.Device$parentDeviceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$parentDeviceArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
accessories<T extends Prisma.Device$accessoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$accessoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
createdBy<T extends Prisma.Device$createdByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$createdByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
updatedBy<T extends Prisma.Device$updatedByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$updatedByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
group<T extends Prisma.Device$groupArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$groupArgs<ExtArgs>>): Prisma.Prisma__DeviceGroupClient<runtime.Types.Result.GetResult<Prisma.$DeviceGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
location<T extends Prisma.Device$locationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$locationArgs<ExtArgs>>): Prisma.Prisma__LocationClient<runtime.Types.Result.GetResult<Prisma.$LocationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
history<T extends Prisma.Device$historyArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$historyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeviceHistoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
tags<T extends Prisma.Device$tagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Device$tagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<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 Device model
*/
export interface DeviceFieldRefs {
readonly inventoryNumber: Prisma.FieldRef<"Device", 'String'>
readonly name: Prisma.FieldRef<"Device", 'String'>
readonly manufacturer: Prisma.FieldRef<"Device", 'String'>
readonly model: Prisma.FieldRef<"Device", 'String'>
readonly serialNumber: Prisma.FieldRef<"Device", 'String'>
readonly productNumber: Prisma.FieldRef<"Device", 'String'>
readonly comment: Prisma.FieldRef<"Device", 'String'>
readonly ipv4Address: Prisma.FieldRef<"Device", 'String'>
readonly ipv6Address: Prisma.FieldRef<"Device", 'String'>
readonly macAddress: Prisma.FieldRef<"Device", 'String'>
readonly username: Prisma.FieldRef<"Device", 'String'>
readonly passwordHash: Prisma.FieldRef<"Device", 'String'>
readonly groupId: Prisma.FieldRef<"Device", 'String'>
readonly locationId: Prisma.FieldRef<"Device", 'String'>
readonly loanedTo: Prisma.FieldRef<"Device", 'String'>
readonly loanedFrom: Prisma.FieldRef<"Device", 'DateTime'>
readonly loanedUntil: Prisma.FieldRef<"Device", 'DateTime'>
readonly loanComment: Prisma.FieldRef<"Device", 'String'>
readonly createdAt: Prisma.FieldRef<"Device", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Device", 'DateTime'>
readonly createdById: Prisma.FieldRef<"Device", 'String'>
readonly updatedById: Prisma.FieldRef<"Device", 'String'>
readonly parentDeviceId: Prisma.FieldRef<"Device", 'String'>
}
// Custom InputTypes
/**
* Device findUnique
*/
export type DeviceFindUniqueArgs<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
/**
* Filter, which Device to fetch.
*/
where: Prisma.DeviceWhereUniqueInput
}
/**
* Device findUniqueOrThrow
*/
export type DeviceFindUniqueOrThrowArgs<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
/**
* Filter, which Device to fetch.
*/
where: Prisma.DeviceWhereUniqueInput
}
/**
* Device findFirst
*/
export type DeviceFindFirstArgs<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
/**
* Filter, which Device to fetch.
*/
where?: Prisma.DeviceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Devices to fetch.
*/
orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Devices.
*/
cursor?: Prisma.DeviceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Devices 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` Devices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Devices.
*/
distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[]
}
/**
* Device findFirstOrThrow
*/
export type DeviceFindFirstOrThrowArgs<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
/**
* Filter, which Device to fetch.
*/
where?: Prisma.DeviceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Devices to fetch.
*/
orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Devices.
*/
cursor?: Prisma.DeviceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Devices 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` Devices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Devices.
*/
distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[]
}
/**
* Device findMany
*/
export type DeviceFindManyArgs<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
/**
* Filter, which Devices to fetch.
*/
where?: Prisma.DeviceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Devices to fetch.
*/
orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Devices.
*/
cursor?: Prisma.DeviceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Devices 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` Devices.
*/
skip?: number
distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[]
}
/**
* Device create
*/
export type DeviceCreateArgs<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
/**
* The data needed to create a Device.
*/
data: Prisma.XOR<Prisma.DeviceCreateInput, Prisma.DeviceUncheckedCreateInput>
}
/**
* Device createMany
*/
export type DeviceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Devices.
*/
data: Prisma.DeviceCreateManyInput | Prisma.DeviceCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Device createManyAndReturn
*/
export type DeviceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* The data used to create many Devices.
*/
data: Prisma.DeviceCreateManyInput | Prisma.DeviceCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Device update
*/
export type DeviceUpdateArgs<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
/**
* The data needed to update a Device.
*/
data: Prisma.XOR<Prisma.DeviceUpdateInput, Prisma.DeviceUncheckedUpdateInput>
/**
* Choose, which Device to update.
*/
where: Prisma.DeviceWhereUniqueInput
}
/**
* Device updateMany
*/
export type DeviceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Devices.
*/
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyInput>
/**
* Filter which Devices to update
*/
where?: Prisma.DeviceWhereInput
/**
* Limit how many Devices to update.
*/
limit?: number
}
/**
* Device updateManyAndReturn
*/
export type DeviceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Device
*/
select?: Prisma.DeviceSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Device
*/
omit?: Prisma.DeviceOmit<ExtArgs> | null
/**
* The data used to update Devices.
*/
data: Prisma.XOR<Prisma.DeviceUpdateManyMutationInput, Prisma.DeviceUncheckedUpdateManyInput>
/**
* Filter which Devices to update
*/
where?: Prisma.DeviceWhereInput
/**
* Limit how many Devices to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Device upsert
*/
export type DeviceUpsertArgs<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
/**
* The filter to search for the Device to update in case it exists.
*/
where: Prisma.DeviceWhereUniqueInput
/**
* In case the Device found by the `where` argument doesn't exist, create a new Device with this data.
*/
create: Prisma.XOR<Prisma.DeviceCreateInput, Prisma.DeviceUncheckedCreateInput>
/**
* In case the Device was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.DeviceUpdateInput, Prisma.DeviceUncheckedUpdateInput>
}
/**
* Device delete
*/
export type DeviceDeleteArgs<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
/**
* Filter which Device to delete.
*/
where: Prisma.DeviceWhereUniqueInput
}
/**
* Device deleteMany
*/
export type DeviceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Devices to delete
*/
where?: Prisma.DeviceWhereInput
/**
* Limit how many Devices to delete.
*/
limit?: number
}
/**
* Device.parentDevice
*/
export type Device$parentDeviceArgs<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
}
/**
* Device.accessories
*/
export type Device$accessoriesArgs<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
orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[]
cursor?: Prisma.DeviceWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[]
}
/**
* Device.createdBy
*/
export type Device$createdByArgs<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
}
/**
* Device.updatedBy
*/
export type Device$updatedByArgs<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
}
/**
* Device.group
*/
export type Device$groupArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceGroup
*/
select?: Prisma.DeviceGroupSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceGroup
*/
omit?: Prisma.DeviceGroupOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceGroupInclude<ExtArgs> | null
where?: Prisma.DeviceGroupWhereInput
}
/**
* Device.location
*/
export type Device$locationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Location
*/
select?: Prisma.LocationSelect<ExtArgs> | null
/**
* Omit specific fields from the Location
*/
omit?: Prisma.LocationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LocationInclude<ExtArgs> | null
where?: Prisma.LocationWhereInput
}
/**
* Device.history
*/
export type Device$historyArgs<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
where?: Prisma.DeviceHistoryWhereInput
orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[]
cursor?: Prisma.DeviceHistoryWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.DeviceHistoryScalarFieldEnum | Prisma.DeviceHistoryScalarFieldEnum[]
}
/**
* Device.tags
*/
export type Device$tagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Tag
*/
select?: Prisma.TagSelect<ExtArgs> | null
/**
* Omit specific fields from the Tag
*/
omit?: Prisma.TagOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TagInclude<ExtArgs> | null
where?: Prisma.TagWhereInput
orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
cursor?: Prisma.TagWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
}
/**
* Device without action
*/
export type DeviceDefaultArgs<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
}