/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `DeviceHistory` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model DeviceHistory * */ export type DeviceHistoryModel = runtime.Types.Result.DefaultSelection export type AggregateDeviceHistory = { _count: DeviceHistoryCountAggregateOutputType | null _min: DeviceHistoryMinAggregateOutputType | null _max: DeviceHistoryMaxAggregateOutputType | null } export type DeviceHistoryMinAggregateOutputType = { id: string | null deviceId: string | null changeType: $Enums.DeviceChangeType | null changedAt: Date | null changedById: string | null } export type DeviceHistoryMaxAggregateOutputType = { id: string | null deviceId: string | null changeType: $Enums.DeviceChangeType | null changedAt: Date | null changedById: string | null } export type DeviceHistoryCountAggregateOutputType = { id: number deviceId: number changeType: number snapshot: number changedAt: number changedById: number _all: number } export type DeviceHistoryMinAggregateInputType = { id?: true deviceId?: true changeType?: true changedAt?: true changedById?: true } export type DeviceHistoryMaxAggregateInputType = { id?: true deviceId?: true changeType?: true changedAt?: true changedById?: true } export type DeviceHistoryCountAggregateInputType = { id?: true deviceId?: true changeType?: true snapshot?: true changedAt?: true changedById?: true _all?: true } export type DeviceHistoryAggregateArgs = { /** * Filter which DeviceHistory to aggregate. */ where?: Prisma.DeviceHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceHistories to fetch. */ orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.DeviceHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceHistories from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DeviceHistories **/ _count?: true | DeviceHistoryCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceHistoryMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceHistoryMaxAggregateInputType } export type GetDeviceHistoryAggregateType = { [P in keyof T & keyof AggregateDeviceHistory]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DeviceHistoryGroupByArgs = { where?: Prisma.DeviceHistoryWhereInput orderBy?: Prisma.DeviceHistoryOrderByWithAggregationInput | Prisma.DeviceHistoryOrderByWithAggregationInput[] by: Prisma.DeviceHistoryScalarFieldEnum[] | Prisma.DeviceHistoryScalarFieldEnum having?: Prisma.DeviceHistoryScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceHistoryCountAggregateInputType | true _min?: DeviceHistoryMinAggregateInputType _max?: DeviceHistoryMaxAggregateInputType } export type DeviceHistoryGroupByOutputType = { id: string deviceId: string changeType: $Enums.DeviceChangeType snapshot: runtime.JsonValue changedAt: Date changedById: string | null _count: DeviceHistoryCountAggregateOutputType | null _min: DeviceHistoryMinAggregateOutputType | null _max: DeviceHistoryMaxAggregateOutputType | null } type GetDeviceHistoryGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DeviceHistoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type DeviceHistoryWhereInput = { AND?: Prisma.DeviceHistoryWhereInput | Prisma.DeviceHistoryWhereInput[] OR?: Prisma.DeviceHistoryWhereInput[] NOT?: Prisma.DeviceHistoryWhereInput | Prisma.DeviceHistoryWhereInput[] id?: Prisma.StringFilter<"DeviceHistory"> | string deviceId?: Prisma.StringFilter<"DeviceHistory"> | string changeType?: Prisma.EnumDeviceChangeTypeFilter<"DeviceHistory"> | $Enums.DeviceChangeType snapshot?: Prisma.JsonFilter<"DeviceHistory"> changedAt?: Prisma.DateTimeFilter<"DeviceHistory"> | Date | string changedById?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null changedBy?: Prisma.XOR | null device?: Prisma.XOR } export type DeviceHistoryOrderByWithRelationInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder changeType?: Prisma.SortOrder snapshot?: Prisma.SortOrder changedAt?: Prisma.SortOrder changedById?: Prisma.SortOrderInput | Prisma.SortOrder changedBy?: Prisma.UserOrderByWithRelationInput device?: Prisma.DeviceOrderByWithRelationInput } export type DeviceHistoryWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.DeviceHistoryWhereInput | Prisma.DeviceHistoryWhereInput[] OR?: Prisma.DeviceHistoryWhereInput[] NOT?: Prisma.DeviceHistoryWhereInput | Prisma.DeviceHistoryWhereInput[] deviceId?: Prisma.StringFilter<"DeviceHistory"> | string changeType?: Prisma.EnumDeviceChangeTypeFilter<"DeviceHistory"> | $Enums.DeviceChangeType snapshot?: Prisma.JsonFilter<"DeviceHistory"> changedAt?: Prisma.DateTimeFilter<"DeviceHistory"> | Date | string changedById?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null changedBy?: Prisma.XOR | null device?: Prisma.XOR }, "id"> export type DeviceHistoryOrderByWithAggregationInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder changeType?: Prisma.SortOrder snapshot?: Prisma.SortOrder changedAt?: Prisma.SortOrder changedById?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.DeviceHistoryCountOrderByAggregateInput _max?: Prisma.DeviceHistoryMaxOrderByAggregateInput _min?: Prisma.DeviceHistoryMinOrderByAggregateInput } export type DeviceHistoryScalarWhereWithAggregatesInput = { AND?: Prisma.DeviceHistoryScalarWhereWithAggregatesInput | Prisma.DeviceHistoryScalarWhereWithAggregatesInput[] OR?: Prisma.DeviceHistoryScalarWhereWithAggregatesInput[] NOT?: Prisma.DeviceHistoryScalarWhereWithAggregatesInput | Prisma.DeviceHistoryScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"DeviceHistory"> | string deviceId?: Prisma.StringWithAggregatesFilter<"DeviceHistory"> | string changeType?: Prisma.EnumDeviceChangeTypeWithAggregatesFilter<"DeviceHistory"> | $Enums.DeviceChangeType snapshot?: Prisma.JsonWithAggregatesFilter<"DeviceHistory"> changedAt?: Prisma.DateTimeWithAggregatesFilter<"DeviceHistory"> | Date | string changedById?: Prisma.StringNullableWithAggregatesFilter<"DeviceHistory"> | string | null } export type DeviceHistoryCreateInput = { id?: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string changedBy?: Prisma.UserCreateNestedOneWithoutHistoryEntriesInput device: Prisma.DeviceCreateNestedOneWithoutHistoryInput } export type DeviceHistoryUncheckedCreateInput = { id?: string deviceId: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string changedById?: string | null } export type DeviceHistoryUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string changedBy?: Prisma.UserUpdateOneWithoutHistoryEntriesNestedInput device?: Prisma.DeviceUpdateOneRequiredWithoutHistoryNestedInput } export type DeviceHistoryUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string deviceId?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string changedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceHistoryCreateManyInput = { id?: string deviceId: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string changedById?: string | null } export type DeviceHistoryUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type DeviceHistoryUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string deviceId?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string changedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceHistoryListRelationFilter = { every?: Prisma.DeviceHistoryWhereInput some?: Prisma.DeviceHistoryWhereInput none?: Prisma.DeviceHistoryWhereInput } export type DeviceHistoryOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type DeviceHistoryCountOrderByAggregateInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder changeType?: Prisma.SortOrder snapshot?: Prisma.SortOrder changedAt?: Prisma.SortOrder changedById?: Prisma.SortOrder } export type DeviceHistoryMaxOrderByAggregateInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder changeType?: Prisma.SortOrder changedAt?: Prisma.SortOrder changedById?: Prisma.SortOrder } export type DeviceHistoryMinOrderByAggregateInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder changeType?: Prisma.SortOrder changedAt?: Prisma.SortOrder changedById?: Prisma.SortOrder } export type DeviceHistoryCreateNestedManyWithoutChangedByInput = { create?: Prisma.XOR | Prisma.DeviceHistoryCreateWithoutChangedByInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput[] connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput | Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput[] createMany?: Prisma.DeviceHistoryCreateManyChangedByInputEnvelope connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] } export type DeviceHistoryUncheckedCreateNestedManyWithoutChangedByInput = { create?: Prisma.XOR | Prisma.DeviceHistoryCreateWithoutChangedByInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput[] connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput | Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput[] createMany?: Prisma.DeviceHistoryCreateManyChangedByInputEnvelope connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] } export type DeviceHistoryUpdateManyWithoutChangedByNestedInput = { create?: Prisma.XOR | Prisma.DeviceHistoryCreateWithoutChangedByInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput[] connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput | Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput[] upsert?: Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput | Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput[] createMany?: Prisma.DeviceHistoryCreateManyChangedByInputEnvelope set?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] disconnect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] delete?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] update?: Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput | Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput[] updateMany?: Prisma.DeviceHistoryUpdateManyWithWhereWithoutChangedByInput | Prisma.DeviceHistoryUpdateManyWithWhereWithoutChangedByInput[] deleteMany?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[] } export type DeviceHistoryUncheckedUpdateManyWithoutChangedByNestedInput = { create?: Prisma.XOR | Prisma.DeviceHistoryCreateWithoutChangedByInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutChangedByInput[] connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput | Prisma.DeviceHistoryCreateOrConnectWithoutChangedByInput[] upsert?: Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput | Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput[] createMany?: Prisma.DeviceHistoryCreateManyChangedByInputEnvelope set?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] disconnect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] delete?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] update?: Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput | Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput[] updateMany?: Prisma.DeviceHistoryUpdateManyWithWhereWithoutChangedByInput | Prisma.DeviceHistoryUpdateManyWithWhereWithoutChangedByInput[] deleteMany?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[] } export type DeviceHistoryCreateNestedManyWithoutDeviceInput = { create?: Prisma.XOR | Prisma.DeviceHistoryCreateWithoutDeviceInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput[] connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput | Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput[] createMany?: Prisma.DeviceHistoryCreateManyDeviceInputEnvelope connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] } export type DeviceHistoryUncheckedCreateNestedManyWithoutDeviceInput = { create?: Prisma.XOR | Prisma.DeviceHistoryCreateWithoutDeviceInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput[] connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput | Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput[] createMany?: Prisma.DeviceHistoryCreateManyDeviceInputEnvelope connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] } export type DeviceHistoryUpdateManyWithoutDeviceNestedInput = { create?: Prisma.XOR | Prisma.DeviceHistoryCreateWithoutDeviceInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput[] connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput | Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput[] upsert?: Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput | Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput[] createMany?: Prisma.DeviceHistoryCreateManyDeviceInputEnvelope set?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] disconnect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] delete?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] update?: Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput | Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput[] updateMany?: Prisma.DeviceHistoryUpdateManyWithWhereWithoutDeviceInput | Prisma.DeviceHistoryUpdateManyWithWhereWithoutDeviceInput[] deleteMany?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[] } export type DeviceHistoryUncheckedUpdateManyWithoutDeviceNestedInput = { create?: Prisma.XOR | Prisma.DeviceHistoryCreateWithoutDeviceInput[] | Prisma.DeviceHistoryUncheckedCreateWithoutDeviceInput[] connectOrCreate?: Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput | Prisma.DeviceHistoryCreateOrConnectWithoutDeviceInput[] upsert?: Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput | Prisma.DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput[] createMany?: Prisma.DeviceHistoryCreateManyDeviceInputEnvelope set?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] disconnect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] delete?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] connect?: Prisma.DeviceHistoryWhereUniqueInput | Prisma.DeviceHistoryWhereUniqueInput[] update?: Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput | Prisma.DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput[] updateMany?: Prisma.DeviceHistoryUpdateManyWithWhereWithoutDeviceInput | Prisma.DeviceHistoryUpdateManyWithWhereWithoutDeviceInput[] deleteMany?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[] } export type EnumDeviceChangeTypeFieldUpdateOperationsInput = { set?: $Enums.DeviceChangeType } export type DeviceHistoryCreateWithoutChangedByInput = { id?: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string device: Prisma.DeviceCreateNestedOneWithoutHistoryInput } export type DeviceHistoryUncheckedCreateWithoutChangedByInput = { id?: string deviceId: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string } export type DeviceHistoryCreateOrConnectWithoutChangedByInput = { where: Prisma.DeviceHistoryWhereUniqueInput create: Prisma.XOR } export type DeviceHistoryCreateManyChangedByInputEnvelope = { data: Prisma.DeviceHistoryCreateManyChangedByInput | Prisma.DeviceHistoryCreateManyChangedByInput[] skipDuplicates?: boolean } export type DeviceHistoryUpsertWithWhereUniqueWithoutChangedByInput = { where: Prisma.DeviceHistoryWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceHistoryUpdateWithWhereUniqueWithoutChangedByInput = { where: Prisma.DeviceHistoryWhereUniqueInput data: Prisma.XOR } export type DeviceHistoryUpdateManyWithWhereWithoutChangedByInput = { where: Prisma.DeviceHistoryScalarWhereInput data: Prisma.XOR } export type DeviceHistoryScalarWhereInput = { AND?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[] OR?: Prisma.DeviceHistoryScalarWhereInput[] NOT?: Prisma.DeviceHistoryScalarWhereInput | Prisma.DeviceHistoryScalarWhereInput[] id?: Prisma.StringFilter<"DeviceHistory"> | string deviceId?: Prisma.StringFilter<"DeviceHistory"> | string changeType?: Prisma.EnumDeviceChangeTypeFilter<"DeviceHistory"> | $Enums.DeviceChangeType snapshot?: Prisma.JsonFilter<"DeviceHistory"> changedAt?: Prisma.DateTimeFilter<"DeviceHistory"> | Date | string changedById?: Prisma.StringNullableFilter<"DeviceHistory"> | string | null } export type DeviceHistoryCreateWithoutDeviceInput = { id?: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string changedBy?: Prisma.UserCreateNestedOneWithoutHistoryEntriesInput } export type DeviceHistoryUncheckedCreateWithoutDeviceInput = { id?: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string changedById?: string | null } export type DeviceHistoryCreateOrConnectWithoutDeviceInput = { where: Prisma.DeviceHistoryWhereUniqueInput create: Prisma.XOR } export type DeviceHistoryCreateManyDeviceInputEnvelope = { data: Prisma.DeviceHistoryCreateManyDeviceInput | Prisma.DeviceHistoryCreateManyDeviceInput[] skipDuplicates?: boolean } export type DeviceHistoryUpsertWithWhereUniqueWithoutDeviceInput = { where: Prisma.DeviceHistoryWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceHistoryUpdateWithWhereUniqueWithoutDeviceInput = { where: Prisma.DeviceHistoryWhereUniqueInput data: Prisma.XOR } export type DeviceHistoryUpdateManyWithWhereWithoutDeviceInput = { where: Prisma.DeviceHistoryScalarWhereInput data: Prisma.XOR } export type DeviceHistoryCreateManyChangedByInput = { id?: string deviceId: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string } export type DeviceHistoryUpdateWithoutChangedByInput = { id?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string device?: Prisma.DeviceUpdateOneRequiredWithoutHistoryNestedInput } export type DeviceHistoryUncheckedUpdateWithoutChangedByInput = { id?: Prisma.StringFieldUpdateOperationsInput | string deviceId?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type DeviceHistoryUncheckedUpdateManyWithoutChangedByInput = { id?: Prisma.StringFieldUpdateOperationsInput | string deviceId?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type DeviceHistoryCreateManyDeviceInput = { id?: string changeType: $Enums.DeviceChangeType snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Date | string changedById?: string | null } export type DeviceHistoryUpdateWithoutDeviceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string changedBy?: Prisma.UserUpdateOneWithoutHistoryEntriesNestedInput } export type DeviceHistoryUncheckedUpdateWithoutDeviceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string changedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceHistoryUncheckedUpdateManyWithoutDeviceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string changeType?: Prisma.EnumDeviceChangeTypeFieldUpdateOperationsInput | $Enums.DeviceChangeType snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue changedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string changedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceHistorySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean deviceId?: boolean changeType?: boolean snapshot?: boolean changedAt?: boolean changedById?: boolean changedBy?: boolean | Prisma.DeviceHistory$changedByArgs device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["deviceHistory"]> export type DeviceHistorySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean deviceId?: boolean changeType?: boolean snapshot?: boolean changedAt?: boolean changedById?: boolean changedBy?: boolean | Prisma.DeviceHistory$changedByArgs device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["deviceHistory"]> export type DeviceHistorySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean deviceId?: boolean changeType?: boolean snapshot?: boolean changedAt?: boolean changedById?: boolean changedBy?: boolean | Prisma.DeviceHistory$changedByArgs device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["deviceHistory"]> export type DeviceHistorySelectScalar = { id?: boolean deviceId?: boolean changeType?: boolean snapshot?: boolean changedAt?: boolean changedById?: boolean } export type DeviceHistoryOmit = runtime.Types.Extensions.GetOmit<"id" | "deviceId" | "changeType" | "snapshot" | "changedAt" | "changedById", ExtArgs["result"]["deviceHistory"]> export type DeviceHistoryInclude = { changedBy?: boolean | Prisma.DeviceHistory$changedByArgs device?: boolean | Prisma.DeviceDefaultArgs } export type DeviceHistoryIncludeCreateManyAndReturn = { changedBy?: boolean | Prisma.DeviceHistory$changedByArgs device?: boolean | Prisma.DeviceDefaultArgs } export type DeviceHistoryIncludeUpdateManyAndReturn = { changedBy?: boolean | Prisma.DeviceHistory$changedByArgs device?: boolean | Prisma.DeviceDefaultArgs } export type $DeviceHistoryPayload = { name: "DeviceHistory" objects: { changedBy: Prisma.$UserPayload | null device: Prisma.$DevicePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string deviceId: string changeType: $Enums.DeviceChangeType snapshot: runtime.JsonValue changedAt: Date changedById: string | null }, ExtArgs["result"]["deviceHistory"]> composites: {} } export type DeviceHistoryGetPayload = runtime.Types.Result.GetResult export type DeviceHistoryCountArgs = Omit & { select?: DeviceHistoryCountAggregateInputType | true } export interface DeviceHistoryDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DeviceHistory'], meta: { name: 'DeviceHistory' } } /** * Find zero or one DeviceHistory that matches the filter. * @param {DeviceHistoryFindUniqueArgs} args - Arguments to find a DeviceHistory * @example * // Get one DeviceHistory * const deviceHistory = await prisma.deviceHistory.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceHistoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one DeviceHistory that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceHistoryFindUniqueOrThrowArgs} args - Arguments to find a DeviceHistory * @example * // Get one DeviceHistory * const deviceHistory = await prisma.deviceHistory.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceHistoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first DeviceHistory that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceHistoryFindFirstArgs} args - Arguments to find a DeviceHistory * @example * // Get one DeviceHistory * const deviceHistory = await prisma.deviceHistory.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceHistoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first DeviceHistory that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceHistoryFindFirstOrThrowArgs} args - Arguments to find a DeviceHistory * @example * // Get one DeviceHistory * const deviceHistory = await prisma.deviceHistory.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceHistoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more DeviceHistories that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceHistoryFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DeviceHistories * const deviceHistories = await prisma.deviceHistory.findMany() * * // Get first 10 DeviceHistories * const deviceHistories = await prisma.deviceHistory.findMany({ take: 10 }) * * // Only select the `id` * const deviceHistoryWithIdOnly = await prisma.deviceHistory.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a DeviceHistory. * @param {DeviceHistoryCreateArgs} args - Arguments to create a DeviceHistory. * @example * // Create one DeviceHistory * const DeviceHistory = await prisma.deviceHistory.create({ * data: { * // ... data to create a DeviceHistory * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceHistoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many DeviceHistories. * @param {DeviceHistoryCreateManyArgs} args - Arguments to create many DeviceHistories. * @example * // Create many DeviceHistories * const deviceHistory = await prisma.deviceHistory.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many DeviceHistories and returns the data saved in the database. * @param {DeviceHistoryCreateManyAndReturnArgs} args - Arguments to create many DeviceHistories. * @example * // Create many DeviceHistories * const deviceHistory = await prisma.deviceHistory.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DeviceHistories and only return the `id` * const deviceHistoryWithIdOnly = await prisma.deviceHistory.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a DeviceHistory. * @param {DeviceHistoryDeleteArgs} args - Arguments to delete one DeviceHistory. * @example * // Delete one DeviceHistory * const DeviceHistory = await prisma.deviceHistory.delete({ * where: { * // ... filter to delete one DeviceHistory * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceHistoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one DeviceHistory. * @param {DeviceHistoryUpdateArgs} args - Arguments to update one DeviceHistory. * @example * // Update one DeviceHistory * const deviceHistory = await prisma.deviceHistory.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceHistoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more DeviceHistories. * @param {DeviceHistoryDeleteManyArgs} args - Arguments to filter DeviceHistories to delete. * @example * // Delete a few DeviceHistories * const { count } = await prisma.deviceHistory.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceHistories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceHistoryUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DeviceHistories * const deviceHistory = await prisma.deviceHistory.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceHistories and returns the data updated in the database. * @param {DeviceHistoryUpdateManyAndReturnArgs} args - Arguments to update many DeviceHistories. * @example * // Update many DeviceHistories * const deviceHistory = await prisma.deviceHistory.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DeviceHistories and only return the `id` * const deviceHistoryWithIdOnly = await prisma.deviceHistory.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one DeviceHistory. * @param {DeviceHistoryUpsertArgs} args - Arguments to update or create a DeviceHistory. * @example * // Update or create a DeviceHistory * const deviceHistory = await prisma.deviceHistory.upsert({ * create: { * // ... data to create a DeviceHistory * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DeviceHistory we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceHistoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of DeviceHistories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceHistoryCountArgs} args - Arguments to filter DeviceHistories to count. * @example * // Count the number of DeviceHistories * const count = await prisma.deviceHistory.count({ * where: { * // ... the filter for the DeviceHistories we want to count * } * }) **/ count( 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 DeviceHistory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceHistoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by DeviceHistory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceHistoryGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends DeviceHistoryGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DeviceHistoryGroupByArgs['orderBy'] } : { orderBy?: DeviceHistoryGroupByArgs['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 ? GetDeviceHistoryGroupByPayload : Prisma.PrismaPromise /** * Fields of the DeviceHistory model */ readonly fields: DeviceHistoryFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DeviceHistory. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__DeviceHistoryClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" changedBy = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> device = {}>(args?: Prisma.Subset>): Prisma.Prisma__DeviceClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 DeviceHistory model */ export interface DeviceHistoryFieldRefs { readonly id: Prisma.FieldRef<"DeviceHistory", 'String'> readonly deviceId: Prisma.FieldRef<"DeviceHistory", 'String'> readonly changeType: Prisma.FieldRef<"DeviceHistory", 'DeviceChangeType'> readonly snapshot: Prisma.FieldRef<"DeviceHistory", 'Json'> readonly changedAt: Prisma.FieldRef<"DeviceHistory", 'DateTime'> readonly changedById: Prisma.FieldRef<"DeviceHistory", 'String'> } // Custom InputTypes /** * DeviceHistory findUnique */ export type DeviceHistoryFindUniqueArgs = { /** * 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 /** * Filter, which DeviceHistory to fetch. */ where: Prisma.DeviceHistoryWhereUniqueInput } /** * DeviceHistory findUniqueOrThrow */ export type DeviceHistoryFindUniqueOrThrowArgs = { /** * 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 /** * Filter, which DeviceHistory to fetch. */ where: Prisma.DeviceHistoryWhereUniqueInput } /** * DeviceHistory findFirst */ export type DeviceHistoryFindFirstArgs = { /** * 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 /** * Filter, which DeviceHistory to fetch. */ where?: Prisma.DeviceHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceHistories to fetch. */ orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceHistories. */ cursor?: Prisma.DeviceHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceHistories from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceHistories. */ distinct?: Prisma.DeviceHistoryScalarFieldEnum | Prisma.DeviceHistoryScalarFieldEnum[] } /** * DeviceHistory findFirstOrThrow */ export type DeviceHistoryFindFirstOrThrowArgs = { /** * 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 /** * Filter, which DeviceHistory to fetch. */ where?: Prisma.DeviceHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceHistories to fetch. */ orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceHistories. */ cursor?: Prisma.DeviceHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceHistories from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceHistories. */ distinct?: Prisma.DeviceHistoryScalarFieldEnum | Prisma.DeviceHistoryScalarFieldEnum[] } /** * DeviceHistory findMany */ export type DeviceHistoryFindManyArgs = { /** * 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 /** * Filter, which DeviceHistories to fetch. */ where?: Prisma.DeviceHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceHistories to fetch. */ orderBy?: Prisma.DeviceHistoryOrderByWithRelationInput | Prisma.DeviceHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DeviceHistories. */ cursor?: Prisma.DeviceHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceHistories from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceHistories. */ skip?: number distinct?: Prisma.DeviceHistoryScalarFieldEnum | Prisma.DeviceHistoryScalarFieldEnum[] } /** * DeviceHistory create */ export type DeviceHistoryCreateArgs = { /** * 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 /** * The data needed to create a DeviceHistory. */ data: Prisma.XOR } /** * DeviceHistory createMany */ export type DeviceHistoryCreateManyArgs = { /** * The data used to create many DeviceHistories. */ data: Prisma.DeviceHistoryCreateManyInput | Prisma.DeviceHistoryCreateManyInput[] skipDuplicates?: boolean } /** * DeviceHistory createManyAndReturn */ export type DeviceHistoryCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceHistory */ select?: Prisma.DeviceHistorySelectCreateManyAndReturn | null /** * Omit specific fields from the DeviceHistory */ omit?: Prisma.DeviceHistoryOmit | null /** * The data used to create many DeviceHistories. */ data: Prisma.DeviceHistoryCreateManyInput | Prisma.DeviceHistoryCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceHistoryIncludeCreateManyAndReturn | null } /** * DeviceHistory update */ export type DeviceHistoryUpdateArgs = { /** * 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 /** * The data needed to update a DeviceHistory. */ data: Prisma.XOR /** * Choose, which DeviceHistory to update. */ where: Prisma.DeviceHistoryWhereUniqueInput } /** * DeviceHistory updateMany */ export type DeviceHistoryUpdateManyArgs = { /** * The data used to update DeviceHistories. */ data: Prisma.XOR /** * Filter which DeviceHistories to update */ where?: Prisma.DeviceHistoryWhereInput /** * Limit how many DeviceHistories to update. */ limit?: number } /** * DeviceHistory updateManyAndReturn */ export type DeviceHistoryUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceHistory */ select?: Prisma.DeviceHistorySelectUpdateManyAndReturn | null /** * Omit specific fields from the DeviceHistory */ omit?: Prisma.DeviceHistoryOmit | null /** * The data used to update DeviceHistories. */ data: Prisma.XOR /** * Filter which DeviceHistories to update */ where?: Prisma.DeviceHistoryWhereInput /** * Limit how many DeviceHistories to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceHistoryIncludeUpdateManyAndReturn | null } /** * DeviceHistory upsert */ export type DeviceHistoryUpsertArgs = { /** * 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 /** * The filter to search for the DeviceHistory to update in case it exists. */ where: Prisma.DeviceHistoryWhereUniqueInput /** * In case the DeviceHistory found by the `where` argument doesn't exist, create a new DeviceHistory with this data. */ create: Prisma.XOR /** * In case the DeviceHistory was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * DeviceHistory delete */ export type DeviceHistoryDeleteArgs = { /** * 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 /** * Filter which DeviceHistory to delete. */ where: Prisma.DeviceHistoryWhereUniqueInput } /** * DeviceHistory deleteMany */ export type DeviceHistoryDeleteManyArgs = { /** * Filter which DeviceHistories to delete */ where?: Prisma.DeviceHistoryWhereInput /** * Limit how many DeviceHistories to delete. */ limit?: number } /** * DeviceHistory.changedBy */ export type DeviceHistory$changedByArgs = { /** * 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 } /** * DeviceHistory without action */ export type DeviceHistoryDefaultArgs = { /** * 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 }