1703 lines
57 KiB
TypeScript
1703 lines
57 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `ServerNode` 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 ServerNode
|
|
*
|
|
*/
|
|
export type ServerNodeModel = runtime.Types.Result.DefaultSelection<Prisma.$ServerNodePayload>
|
|
|
|
export type AggregateServerNode = {
|
|
_count: ServerNodeCountAggregateOutputType | null
|
|
_avg: ServerNodeAvgAggregateOutputType | null
|
|
_sum: ServerNodeSumAggregateOutputType | null
|
|
_min: ServerNodeMinAggregateOutputType | null
|
|
_max: ServerNodeMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ServerNodeAvgAggregateOutputType = {
|
|
id: number | null
|
|
memTotal: number | null
|
|
diskTotal: number | null
|
|
cpuCores: number | null
|
|
cpuUsage: number | null
|
|
ramUsed: number | null
|
|
swapUsed: number | null
|
|
load1: number | null
|
|
load5: number | null
|
|
load15: number | null
|
|
diskUsed: number | null
|
|
netIn: number | null
|
|
netOut: number | null
|
|
uptime: number | null
|
|
process: number | null
|
|
connections: number | null
|
|
}
|
|
|
|
export type ServerNodeSumAggregateOutputType = {
|
|
id: number | null
|
|
memTotal: bigint | null
|
|
diskTotal: bigint | null
|
|
cpuCores: number | null
|
|
cpuUsage: number | null
|
|
ramUsed: bigint | null
|
|
swapUsed: bigint | null
|
|
load1: number | null
|
|
load5: number | null
|
|
load15: number | null
|
|
diskUsed: bigint | null
|
|
netIn: bigint | null
|
|
netOut: bigint | null
|
|
uptime: bigint | null
|
|
process: number | null
|
|
connections: number | null
|
|
}
|
|
|
|
export type ServerNodeMinAggregateOutputType = {
|
|
id: number | null
|
|
uuid: string | null
|
|
name: string | null
|
|
cpuName: string | null
|
|
os: string | null
|
|
region: string | null
|
|
memTotal: bigint | null
|
|
diskTotal: bigint | null
|
|
cpuCores: number | null
|
|
cpuUsage: number | null
|
|
ramUsed: bigint | null
|
|
swapUsed: bigint | null
|
|
load1: number | null
|
|
load5: number | null
|
|
load15: number | null
|
|
diskUsed: bigint | null
|
|
netIn: bigint | null
|
|
netOut: bigint | null
|
|
uptime: bigint | null
|
|
process: number | null
|
|
connections: number | null
|
|
status: string | null
|
|
recordedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ServerNodeMaxAggregateOutputType = {
|
|
id: number | null
|
|
uuid: string | null
|
|
name: string | null
|
|
cpuName: string | null
|
|
os: string | null
|
|
region: string | null
|
|
memTotal: bigint | null
|
|
diskTotal: bigint | null
|
|
cpuCores: number | null
|
|
cpuUsage: number | null
|
|
ramUsed: bigint | null
|
|
swapUsed: bigint | null
|
|
load1: number | null
|
|
load5: number | null
|
|
load15: number | null
|
|
diskUsed: bigint | null
|
|
netIn: bigint | null
|
|
netOut: bigint | null
|
|
uptime: bigint | null
|
|
process: number | null
|
|
connections: number | null
|
|
status: string | null
|
|
recordedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type ServerNodeCountAggregateOutputType = {
|
|
id: number
|
|
uuid: number
|
|
name: number
|
|
cpuName: number
|
|
os: number
|
|
region: number
|
|
memTotal: number
|
|
diskTotal: number
|
|
cpuCores: number
|
|
cpuUsage: number
|
|
ramUsed: number
|
|
swapUsed: number
|
|
load1: number
|
|
load5: number
|
|
load15: number
|
|
diskUsed: number
|
|
netIn: number
|
|
netOut: number
|
|
uptime: number
|
|
process: number
|
|
connections: number
|
|
status: number
|
|
recordedAt: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ServerNodeAvgAggregateInputType = {
|
|
id?: true
|
|
memTotal?: true
|
|
diskTotal?: true
|
|
cpuCores?: true
|
|
cpuUsage?: true
|
|
ramUsed?: true
|
|
swapUsed?: true
|
|
load1?: true
|
|
load5?: true
|
|
load15?: true
|
|
diskUsed?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
uptime?: true
|
|
process?: true
|
|
connections?: true
|
|
}
|
|
|
|
export type ServerNodeSumAggregateInputType = {
|
|
id?: true
|
|
memTotal?: true
|
|
diskTotal?: true
|
|
cpuCores?: true
|
|
cpuUsage?: true
|
|
ramUsed?: true
|
|
swapUsed?: true
|
|
load1?: true
|
|
load5?: true
|
|
load15?: true
|
|
diskUsed?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
uptime?: true
|
|
process?: true
|
|
connections?: true
|
|
}
|
|
|
|
export type ServerNodeMinAggregateInputType = {
|
|
id?: true
|
|
uuid?: true
|
|
name?: true
|
|
cpuName?: true
|
|
os?: true
|
|
region?: true
|
|
memTotal?: true
|
|
diskTotal?: true
|
|
cpuCores?: true
|
|
cpuUsage?: true
|
|
ramUsed?: true
|
|
swapUsed?: true
|
|
load1?: true
|
|
load5?: true
|
|
load15?: true
|
|
diskUsed?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
uptime?: true
|
|
process?: true
|
|
connections?: true
|
|
status?: true
|
|
recordedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ServerNodeMaxAggregateInputType = {
|
|
id?: true
|
|
uuid?: true
|
|
name?: true
|
|
cpuName?: true
|
|
os?: true
|
|
region?: true
|
|
memTotal?: true
|
|
diskTotal?: true
|
|
cpuCores?: true
|
|
cpuUsage?: true
|
|
ramUsed?: true
|
|
swapUsed?: true
|
|
load1?: true
|
|
load5?: true
|
|
load15?: true
|
|
diskUsed?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
uptime?: true
|
|
process?: true
|
|
connections?: true
|
|
status?: true
|
|
recordedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type ServerNodeCountAggregateInputType = {
|
|
id?: true
|
|
uuid?: true
|
|
name?: true
|
|
cpuName?: true
|
|
os?: true
|
|
region?: true
|
|
memTotal?: true
|
|
diskTotal?: true
|
|
cpuCores?: true
|
|
cpuUsage?: true
|
|
ramUsed?: true
|
|
swapUsed?: true
|
|
load1?: true
|
|
load5?: true
|
|
load15?: true
|
|
diskUsed?: true
|
|
netIn?: true
|
|
netOut?: true
|
|
uptime?: true
|
|
process?: true
|
|
connections?: true
|
|
status?: true
|
|
recordedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ServerNodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ServerNode to aggregate.
|
|
*/
|
|
where?: Prisma.ServerNodeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ServerNodes to fetch.
|
|
*/
|
|
orderBy?: Prisma.ServerNodeOrderByWithRelationInput | Prisma.ServerNodeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.ServerNodeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ServerNodes 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` ServerNodes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ServerNodes
|
|
**/
|
|
_count?: true | ServerNodeCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ServerNodeAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ServerNodeSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ServerNodeMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ServerNodeMaxAggregateInputType
|
|
}
|
|
|
|
export type GetServerNodeAggregateType<T extends ServerNodeAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateServerNode]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateServerNode[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateServerNode[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ServerNodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ServerNodeWhereInput
|
|
orderBy?: Prisma.ServerNodeOrderByWithAggregationInput | Prisma.ServerNodeOrderByWithAggregationInput[]
|
|
by: Prisma.ServerNodeScalarFieldEnum[] | Prisma.ServerNodeScalarFieldEnum
|
|
having?: Prisma.ServerNodeScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ServerNodeCountAggregateInputType | true
|
|
_avg?: ServerNodeAvgAggregateInputType
|
|
_sum?: ServerNodeSumAggregateInputType
|
|
_min?: ServerNodeMinAggregateInputType
|
|
_max?: ServerNodeMaxAggregateInputType
|
|
}
|
|
|
|
export type ServerNodeGroupByOutputType = {
|
|
id: number
|
|
uuid: string
|
|
name: string
|
|
cpuName: string
|
|
os: string
|
|
region: string
|
|
memTotal: bigint
|
|
diskTotal: bigint
|
|
cpuCores: number
|
|
cpuUsage: number
|
|
ramUsed: bigint
|
|
swapUsed: bigint
|
|
load1: number
|
|
load5: number
|
|
load15: number
|
|
diskUsed: bigint
|
|
netIn: bigint
|
|
netOut: bigint
|
|
uptime: bigint
|
|
process: number
|
|
connections: number
|
|
status: string
|
|
recordedAt: Date
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: ServerNodeCountAggregateOutputType | null
|
|
_avg: ServerNodeAvgAggregateOutputType | null
|
|
_sum: ServerNodeSumAggregateOutputType | null
|
|
_min: ServerNodeMinAggregateOutputType | null
|
|
_max: ServerNodeMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetServerNodeGroupByPayload<T extends ServerNodeGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ServerNodeGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ServerNodeGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ServerNodeGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ServerNodeGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type ServerNodeWhereInput = {
|
|
AND?: Prisma.ServerNodeWhereInput | Prisma.ServerNodeWhereInput[]
|
|
OR?: Prisma.ServerNodeWhereInput[]
|
|
NOT?: Prisma.ServerNodeWhereInput | Prisma.ServerNodeWhereInput[]
|
|
id?: Prisma.IntFilter<"ServerNode"> | number
|
|
uuid?: Prisma.StringFilter<"ServerNode"> | string
|
|
name?: Prisma.StringFilter<"ServerNode"> | string
|
|
cpuName?: Prisma.StringFilter<"ServerNode"> | string
|
|
os?: Prisma.StringFilter<"ServerNode"> | string
|
|
region?: Prisma.StringFilter<"ServerNode"> | string
|
|
memTotal?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
diskTotal?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
cpuCores?: Prisma.IntFilter<"ServerNode"> | number
|
|
cpuUsage?: Prisma.FloatFilter<"ServerNode"> | number
|
|
ramUsed?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
swapUsed?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
load1?: Prisma.FloatFilter<"ServerNode"> | number
|
|
load5?: Prisma.FloatFilter<"ServerNode"> | number
|
|
load15?: Prisma.FloatFilter<"ServerNode"> | number
|
|
diskUsed?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
netIn?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
netOut?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
uptime?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
process?: Prisma.IntFilter<"ServerNode"> | number
|
|
connections?: Prisma.IntFilter<"ServerNode"> | number
|
|
status?: Prisma.StringFilter<"ServerNode"> | string
|
|
recordedAt?: Prisma.DateTimeFilter<"ServerNode"> | Date | string
|
|
createdAt?: Prisma.DateTimeFilter<"ServerNode"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"ServerNode"> | Date | string
|
|
}
|
|
|
|
export type ServerNodeOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cpuName?: Prisma.SortOrder
|
|
os?: Prisma.SortOrder
|
|
region?: Prisma.SortOrder
|
|
memTotal?: Prisma.SortOrder
|
|
diskTotal?: Prisma.SortOrder
|
|
cpuCores?: Prisma.SortOrder
|
|
cpuUsage?: Prisma.SortOrder
|
|
ramUsed?: Prisma.SortOrder
|
|
swapUsed?: Prisma.SortOrder
|
|
load1?: Prisma.SortOrder
|
|
load5?: Prisma.SortOrder
|
|
load15?: Prisma.SortOrder
|
|
diskUsed?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
uptime?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
recordedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_relevance?: Prisma.ServerNodeOrderByRelevanceInput
|
|
}
|
|
|
|
export type ServerNodeWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
uuid?: string
|
|
AND?: Prisma.ServerNodeWhereInput | Prisma.ServerNodeWhereInput[]
|
|
OR?: Prisma.ServerNodeWhereInput[]
|
|
NOT?: Prisma.ServerNodeWhereInput | Prisma.ServerNodeWhereInput[]
|
|
name?: Prisma.StringFilter<"ServerNode"> | string
|
|
cpuName?: Prisma.StringFilter<"ServerNode"> | string
|
|
os?: Prisma.StringFilter<"ServerNode"> | string
|
|
region?: Prisma.StringFilter<"ServerNode"> | string
|
|
memTotal?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
diskTotal?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
cpuCores?: Prisma.IntFilter<"ServerNode"> | number
|
|
cpuUsage?: Prisma.FloatFilter<"ServerNode"> | number
|
|
ramUsed?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
swapUsed?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
load1?: Prisma.FloatFilter<"ServerNode"> | number
|
|
load5?: Prisma.FloatFilter<"ServerNode"> | number
|
|
load15?: Prisma.FloatFilter<"ServerNode"> | number
|
|
diskUsed?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
netIn?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
netOut?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
uptime?: Prisma.BigIntFilter<"ServerNode"> | bigint | number
|
|
process?: Prisma.IntFilter<"ServerNode"> | number
|
|
connections?: Prisma.IntFilter<"ServerNode"> | number
|
|
status?: Prisma.StringFilter<"ServerNode"> | string
|
|
recordedAt?: Prisma.DateTimeFilter<"ServerNode"> | Date | string
|
|
createdAt?: Prisma.DateTimeFilter<"ServerNode"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"ServerNode"> | Date | string
|
|
}, "id" | "uuid">
|
|
|
|
export type ServerNodeOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cpuName?: Prisma.SortOrder
|
|
os?: Prisma.SortOrder
|
|
region?: Prisma.SortOrder
|
|
memTotal?: Prisma.SortOrder
|
|
diskTotal?: Prisma.SortOrder
|
|
cpuCores?: Prisma.SortOrder
|
|
cpuUsage?: Prisma.SortOrder
|
|
ramUsed?: Prisma.SortOrder
|
|
swapUsed?: Prisma.SortOrder
|
|
load1?: Prisma.SortOrder
|
|
load5?: Prisma.SortOrder
|
|
load15?: Prisma.SortOrder
|
|
diskUsed?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
uptime?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
recordedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.ServerNodeCountOrderByAggregateInput
|
|
_avg?: Prisma.ServerNodeAvgOrderByAggregateInput
|
|
_max?: Prisma.ServerNodeMaxOrderByAggregateInput
|
|
_min?: Prisma.ServerNodeMinOrderByAggregateInput
|
|
_sum?: Prisma.ServerNodeSumOrderByAggregateInput
|
|
}
|
|
|
|
export type ServerNodeScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.ServerNodeScalarWhereWithAggregatesInput | Prisma.ServerNodeScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.ServerNodeScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.ServerNodeScalarWhereWithAggregatesInput | Prisma.ServerNodeScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"ServerNode"> | number
|
|
uuid?: Prisma.StringWithAggregatesFilter<"ServerNode"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"ServerNode"> | string
|
|
cpuName?: Prisma.StringWithAggregatesFilter<"ServerNode"> | string
|
|
os?: Prisma.StringWithAggregatesFilter<"ServerNode"> | string
|
|
region?: Prisma.StringWithAggregatesFilter<"ServerNode"> | string
|
|
memTotal?: Prisma.BigIntWithAggregatesFilter<"ServerNode"> | bigint | number
|
|
diskTotal?: Prisma.BigIntWithAggregatesFilter<"ServerNode"> | bigint | number
|
|
cpuCores?: Prisma.IntWithAggregatesFilter<"ServerNode"> | number
|
|
cpuUsage?: Prisma.FloatWithAggregatesFilter<"ServerNode"> | number
|
|
ramUsed?: Prisma.BigIntWithAggregatesFilter<"ServerNode"> | bigint | number
|
|
swapUsed?: Prisma.BigIntWithAggregatesFilter<"ServerNode"> | bigint | number
|
|
load1?: Prisma.FloatWithAggregatesFilter<"ServerNode"> | number
|
|
load5?: Prisma.FloatWithAggregatesFilter<"ServerNode"> | number
|
|
load15?: Prisma.FloatWithAggregatesFilter<"ServerNode"> | number
|
|
diskUsed?: Prisma.BigIntWithAggregatesFilter<"ServerNode"> | bigint | number
|
|
netIn?: Prisma.BigIntWithAggregatesFilter<"ServerNode"> | bigint | number
|
|
netOut?: Prisma.BigIntWithAggregatesFilter<"ServerNode"> | bigint | number
|
|
uptime?: Prisma.BigIntWithAggregatesFilter<"ServerNode"> | bigint | number
|
|
process?: Prisma.IntWithAggregatesFilter<"ServerNode"> | number
|
|
connections?: Prisma.IntWithAggregatesFilter<"ServerNode"> | number
|
|
status?: Prisma.StringWithAggregatesFilter<"ServerNode"> | string
|
|
recordedAt?: Prisma.DateTimeWithAggregatesFilter<"ServerNode"> | Date | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ServerNode"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ServerNode"> | Date | string
|
|
}
|
|
|
|
export type ServerNodeCreateInput = {
|
|
uuid: string
|
|
name: string
|
|
cpuName?: string
|
|
os?: string
|
|
region?: string
|
|
memTotal?: bigint | number
|
|
diskTotal?: bigint | number
|
|
cpuCores?: number
|
|
cpuUsage?: number
|
|
ramUsed?: bigint | number
|
|
swapUsed?: bigint | number
|
|
load1?: number
|
|
load5?: number
|
|
load15?: number
|
|
diskUsed?: bigint | number
|
|
netIn?: bigint | number
|
|
netOut?: bigint | number
|
|
uptime?: bigint | number
|
|
process?: number
|
|
connections?: number
|
|
status?: string
|
|
recordedAt: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ServerNodeUncheckedCreateInput = {
|
|
id?: number
|
|
uuid: string
|
|
name: string
|
|
cpuName?: string
|
|
os?: string
|
|
region?: string
|
|
memTotal?: bigint | number
|
|
diskTotal?: bigint | number
|
|
cpuCores?: number
|
|
cpuUsage?: number
|
|
ramUsed?: bigint | number
|
|
swapUsed?: bigint | number
|
|
load1?: number
|
|
load5?: number
|
|
load15?: number
|
|
diskUsed?: bigint | number
|
|
netIn?: bigint | number
|
|
netOut?: bigint | number
|
|
uptime?: bigint | number
|
|
process?: number
|
|
connections?: number
|
|
status?: string
|
|
recordedAt: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ServerNodeUpdateInput = {
|
|
uuid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cpuName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
os?: Prisma.StringFieldUpdateOperationsInput | string
|
|
region?: Prisma.StringFieldUpdateOperationsInput | string
|
|
memTotal?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
diskTotal?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
cpuCores?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cpuUsage?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
ramUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
swapUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
load1?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
load5?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
load15?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
diskUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
uptime?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
process?: Prisma.IntFieldUpdateOperationsInput | number
|
|
connections?: Prisma.IntFieldUpdateOperationsInput | number
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ServerNodeUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
uuid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cpuName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
os?: Prisma.StringFieldUpdateOperationsInput | string
|
|
region?: Prisma.StringFieldUpdateOperationsInput | string
|
|
memTotal?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
diskTotal?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
cpuCores?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cpuUsage?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
ramUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
swapUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
load1?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
load5?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
load15?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
diskUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
uptime?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
process?: Prisma.IntFieldUpdateOperationsInput | number
|
|
connections?: Prisma.IntFieldUpdateOperationsInput | number
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ServerNodeCreateManyInput = {
|
|
id?: number
|
|
uuid: string
|
|
name: string
|
|
cpuName?: string
|
|
os?: string
|
|
region?: string
|
|
memTotal?: bigint | number
|
|
diskTotal?: bigint | number
|
|
cpuCores?: number
|
|
cpuUsage?: number
|
|
ramUsed?: bigint | number
|
|
swapUsed?: bigint | number
|
|
load1?: number
|
|
load5?: number
|
|
load15?: number
|
|
diskUsed?: bigint | number
|
|
netIn?: bigint | number
|
|
netOut?: bigint | number
|
|
uptime?: bigint | number
|
|
process?: number
|
|
connections?: number
|
|
status?: string
|
|
recordedAt: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type ServerNodeUpdateManyMutationInput = {
|
|
uuid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cpuName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
os?: Prisma.StringFieldUpdateOperationsInput | string
|
|
region?: Prisma.StringFieldUpdateOperationsInput | string
|
|
memTotal?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
diskTotal?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
cpuCores?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cpuUsage?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
ramUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
swapUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
load1?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
load5?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
load15?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
diskUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
uptime?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
process?: Prisma.IntFieldUpdateOperationsInput | number
|
|
connections?: Prisma.IntFieldUpdateOperationsInput | number
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ServerNodeUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
uuid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cpuName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
os?: Prisma.StringFieldUpdateOperationsInput | string
|
|
region?: Prisma.StringFieldUpdateOperationsInput | string
|
|
memTotal?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
diskTotal?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
cpuCores?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cpuUsage?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
ramUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
swapUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
load1?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
load5?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
load15?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
diskUsed?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netIn?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
netOut?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
uptime?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
process?: Prisma.IntFieldUpdateOperationsInput | number
|
|
connections?: Prisma.IntFieldUpdateOperationsInput | number
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
recordedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ServerNodeOrderByRelevanceInput = {
|
|
fields: Prisma.ServerNodeOrderByRelevanceFieldEnum | Prisma.ServerNodeOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type ServerNodeCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cpuName?: Prisma.SortOrder
|
|
os?: Prisma.SortOrder
|
|
region?: Prisma.SortOrder
|
|
memTotal?: Prisma.SortOrder
|
|
diskTotal?: Prisma.SortOrder
|
|
cpuCores?: Prisma.SortOrder
|
|
cpuUsage?: Prisma.SortOrder
|
|
ramUsed?: Prisma.SortOrder
|
|
swapUsed?: Prisma.SortOrder
|
|
load1?: Prisma.SortOrder
|
|
load5?: Prisma.SortOrder
|
|
load15?: Prisma.SortOrder
|
|
diskUsed?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
uptime?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
recordedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ServerNodeAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
memTotal?: Prisma.SortOrder
|
|
diskTotal?: Prisma.SortOrder
|
|
cpuCores?: Prisma.SortOrder
|
|
cpuUsage?: Prisma.SortOrder
|
|
ramUsed?: Prisma.SortOrder
|
|
swapUsed?: Prisma.SortOrder
|
|
load1?: Prisma.SortOrder
|
|
load5?: Prisma.SortOrder
|
|
load15?: Prisma.SortOrder
|
|
diskUsed?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
uptime?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ServerNodeMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cpuName?: Prisma.SortOrder
|
|
os?: Prisma.SortOrder
|
|
region?: Prisma.SortOrder
|
|
memTotal?: Prisma.SortOrder
|
|
diskTotal?: Prisma.SortOrder
|
|
cpuCores?: Prisma.SortOrder
|
|
cpuUsage?: Prisma.SortOrder
|
|
ramUsed?: Prisma.SortOrder
|
|
swapUsed?: Prisma.SortOrder
|
|
load1?: Prisma.SortOrder
|
|
load5?: Prisma.SortOrder
|
|
load15?: Prisma.SortOrder
|
|
diskUsed?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
uptime?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
recordedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ServerNodeMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
uuid?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cpuName?: Prisma.SortOrder
|
|
os?: Prisma.SortOrder
|
|
region?: Prisma.SortOrder
|
|
memTotal?: Prisma.SortOrder
|
|
diskTotal?: Prisma.SortOrder
|
|
cpuCores?: Prisma.SortOrder
|
|
cpuUsage?: Prisma.SortOrder
|
|
ramUsed?: Prisma.SortOrder
|
|
swapUsed?: Prisma.SortOrder
|
|
load1?: Prisma.SortOrder
|
|
load5?: Prisma.SortOrder
|
|
load15?: Prisma.SortOrder
|
|
diskUsed?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
uptime?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
recordedAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ServerNodeSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
memTotal?: Prisma.SortOrder
|
|
diskTotal?: Prisma.SortOrder
|
|
cpuCores?: Prisma.SortOrder
|
|
cpuUsage?: Prisma.SortOrder
|
|
ramUsed?: Prisma.SortOrder
|
|
swapUsed?: Prisma.SortOrder
|
|
load1?: Prisma.SortOrder
|
|
load5?: Prisma.SortOrder
|
|
load15?: Prisma.SortOrder
|
|
diskUsed?: Prisma.SortOrder
|
|
netIn?: Prisma.SortOrder
|
|
netOut?: Prisma.SortOrder
|
|
uptime?: Prisma.SortOrder
|
|
process?: Prisma.SortOrder
|
|
connections?: Prisma.SortOrder
|
|
}
|
|
|
|
export type BigIntFieldUpdateOperationsInput = {
|
|
set?: bigint | number
|
|
increment?: bigint | number
|
|
decrement?: bigint | number
|
|
multiply?: bigint | number
|
|
divide?: bigint | number
|
|
}
|
|
|
|
|
|
|
|
export type ServerNodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
uuid?: boolean
|
|
name?: boolean
|
|
cpuName?: boolean
|
|
os?: boolean
|
|
region?: boolean
|
|
memTotal?: boolean
|
|
diskTotal?: boolean
|
|
cpuCores?: boolean
|
|
cpuUsage?: boolean
|
|
ramUsed?: boolean
|
|
swapUsed?: boolean
|
|
load1?: boolean
|
|
load5?: boolean
|
|
load15?: boolean
|
|
diskUsed?: boolean
|
|
netIn?: boolean
|
|
netOut?: boolean
|
|
uptime?: boolean
|
|
process?: boolean
|
|
connections?: boolean
|
|
status?: boolean
|
|
recordedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["serverNode"]>
|
|
|
|
|
|
|
|
export type ServerNodeSelectScalar = {
|
|
id?: boolean
|
|
uuid?: boolean
|
|
name?: boolean
|
|
cpuName?: boolean
|
|
os?: boolean
|
|
region?: boolean
|
|
memTotal?: boolean
|
|
diskTotal?: boolean
|
|
cpuCores?: boolean
|
|
cpuUsage?: boolean
|
|
ramUsed?: boolean
|
|
swapUsed?: boolean
|
|
load1?: boolean
|
|
load5?: boolean
|
|
load15?: boolean
|
|
diskUsed?: boolean
|
|
netIn?: boolean
|
|
netOut?: boolean
|
|
uptime?: boolean
|
|
process?: boolean
|
|
connections?: boolean
|
|
status?: boolean
|
|
recordedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type ServerNodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "name" | "cpuName" | "os" | "region" | "memTotal" | "diskTotal" | "cpuCores" | "cpuUsage" | "ramUsed" | "swapUsed" | "load1" | "load5" | "load15" | "diskUsed" | "netIn" | "netOut" | "uptime" | "process" | "connections" | "status" | "recordedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["serverNode"]>
|
|
|
|
export type $ServerNodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "ServerNode"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
uuid: string
|
|
name: string
|
|
cpuName: string
|
|
os: string
|
|
region: string
|
|
memTotal: bigint
|
|
diskTotal: bigint
|
|
cpuCores: number
|
|
cpuUsage: number
|
|
ramUsed: bigint
|
|
swapUsed: bigint
|
|
load1: number
|
|
load5: number
|
|
load15: number
|
|
diskUsed: bigint
|
|
netIn: bigint
|
|
netOut: bigint
|
|
uptime: bigint
|
|
process: number
|
|
connections: number
|
|
status: string
|
|
recordedAt: Date
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["serverNode"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type ServerNodeGetPayload<S extends boolean | null | undefined | ServerNodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ServerNodePayload, S>
|
|
|
|
export type ServerNodeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<ServerNodeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ServerNodeCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ServerNodeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ServerNode'], meta: { name: 'ServerNode' } }
|
|
/**
|
|
* Find zero or one ServerNode that matches the filter.
|
|
* @param {ServerNodeFindUniqueArgs} args - Arguments to find a ServerNode
|
|
* @example
|
|
* // Get one ServerNode
|
|
* const serverNode = await prisma.serverNode.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ServerNodeFindUniqueArgs>(args: Prisma.SelectSubset<T, ServerNodeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ServerNodeClient<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one ServerNode that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ServerNodeFindUniqueOrThrowArgs} args - Arguments to find a ServerNode
|
|
* @example
|
|
* // Get one ServerNode
|
|
* const serverNode = await prisma.serverNode.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ServerNodeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ServerNodeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ServerNodeClient<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ServerNode 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 {ServerNodeFindFirstArgs} args - Arguments to find a ServerNode
|
|
* @example
|
|
* // Get one ServerNode
|
|
* const serverNode = await prisma.serverNode.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ServerNodeFindFirstArgs>(args?: Prisma.SelectSubset<T, ServerNodeFindFirstArgs<ExtArgs>>): Prisma.Prisma__ServerNodeClient<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ServerNode 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 {ServerNodeFindFirstOrThrowArgs} args - Arguments to find a ServerNode
|
|
* @example
|
|
* // Get one ServerNode
|
|
* const serverNode = await prisma.serverNode.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ServerNodeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ServerNodeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ServerNodeClient<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more ServerNodes 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 {ServerNodeFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ServerNodes
|
|
* const serverNodes = await prisma.serverNode.findMany()
|
|
*
|
|
* // Get first 10 ServerNodes
|
|
* const serverNodes = await prisma.serverNode.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const serverNodeWithIdOnly = await prisma.serverNode.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ServerNodeFindManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a ServerNode.
|
|
* @param {ServerNodeCreateArgs} args - Arguments to create a ServerNode.
|
|
* @example
|
|
* // Create one ServerNode
|
|
* const ServerNode = await prisma.serverNode.create({
|
|
* data: {
|
|
* // ... data to create a ServerNode
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ServerNodeCreateArgs>(args: Prisma.SelectSubset<T, ServerNodeCreateArgs<ExtArgs>>): Prisma.Prisma__ServerNodeClient<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many ServerNodes.
|
|
* @param {ServerNodeCreateManyArgs} args - Arguments to create many ServerNodes.
|
|
* @example
|
|
* // Create many ServerNodes
|
|
* const serverNode = await prisma.serverNode.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ServerNodeCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a ServerNode.
|
|
* @param {ServerNodeDeleteArgs} args - Arguments to delete one ServerNode.
|
|
* @example
|
|
* // Delete one ServerNode
|
|
* const ServerNode = await prisma.serverNode.delete({
|
|
* where: {
|
|
* // ... filter to delete one ServerNode
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ServerNodeDeleteArgs>(args: Prisma.SelectSubset<T, ServerNodeDeleteArgs<ExtArgs>>): Prisma.Prisma__ServerNodeClient<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one ServerNode.
|
|
* @param {ServerNodeUpdateArgs} args - Arguments to update one ServerNode.
|
|
* @example
|
|
* // Update one ServerNode
|
|
* const serverNode = await prisma.serverNode.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ServerNodeUpdateArgs>(args: Prisma.SelectSubset<T, ServerNodeUpdateArgs<ExtArgs>>): Prisma.Prisma__ServerNodeClient<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more ServerNodes.
|
|
* @param {ServerNodeDeleteManyArgs} args - Arguments to filter ServerNodes to delete.
|
|
* @example
|
|
* // Delete a few ServerNodes
|
|
* const { count } = await prisma.serverNode.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ServerNodeDeleteManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ServerNodes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ServerNodes
|
|
* const serverNode = await prisma.serverNode.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ServerNodeUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one ServerNode.
|
|
* @param {ServerNodeUpsertArgs} args - Arguments to update or create a ServerNode.
|
|
* @example
|
|
* // Update or create a ServerNode
|
|
* const serverNode = await prisma.serverNode.upsert({
|
|
* create: {
|
|
* // ... data to create a ServerNode
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ServerNode we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ServerNodeUpsertArgs>(args: Prisma.SelectSubset<T, ServerNodeUpsertArgs<ExtArgs>>): Prisma.Prisma__ServerNodeClient<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of ServerNodes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeCountArgs} args - Arguments to filter ServerNodes to count.
|
|
* @example
|
|
* // Count the number of ServerNodes
|
|
* const count = await prisma.serverNode.count({
|
|
* where: {
|
|
* // ... the filter for the ServerNodes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ServerNodeCountArgs>(
|
|
args?: Prisma.Subset<T, ServerNodeCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ServerNodeCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ServerNode.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ServerNodeAggregateArgs>(args: Prisma.Subset<T, ServerNodeAggregateArgs>): Prisma.PrismaPromise<GetServerNodeAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ServerNode.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ServerNodeGroupByArgs} 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 ServerNodeGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: ServerNodeGroupByArgs['orderBy'] }
|
|
: { orderBy?: ServerNodeGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, ServerNodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetServerNodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ServerNode model
|
|
*/
|
|
readonly fields: ServerNodeFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ServerNode.
|
|
* 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__ServerNodeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the ServerNode model
|
|
*/
|
|
export interface ServerNodeFieldRefs {
|
|
readonly id: Prisma.FieldRef<"ServerNode", 'Int'>
|
|
readonly uuid: Prisma.FieldRef<"ServerNode", 'String'>
|
|
readonly name: Prisma.FieldRef<"ServerNode", 'String'>
|
|
readonly cpuName: Prisma.FieldRef<"ServerNode", 'String'>
|
|
readonly os: Prisma.FieldRef<"ServerNode", 'String'>
|
|
readonly region: Prisma.FieldRef<"ServerNode", 'String'>
|
|
readonly memTotal: Prisma.FieldRef<"ServerNode", 'BigInt'>
|
|
readonly diskTotal: Prisma.FieldRef<"ServerNode", 'BigInt'>
|
|
readonly cpuCores: Prisma.FieldRef<"ServerNode", 'Int'>
|
|
readonly cpuUsage: Prisma.FieldRef<"ServerNode", 'Float'>
|
|
readonly ramUsed: Prisma.FieldRef<"ServerNode", 'BigInt'>
|
|
readonly swapUsed: Prisma.FieldRef<"ServerNode", 'BigInt'>
|
|
readonly load1: Prisma.FieldRef<"ServerNode", 'Float'>
|
|
readonly load5: Prisma.FieldRef<"ServerNode", 'Float'>
|
|
readonly load15: Prisma.FieldRef<"ServerNode", 'Float'>
|
|
readonly diskUsed: Prisma.FieldRef<"ServerNode", 'BigInt'>
|
|
readonly netIn: Prisma.FieldRef<"ServerNode", 'BigInt'>
|
|
readonly netOut: Prisma.FieldRef<"ServerNode", 'BigInt'>
|
|
readonly uptime: Prisma.FieldRef<"ServerNode", 'BigInt'>
|
|
readonly process: Prisma.FieldRef<"ServerNode", 'Int'>
|
|
readonly connections: Prisma.FieldRef<"ServerNode", 'Int'>
|
|
readonly status: Prisma.FieldRef<"ServerNode", 'String'>
|
|
readonly recordedAt: Prisma.FieldRef<"ServerNode", 'DateTime'>
|
|
readonly createdAt: Prisma.FieldRef<"ServerNode", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"ServerNode", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ServerNode findUnique
|
|
*/
|
|
export type ServerNodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNode to fetch.
|
|
*/
|
|
where: Prisma.ServerNodeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ServerNode findUniqueOrThrow
|
|
*/
|
|
export type ServerNodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNode to fetch.
|
|
*/
|
|
where: Prisma.ServerNodeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ServerNode findFirst
|
|
*/
|
|
export type ServerNodeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNode to fetch.
|
|
*/
|
|
where?: Prisma.ServerNodeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ServerNodes to fetch.
|
|
*/
|
|
orderBy?: Prisma.ServerNodeOrderByWithRelationInput | Prisma.ServerNodeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ServerNodes.
|
|
*/
|
|
cursor?: Prisma.ServerNodeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ServerNodes 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` ServerNodes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ServerNodes.
|
|
*/
|
|
distinct?: Prisma.ServerNodeScalarFieldEnum | Prisma.ServerNodeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ServerNode findFirstOrThrow
|
|
*/
|
|
export type ServerNodeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNode to fetch.
|
|
*/
|
|
where?: Prisma.ServerNodeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ServerNodes to fetch.
|
|
*/
|
|
orderBy?: Prisma.ServerNodeOrderByWithRelationInput | Prisma.ServerNodeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ServerNodes.
|
|
*/
|
|
cursor?: Prisma.ServerNodeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ServerNodes 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` ServerNodes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ServerNodes.
|
|
*/
|
|
distinct?: Prisma.ServerNodeScalarFieldEnum | Prisma.ServerNodeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ServerNode findMany
|
|
*/
|
|
export type ServerNodeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which ServerNodes to fetch.
|
|
*/
|
|
where?: Prisma.ServerNodeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ServerNodes to fetch.
|
|
*/
|
|
orderBy?: Prisma.ServerNodeOrderByWithRelationInput | Prisma.ServerNodeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ServerNodes.
|
|
*/
|
|
cursor?: Prisma.ServerNodeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ServerNodes 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` ServerNodes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ServerNodes.
|
|
*/
|
|
distinct?: Prisma.ServerNodeScalarFieldEnum | Prisma.ServerNodeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ServerNode create
|
|
*/
|
|
export type ServerNodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ServerNode.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ServerNodeCreateInput, Prisma.ServerNodeUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ServerNode createMany
|
|
*/
|
|
export type ServerNodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ServerNodes.
|
|
*/
|
|
data: Prisma.ServerNodeCreateManyInput | Prisma.ServerNodeCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ServerNode update
|
|
*/
|
|
export type ServerNodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ServerNode.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ServerNodeUpdateInput, Prisma.ServerNodeUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ServerNode to update.
|
|
*/
|
|
where: Prisma.ServerNodeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ServerNode updateMany
|
|
*/
|
|
export type ServerNodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ServerNodes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ServerNodeUpdateManyMutationInput, Prisma.ServerNodeUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ServerNodes to update
|
|
*/
|
|
where?: Prisma.ServerNodeWhereInput
|
|
/**
|
|
* Limit how many ServerNodes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ServerNode upsert
|
|
*/
|
|
export type ServerNodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ServerNode to update in case it exists.
|
|
*/
|
|
where: Prisma.ServerNodeWhereUniqueInput
|
|
/**
|
|
* In case the ServerNode found by the `where` argument doesn't exist, create a new ServerNode with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.ServerNodeCreateInput, Prisma.ServerNodeUncheckedCreateInput>
|
|
/**
|
|
* In case the ServerNode was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.ServerNodeUpdateInput, Prisma.ServerNodeUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ServerNode delete
|
|
*/
|
|
export type ServerNodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which ServerNode to delete.
|
|
*/
|
|
where: Prisma.ServerNodeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ServerNode deleteMany
|
|
*/
|
|
export type ServerNodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ServerNodes to delete
|
|
*/
|
|
where?: Prisma.ServerNodeWhereInput
|
|
/**
|
|
* Limit how many ServerNodes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ServerNode without action
|
|
*/
|
|
export type ServerNodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ServerNode
|
|
*/
|
|
select?: Prisma.ServerNodeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ServerNode
|
|
*/
|
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
|
}
|