/* !!! 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_archive` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model device_archive * */ export type device_archiveModel = runtime.Types.Result.DefaultSelection export type AggregateDevice_archive = { _count: Device_archiveCountAggregateOutputType | null _avg: Device_archiveAvgAggregateOutputType | null _sum: Device_archiveSumAggregateOutputType | null _min: Device_archiveMinAggregateOutputType | null _max: Device_archiveMaxAggregateOutputType | null } export type Device_archiveAvgAggregateOutputType = { id: number | null delivery_id: number | null parent: number | null } export type Device_archiveSumAggregateOutputType = { id: number | null delivery_id: number | null parent: number | null } export type Device_archiveMinAggregateOutputType = { id: number | null delivery_id: number | null category: string | null name: string | null manufacturier: string | null model: string | null sn: string | null mac: string | null manage: string | null port: string | null protocol: string | null manage_cli: string | null port_cli: string | null protocol_cli: string | null user: string | null pass: string | null parent: number | null } export type Device_archiveMaxAggregateOutputType = { id: number | null delivery_id: number | null category: string | null name: string | null manufacturier: string | null model: string | null sn: string | null mac: string | null manage: string | null port: string | null protocol: string | null manage_cli: string | null port_cli: string | null protocol_cli: string | null user: string | null pass: string | null parent: number | null } export type Device_archiveCountAggregateOutputType = { id: number delivery_id: number category: number name: number manufacturier: number model: number sn: number mac: number manage: number port: number protocol: number manage_cli: number port_cli: number protocol_cli: number user: number pass: number parent: number _all: number } export type Device_archiveAvgAggregateInputType = { id?: true delivery_id?: true parent?: true } export type Device_archiveSumAggregateInputType = { id?: true delivery_id?: true parent?: true } export type Device_archiveMinAggregateInputType = { id?: true delivery_id?: true category?: true name?: true manufacturier?: true model?: true sn?: true mac?: true manage?: true port?: true protocol?: true manage_cli?: true port_cli?: true protocol_cli?: true user?: true pass?: true parent?: true } export type Device_archiveMaxAggregateInputType = { id?: true delivery_id?: true category?: true name?: true manufacturier?: true model?: true sn?: true mac?: true manage?: true port?: true protocol?: true manage_cli?: true port_cli?: true protocol_cli?: true user?: true pass?: true parent?: true } export type Device_archiveCountAggregateInputType = { id?: true delivery_id?: true category?: true name?: true manufacturier?: true model?: true sn?: true mac?: true manage?: true port?: true protocol?: true manage_cli?: true port_cli?: true protocol_cli?: true user?: true pass?: true parent?: true _all?: true } export type Device_archiveAggregateArgs = { /** * Filter which device_archive to aggregate. */ where?: Prisma.device_archiveWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of device_archives to fetch. */ orderBy?: Prisma.device_archiveOrderByWithRelationInput | Prisma.device_archiveOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.device_archiveWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` device_archives 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` device_archives. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned device_archives **/ _count?: true | Device_archiveCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Device_archiveAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Device_archiveSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Device_archiveMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Device_archiveMaxAggregateInputType } export type GetDevice_archiveAggregateType = { [P in keyof T & keyof AggregateDevice_archive]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type device_archiveGroupByArgs = { where?: Prisma.device_archiveWhereInput orderBy?: Prisma.device_archiveOrderByWithAggregationInput | Prisma.device_archiveOrderByWithAggregationInput[] by: Prisma.Device_archiveScalarFieldEnum[] | Prisma.Device_archiveScalarFieldEnum having?: Prisma.device_archiveScalarWhereWithAggregatesInput take?: number skip?: number _count?: Device_archiveCountAggregateInputType | true _avg?: Device_archiveAvgAggregateInputType _sum?: Device_archiveSumAggregateInputType _min?: Device_archiveMinAggregateInputType _max?: Device_archiveMaxAggregateInputType } export type Device_archiveGroupByOutputType = { id: number delivery_id: number category: string name: string manufacturier: string | null model: string | null sn: string | null mac: string | null manage: string port: string protocol: string manage_cli: string port_cli: string protocol_cli: string user: string pass: string parent: number _count: Device_archiveCountAggregateOutputType | null _avg: Device_archiveAvgAggregateOutputType | null _sum: Device_archiveSumAggregateOutputType | null _min: Device_archiveMinAggregateOutputType | null _max: Device_archiveMaxAggregateOutputType | null } type GetDevice_archiveGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Device_archiveGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type device_archiveWhereInput = { AND?: Prisma.device_archiveWhereInput | Prisma.device_archiveWhereInput[] OR?: Prisma.device_archiveWhereInput[] NOT?: Prisma.device_archiveWhereInput | Prisma.device_archiveWhereInput[] id?: Prisma.IntFilter<"device_archive"> | number delivery_id?: Prisma.IntFilter<"device_archive"> | number category?: Prisma.StringFilter<"device_archive"> | string name?: Prisma.StringFilter<"device_archive"> | string manufacturier?: Prisma.StringNullableFilter<"device_archive"> | string | null model?: Prisma.StringNullableFilter<"device_archive"> | string | null sn?: Prisma.StringNullableFilter<"device_archive"> | string | null mac?: Prisma.StringNullableFilter<"device_archive"> | string | null manage?: Prisma.StringFilter<"device_archive"> | string port?: Prisma.StringFilter<"device_archive"> | string protocol?: Prisma.StringFilter<"device_archive"> | string manage_cli?: Prisma.StringFilter<"device_archive"> | string port_cli?: Prisma.StringFilter<"device_archive"> | string protocol_cli?: Prisma.StringFilter<"device_archive"> | string user?: Prisma.StringFilter<"device_archive"> | string pass?: Prisma.StringFilter<"device_archive"> | string parent?: Prisma.IntFilter<"device_archive"> | number } export type device_archiveOrderByWithRelationInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrderInput | Prisma.SortOrder model?: Prisma.SortOrderInput | Prisma.SortOrder sn?: Prisma.SortOrderInput | Prisma.SortOrder mac?: Prisma.SortOrderInput | Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder _relevance?: Prisma.device_archiveOrderByRelevanceInput } export type device_archiveWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.device_archiveWhereInput | Prisma.device_archiveWhereInput[] OR?: Prisma.device_archiveWhereInput[] NOT?: Prisma.device_archiveWhereInput | Prisma.device_archiveWhereInput[] delivery_id?: Prisma.IntFilter<"device_archive"> | number category?: Prisma.StringFilter<"device_archive"> | string name?: Prisma.StringFilter<"device_archive"> | string manufacturier?: Prisma.StringNullableFilter<"device_archive"> | string | null model?: Prisma.StringNullableFilter<"device_archive"> | string | null sn?: Prisma.StringNullableFilter<"device_archive"> | string | null mac?: Prisma.StringNullableFilter<"device_archive"> | string | null manage?: Prisma.StringFilter<"device_archive"> | string port?: Prisma.StringFilter<"device_archive"> | string protocol?: Prisma.StringFilter<"device_archive"> | string manage_cli?: Prisma.StringFilter<"device_archive"> | string port_cli?: Prisma.StringFilter<"device_archive"> | string protocol_cli?: Prisma.StringFilter<"device_archive"> | string user?: Prisma.StringFilter<"device_archive"> | string pass?: Prisma.StringFilter<"device_archive"> | string parent?: Prisma.IntFilter<"device_archive"> | number }, "id"> export type device_archiveOrderByWithAggregationInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrderInput | Prisma.SortOrder model?: Prisma.SortOrderInput | Prisma.SortOrder sn?: Prisma.SortOrderInput | Prisma.SortOrder mac?: Prisma.SortOrderInput | Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder _count?: Prisma.device_archiveCountOrderByAggregateInput _avg?: Prisma.device_archiveAvgOrderByAggregateInput _max?: Prisma.device_archiveMaxOrderByAggregateInput _min?: Prisma.device_archiveMinOrderByAggregateInput _sum?: Prisma.device_archiveSumOrderByAggregateInput } export type device_archiveScalarWhereWithAggregatesInput = { AND?: Prisma.device_archiveScalarWhereWithAggregatesInput | Prisma.device_archiveScalarWhereWithAggregatesInput[] OR?: Prisma.device_archiveScalarWhereWithAggregatesInput[] NOT?: Prisma.device_archiveScalarWhereWithAggregatesInput | Prisma.device_archiveScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"device_archive"> | number delivery_id?: Prisma.IntWithAggregatesFilter<"device_archive"> | number category?: Prisma.StringWithAggregatesFilter<"device_archive"> | string name?: Prisma.StringWithAggregatesFilter<"device_archive"> | string manufacturier?: Prisma.StringNullableWithAggregatesFilter<"device_archive"> | string | null model?: Prisma.StringNullableWithAggregatesFilter<"device_archive"> | string | null sn?: Prisma.StringNullableWithAggregatesFilter<"device_archive"> | string | null mac?: Prisma.StringNullableWithAggregatesFilter<"device_archive"> | string | null manage?: Prisma.StringWithAggregatesFilter<"device_archive"> | string port?: Prisma.StringWithAggregatesFilter<"device_archive"> | string protocol?: Prisma.StringWithAggregatesFilter<"device_archive"> | string manage_cli?: Prisma.StringWithAggregatesFilter<"device_archive"> | string port_cli?: Prisma.StringWithAggregatesFilter<"device_archive"> | string protocol_cli?: Prisma.StringWithAggregatesFilter<"device_archive"> | string user?: Prisma.StringWithAggregatesFilter<"device_archive"> | string pass?: Prisma.StringWithAggregatesFilter<"device_archive"> | string parent?: Prisma.IntWithAggregatesFilter<"device_archive"> | number } export type device_archiveCreateInput = { delivery_id: number category: string name: string manufacturier?: string | null model?: string | null sn?: string | null mac?: string | null manage: string port?: string protocol?: string manage_cli: string port_cli?: string protocol_cli: string user: string pass: string parent?: number } export type device_archiveUncheckedCreateInput = { id?: number delivery_id: number category: string name: string manufacturier?: string | null model?: string | null sn?: string | null mac?: string | null manage: string port?: string protocol?: string manage_cli: string port_cli?: string protocol_cli: string user: string pass: string parent?: number } export type device_archiveUpdateInput = { delivery_id?: Prisma.IntFieldUpdateOperationsInput | number category?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null manage?: Prisma.StringFieldUpdateOperationsInput | string port?: Prisma.StringFieldUpdateOperationsInput | string protocol?: Prisma.StringFieldUpdateOperationsInput | string manage_cli?: Prisma.StringFieldUpdateOperationsInput | string port_cli?: Prisma.StringFieldUpdateOperationsInput | string protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.StringFieldUpdateOperationsInput | string pass?: Prisma.StringFieldUpdateOperationsInput | string parent?: Prisma.IntFieldUpdateOperationsInput | number } export type device_archiveUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number delivery_id?: Prisma.IntFieldUpdateOperationsInput | number category?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null manage?: Prisma.StringFieldUpdateOperationsInput | string port?: Prisma.StringFieldUpdateOperationsInput | string protocol?: Prisma.StringFieldUpdateOperationsInput | string manage_cli?: Prisma.StringFieldUpdateOperationsInput | string port_cli?: Prisma.StringFieldUpdateOperationsInput | string protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.StringFieldUpdateOperationsInput | string pass?: Prisma.StringFieldUpdateOperationsInput | string parent?: Prisma.IntFieldUpdateOperationsInput | number } export type device_archiveCreateManyInput = { id?: number delivery_id: number category: string name: string manufacturier?: string | null model?: string | null sn?: string | null mac?: string | null manage: string port?: string protocol?: string manage_cli: string port_cli?: string protocol_cli: string user: string pass: string parent?: number } export type device_archiveUpdateManyMutationInput = { delivery_id?: Prisma.IntFieldUpdateOperationsInput | number category?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null manage?: Prisma.StringFieldUpdateOperationsInput | string port?: Prisma.StringFieldUpdateOperationsInput | string protocol?: Prisma.StringFieldUpdateOperationsInput | string manage_cli?: Prisma.StringFieldUpdateOperationsInput | string port_cli?: Prisma.StringFieldUpdateOperationsInput | string protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.StringFieldUpdateOperationsInput | string pass?: Prisma.StringFieldUpdateOperationsInput | string parent?: Prisma.IntFieldUpdateOperationsInput | number } export type device_archiveUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number delivery_id?: Prisma.IntFieldUpdateOperationsInput | number category?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null manage?: Prisma.StringFieldUpdateOperationsInput | string port?: Prisma.StringFieldUpdateOperationsInput | string protocol?: Prisma.StringFieldUpdateOperationsInput | string manage_cli?: Prisma.StringFieldUpdateOperationsInput | string port_cli?: Prisma.StringFieldUpdateOperationsInput | string protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.StringFieldUpdateOperationsInput | string pass?: Prisma.StringFieldUpdateOperationsInput | string parent?: Prisma.IntFieldUpdateOperationsInput | number } export type device_archiveOrderByRelevanceInput = { fields: Prisma.device_archiveOrderByRelevanceFieldEnum | Prisma.device_archiveOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type device_archiveCountOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrder model?: Prisma.SortOrder sn?: Prisma.SortOrder mac?: Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder } export type device_archiveAvgOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder parent?: Prisma.SortOrder } export type device_archiveMaxOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrder model?: Prisma.SortOrder sn?: Prisma.SortOrder mac?: Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder } export type device_archiveMinOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder category?: Prisma.SortOrder name?: Prisma.SortOrder manufacturier?: Prisma.SortOrder model?: Prisma.SortOrder sn?: Prisma.SortOrder mac?: Prisma.SortOrder manage?: Prisma.SortOrder port?: Prisma.SortOrder protocol?: Prisma.SortOrder manage_cli?: Prisma.SortOrder port_cli?: Prisma.SortOrder protocol_cli?: Prisma.SortOrder user?: Prisma.SortOrder pass?: Prisma.SortOrder parent?: Prisma.SortOrder } export type device_archiveSumOrderByAggregateInput = { id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder parent?: Prisma.SortOrder } export type device_archiveSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean delivery_id?: boolean category?: boolean name?: boolean manufacturier?: boolean model?: boolean sn?: boolean mac?: boolean manage?: boolean port?: boolean protocol?: boolean manage_cli?: boolean port_cli?: boolean protocol_cli?: boolean user?: boolean pass?: boolean parent?: boolean }, ExtArgs["result"]["device_archive"]> export type device_archiveSelectScalar = { id?: boolean delivery_id?: boolean category?: boolean name?: boolean manufacturier?: boolean model?: boolean sn?: boolean mac?: boolean manage?: boolean port?: boolean protocol?: boolean manage_cli?: boolean port_cli?: boolean protocol_cli?: boolean user?: boolean pass?: boolean parent?: boolean } export type device_archiveOmit = runtime.Types.Extensions.GetOmit<"id" | "delivery_id" | "category" | "name" | "manufacturier" | "model" | "sn" | "mac" | "manage" | "port" | "protocol" | "manage_cli" | "port_cli" | "protocol_cli" | "user" | "pass" | "parent", ExtArgs["result"]["device_archive"]> export type $device_archivePayload = { name: "device_archive" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number delivery_id: number category: string name: string manufacturier: string | null model: string | null sn: string | null mac: string | null manage: string port: string protocol: string manage_cli: string port_cli: string protocol_cli: string user: string pass: string parent: number }, ExtArgs["result"]["device_archive"]> composites: {} } export type device_archiveGetPayload = runtime.Types.Result.GetResult export type device_archiveCountArgs = Omit & { select?: Device_archiveCountAggregateInputType | true } export interface device_archiveDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['device_archive'], meta: { name: 'device_archive' } } /** * Find zero or one Device_archive that matches the filter. * @param {device_archiveFindUniqueArgs} args - Arguments to find a Device_archive * @example * // Get one Device_archive * const device_archive = await prisma.device_archive.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Device_archive that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {device_archiveFindUniqueOrThrowArgs} args - Arguments to find a Device_archive * @example * // Get one Device_archive * const device_archive = await prisma.device_archive.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Device_archive 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 {device_archiveFindFirstArgs} args - Arguments to find a Device_archive * @example * // Get one Device_archive * const device_archive = await prisma.device_archive.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Device_archive 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 {device_archiveFindFirstOrThrowArgs} args - Arguments to find a Device_archive * @example * // Get one Device_archive * const device_archive = await prisma.device_archive.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Device_archives 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 {device_archiveFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Device_archives * const device_archives = await prisma.device_archive.findMany() * * // Get first 10 Device_archives * const device_archives = await prisma.device_archive.findMany({ take: 10 }) * * // Only select the `id` * const device_archiveWithIdOnly = await prisma.device_archive.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Device_archive. * @param {device_archiveCreateArgs} args - Arguments to create a Device_archive. * @example * // Create one Device_archive * const Device_archive = await prisma.device_archive.create({ * data: { * // ... data to create a Device_archive * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Device_archives. * @param {device_archiveCreateManyArgs} args - Arguments to create many Device_archives. * @example * // Create many Device_archives * const device_archive = await prisma.device_archive.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Device_archive. * @param {device_archiveDeleteArgs} args - Arguments to delete one Device_archive. * @example * // Delete one Device_archive * const Device_archive = await prisma.device_archive.delete({ * where: { * // ... filter to delete one Device_archive * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Device_archive. * @param {device_archiveUpdateArgs} args - Arguments to update one Device_archive. * @example * // Update one Device_archive * const device_archive = await prisma.device_archive.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Device_archives. * @param {device_archiveDeleteManyArgs} args - Arguments to filter Device_archives to delete. * @example * // Delete a few Device_archives * const { count } = await prisma.device_archive.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Device_archives. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {device_archiveUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Device_archives * const device_archive = await prisma.device_archive.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Device_archive. * @param {device_archiveUpsertArgs} args - Arguments to update or create a Device_archive. * @example * // Update or create a Device_archive * const device_archive = await prisma.device_archive.upsert({ * create: { * // ... data to create a Device_archive * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Device_archive we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Device_archives. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {device_archiveCountArgs} args - Arguments to filter Device_archives to count. * @example * // Count the number of Device_archives * const count = await prisma.device_archive.count({ * where: { * // ... the filter for the Device_archives 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_archive. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Device_archiveAggregateArgs} 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_archive. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {device_archiveGroupByArgs} 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 device_archiveGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: device_archiveGroupByArgs['orderBy'] } : { orderBy?: device_archiveGroupByArgs['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 ? GetDevice_archiveGroupByPayload : Prisma.PrismaPromise /** * Fields of the device_archive model */ readonly fields: device_archiveFieldRefs; } /** * The delegate class that acts as a "Promise-like" for device_archive. * 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__device_archiveClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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_archive model */ export interface device_archiveFieldRefs { readonly id: Prisma.FieldRef<"device_archive", 'Int'> readonly delivery_id: Prisma.FieldRef<"device_archive", 'Int'> readonly category: Prisma.FieldRef<"device_archive", 'String'> readonly name: Prisma.FieldRef<"device_archive", 'String'> readonly manufacturier: Prisma.FieldRef<"device_archive", 'String'> readonly model: Prisma.FieldRef<"device_archive", 'String'> readonly sn: Prisma.FieldRef<"device_archive", 'String'> readonly mac: Prisma.FieldRef<"device_archive", 'String'> readonly manage: Prisma.FieldRef<"device_archive", 'String'> readonly port: Prisma.FieldRef<"device_archive", 'String'> readonly protocol: Prisma.FieldRef<"device_archive", 'String'> readonly manage_cli: Prisma.FieldRef<"device_archive", 'String'> readonly port_cli: Prisma.FieldRef<"device_archive", 'String'> readonly protocol_cli: Prisma.FieldRef<"device_archive", 'String'> readonly user: Prisma.FieldRef<"device_archive", 'String'> readonly pass: Prisma.FieldRef<"device_archive", 'String'> readonly parent: Prisma.FieldRef<"device_archive", 'Int'> } // Custom InputTypes /** * device_archive findUnique */ export type device_archiveFindUniqueArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * Filter, which device_archive to fetch. */ where: Prisma.device_archiveWhereUniqueInput } /** * device_archive findUniqueOrThrow */ export type device_archiveFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * Filter, which device_archive to fetch. */ where: Prisma.device_archiveWhereUniqueInput } /** * device_archive findFirst */ export type device_archiveFindFirstArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * Filter, which device_archive to fetch. */ where?: Prisma.device_archiveWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of device_archives to fetch. */ orderBy?: Prisma.device_archiveOrderByWithRelationInput | Prisma.device_archiveOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for device_archives. */ cursor?: Prisma.device_archiveWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` device_archives 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` device_archives. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of device_archives. */ distinct?: Prisma.Device_archiveScalarFieldEnum | Prisma.Device_archiveScalarFieldEnum[] } /** * device_archive findFirstOrThrow */ export type device_archiveFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * Filter, which device_archive to fetch. */ where?: Prisma.device_archiveWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of device_archives to fetch. */ orderBy?: Prisma.device_archiveOrderByWithRelationInput | Prisma.device_archiveOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for device_archives. */ cursor?: Prisma.device_archiveWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` device_archives 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` device_archives. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of device_archives. */ distinct?: Prisma.Device_archiveScalarFieldEnum | Prisma.Device_archiveScalarFieldEnum[] } /** * device_archive findMany */ export type device_archiveFindManyArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * Filter, which device_archives to fetch. */ where?: Prisma.device_archiveWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of device_archives to fetch. */ orderBy?: Prisma.device_archiveOrderByWithRelationInput | Prisma.device_archiveOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing device_archives. */ cursor?: Prisma.device_archiveWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` device_archives 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` device_archives. */ skip?: number distinct?: Prisma.Device_archiveScalarFieldEnum | Prisma.Device_archiveScalarFieldEnum[] } /** * device_archive create */ export type device_archiveCreateArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * The data needed to create a device_archive. */ data: Prisma.XOR } /** * device_archive createMany */ export type device_archiveCreateManyArgs = { /** * The data used to create many device_archives. */ data: Prisma.device_archiveCreateManyInput | Prisma.device_archiveCreateManyInput[] skipDuplicates?: boolean } /** * device_archive update */ export type device_archiveUpdateArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * The data needed to update a device_archive. */ data: Prisma.XOR /** * Choose, which device_archive to update. */ where: Prisma.device_archiveWhereUniqueInput } /** * device_archive updateMany */ export type device_archiveUpdateManyArgs = { /** * The data used to update device_archives. */ data: Prisma.XOR /** * Filter which device_archives to update */ where?: Prisma.device_archiveWhereInput /** * Limit how many device_archives to update. */ limit?: number } /** * device_archive upsert */ export type device_archiveUpsertArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * The filter to search for the device_archive to update in case it exists. */ where: Prisma.device_archiveWhereUniqueInput /** * In case the device_archive found by the `where` argument doesn't exist, create a new device_archive with this data. */ create: Prisma.XOR /** * In case the device_archive was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * device_archive delete */ export type device_archiveDeleteArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null /** * Filter which device_archive to delete. */ where: Prisma.device_archiveWhereUniqueInput } /** * device_archive deleteMany */ export type device_archiveDeleteManyArgs = { /** * Filter which device_archives to delete */ where?: Prisma.device_archiveWhereInput /** * Limit how many device_archives to delete. */ limit?: number } /** * device_archive without action */ export type device_archiveDefaultArgs = { /** * Select specific fields to fetch from the device_archive */ select?: Prisma.device_archiveSelect | null /** * Omit specific fields from the device_archive */ omit?: Prisma.device_archiveOmit | null }