2025-04-12 12:33:37 +02:00

3774 lines
123 KiB
TypeScript

/**
* Client
**/
import * as runtime from './runtime/library.js';
import $Types = runtime.Types // general types
import $Public = runtime.Types.Public
import $Utils = runtime.Types.Utils
import $Extensions = runtime.Types.Extensions
import $Result = runtime.Types.Result
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Model application
*
*/
export type application = $Result.DefaultSelection<Prisma.$applicationPayload>
/**
* Model server
*
*/
export type server = $Result.DefaultSelection<Prisma.$serverPayload>
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Applications
* const applications = await prisma.application.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
export class PrismaClient<
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Applications
* const applications = await prisma.application.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
/**
* Connect with the database
*/
$connect(): $Utils.JsPromise<void>;
/**
* Disconnect from the database
*/
$disconnect(): $Utils.JsPromise<void>;
/**
* Add a middleware
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
* @see https://pris.ly/d/extensions
*/
$use(cb: Prisma.Middleware): void
/**
* Executes a prepared raw query and returns the number of affected rows.
* @example
* ```
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Executes a raw query and returns the number of affected rows.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Performs a prepared raw query and returns the `SELECT` data.
* @example
* ```
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Performs a raw query and returns the `SELECT` data.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
* @example
* ```
* const [george, bob, alice] = await prisma.$transaction([
* prisma.user.create({ data: { name: 'George' } }),
* prisma.user.create({ data: { name: 'Bob' } }),
* prisma.user.create({ data: { name: 'Alice' } }),
* ])
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
*/
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
extArgs: ExtArgs
}>>
/**
* `prisma.application`: Exposes CRUD operations for the **application** model.
* Example usage:
* ```ts
* // Fetch zero or more Applications
* const applications = await prisma.application.findMany()
* ```
*/
get application(): Prisma.applicationDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.server`: Exposes CRUD operations for the **server** model.
* Example usage:
* ```ts
* // Fetch zero or more Servers
* const servers = await prisma.server.findMany()
* ```
*/
get server(): Prisma.serverDelegate<ExtArgs, ClientOptions>;
}
export namespace Prisma {
export import DMMF = runtime.DMMF
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Validator
*/
export import validator = runtime.Public.validator
/**
* Prisma Errors
*/
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
export import PrismaClientValidationError = runtime.PrismaClientValidationError
/**
* Re-export of sql-template-tag
*/
export import sql = runtime.sqltag
export import empty = runtime.empty
export import join = runtime.join
export import raw = runtime.raw
export import Sql = runtime.Sql
/**
* Decimal.js
*/
export import Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Metrics
*/
export type Metrics = runtime.Metrics
export type Metric<T> = runtime.Metric<T>
export type MetricHistogram = runtime.MetricHistogram
export type MetricHistogramBucket = runtime.MetricHistogramBucket
/**
* Extensions
*/
export import Extension = $Extensions.UserArgs
export import getExtensionContext = runtime.Extensions.getExtensionContext
export import Args = $Public.Args
export import Payload = $Public.Payload
export import Result = $Public.Result
export import Exact = $Public.Exact
/**
* Prisma Client JS version: 6.6.0
* Query Engine version: f676762280b54cd07c770017ed3711ddde35f37a
*/
export type PrismaVersion = {
client: string
}
export const prismaVersion: PrismaVersion
/**
* Utility Types
*/
export import JsonObject = runtime.JsonObject
export import JsonArray = runtime.JsonArray
export import JsonValue = runtime.JsonValue
export import InputJsonObject = runtime.InputJsonObject
export import InputJsonArray = runtime.InputJsonArray
export import InputJsonValue = runtime.InputJsonValue
/**
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
namespace NullTypes {
/**
* Type of `Prisma.DbNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class DbNull {
private DbNull: never
private constructor()
}
/**
* Type of `Prisma.JsonNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class JsonNull {
private JsonNull: never
private constructor()
}
/**
* Type of `Prisma.AnyNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class AnyNull {
private AnyNull: never
private constructor()
}
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull: NullTypes.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull: NullTypes.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull: NullTypes.AnyNull
type SelectAndInclude = {
select: any
include: any
}
type SelectAndOmit = {
select: any
omit: any
}
/**
* Get the type of the value, that the Promise holds.
*/
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
/**
* Get the return type of a function which returns a Promise.
*/
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
export type RequiredKeys<T> = {
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
}[keyof T]
export type TruthyKeys<T> = keyof {
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
}
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
/**
A [[Boolean]]
*/
export type Boolean = True | False
// /**
// 1
// */
export type True = 1
/**
0
*/
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
type Cast<A, B> = A extends B ? A : B;
export const type: unique symbol;
/**
* Used by group by
*/
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName: {
application: 'application',
server: 'server'
};
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
export type Datasources = {
db?: Datasource
}
interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
}
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
globalOmitOptions: {
omit: GlobalOmitOptions
}
meta: {
modelProps: "application" | "server"
txIsolationLevel: Prisma.TransactionIsolationLevel
}
model: {
application: {
payload: Prisma.$applicationPayload<ExtArgs>
fields: Prisma.applicationFieldRefs
operations: {
findUnique: {
args: Prisma.applicationFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload> | null
}
findUniqueOrThrow: {
args: Prisma.applicationFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>
}
findFirst: {
args: Prisma.applicationFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload> | null
}
findFirstOrThrow: {
args: Prisma.applicationFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>
}
findMany: {
args: Prisma.applicationFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>[]
}
create: {
args: Prisma.applicationCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>
}
createMany: {
args: Prisma.applicationCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.applicationCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>[]
}
delete: {
args: Prisma.applicationDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>
}
update: {
args: Prisma.applicationUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>
}
deleteMany: {
args: Prisma.applicationDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.applicationUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.applicationUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>[]
}
upsert: {
args: Prisma.applicationUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$applicationPayload>
}
aggregate: {
args: Prisma.ApplicationAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateApplication>
}
groupBy: {
args: Prisma.applicationGroupByArgs<ExtArgs>
result: $Utils.Optional<ApplicationGroupByOutputType>[]
}
count: {
args: Prisma.applicationCountArgs<ExtArgs>
result: $Utils.Optional<ApplicationCountAggregateOutputType> | number
}
}
}
server: {
payload: Prisma.$serverPayload<ExtArgs>
fields: Prisma.serverFieldRefs
operations: {
findUnique: {
args: Prisma.serverFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload> | null
}
findUniqueOrThrow: {
args: Prisma.serverFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>
}
findFirst: {
args: Prisma.serverFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload> | null
}
findFirstOrThrow: {
args: Prisma.serverFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>
}
findMany: {
args: Prisma.serverFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>[]
}
create: {
args: Prisma.serverCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>
}
createMany: {
args: Prisma.serverCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.serverCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>[]
}
delete: {
args: Prisma.serverDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>
}
update: {
args: Prisma.serverUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>
}
deleteMany: {
args: Prisma.serverDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.serverUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.serverUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>[]
}
upsert: {
args: Prisma.serverUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$serverPayload>
}
aggregate: {
args: Prisma.ServerAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateServer>
}
groupBy: {
args: Prisma.serverGroupByArgs<ExtArgs>
result: $Utils.Optional<ServerGroupByOutputType>[]
}
count: {
args: Prisma.serverCountArgs<ExtArgs>
result: $Utils.Optional<ServerCountAggregateOutputType> | number
}
}
}
}
} & {
other: {
payload: any
operations: {
$executeRaw: {
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
result: any
}
$executeRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
$queryRaw: {
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
result: any
}
$queryRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
}
}
}
export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
export type DefaultPrismaClient = PrismaClient
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
export interface PrismaClientOptions {
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasources?: Datasources
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasourceUrl?: string
/**
* @default "colorless"
*/
errorFormat?: ErrorFormat
/**
* @example
* ```
* // Defaults to stdout
* log: ['query', 'info', 'warn', 'error']
*
* // Emit as events
* log: [
* { emit: 'stdout', level: 'query' },
* { emit: 'stdout', level: 'info' },
* { emit: 'stdout', level: 'warn' }
* { emit: 'stdout', level: 'error' }
* ]
* ```
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
*/
log?: (LogLevel | LogDefinition)[]
/**
* The default values for transactionOptions
* maxWait ?= 2000
* timeout ?= 5000
*/
transactionOptions?: {
maxWait?: number
timeout?: number
isolationLevel?: Prisma.TransactionIsolationLevel
}
/**
* Global configuration for omitting model fields by default.
*
* @example
* ```
* const prisma = new PrismaClient({
* omit: {
* user: {
* password: true
* }
* }
* })
* ```
*/
omit?: Prisma.GlobalOmitConfig
}
export type GlobalOmitConfig = {
application?: applicationOmit
server?: serverOmit
}
/* Types for Logging */
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
export type LogDefinition = {
level: LogLevel
emit: 'stdout' | 'event'
}
export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
: never
export type QueryEvent = {
timestamp: Date
query: string
params: string
duration: number
target: string
}
export type LogEvent = {
timestamp: Date
message: string
target: string
}
/* End Types for Logging */
export type PrismaAction =
| 'findUnique'
| 'findUniqueOrThrow'
| 'findMany'
| 'findFirst'
| 'findFirstOrThrow'
| 'create'
| 'createMany'
| 'createManyAndReturn'
| 'update'
| 'updateMany'
| 'updateManyAndReturn'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
/**
* These options are being passed into the middleware as "params"
*/
export type MiddlewareParams = {
model?: ModelName
action: PrismaAction
args: any
dataPath: string[]
runInTransaction: boolean
}
/**
* The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
*/
export type Middleware<T = any> = (
params: MiddlewareParams,
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
) => $Utils.JsPromise<T>
// tested in getLogLevel.test.ts
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
export type Datasource = {
url?: string
}
/**
* Count Types
*/
/**
* Models
*/
/**
* Model application
*/
export type AggregateApplication = {
_count: ApplicationCountAggregateOutputType | null
_avg: ApplicationAvgAggregateOutputType | null
_sum: ApplicationSumAggregateOutputType | null
_min: ApplicationMinAggregateOutputType | null
_max: ApplicationMaxAggregateOutputType | null
}
export type ApplicationAvgAggregateOutputType = {
id: number | null
}
export type ApplicationSumAggregateOutputType = {
id: number | null
}
export type ApplicationMinAggregateOutputType = {
id: number | null
name: string | null
description: string | null
icon: string | null
publicURL: string | null
localURL: string | null
createdAt: Date | null
}
export type ApplicationMaxAggregateOutputType = {
id: number | null
name: string | null
description: string | null
icon: string | null
publicURL: string | null
localURL: string | null
createdAt: Date | null
}
export type ApplicationCountAggregateOutputType = {
id: number
name: number
description: number
icon: number
publicURL: number
localURL: number
createdAt: number
_all: number
}
export type ApplicationAvgAggregateInputType = {
id?: true
}
export type ApplicationSumAggregateInputType = {
id?: true
}
export type ApplicationMinAggregateInputType = {
id?: true
name?: true
description?: true
icon?: true
publicURL?: true
localURL?: true
createdAt?: true
}
export type ApplicationMaxAggregateInputType = {
id?: true
name?: true
description?: true
icon?: true
publicURL?: true
localURL?: true
createdAt?: true
}
export type ApplicationCountAggregateInputType = {
id?: true
name?: true
description?: true
icon?: true
publicURL?: true
localURL?: true
createdAt?: true
_all?: true
}
export type ApplicationAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which application to aggregate.
*/
where?: applicationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of applications to fetch.
*/
orderBy?: applicationOrderByWithRelationInput | applicationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: applicationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` applications 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` applications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned applications
**/
_count?: true | ApplicationCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ApplicationAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ApplicationSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ApplicationMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ApplicationMaxAggregateInputType
}
export type GetApplicationAggregateType<T extends ApplicationAggregateArgs> = {
[P in keyof T & keyof AggregateApplication]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateApplication[P]>
: GetScalarType<T[P], AggregateApplication[P]>
}
export type applicationGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: applicationWhereInput
orderBy?: applicationOrderByWithAggregationInput | applicationOrderByWithAggregationInput[]
by: ApplicationScalarFieldEnum[] | ApplicationScalarFieldEnum
having?: applicationScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ApplicationCountAggregateInputType | true
_avg?: ApplicationAvgAggregateInputType
_sum?: ApplicationSumAggregateInputType
_min?: ApplicationMinAggregateInputType
_max?: ApplicationMaxAggregateInputType
}
export type ApplicationGroupByOutputType = {
id: number
name: string
description: string | null
icon: string
publicURL: string
localURL: string | null
createdAt: Date
_count: ApplicationCountAggregateOutputType | null
_avg: ApplicationAvgAggregateOutputType | null
_sum: ApplicationSumAggregateOutputType | null
_min: ApplicationMinAggregateOutputType | null
_max: ApplicationMaxAggregateOutputType | null
}
type GetApplicationGroupByPayload<T extends applicationGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<ApplicationGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ApplicationGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], ApplicationGroupByOutputType[P]>
: GetScalarType<T[P], ApplicationGroupByOutputType[P]>
}
>
>
export type applicationSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
icon?: boolean
publicURL?: boolean
localURL?: boolean
createdAt?: boolean
}, ExtArgs["result"]["application"]>
export type applicationSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
icon?: boolean
publicURL?: boolean
localURL?: boolean
createdAt?: boolean
}, ExtArgs["result"]["application"]>
export type applicationSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
icon?: boolean
publicURL?: boolean
localURL?: boolean
createdAt?: boolean
}, ExtArgs["result"]["application"]>
export type applicationSelectScalar = {
id?: boolean
name?: boolean
description?: boolean
icon?: boolean
publicURL?: boolean
localURL?: boolean
createdAt?: boolean
}
export type applicationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "description" | "icon" | "publicURL" | "localURL" | "createdAt", ExtArgs["result"]["application"]>
export type $applicationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "application"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: number
name: string
description: string | null
icon: string
publicURL: string
localURL: string | null
createdAt: Date
}, ExtArgs["result"]["application"]>
composites: {}
}
type applicationGetPayload<S extends boolean | null | undefined | applicationDefaultArgs> = $Result.GetResult<Prisma.$applicationPayload, S>
type applicationCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<applicationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ApplicationCountAggregateInputType | true
}
export interface applicationDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['application'], meta: { name: 'application' } }
/**
* Find zero or one Application that matches the filter.
* @param {applicationFindUniqueArgs} args - Arguments to find a Application
* @example
* // Get one Application
* const application = await prisma.application.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends applicationFindUniqueArgs>(args: SelectSubset<T, applicationFindUniqueArgs<ExtArgs>>): Prisma__applicationClient<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Application that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {applicationFindUniqueOrThrowArgs} args - Arguments to find a Application
* @example
* // Get one Application
* const application = await prisma.application.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends applicationFindUniqueOrThrowArgs>(args: SelectSubset<T, applicationFindUniqueOrThrowArgs<ExtArgs>>): Prisma__applicationClient<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Application 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 {applicationFindFirstArgs} args - Arguments to find a Application
* @example
* // Get one Application
* const application = await prisma.application.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends applicationFindFirstArgs>(args?: SelectSubset<T, applicationFindFirstArgs<ExtArgs>>): Prisma__applicationClient<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Application 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 {applicationFindFirstOrThrowArgs} args - Arguments to find a Application
* @example
* // Get one Application
* const application = await prisma.application.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends applicationFindFirstOrThrowArgs>(args?: SelectSubset<T, applicationFindFirstOrThrowArgs<ExtArgs>>): Prisma__applicationClient<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Applications 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 {applicationFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Applications
* const applications = await prisma.application.findMany()
*
* // Get first 10 Applications
* const applications = await prisma.application.findMany({ take: 10 })
*
* // Only select the `id`
* const applicationWithIdOnly = await prisma.application.findMany({ select: { id: true } })
*
*/
findMany<T extends applicationFindManyArgs>(args?: SelectSubset<T, applicationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Application.
* @param {applicationCreateArgs} args - Arguments to create a Application.
* @example
* // Create one Application
* const Application = await prisma.application.create({
* data: {
* // ... data to create a Application
* }
* })
*
*/
create<T extends applicationCreateArgs>(args: SelectSubset<T, applicationCreateArgs<ExtArgs>>): Prisma__applicationClient<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Applications.
* @param {applicationCreateManyArgs} args - Arguments to create many Applications.
* @example
* // Create many Applications
* const application = await prisma.application.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends applicationCreateManyArgs>(args?: SelectSubset<T, applicationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Applications and returns the data saved in the database.
* @param {applicationCreateManyAndReturnArgs} args - Arguments to create many Applications.
* @example
* // Create many Applications
* const application = await prisma.application.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Applications and only return the `id`
* const applicationWithIdOnly = await prisma.application.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends applicationCreateManyAndReturnArgs>(args?: SelectSubset<T, applicationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Application.
* @param {applicationDeleteArgs} args - Arguments to delete one Application.
* @example
* // Delete one Application
* const Application = await prisma.application.delete({
* where: {
* // ... filter to delete one Application
* }
* })
*
*/
delete<T extends applicationDeleteArgs>(args: SelectSubset<T, applicationDeleteArgs<ExtArgs>>): Prisma__applicationClient<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Application.
* @param {applicationUpdateArgs} args - Arguments to update one Application.
* @example
* // Update one Application
* const application = await prisma.application.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends applicationUpdateArgs>(args: SelectSubset<T, applicationUpdateArgs<ExtArgs>>): Prisma__applicationClient<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Applications.
* @param {applicationDeleteManyArgs} args - Arguments to filter Applications to delete.
* @example
* // Delete a few Applications
* const { count } = await prisma.application.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends applicationDeleteManyArgs>(args?: SelectSubset<T, applicationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Applications.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {applicationUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Applications
* const application = await prisma.application.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends applicationUpdateManyArgs>(args: SelectSubset<T, applicationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Applications and returns the data updated in the database.
* @param {applicationUpdateManyAndReturnArgs} args - Arguments to update many Applications.
* @example
* // Update many Applications
* const application = await prisma.application.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Applications and only return the `id`
* const applicationWithIdOnly = await prisma.application.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends applicationUpdateManyAndReturnArgs>(args: SelectSubset<T, applicationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Application.
* @param {applicationUpsertArgs} args - Arguments to update or create a Application.
* @example
* // Update or create a Application
* const application = await prisma.application.upsert({
* create: {
* // ... data to create a Application
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Application we want to update
* }
* })
*/
upsert<T extends applicationUpsertArgs>(args: SelectSubset<T, applicationUpsertArgs<ExtArgs>>): Prisma__applicationClient<$Result.GetResult<Prisma.$applicationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Applications.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {applicationCountArgs} args - Arguments to filter Applications to count.
* @example
* // Count the number of Applications
* const count = await prisma.application.count({
* where: {
* // ... the filter for the Applications we want to count
* }
* })
**/
count<T extends applicationCountArgs>(
args?: Subset<T, applicationCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], ApplicationCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Application.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ApplicationAggregateArgs} 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 ApplicationAggregateArgs>(args: Subset<T, ApplicationAggregateArgs>): Prisma.PrismaPromise<GetApplicationAggregateType<T>>
/**
* Group by Application.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {applicationGroupByArgs} 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 applicationGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: applicationGroupByArgs['orderBy'] }
: { orderBy?: applicationGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, applicationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetApplicationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the application model
*/
readonly fields: applicationFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for application.
* 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__applicationClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $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): $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): $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): $Utils.JsPromise<T>
}
/**
* Fields of the application model
*/
interface applicationFieldRefs {
readonly id: FieldRef<"application", 'Int'>
readonly name: FieldRef<"application", 'String'>
readonly description: FieldRef<"application", 'String'>
readonly icon: FieldRef<"application", 'String'>
readonly publicURL: FieldRef<"application", 'String'>
readonly localURL: FieldRef<"application", 'String'>
readonly createdAt: FieldRef<"application", 'DateTime'>
}
// Custom InputTypes
/**
* application findUnique
*/
export type applicationFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* Filter, which application to fetch.
*/
where: applicationWhereUniqueInput
}
/**
* application findUniqueOrThrow
*/
export type applicationFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* Filter, which application to fetch.
*/
where: applicationWhereUniqueInput
}
/**
* application findFirst
*/
export type applicationFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* Filter, which application to fetch.
*/
where?: applicationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of applications to fetch.
*/
orderBy?: applicationOrderByWithRelationInput | applicationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for applications.
*/
cursor?: applicationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` applications 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` applications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of applications.
*/
distinct?: ApplicationScalarFieldEnum | ApplicationScalarFieldEnum[]
}
/**
* application findFirstOrThrow
*/
export type applicationFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* Filter, which application to fetch.
*/
where?: applicationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of applications to fetch.
*/
orderBy?: applicationOrderByWithRelationInput | applicationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for applications.
*/
cursor?: applicationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` applications 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` applications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of applications.
*/
distinct?: ApplicationScalarFieldEnum | ApplicationScalarFieldEnum[]
}
/**
* application findMany
*/
export type applicationFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* Filter, which applications to fetch.
*/
where?: applicationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of applications to fetch.
*/
orderBy?: applicationOrderByWithRelationInput | applicationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing applications.
*/
cursor?: applicationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` applications 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` applications.
*/
skip?: number
distinct?: ApplicationScalarFieldEnum | ApplicationScalarFieldEnum[]
}
/**
* application create
*/
export type applicationCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* The data needed to create a application.
*/
data: XOR<applicationCreateInput, applicationUncheckedCreateInput>
}
/**
* application createMany
*/
export type applicationCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many applications.
*/
data: applicationCreateManyInput | applicationCreateManyInput[]
skipDuplicates?: boolean
}
/**
* application createManyAndReturn
*/
export type applicationCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* The data used to create many applications.
*/
data: applicationCreateManyInput | applicationCreateManyInput[]
skipDuplicates?: boolean
}
/**
* application update
*/
export type applicationUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* The data needed to update a application.
*/
data: XOR<applicationUpdateInput, applicationUncheckedUpdateInput>
/**
* Choose, which application to update.
*/
where: applicationWhereUniqueInput
}
/**
* application updateMany
*/
export type applicationUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update applications.
*/
data: XOR<applicationUpdateManyMutationInput, applicationUncheckedUpdateManyInput>
/**
* Filter which applications to update
*/
where?: applicationWhereInput
/**
* Limit how many applications to update.
*/
limit?: number
}
/**
* application updateManyAndReturn
*/
export type applicationUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* The data used to update applications.
*/
data: XOR<applicationUpdateManyMutationInput, applicationUncheckedUpdateManyInput>
/**
* Filter which applications to update
*/
where?: applicationWhereInput
/**
* Limit how many applications to update.
*/
limit?: number
}
/**
* application upsert
*/
export type applicationUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* The filter to search for the application to update in case it exists.
*/
where: applicationWhereUniqueInput
/**
* In case the application found by the `where` argument doesn't exist, create a new application with this data.
*/
create: XOR<applicationCreateInput, applicationUncheckedCreateInput>
/**
* In case the application was found with the provided `where` argument, update it with this data.
*/
update: XOR<applicationUpdateInput, applicationUncheckedUpdateInput>
}
/**
* application delete
*/
export type applicationDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
/**
* Filter which application to delete.
*/
where: applicationWhereUniqueInput
}
/**
* application deleteMany
*/
export type applicationDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which applications to delete
*/
where?: applicationWhereInput
/**
* Limit how many applications to delete.
*/
limit?: number
}
/**
* application without action
*/
export type applicationDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the application
*/
select?: applicationSelect<ExtArgs> | null
/**
* Omit specific fields from the application
*/
omit?: applicationOmit<ExtArgs> | null
}
/**
* Model server
*/
export type AggregateServer = {
_count: ServerCountAggregateOutputType | null
_avg: ServerAvgAggregateOutputType | null
_sum: ServerSumAggregateOutputType | null
_min: ServerMinAggregateOutputType | null
_max: ServerMaxAggregateOutputType | null
}
export type ServerAvgAggregateOutputType = {
id: number | null
}
export type ServerSumAggregateOutputType = {
id: number | null
}
export type ServerMinAggregateOutputType = {
id: number | null
name: string | null
os: string | null
ip: string | null
url: string | null
}
export type ServerMaxAggregateOutputType = {
id: number | null
name: string | null
os: string | null
ip: string | null
url: string | null
}
export type ServerCountAggregateOutputType = {
id: number
name: number
os: number
ip: number
url: number
_all: number
}
export type ServerAvgAggregateInputType = {
id?: true
}
export type ServerSumAggregateInputType = {
id?: true
}
export type ServerMinAggregateInputType = {
id?: true
name?: true
os?: true
ip?: true
url?: true
}
export type ServerMaxAggregateInputType = {
id?: true
name?: true
os?: true
ip?: true
url?: true
}
export type ServerCountAggregateInputType = {
id?: true
name?: true
os?: true
ip?: true
url?: true
_all?: true
}
export type ServerAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which server to aggregate.
*/
where?: serverWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of servers to fetch.
*/
orderBy?: serverOrderByWithRelationInput | serverOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: serverWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` servers 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` servers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned servers
**/
_count?: true | ServerCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ServerAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ServerSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ServerMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ServerMaxAggregateInputType
}
export type GetServerAggregateType<T extends ServerAggregateArgs> = {
[P in keyof T & keyof AggregateServer]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateServer[P]>
: GetScalarType<T[P], AggregateServer[P]>
}
export type serverGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: serverWhereInput
orderBy?: serverOrderByWithAggregationInput | serverOrderByWithAggregationInput[]
by: ServerScalarFieldEnum[] | ServerScalarFieldEnum
having?: serverScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ServerCountAggregateInputType | true
_avg?: ServerAvgAggregateInputType
_sum?: ServerSumAggregateInputType
_min?: ServerMinAggregateInputType
_max?: ServerMaxAggregateInputType
}
export type ServerGroupByOutputType = {
id: number
name: string
os: string | null
ip: string | null
url: string | null
_count: ServerCountAggregateOutputType | null
_avg: ServerAvgAggregateOutputType | null
_sum: ServerSumAggregateOutputType | null
_min: ServerMinAggregateOutputType | null
_max: ServerMaxAggregateOutputType | null
}
type GetServerGroupByPayload<T extends serverGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<ServerGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ServerGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], ServerGroupByOutputType[P]>
: GetScalarType<T[P], ServerGroupByOutputType[P]>
}
>
>
export type serverSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
os?: boolean
ip?: boolean
url?: boolean
}, ExtArgs["result"]["server"]>
export type serverSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
os?: boolean
ip?: boolean
url?: boolean
}, ExtArgs["result"]["server"]>
export type serverSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
os?: boolean
ip?: boolean
url?: boolean
}, ExtArgs["result"]["server"]>
export type serverSelectScalar = {
id?: boolean
name?: boolean
os?: boolean
ip?: boolean
url?: boolean
}
export type serverOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "os" | "ip" | "url", ExtArgs["result"]["server"]>
export type $serverPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "server"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: number
name: string
os: string | null
ip: string | null
url: string | null
}, ExtArgs["result"]["server"]>
composites: {}
}
type serverGetPayload<S extends boolean | null | undefined | serverDefaultArgs> = $Result.GetResult<Prisma.$serverPayload, S>
type serverCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<serverFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ServerCountAggregateInputType | true
}
export interface serverDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['server'], meta: { name: 'server' } }
/**
* Find zero or one Server that matches the filter.
* @param {serverFindUniqueArgs} args - Arguments to find a Server
* @example
* // Get one Server
* const server = await prisma.server.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends serverFindUniqueArgs>(args: SelectSubset<T, serverFindUniqueArgs<ExtArgs>>): Prisma__serverClient<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Server that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {serverFindUniqueOrThrowArgs} args - Arguments to find a Server
* @example
* // Get one Server
* const server = await prisma.server.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends serverFindUniqueOrThrowArgs>(args: SelectSubset<T, serverFindUniqueOrThrowArgs<ExtArgs>>): Prisma__serverClient<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Server 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 {serverFindFirstArgs} args - Arguments to find a Server
* @example
* // Get one Server
* const server = await prisma.server.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends serverFindFirstArgs>(args?: SelectSubset<T, serverFindFirstArgs<ExtArgs>>): Prisma__serverClient<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Server 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 {serverFindFirstOrThrowArgs} args - Arguments to find a Server
* @example
* // Get one Server
* const server = await prisma.server.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends serverFindFirstOrThrowArgs>(args?: SelectSubset<T, serverFindFirstOrThrowArgs<ExtArgs>>): Prisma__serverClient<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Servers 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 {serverFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Servers
* const servers = await prisma.server.findMany()
*
* // Get first 10 Servers
* const servers = await prisma.server.findMany({ take: 10 })
*
* // Only select the `id`
* const serverWithIdOnly = await prisma.server.findMany({ select: { id: true } })
*
*/
findMany<T extends serverFindManyArgs>(args?: SelectSubset<T, serverFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Server.
* @param {serverCreateArgs} args - Arguments to create a Server.
* @example
* // Create one Server
* const Server = await prisma.server.create({
* data: {
* // ... data to create a Server
* }
* })
*
*/
create<T extends serverCreateArgs>(args: SelectSubset<T, serverCreateArgs<ExtArgs>>): Prisma__serverClient<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Servers.
* @param {serverCreateManyArgs} args - Arguments to create many Servers.
* @example
* // Create many Servers
* const server = await prisma.server.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends serverCreateManyArgs>(args?: SelectSubset<T, serverCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Servers and returns the data saved in the database.
* @param {serverCreateManyAndReturnArgs} args - Arguments to create many Servers.
* @example
* // Create many Servers
* const server = await prisma.server.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Servers and only return the `id`
* const serverWithIdOnly = await prisma.server.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends serverCreateManyAndReturnArgs>(args?: SelectSubset<T, serverCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Server.
* @param {serverDeleteArgs} args - Arguments to delete one Server.
* @example
* // Delete one Server
* const Server = await prisma.server.delete({
* where: {
* // ... filter to delete one Server
* }
* })
*
*/
delete<T extends serverDeleteArgs>(args: SelectSubset<T, serverDeleteArgs<ExtArgs>>): Prisma__serverClient<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Server.
* @param {serverUpdateArgs} args - Arguments to update one Server.
* @example
* // Update one Server
* const server = await prisma.server.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends serverUpdateArgs>(args: SelectSubset<T, serverUpdateArgs<ExtArgs>>): Prisma__serverClient<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Servers.
* @param {serverDeleteManyArgs} args - Arguments to filter Servers to delete.
* @example
* // Delete a few Servers
* const { count } = await prisma.server.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends serverDeleteManyArgs>(args?: SelectSubset<T, serverDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Servers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {serverUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Servers
* const server = await prisma.server.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends serverUpdateManyArgs>(args: SelectSubset<T, serverUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Servers and returns the data updated in the database.
* @param {serverUpdateManyAndReturnArgs} args - Arguments to update many Servers.
* @example
* // Update many Servers
* const server = await prisma.server.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Servers and only return the `id`
* const serverWithIdOnly = await prisma.server.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends serverUpdateManyAndReturnArgs>(args: SelectSubset<T, serverUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Server.
* @param {serverUpsertArgs} args - Arguments to update or create a Server.
* @example
* // Update or create a Server
* const server = await prisma.server.upsert({
* create: {
* // ... data to create a Server
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Server we want to update
* }
* })
*/
upsert<T extends serverUpsertArgs>(args: SelectSubset<T, serverUpsertArgs<ExtArgs>>): Prisma__serverClient<$Result.GetResult<Prisma.$serverPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Servers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {serverCountArgs} args - Arguments to filter Servers to count.
* @example
* // Count the number of Servers
* const count = await prisma.server.count({
* where: {
* // ... the filter for the Servers we want to count
* }
* })
**/
count<T extends serverCountArgs>(
args?: Subset<T, serverCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], ServerCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Server.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ServerAggregateArgs} 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 ServerAggregateArgs>(args: Subset<T, ServerAggregateArgs>): Prisma.PrismaPromise<GetServerAggregateType<T>>
/**
* Group by Server.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {serverGroupByArgs} 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 serverGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: serverGroupByArgs['orderBy'] }
: { orderBy?: serverGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends 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 True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, serverGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetServerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the server model
*/
readonly fields: serverFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for server.
* 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__serverClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $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): $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): $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): $Utils.JsPromise<T>
}
/**
* Fields of the server model
*/
interface serverFieldRefs {
readonly id: FieldRef<"server", 'Int'>
readonly name: FieldRef<"server", 'String'>
readonly os: FieldRef<"server", 'String'>
readonly ip: FieldRef<"server", 'String'>
readonly url: FieldRef<"server", 'String'>
}
// Custom InputTypes
/**
* server findUnique
*/
export type serverFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* Filter, which server to fetch.
*/
where: serverWhereUniqueInput
}
/**
* server findUniqueOrThrow
*/
export type serverFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* Filter, which server to fetch.
*/
where: serverWhereUniqueInput
}
/**
* server findFirst
*/
export type serverFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* Filter, which server to fetch.
*/
where?: serverWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of servers to fetch.
*/
orderBy?: serverOrderByWithRelationInput | serverOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for servers.
*/
cursor?: serverWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` servers 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` servers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of servers.
*/
distinct?: ServerScalarFieldEnum | ServerScalarFieldEnum[]
}
/**
* server findFirstOrThrow
*/
export type serverFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* Filter, which server to fetch.
*/
where?: serverWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of servers to fetch.
*/
orderBy?: serverOrderByWithRelationInput | serverOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for servers.
*/
cursor?: serverWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` servers 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` servers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of servers.
*/
distinct?: ServerScalarFieldEnum | ServerScalarFieldEnum[]
}
/**
* server findMany
*/
export type serverFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* Filter, which servers to fetch.
*/
where?: serverWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of servers to fetch.
*/
orderBy?: serverOrderByWithRelationInput | serverOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing servers.
*/
cursor?: serverWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` servers 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` servers.
*/
skip?: number
distinct?: ServerScalarFieldEnum | ServerScalarFieldEnum[]
}
/**
* server create
*/
export type serverCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* The data needed to create a server.
*/
data: XOR<serverCreateInput, serverUncheckedCreateInput>
}
/**
* server createMany
*/
export type serverCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many servers.
*/
data: serverCreateManyInput | serverCreateManyInput[]
skipDuplicates?: boolean
}
/**
* server createManyAndReturn
*/
export type serverCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* The data used to create many servers.
*/
data: serverCreateManyInput | serverCreateManyInput[]
skipDuplicates?: boolean
}
/**
* server update
*/
export type serverUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* The data needed to update a server.
*/
data: XOR<serverUpdateInput, serverUncheckedUpdateInput>
/**
* Choose, which server to update.
*/
where: serverWhereUniqueInput
}
/**
* server updateMany
*/
export type serverUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update servers.
*/
data: XOR<serverUpdateManyMutationInput, serverUncheckedUpdateManyInput>
/**
* Filter which servers to update
*/
where?: serverWhereInput
/**
* Limit how many servers to update.
*/
limit?: number
}
/**
* server updateManyAndReturn
*/
export type serverUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* The data used to update servers.
*/
data: XOR<serverUpdateManyMutationInput, serverUncheckedUpdateManyInput>
/**
* Filter which servers to update
*/
where?: serverWhereInput
/**
* Limit how many servers to update.
*/
limit?: number
}
/**
* server upsert
*/
export type serverUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* The filter to search for the server to update in case it exists.
*/
where: serverWhereUniqueInput
/**
* In case the server found by the `where` argument doesn't exist, create a new server with this data.
*/
create: XOR<serverCreateInput, serverUncheckedCreateInput>
/**
* In case the server was found with the provided `where` argument, update it with this data.
*/
update: XOR<serverUpdateInput, serverUncheckedUpdateInput>
}
/**
* server delete
*/
export type serverDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
/**
* Filter which server to delete.
*/
where: serverWhereUniqueInput
}
/**
* server deleteMany
*/
export type serverDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which servers to delete
*/
where?: serverWhereInput
/**
* Limit how many servers to delete.
*/
limit?: number
}
/**
* server without action
*/
export type serverDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the server
*/
select?: serverSelect<ExtArgs> | null
/**
* Omit specific fields from the server
*/
omit?: serverOmit<ExtArgs> | null
}
/**
* Enums
*/
export const TransactionIsolationLevel: {
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
};
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const ApplicationScalarFieldEnum: {
id: 'id',
name: 'name',
description: 'description',
icon: 'icon',
publicURL: 'publicURL',
localURL: 'localURL',
createdAt: 'createdAt'
};
export type ApplicationScalarFieldEnum = (typeof ApplicationScalarFieldEnum)[keyof typeof ApplicationScalarFieldEnum]
export const ServerScalarFieldEnum: {
id: 'id',
name: 'name',
os: 'os',
ip: 'ip',
url: 'url'
};
export type ServerScalarFieldEnum = (typeof ServerScalarFieldEnum)[keyof typeof ServerScalarFieldEnum]
export const SortOrder: {
asc: 'asc',
desc: 'desc'
};
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const QueryMode: {
default: 'default',
insensitive: 'insensitive'
};
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const NullsOrder: {
first: 'first',
last: 'last'
};
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
/**
* Field references
*/
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'Int[]'
*/
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
/**
* Reference to a field of type 'String'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'String[]'
*/
export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
/**
* Reference to a field of type 'DateTime'
*/
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
/**
* Reference to a field of type 'DateTime[]'
*/
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
/**
* Reference to a field of type 'Float'
*/
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
/**
* Reference to a field of type 'Float[]'
*/
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
/**
* Deep Input Types
*/
export type applicationWhereInput = {
AND?: applicationWhereInput | applicationWhereInput[]
OR?: applicationWhereInput[]
NOT?: applicationWhereInput | applicationWhereInput[]
id?: IntFilter<"application"> | number
name?: StringFilter<"application"> | string
description?: StringNullableFilter<"application"> | string | null
icon?: StringFilter<"application"> | string
publicURL?: StringFilter<"application"> | string
localURL?: StringNullableFilter<"application"> | string | null
createdAt?: DateTimeFilter<"application"> | Date | string
}
export type applicationOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrder
description?: SortOrderInput | SortOrder
icon?: SortOrder
publicURL?: SortOrder
localURL?: SortOrderInput | SortOrder
createdAt?: SortOrder
}
export type applicationWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: applicationWhereInput | applicationWhereInput[]
OR?: applicationWhereInput[]
NOT?: applicationWhereInput | applicationWhereInput[]
name?: StringFilter<"application"> | string
description?: StringNullableFilter<"application"> | string | null
icon?: StringFilter<"application"> | string
publicURL?: StringFilter<"application"> | string
localURL?: StringNullableFilter<"application"> | string | null
createdAt?: DateTimeFilter<"application"> | Date | string
}, "id">
export type applicationOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrder
description?: SortOrderInput | SortOrder
icon?: SortOrder
publicURL?: SortOrder
localURL?: SortOrderInput | SortOrder
createdAt?: SortOrder
_count?: applicationCountOrderByAggregateInput
_avg?: applicationAvgOrderByAggregateInput
_max?: applicationMaxOrderByAggregateInput
_min?: applicationMinOrderByAggregateInput
_sum?: applicationSumOrderByAggregateInput
}
export type applicationScalarWhereWithAggregatesInput = {
AND?: applicationScalarWhereWithAggregatesInput | applicationScalarWhereWithAggregatesInput[]
OR?: applicationScalarWhereWithAggregatesInput[]
NOT?: applicationScalarWhereWithAggregatesInput | applicationScalarWhereWithAggregatesInput[]
id?: IntWithAggregatesFilter<"application"> | number
name?: StringWithAggregatesFilter<"application"> | string
description?: StringNullableWithAggregatesFilter<"application"> | string | null
icon?: StringWithAggregatesFilter<"application"> | string
publicURL?: StringWithAggregatesFilter<"application"> | string
localURL?: StringNullableWithAggregatesFilter<"application"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"application"> | Date | string
}
export type serverWhereInput = {
AND?: serverWhereInput | serverWhereInput[]
OR?: serverWhereInput[]
NOT?: serverWhereInput | serverWhereInput[]
id?: IntFilter<"server"> | number
name?: StringFilter<"server"> | string
os?: StringNullableFilter<"server"> | string | null
ip?: StringNullableFilter<"server"> | string | null
url?: StringNullableFilter<"server"> | string | null
}
export type serverOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrder
os?: SortOrderInput | SortOrder
ip?: SortOrderInput | SortOrder
url?: SortOrderInput | SortOrder
}
export type serverWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: serverWhereInput | serverWhereInput[]
OR?: serverWhereInput[]
NOT?: serverWhereInput | serverWhereInput[]
name?: StringFilter<"server"> | string
os?: StringNullableFilter<"server"> | string | null
ip?: StringNullableFilter<"server"> | string | null
url?: StringNullableFilter<"server"> | string | null
}, "id">
export type serverOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrder
os?: SortOrderInput | SortOrder
ip?: SortOrderInput | SortOrder
url?: SortOrderInput | SortOrder
_count?: serverCountOrderByAggregateInput
_avg?: serverAvgOrderByAggregateInput
_max?: serverMaxOrderByAggregateInput
_min?: serverMinOrderByAggregateInput
_sum?: serverSumOrderByAggregateInput
}
export type serverScalarWhereWithAggregatesInput = {
AND?: serverScalarWhereWithAggregatesInput | serverScalarWhereWithAggregatesInput[]
OR?: serverScalarWhereWithAggregatesInput[]
NOT?: serverScalarWhereWithAggregatesInput | serverScalarWhereWithAggregatesInput[]
id?: IntWithAggregatesFilter<"server"> | number
name?: StringWithAggregatesFilter<"server"> | string
os?: StringNullableWithAggregatesFilter<"server"> | string | null
ip?: StringNullableWithAggregatesFilter<"server"> | string | null
url?: StringNullableWithAggregatesFilter<"server"> | string | null
}
export type applicationCreateInput = {
name: string
description?: string | null
icon: string
publicURL: string
localURL?: string | null
createdAt?: Date | string
}
export type applicationUncheckedCreateInput = {
id?: number
name: string
description?: string | null
icon: string
publicURL: string
localURL?: string | null
createdAt?: Date | string
}
export type applicationUpdateInput = {
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
icon?: StringFieldUpdateOperationsInput | string
publicURL?: StringFieldUpdateOperationsInput | string
localURL?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type applicationUncheckedUpdateInput = {
id?: IntFieldUpdateOperationsInput | number
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
icon?: StringFieldUpdateOperationsInput | string
publicURL?: StringFieldUpdateOperationsInput | string
localURL?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type applicationCreateManyInput = {
id?: number
name: string
description?: string | null
icon: string
publicURL: string
localURL?: string | null
createdAt?: Date | string
}
export type applicationUpdateManyMutationInput = {
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
icon?: StringFieldUpdateOperationsInput | string
publicURL?: StringFieldUpdateOperationsInput | string
localURL?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type applicationUncheckedUpdateManyInput = {
id?: IntFieldUpdateOperationsInput | number
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
icon?: StringFieldUpdateOperationsInput | string
publicURL?: StringFieldUpdateOperationsInput | string
localURL?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type serverCreateInput = {
name: string
os?: string | null
ip?: string | null
url?: string | null
}
export type serverUncheckedCreateInput = {
id?: number
name: string
os?: string | null
ip?: string | null
url?: string | null
}
export type serverUpdateInput = {
name?: StringFieldUpdateOperationsInput | string
os?: NullableStringFieldUpdateOperationsInput | string | null
ip?: NullableStringFieldUpdateOperationsInput | string | null
url?: NullableStringFieldUpdateOperationsInput | string | null
}
export type serverUncheckedUpdateInput = {
id?: IntFieldUpdateOperationsInput | number
name?: StringFieldUpdateOperationsInput | string
os?: NullableStringFieldUpdateOperationsInput | string | null
ip?: NullableStringFieldUpdateOperationsInput | string | null
url?: NullableStringFieldUpdateOperationsInput | string | null
}
export type serverCreateManyInput = {
id?: number
name: string
os?: string | null
ip?: string | null
url?: string | null
}
export type serverUpdateManyMutationInput = {
name?: StringFieldUpdateOperationsInput | string
os?: NullableStringFieldUpdateOperationsInput | string | null
ip?: NullableStringFieldUpdateOperationsInput | string | null
url?: NullableStringFieldUpdateOperationsInput | string | null
}
export type serverUncheckedUpdateManyInput = {
id?: IntFieldUpdateOperationsInput | number
name?: StringFieldUpdateOperationsInput | string
os?: NullableStringFieldUpdateOperationsInput | string | null
ip?: NullableStringFieldUpdateOperationsInput | string | null
url?: NullableStringFieldUpdateOperationsInput | string | null
}
export type IntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type StringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringFilter<$PrismaModel> | string
}
export type StringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type DateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type SortOrderInput = {
sort: SortOrder
nulls?: NullsOrder
}
export type applicationCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
description?: SortOrder
icon?: SortOrder
publicURL?: SortOrder
localURL?: SortOrder
createdAt?: SortOrder
}
export type applicationAvgOrderByAggregateInput = {
id?: SortOrder
}
export type applicationMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
description?: SortOrder
icon?: SortOrder
publicURL?: SortOrder
localURL?: SortOrder
createdAt?: SortOrder
}
export type applicationMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
description?: SortOrder
icon?: SortOrder
publicURL?: SortOrder
localURL?: SortOrder
createdAt?: SortOrder
}
export type applicationSumOrderByAggregateInput = {
id?: SortOrder
}
export type IntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type StringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type serverCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
os?: SortOrder
ip?: SortOrder
url?: SortOrder
}
export type serverAvgOrderByAggregateInput = {
id?: SortOrder
}
export type serverMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
os?: SortOrder
ip?: SortOrder
url?: SortOrder
}
export type serverMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
os?: SortOrder
ip?: SortOrder
url?: SortOrder
}
export type serverSumOrderByAggregateInput = {
id?: SortOrder
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type DateTimeFieldUpdateOperationsInput = {
set?: Date | string
}
export type IntFieldUpdateOperationsInput = {
set?: number
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type NestedIntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type NestedStringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringFilter<$PrismaModel> | string
}
export type NestedStringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type NestedDateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type NestedFloatFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel>
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatFilter<$PrismaModel> | number
}
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type NestedIntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
/**
* DMMF
*/
export const dmmf: runtime.BaseDMMF
}