/* !!! 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 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 } 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 } 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 _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 } 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 } 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 _all?: true } export type DeviceAggregateArgs = { /** * 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 = { [P in keyof T & keyof AggregateDevice]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DeviceGroupByArgs = { 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 _count: DeviceCountAggregateOutputType | null _min: DeviceMinAggregateOutputType | null _max: DeviceMaxAggregateOutputType | null } type GetDeviceGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DeviceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 createdBy?: Prisma.XOR | null updatedBy?: Prisma.XOR | null group?: Prisma.XOR | null location?: Prisma.XOR | 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 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 createdBy?: Prisma.XOR | null updatedBy?: Prisma.XOR | null group?: Prisma.XOR | null location?: Prisma.XOR | 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 _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 } 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 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 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 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 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 } 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 } export type DeviceListRelationFilter = { every?: Prisma.DeviceWhereInput some?: Prisma.DeviceWhereInput none?: Prisma.DeviceWhereInput } export type DeviceOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } 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 } 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 } 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 } export type DeviceScalarRelationFilter = { is?: Prisma.DeviceWhereInput isNot?: Prisma.DeviceWhereInput } export type DeviceCreateNestedManyWithoutCreatedByInput = { create?: Prisma.XOR | 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[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutUpdatedByInput | Prisma.DeviceCreateOrConnectWithoutUpdatedByInput[] createMany?: Prisma.DeviceCreateManyUpdatedByInputEnvelope connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] } export type DeviceUncheckedCreateNestedManyWithoutCreatedByInput = { create?: Prisma.XOR | 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[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutUpdatedByInput | Prisma.DeviceCreateOrConnectWithoutUpdatedByInput[] createMany?: Prisma.DeviceCreateManyUpdatedByInputEnvelope connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] } export type DeviceUpdateManyWithoutCreatedByNestedInput = { create?: Prisma.XOR | 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[] 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[] 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[] 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[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutGroupInput | Prisma.DeviceCreateOrConnectWithoutGroupInput[] createMany?: Prisma.DeviceCreateManyGroupInputEnvelope connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] } export type DeviceUncheckedCreateNestedManyWithoutGroupInput = { create?: Prisma.XOR | 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[] 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[] 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[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutLocationInput | Prisma.DeviceCreateOrConnectWithoutLocationInput[] createMany?: Prisma.DeviceCreateManyLocationInputEnvelope connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] } export type DeviceUncheckedCreateNestedManyWithoutLocationInput = { create?: Prisma.XOR | 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[] 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[] 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 NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type DeviceCreateNestedManyWithoutTagsInput = { create?: Prisma.XOR | Prisma.DeviceCreateWithoutTagsInput[] | Prisma.DeviceUncheckedCreateWithoutTagsInput[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutTagsInput | Prisma.DeviceCreateOrConnectWithoutTagsInput[] connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] } export type DeviceUncheckedCreateNestedManyWithoutTagsInput = { create?: Prisma.XOR | Prisma.DeviceCreateWithoutTagsInput[] | Prisma.DeviceUncheckedCreateWithoutTagsInput[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutTagsInput | Prisma.DeviceCreateOrConnectWithoutTagsInput[] connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] } export type DeviceUpdateManyWithoutTagsNestedInput = { create?: Prisma.XOR | 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[] 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 connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutHistoryInput connect?: Prisma.DeviceWhereUniqueInput } export type DeviceUpdateOneRequiredWithoutHistoryNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutHistoryInput upsert?: Prisma.DeviceUpsertWithoutHistoryInput connect?: Prisma.DeviceWhereUniqueInput update?: Prisma.XOR, 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 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 history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput } export type DeviceCreateOrConnectWithoutCreatedByInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } 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 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 history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput } export type DeviceCreateOrConnectWithoutUpdatedByInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceCreateManyUpdatedByInputEnvelope = { data: Prisma.DeviceCreateManyUpdatedByInput | Prisma.DeviceCreateManyUpdatedByInput[] skipDuplicates?: boolean } export type DeviceUpsertWithWhereUniqueWithoutCreatedByInput = { where: Prisma.DeviceWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceUpdateWithWhereUniqueWithoutCreatedByInput = { where: Prisma.DeviceWhereUniqueInput data: Prisma.XOR } export type DeviceUpdateManyWithWhereWithoutCreatedByInput = { where: Prisma.DeviceScalarWhereInput data: Prisma.XOR } 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 } export type DeviceUpsertWithWhereUniqueWithoutUpdatedByInput = { where: Prisma.DeviceWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceUpdateWithWhereUniqueWithoutUpdatedByInput = { where: Prisma.DeviceWhereUniqueInput data: Prisma.XOR } export type DeviceUpdateManyWithWhereWithoutUpdatedByInput = { where: Prisma.DeviceScalarWhereInput data: Prisma.XOR } 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 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 history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput } export type DeviceCreateOrConnectWithoutGroupInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceCreateManyGroupInputEnvelope = { data: Prisma.DeviceCreateManyGroupInput | Prisma.DeviceCreateManyGroupInput[] skipDuplicates?: boolean } export type DeviceUpsertWithWhereUniqueWithoutGroupInput = { where: Prisma.DeviceWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceUpdateWithWhereUniqueWithoutGroupInput = { where: Prisma.DeviceWhereUniqueInput data: Prisma.XOR } export type DeviceUpdateManyWithWhereWithoutGroupInput = { where: Prisma.DeviceScalarWhereInput data: Prisma.XOR } 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 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 history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput } export type DeviceCreateOrConnectWithoutLocationInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceCreateManyLocationInputEnvelope = { data: Prisma.DeviceCreateManyLocationInput | Prisma.DeviceCreateManyLocationInput[] skipDuplicates?: boolean } export type DeviceUpsertWithWhereUniqueWithoutLocationInput = { where: Prisma.DeviceWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceUpdateWithWhereUniqueWithoutLocationInput = { where: Prisma.DeviceWhereUniqueInput data: Prisma.XOR } export type DeviceUpdateManyWithWhereWithoutLocationInput = { where: Prisma.DeviceScalarWhereInput data: Prisma.XOR } 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 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 history?: Prisma.DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput } export type DeviceCreateOrConnectWithoutTagsInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceUpsertWithWhereUniqueWithoutTagsInput = { where: Prisma.DeviceWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceUpdateWithWhereUniqueWithoutTagsInput = { where: Prisma.DeviceWhereUniqueInput data: Prisma.XOR } export type DeviceUpdateManyWithWhereWithoutTagsInput = { where: Prisma.DeviceScalarWhereInput data: Prisma.XOR } 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 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 tags?: Prisma.TagUncheckedCreateNestedManyWithoutDevicesInput } export type DeviceCreateOrConnectWithoutHistoryInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceUpsertWithoutHistoryInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DeviceWhereInput } export type DeviceUpdateToOneWithWhereWithoutHistoryInput = { where?: Prisma.DeviceWhereInput data: Prisma.XOR } 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 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 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 } 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 } 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 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 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 } 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 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 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 } 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 } 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 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 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 } 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 } 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 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 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 } 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 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 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 } /** * Count Type DeviceCountOutputType */ export type DeviceCountOutputType = { history: number tags: number } export type DeviceCountOutputTypeSelect = { history?: boolean | DeviceCountOutputTypeCountHistoryArgs tags?: boolean | DeviceCountOutputTypeCountTagsArgs } /** * DeviceCountOutputType without action */ export type DeviceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DeviceCountOutputType */ select?: Prisma.DeviceCountOutputTypeSelect | null } /** * DeviceCountOutputType without action */ export type DeviceCountOutputTypeCountHistoryArgs = { where?: Prisma.DeviceHistoryWhereInput } /** * DeviceCountOutputType without action */ export type DeviceCountOutputTypeCountTagsArgs = { where?: Prisma.TagWhereInput } export type DeviceSelect = 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 createdBy?: boolean | Prisma.Device$createdByArgs updatedBy?: boolean | Prisma.Device$updatedByArgs group?: boolean | Prisma.Device$groupArgs location?: boolean | Prisma.Device$locationArgs history?: boolean | Prisma.Device$historyArgs tags?: boolean | Prisma.Device$tagsArgs _count?: boolean | Prisma.DeviceCountOutputTypeDefaultArgs }, ExtArgs["result"]["device"]> export type DeviceSelectCreateManyAndReturn = 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 createdBy?: boolean | Prisma.Device$createdByArgs updatedBy?: boolean | Prisma.Device$updatedByArgs group?: boolean | Prisma.Device$groupArgs location?: boolean | Prisma.Device$locationArgs }, ExtArgs["result"]["device"]> export type DeviceSelectUpdateManyAndReturn = 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 createdBy?: boolean | Prisma.Device$createdByArgs updatedBy?: boolean | Prisma.Device$updatedByArgs group?: boolean | Prisma.Device$groupArgs location?: boolean | Prisma.Device$locationArgs }, 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 } export type DeviceOmit = 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", ExtArgs["result"]["device"]> export type DeviceInclude = { createdBy?: boolean | Prisma.Device$createdByArgs updatedBy?: boolean | Prisma.Device$updatedByArgs group?: boolean | Prisma.Device$groupArgs location?: boolean | Prisma.Device$locationArgs history?: boolean | Prisma.Device$historyArgs tags?: boolean | Prisma.Device$tagsArgs _count?: boolean | Prisma.DeviceCountOutputTypeDefaultArgs } export type DeviceIncludeCreateManyAndReturn = { createdBy?: boolean | Prisma.Device$createdByArgs updatedBy?: boolean | Prisma.Device$updatedByArgs group?: boolean | Prisma.Device$groupArgs location?: boolean | Prisma.Device$locationArgs } export type DeviceIncludeUpdateManyAndReturn = { createdBy?: boolean | Prisma.Device$createdByArgs updatedBy?: boolean | Prisma.Device$updatedByArgs group?: boolean | Prisma.Device$groupArgs location?: boolean | Prisma.Device$locationArgs } export type $DevicePayload = { name: "Device" objects: { createdBy: Prisma.$UserPayload | null updatedBy: Prisma.$UserPayload | null group: Prisma.$DeviceGroupPayload | null location: Prisma.$LocationPayload | null history: Prisma.$DeviceHistoryPayload[] tags: Prisma.$TagPayload[] } 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 }, ExtArgs["result"]["device"]> composites: {} } export type DeviceGetPayload = runtime.Types.Result.GetResult export type DeviceCountArgs = Omit & { select?: DeviceCountAggregateInputType | true } export interface DeviceDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DeviceGroupByArgs['orderBy'] } : { orderBy?: DeviceGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetDeviceGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" createdBy = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> updatedBy = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> group = {}>(args?: Prisma.Subset>): Prisma.Prisma__DeviceGroupClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> location = {}>(args?: Prisma.Subset>): Prisma.Prisma__LocationClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> history = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> tags = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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'> } // Custom InputTypes /** * Device findUnique */ export type DeviceFindUniqueArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter, which Device to fetch. */ where: Prisma.DeviceWhereUniqueInput } /** * Device findUniqueOrThrow */ export type DeviceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter, which Device to fetch. */ where: Prisma.DeviceWhereUniqueInput } /** * Device findFirst */ export type DeviceFindFirstArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | 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 = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | 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 = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | 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 = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * The data needed to create a Device. */ data: Prisma.XOR } /** * Device createMany */ export type DeviceCreateManyArgs = { /** * The data used to create many Devices. */ data: Prisma.DeviceCreateManyInput | Prisma.DeviceCreateManyInput[] skipDuplicates?: boolean } /** * Device createManyAndReturn */ export type DeviceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelectCreateManyAndReturn | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | 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 | null } /** * Device update */ export type DeviceUpdateArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * The data needed to update a Device. */ data: Prisma.XOR /** * Choose, which Device to update. */ where: Prisma.DeviceWhereUniqueInput } /** * Device updateMany */ export type DeviceUpdateManyArgs = { /** * The data used to update Devices. */ data: Prisma.XOR /** * Filter which Devices to update */ where?: Prisma.DeviceWhereInput /** * Limit how many Devices to update. */ limit?: number } /** * Device updateManyAndReturn */ export type DeviceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelectUpdateManyAndReturn | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * The data used to update Devices. */ data: Prisma.XOR /** * 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 | null } /** * Device upsert */ export type DeviceUpsertArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | 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 /** * In case the Device was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Device delete */ export type DeviceDeleteArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter which Device to delete. */ where: Prisma.DeviceWhereUniqueInput } /** * Device deleteMany */ export type DeviceDeleteManyArgs = { /** * Filter which Devices to delete */ where?: Prisma.DeviceWhereInput /** * Limit how many Devices to delete. */ limit?: number } /** * Device.createdBy */ export type Device$createdByArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * Device.updatedBy */ export type Device$updatedByArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * Device.group */ export type Device$groupArgs = { /** * Select specific fields to fetch from the DeviceGroup */ select?: Prisma.DeviceGroupSelect | null /** * Omit specific fields from the DeviceGroup */ omit?: Prisma.DeviceGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceGroupInclude | null where?: Prisma.DeviceGroupWhereInput } /** * Device.location */ export type Device$locationArgs = { /** * Select specific fields to fetch from the Location */ select?: Prisma.LocationSelect | null /** * Omit specific fields from the Location */ omit?: Prisma.LocationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LocationInclude | null where?: Prisma.LocationWhereInput } /** * Device.history */ export type Device$historyArgs = { /** * Select specific fields to fetch from the DeviceHistory */ select?: Prisma.DeviceHistorySelect | null /** * Omit specific fields from the DeviceHistory */ omit?: Prisma.DeviceHistoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceHistoryInclude | 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 = { /** * Select specific fields to fetch from the Tag */ select?: Prisma.TagSelect | null /** * Omit specific fields from the Tag */ omit?: Prisma.TagOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TagInclude | 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 = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null }