/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ServerNodeHistory` 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 ServerNodeHistory * */ export type ServerNodeHistoryModel = runtime.Types.Result.DefaultSelection export type AggregateServerNodeHistory = { _count: ServerNodeHistoryCountAggregateOutputType | null _avg: ServerNodeHistoryAvgAggregateOutputType | null _sum: ServerNodeHistorySumAggregateOutputType | null _min: ServerNodeHistoryMinAggregateOutputType | null _max: ServerNodeHistoryMaxAggregateOutputType | null } export type ServerNodeHistoryAvgAggregateOutputType = { id: number | null cpu: number | null ram: number | null load: number | null disk: number | null netIn: number | null netOut: number | null process: number | null connections: number | null } export type ServerNodeHistorySumAggregateOutputType = { id: number | null cpu: number | null ram: bigint | null load: number | null disk: bigint | null netIn: bigint | null netOut: bigint | null process: number | null connections: number | null } export type ServerNodeHistoryMinAggregateOutputType = { id: number | null uuid: string | null period: Date | null cpu: number | null ram: bigint | null load: number | null disk: bigint | null netIn: bigint | null netOut: bigint | null process: number | null connections: number | null createdAt: Date | null } export type ServerNodeHistoryMaxAggregateOutputType = { id: number | null uuid: string | null period: Date | null cpu: number | null ram: bigint | null load: number | null disk: bigint | null netIn: bigint | null netOut: bigint | null process: number | null connections: number | null createdAt: Date | null } export type ServerNodeHistoryCountAggregateOutputType = { id: number uuid: number period: number cpu: number ram: number load: number disk: number netIn: number netOut: number process: number connections: number createdAt: number _all: number } export type ServerNodeHistoryAvgAggregateInputType = { id?: true cpu?: true ram?: true load?: true disk?: true netIn?: true netOut?: true process?: true connections?: true } export type ServerNodeHistorySumAggregateInputType = { id?: true cpu?: true ram?: true load?: true disk?: true netIn?: true netOut?: true process?: true connections?: true } export type ServerNodeHistoryMinAggregateInputType = { id?: true uuid?: true period?: true cpu?: true ram?: true load?: true disk?: true netIn?: true netOut?: true process?: true connections?: true createdAt?: true } export type ServerNodeHistoryMaxAggregateInputType = { id?: true uuid?: true period?: true cpu?: true ram?: true load?: true disk?: true netIn?: true netOut?: true process?: true connections?: true createdAt?: true } export type ServerNodeHistoryCountAggregateInputType = { id?: true uuid?: true period?: true cpu?: true ram?: true load?: true disk?: true netIn?: true netOut?: true process?: true connections?: true createdAt?: true _all?: true } export type ServerNodeHistoryAggregateArgs = { /** * Filter which ServerNodeHistory to aggregate. */ where?: Prisma.ServerNodeHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServerNodeHistories to fetch. */ orderBy?: Prisma.ServerNodeHistoryOrderByWithRelationInput | Prisma.ServerNodeHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ServerNodeHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServerNodeHistories 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` ServerNodeHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ServerNodeHistories **/ _count?: true | ServerNodeHistoryCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ServerNodeHistoryAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ServerNodeHistorySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ServerNodeHistoryMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ServerNodeHistoryMaxAggregateInputType } export type GetServerNodeHistoryAggregateType = { [P in keyof T & keyof AggregateServerNodeHistory]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ServerNodeHistoryGroupByArgs = { where?: Prisma.ServerNodeHistoryWhereInput orderBy?: Prisma.ServerNodeHistoryOrderByWithAggregationInput | Prisma.ServerNodeHistoryOrderByWithAggregationInput[] by: Prisma.ServerNodeHistoryScalarFieldEnum[] | Prisma.ServerNodeHistoryScalarFieldEnum having?: Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput take?: number skip?: number _count?: ServerNodeHistoryCountAggregateInputType | true _avg?: ServerNodeHistoryAvgAggregateInputType _sum?: ServerNodeHistorySumAggregateInputType _min?: ServerNodeHistoryMinAggregateInputType _max?: ServerNodeHistoryMaxAggregateInputType } export type ServerNodeHistoryGroupByOutputType = { id: number uuid: string period: Date cpu: number ram: bigint load: number disk: bigint netIn: bigint netOut: bigint process: number connections: number createdAt: Date _count: ServerNodeHistoryCountAggregateOutputType | null _avg: ServerNodeHistoryAvgAggregateOutputType | null _sum: ServerNodeHistorySumAggregateOutputType | null _min: ServerNodeHistoryMinAggregateOutputType | null _max: ServerNodeHistoryMaxAggregateOutputType | null } export type GetServerNodeHistoryGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ServerNodeHistoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ServerNodeHistoryWhereInput = { AND?: Prisma.ServerNodeHistoryWhereInput | Prisma.ServerNodeHistoryWhereInput[] OR?: Prisma.ServerNodeHistoryWhereInput[] NOT?: Prisma.ServerNodeHistoryWhereInput | Prisma.ServerNodeHistoryWhereInput[] id?: Prisma.IntFilter<"ServerNodeHistory"> | number uuid?: Prisma.StringFilter<"ServerNodeHistory"> | string period?: Prisma.DateTimeFilter<"ServerNodeHistory"> | Date | string cpu?: Prisma.FloatFilter<"ServerNodeHistory"> | number ram?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number load?: Prisma.FloatFilter<"ServerNodeHistory"> | number disk?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number netIn?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number netOut?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number process?: Prisma.IntFilter<"ServerNodeHistory"> | number connections?: Prisma.IntFilter<"ServerNodeHistory"> | number createdAt?: Prisma.DateTimeFilter<"ServerNodeHistory"> | Date | string } export type ServerNodeHistoryOrderByWithRelationInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder period?: Prisma.SortOrder cpu?: Prisma.SortOrder ram?: Prisma.SortOrder load?: Prisma.SortOrder disk?: Prisma.SortOrder netIn?: Prisma.SortOrder netOut?: Prisma.SortOrder process?: Prisma.SortOrder connections?: Prisma.SortOrder createdAt?: Prisma.SortOrder _relevance?: Prisma.ServerNodeHistoryOrderByRelevanceInput } export type ServerNodeHistoryWhereUniqueInput = Prisma.AtLeast<{ id?: number uuid_period?: Prisma.ServerNodeHistoryUuidPeriodCompoundUniqueInput AND?: Prisma.ServerNodeHistoryWhereInput | Prisma.ServerNodeHistoryWhereInput[] OR?: Prisma.ServerNodeHistoryWhereInput[] NOT?: Prisma.ServerNodeHistoryWhereInput | Prisma.ServerNodeHistoryWhereInput[] uuid?: Prisma.StringFilter<"ServerNodeHistory"> | string period?: Prisma.DateTimeFilter<"ServerNodeHistory"> | Date | string cpu?: Prisma.FloatFilter<"ServerNodeHistory"> | number ram?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number load?: Prisma.FloatFilter<"ServerNodeHistory"> | number disk?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number netIn?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number netOut?: Prisma.BigIntFilter<"ServerNodeHistory"> | bigint | number process?: Prisma.IntFilter<"ServerNodeHistory"> | number connections?: Prisma.IntFilter<"ServerNodeHistory"> | number createdAt?: Prisma.DateTimeFilter<"ServerNodeHistory"> | Date | string }, "id" | "uuid_period"> export type ServerNodeHistoryOrderByWithAggregationInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder period?: Prisma.SortOrder cpu?: Prisma.SortOrder ram?: Prisma.SortOrder load?: Prisma.SortOrder disk?: Prisma.SortOrder netIn?: Prisma.SortOrder netOut?: Prisma.SortOrder process?: Prisma.SortOrder connections?: Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.ServerNodeHistoryCountOrderByAggregateInput _avg?: Prisma.ServerNodeHistoryAvgOrderByAggregateInput _max?: Prisma.ServerNodeHistoryMaxOrderByAggregateInput _min?: Prisma.ServerNodeHistoryMinOrderByAggregateInput _sum?: Prisma.ServerNodeHistorySumOrderByAggregateInput } export type ServerNodeHistoryScalarWhereWithAggregatesInput = { AND?: Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput | Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput[] OR?: Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput[] NOT?: Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput | Prisma.ServerNodeHistoryScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"ServerNodeHistory"> | number uuid?: Prisma.StringWithAggregatesFilter<"ServerNodeHistory"> | string period?: Prisma.DateTimeWithAggregatesFilter<"ServerNodeHistory"> | Date | string cpu?: Prisma.FloatWithAggregatesFilter<"ServerNodeHistory"> | number ram?: Prisma.BigIntWithAggregatesFilter<"ServerNodeHistory"> | bigint | number load?: Prisma.FloatWithAggregatesFilter<"ServerNodeHistory"> | number disk?: Prisma.BigIntWithAggregatesFilter<"ServerNodeHistory"> | bigint | number netIn?: Prisma.BigIntWithAggregatesFilter<"ServerNodeHistory"> | bigint | number netOut?: Prisma.BigIntWithAggregatesFilter<"ServerNodeHistory"> | bigint | number process?: Prisma.IntWithAggregatesFilter<"ServerNodeHistory"> | number connections?: Prisma.IntWithAggregatesFilter<"ServerNodeHistory"> | number createdAt?: Prisma.DateTimeWithAggregatesFilter<"ServerNodeHistory"> | Date | string } export type ServerNodeHistoryCreateInput = { uuid: string period: Date | string cpu?: number ram?: bigint | number load?: number disk?: bigint | number netIn?: bigint | number netOut?: bigint | number process?: number connections?: number createdAt?: Date | string } export type ServerNodeHistoryUncheckedCreateInput = { id?: number uuid: string period: Date | string cpu?: number ram?: bigint | number load?: number disk?: bigint | number netIn?: bigint | number netOut?: bigint | number process?: number connections?: number createdAt?: Date | string } export type ServerNodeHistoryUpdateInput = { uuid?: Prisma.StringFieldUpdateOperationsInput | string period?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cpu?: Prisma.FloatFieldUpdateOperationsInput | number ram?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number load?: Prisma.FloatFieldUpdateOperationsInput | number disk?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number process?: Prisma.IntFieldUpdateOperationsInput | number connections?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ServerNodeHistoryUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string period?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cpu?: Prisma.FloatFieldUpdateOperationsInput | number ram?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number load?: Prisma.FloatFieldUpdateOperationsInput | number disk?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number process?: Prisma.IntFieldUpdateOperationsInput | number connections?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ServerNodeHistoryCreateManyInput = { id?: number uuid: string period: Date | string cpu?: number ram?: bigint | number load?: number disk?: bigint | number netIn?: bigint | number netOut?: bigint | number process?: number connections?: number createdAt?: Date | string } export type ServerNodeHistoryUpdateManyMutationInput = { uuid?: Prisma.StringFieldUpdateOperationsInput | string period?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cpu?: Prisma.FloatFieldUpdateOperationsInput | number ram?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number load?: Prisma.FloatFieldUpdateOperationsInput | number disk?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number process?: Prisma.IntFieldUpdateOperationsInput | number connections?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ServerNodeHistoryUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string period?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string cpu?: Prisma.FloatFieldUpdateOperationsInput | number ram?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number load?: Prisma.FloatFieldUpdateOperationsInput | number disk?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number process?: Prisma.IntFieldUpdateOperationsInput | number connections?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ServerNodeHistoryOrderByRelevanceInput = { fields: Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum | Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type ServerNodeHistoryUuidPeriodCompoundUniqueInput = { uuid: string period: Date | string } export type ServerNodeHistoryCountOrderByAggregateInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder period?: Prisma.SortOrder cpu?: Prisma.SortOrder ram?: Prisma.SortOrder load?: Prisma.SortOrder disk?: Prisma.SortOrder netIn?: Prisma.SortOrder netOut?: Prisma.SortOrder process?: Prisma.SortOrder connections?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ServerNodeHistoryAvgOrderByAggregateInput = { id?: Prisma.SortOrder cpu?: Prisma.SortOrder ram?: Prisma.SortOrder load?: Prisma.SortOrder disk?: Prisma.SortOrder netIn?: Prisma.SortOrder netOut?: Prisma.SortOrder process?: Prisma.SortOrder connections?: Prisma.SortOrder } export type ServerNodeHistoryMaxOrderByAggregateInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder period?: Prisma.SortOrder cpu?: Prisma.SortOrder ram?: Prisma.SortOrder load?: Prisma.SortOrder disk?: Prisma.SortOrder netIn?: Prisma.SortOrder netOut?: Prisma.SortOrder process?: Prisma.SortOrder connections?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ServerNodeHistoryMinOrderByAggregateInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder period?: Prisma.SortOrder cpu?: Prisma.SortOrder ram?: Prisma.SortOrder load?: Prisma.SortOrder disk?: Prisma.SortOrder netIn?: Prisma.SortOrder netOut?: Prisma.SortOrder process?: Prisma.SortOrder connections?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ServerNodeHistorySumOrderByAggregateInput = { id?: Prisma.SortOrder cpu?: Prisma.SortOrder ram?: Prisma.SortOrder load?: Prisma.SortOrder disk?: Prisma.SortOrder netIn?: Prisma.SortOrder netOut?: Prisma.SortOrder process?: Prisma.SortOrder connections?: Prisma.SortOrder } export type ServerNodeHistorySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean uuid?: boolean period?: boolean cpu?: boolean ram?: boolean load?: boolean disk?: boolean netIn?: boolean netOut?: boolean process?: boolean connections?: boolean createdAt?: boolean }, ExtArgs["result"]["serverNodeHistory"]> export type ServerNodeHistorySelectScalar = { id?: boolean uuid?: boolean period?: boolean cpu?: boolean ram?: boolean load?: boolean disk?: boolean netIn?: boolean netOut?: boolean process?: boolean connections?: boolean createdAt?: boolean } export type ServerNodeHistoryOmit = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "period" | "cpu" | "ram" | "load" | "disk" | "netIn" | "netOut" | "process" | "connections" | "createdAt", ExtArgs["result"]["serverNodeHistory"]> export type $ServerNodeHistoryPayload = { name: "ServerNodeHistory" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number uuid: string period: Date cpu: number ram: bigint load: number disk: bigint netIn: bigint netOut: bigint process: number connections: number createdAt: Date }, ExtArgs["result"]["serverNodeHistory"]> composites: {} } export type ServerNodeHistoryGetPayload = runtime.Types.Result.GetResult export type ServerNodeHistoryCountArgs = Omit & { select?: ServerNodeHistoryCountAggregateInputType | true } export interface ServerNodeHistoryDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ServerNodeHistory'], meta: { name: 'ServerNodeHistory' } } /** * Find zero or one ServerNodeHistory that matches the filter. * @param {ServerNodeHistoryFindUniqueArgs} args - Arguments to find a ServerNodeHistory * @example * // Get one ServerNodeHistory * const serverNodeHistory = await prisma.serverNodeHistory.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ServerNodeHistoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ServerNodeHistory that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ServerNodeHistoryFindUniqueOrThrowArgs} args - Arguments to find a ServerNodeHistory * @example * // Get one ServerNodeHistory * const serverNodeHistory = await prisma.serverNodeHistory.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ServerNodeHistoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ServerNodeHistory 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 {ServerNodeHistoryFindFirstArgs} args - Arguments to find a ServerNodeHistory * @example * // Get one ServerNodeHistory * const serverNodeHistory = await prisma.serverNodeHistory.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ServerNodeHistoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ServerNodeHistory 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 {ServerNodeHistoryFindFirstOrThrowArgs} args - Arguments to find a ServerNodeHistory * @example * // Get one ServerNodeHistory * const serverNodeHistory = await prisma.serverNodeHistory.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ServerNodeHistoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ServerNodeHistories 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 {ServerNodeHistoryFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ServerNodeHistories * const serverNodeHistories = await prisma.serverNodeHistory.findMany() * * // Get first 10 ServerNodeHistories * const serverNodeHistories = await prisma.serverNodeHistory.findMany({ take: 10 }) * * // Only select the `id` * const serverNodeHistoryWithIdOnly = await prisma.serverNodeHistory.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ServerNodeHistory. * @param {ServerNodeHistoryCreateArgs} args - Arguments to create a ServerNodeHistory. * @example * // Create one ServerNodeHistory * const ServerNodeHistory = await prisma.serverNodeHistory.create({ * data: { * // ... data to create a ServerNodeHistory * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ServerNodeHistoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ServerNodeHistories. * @param {ServerNodeHistoryCreateManyArgs} args - Arguments to create many ServerNodeHistories. * @example * // Create many ServerNodeHistories * const serverNodeHistory = await prisma.serverNodeHistory.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a ServerNodeHistory. * @param {ServerNodeHistoryDeleteArgs} args - Arguments to delete one ServerNodeHistory. * @example * // Delete one ServerNodeHistory * const ServerNodeHistory = await prisma.serverNodeHistory.delete({ * where: { * // ... filter to delete one ServerNodeHistory * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ServerNodeHistoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ServerNodeHistory. * @param {ServerNodeHistoryUpdateArgs} args - Arguments to update one ServerNodeHistory. * @example * // Update one ServerNodeHistory * const serverNodeHistory = await prisma.serverNodeHistory.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ServerNodeHistoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ServerNodeHistories. * @param {ServerNodeHistoryDeleteManyArgs} args - Arguments to filter ServerNodeHistories to delete. * @example * // Delete a few ServerNodeHistories * const { count } = await prisma.serverNodeHistory.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServerNodeHistories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServerNodeHistoryUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ServerNodeHistories * const serverNodeHistory = await prisma.serverNodeHistory.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one ServerNodeHistory. * @param {ServerNodeHistoryUpsertArgs} args - Arguments to update or create a ServerNodeHistory. * @example * // Update or create a ServerNodeHistory * const serverNodeHistory = await prisma.serverNodeHistory.upsert({ * create: { * // ... data to create a ServerNodeHistory * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ServerNodeHistory we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ServerNodeHistoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ServerNodeHistories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServerNodeHistoryCountArgs} args - Arguments to filter ServerNodeHistories to count. * @example * // Count the number of ServerNodeHistories * const count = await prisma.serverNodeHistory.count({ * where: { * // ... the filter for the ServerNodeHistories 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 ServerNodeHistory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServerNodeHistoryAggregateArgs} 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 ServerNodeHistory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServerNodeHistoryGroupByArgs} 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 ServerNodeHistoryGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ServerNodeHistoryGroupByArgs['orderBy'] } : { orderBy?: ServerNodeHistoryGroupByArgs['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 ? GetServerNodeHistoryGroupByPayload : Prisma.PrismaPromise /** * Fields of the ServerNodeHistory model */ readonly fields: ServerNodeHistoryFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ServerNodeHistory. * 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__ServerNodeHistoryClient 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 ServerNodeHistory model */ export interface ServerNodeHistoryFieldRefs { readonly id: Prisma.FieldRef<"ServerNodeHistory", 'Int'> readonly uuid: Prisma.FieldRef<"ServerNodeHistory", 'String'> readonly period: Prisma.FieldRef<"ServerNodeHistory", 'DateTime'> readonly cpu: Prisma.FieldRef<"ServerNodeHistory", 'Float'> readonly ram: Prisma.FieldRef<"ServerNodeHistory", 'BigInt'> readonly load: Prisma.FieldRef<"ServerNodeHistory", 'Float'> readonly disk: Prisma.FieldRef<"ServerNodeHistory", 'BigInt'> readonly netIn: Prisma.FieldRef<"ServerNodeHistory", 'BigInt'> readonly netOut: Prisma.FieldRef<"ServerNodeHistory", 'BigInt'> readonly process: Prisma.FieldRef<"ServerNodeHistory", 'Int'> readonly connections: Prisma.FieldRef<"ServerNodeHistory", 'Int'> readonly createdAt: Prisma.FieldRef<"ServerNodeHistory", 'DateTime'> } // Custom InputTypes /** * ServerNodeHistory findUnique */ export type ServerNodeHistoryFindUniqueArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * Filter, which ServerNodeHistory to fetch. */ where: Prisma.ServerNodeHistoryWhereUniqueInput } /** * ServerNodeHistory findUniqueOrThrow */ export type ServerNodeHistoryFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * Filter, which ServerNodeHistory to fetch. */ where: Prisma.ServerNodeHistoryWhereUniqueInput } /** * ServerNodeHistory findFirst */ export type ServerNodeHistoryFindFirstArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * Filter, which ServerNodeHistory to fetch. */ where?: Prisma.ServerNodeHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServerNodeHistories to fetch. */ orderBy?: Prisma.ServerNodeHistoryOrderByWithRelationInput | Prisma.ServerNodeHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServerNodeHistories. */ cursor?: Prisma.ServerNodeHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServerNodeHistories 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` ServerNodeHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServerNodeHistories. */ distinct?: Prisma.ServerNodeHistoryScalarFieldEnum | Prisma.ServerNodeHistoryScalarFieldEnum[] } /** * ServerNodeHistory findFirstOrThrow */ export type ServerNodeHistoryFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * Filter, which ServerNodeHistory to fetch. */ where?: Prisma.ServerNodeHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServerNodeHistories to fetch. */ orderBy?: Prisma.ServerNodeHistoryOrderByWithRelationInput | Prisma.ServerNodeHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServerNodeHistories. */ cursor?: Prisma.ServerNodeHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServerNodeHistories 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` ServerNodeHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServerNodeHistories. */ distinct?: Prisma.ServerNodeHistoryScalarFieldEnum | Prisma.ServerNodeHistoryScalarFieldEnum[] } /** * ServerNodeHistory findMany */ export type ServerNodeHistoryFindManyArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * Filter, which ServerNodeHistories to fetch. */ where?: Prisma.ServerNodeHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServerNodeHistories to fetch. */ orderBy?: Prisma.ServerNodeHistoryOrderByWithRelationInput | Prisma.ServerNodeHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ServerNodeHistories. */ cursor?: Prisma.ServerNodeHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServerNodeHistories 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` ServerNodeHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServerNodeHistories. */ distinct?: Prisma.ServerNodeHistoryScalarFieldEnum | Prisma.ServerNodeHistoryScalarFieldEnum[] } /** * ServerNodeHistory create */ export type ServerNodeHistoryCreateArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * The data needed to create a ServerNodeHistory. */ data: Prisma.XOR } /** * ServerNodeHistory createMany */ export type ServerNodeHistoryCreateManyArgs = { /** * The data used to create many ServerNodeHistories. */ data: Prisma.ServerNodeHistoryCreateManyInput | Prisma.ServerNodeHistoryCreateManyInput[] skipDuplicates?: boolean } /** * ServerNodeHistory update */ export type ServerNodeHistoryUpdateArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * The data needed to update a ServerNodeHistory. */ data: Prisma.XOR /** * Choose, which ServerNodeHistory to update. */ where: Prisma.ServerNodeHistoryWhereUniqueInput } /** * ServerNodeHistory updateMany */ export type ServerNodeHistoryUpdateManyArgs = { /** * The data used to update ServerNodeHistories. */ data: Prisma.XOR /** * Filter which ServerNodeHistories to update */ where?: Prisma.ServerNodeHistoryWhereInput /** * Limit how many ServerNodeHistories to update. */ limit?: number } /** * ServerNodeHistory upsert */ export type ServerNodeHistoryUpsertArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * The filter to search for the ServerNodeHistory to update in case it exists. */ where: Prisma.ServerNodeHistoryWhereUniqueInput /** * In case the ServerNodeHistory found by the `where` argument doesn't exist, create a new ServerNodeHistory with this data. */ create: Prisma.XOR /** * In case the ServerNodeHistory was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ServerNodeHistory delete */ export type ServerNodeHistoryDeleteArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null /** * Filter which ServerNodeHistory to delete. */ where: Prisma.ServerNodeHistoryWhereUniqueInput } /** * ServerNodeHistory deleteMany */ export type ServerNodeHistoryDeleteManyArgs = { /** * Filter which ServerNodeHistories to delete */ where?: Prisma.ServerNodeHistoryWhereInput /** * Limit how many ServerNodeHistories to delete. */ limit?: number } /** * ServerNodeHistory without action */ export type ServerNodeHistoryDefaultArgs = { /** * Select specific fields to fetch from the ServerNodeHistory */ select?: Prisma.ServerNodeHistorySelect | null /** * Omit specific fields from the ServerNodeHistory */ omit?: Prisma.ServerNodeHistoryOmit | null }