mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
236 lines
12 KiB
JavaScript
236 lines
12 KiB
JavaScript
|
|
|
||
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
|
|
||
|
|
const {
|
||
|
|
PrismaClientKnownRequestError,
|
||
|
|
PrismaClientUnknownRequestError,
|
||
|
|
PrismaClientRustPanicError,
|
||
|
|
PrismaClientInitializationError,
|
||
|
|
PrismaClientValidationError,
|
||
|
|
getPrismaClient,
|
||
|
|
sqltag,
|
||
|
|
empty,
|
||
|
|
join,
|
||
|
|
raw,
|
||
|
|
skip,
|
||
|
|
Decimal,
|
||
|
|
Debug,
|
||
|
|
objectEnumValues,
|
||
|
|
makeStrictEnum,
|
||
|
|
Extensions,
|
||
|
|
warnOnce,
|
||
|
|
defineDmmfProperty,
|
||
|
|
Public,
|
||
|
|
getRuntime,
|
||
|
|
createParam,
|
||
|
|
} = require('./runtime/library.js')
|
||
|
|
|
||
|
|
|
||
|
|
const Prisma = {}
|
||
|
|
|
||
|
|
exports.Prisma = Prisma
|
||
|
|
exports.$Enums = {}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Prisma Client JS version: 6.6.0
|
||
|
|
* Query Engine version: f676762280b54cd07c770017ed3711ddde35f37a
|
||
|
|
*/
|
||
|
|
Prisma.prismaVersion = {
|
||
|
|
client: "6.6.0",
|
||
|
|
engine: "f676762280b54cd07c770017ed3711ddde35f37a"
|
||
|
|
}
|
||
|
|
|
||
|
|
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
||
|
|
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
||
|
|
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
||
|
|
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
||
|
|
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
||
|
|
Prisma.Decimal = Decimal
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Re-export of sql-template-tag
|
||
|
|
*/
|
||
|
|
Prisma.sql = sqltag
|
||
|
|
Prisma.empty = empty
|
||
|
|
Prisma.join = join
|
||
|
|
Prisma.raw = raw
|
||
|
|
Prisma.validator = Public.validator
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Extensions
|
||
|
|
*/
|
||
|
|
Prisma.getExtensionContext = Extensions.getExtensionContext
|
||
|
|
Prisma.defineExtension = Extensions.defineExtension
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Shorthand utilities for JSON filtering
|
||
|
|
*/
|
||
|
|
Prisma.DbNull = objectEnumValues.instances.DbNull
|
||
|
|
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
||
|
|
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
||
|
|
|
||
|
|
Prisma.NullTypes = {
|
||
|
|
DbNull: objectEnumValues.classes.DbNull,
|
||
|
|
JsonNull: objectEnumValues.classes.JsonNull,
|
||
|
|
AnyNull: objectEnumValues.classes.AnyNull
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
const path = require('path')
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Enums
|
||
|
|
*/
|
||
|
|
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
||
|
|
ReadUncommitted: 'ReadUncommitted',
|
||
|
|
ReadCommitted: 'ReadCommitted',
|
||
|
|
RepeatableRead: 'RepeatableRead',
|
||
|
|
Serializable: 'Serializable'
|
||
|
|
});
|
||
|
|
|
||
|
|
exports.Prisma.ApplicationScalarFieldEnum = {
|
||
|
|
id: 'id',
|
||
|
|
serverId: 'serverId',
|
||
|
|
name: 'name',
|
||
|
|
description: 'description',
|
||
|
|
icon: 'icon',
|
||
|
|
publicURL: 'publicURL',
|
||
|
|
localURL: 'localURL',
|
||
|
|
createdAt: 'createdAt',
|
||
|
|
online: 'online'
|
||
|
|
};
|
||
|
|
|
||
|
|
exports.Prisma.ServerScalarFieldEnum = {
|
||
|
|
id: 'id',
|
||
|
|
name: 'name',
|
||
|
|
os: 'os',
|
||
|
|
ip: 'ip',
|
||
|
|
url: 'url',
|
||
|
|
cpu: 'cpu',
|
||
|
|
gpu: 'gpu',
|
||
|
|
ram: 'ram',
|
||
|
|
disk: 'disk'
|
||
|
|
};
|
||
|
|
|
||
|
|
exports.Prisma.SettingsScalarFieldEnum = {
|
||
|
|
id: 'id',
|
||
|
|
uptime_checks: 'uptime_checks'
|
||
|
|
};
|
||
|
|
|
||
|
|
exports.Prisma.SortOrder = {
|
||
|
|
asc: 'asc',
|
||
|
|
desc: 'desc'
|
||
|
|
};
|
||
|
|
|
||
|
|
exports.Prisma.QueryMode = {
|
||
|
|
default: 'default',
|
||
|
|
insensitive: 'insensitive'
|
||
|
|
};
|
||
|
|
|
||
|
|
exports.Prisma.NullsOrder = {
|
||
|
|
first: 'first',
|
||
|
|
last: 'last'
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
exports.Prisma.ModelName = {
|
||
|
|
application: 'application',
|
||
|
|
server: 'server',
|
||
|
|
settings: 'settings'
|
||
|
|
};
|
||
|
|
/**
|
||
|
|
* Create the Client
|
||
|
|
*/
|
||
|
|
const config = {
|
||
|
|
"generator": {
|
||
|
|
"name": "client",
|
||
|
|
"provider": {
|
||
|
|
"fromEnvVar": null,
|
||
|
|
"value": "prisma-client-js"
|
||
|
|
},
|
||
|
|
"output": {
|
||
|
|
"value": "C:\\Users\\damia\\Desktop\\corecontrol\\prisma\\node_modules\\.prisma\\client",
|
||
|
|
"fromEnvVar": null
|
||
|
|
},
|
||
|
|
"config": {
|
||
|
|
"engineType": "library"
|
||
|
|
},
|
||
|
|
"binaryTargets": [
|
||
|
|
{
|
||
|
|
"fromEnvVar": null,
|
||
|
|
"value": "windows",
|
||
|
|
"native": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"previewFeatures": [],
|
||
|
|
"sourceFilePath": "C:\\Users\\damia\\Desktop\\corecontrol\\prisma\\schema.prisma",
|
||
|
|
"isCustomOutput": true
|
||
|
|
},
|
||
|
|
"relativeEnvPaths": {
|
||
|
|
"rootEnvPath": "../../../../.env",
|
||
|
|
"schemaEnvPath": "../../../../.env"
|
||
|
|
},
|
||
|
|
"relativePath": "../../..",
|
||
|
|
"clientVersion": "6.6.0",
|
||
|
|
"engineVersion": "f676762280b54cd07c770017ed3711ddde35f37a",
|
||
|
|
"datasourceNames": [
|
||
|
|
"db"
|
||
|
|
],
|
||
|
|
"activeProvider": "postgresql",
|
||
|
|
"postinstall": false,
|
||
|
|
"inlineDatasources": {
|
||
|
|
"db": {
|
||
|
|
"url": {
|
||
|
|
"fromEnvVar": "DATABASE_URL",
|
||
|
|
"value": null
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"./node_modules/.prisma/client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n serverId Int @default(1)\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n createdAt DateTime @default(now())\n online Boolean @default(true)\n}\n\nmodel server {\n id Int @id @default(autoincrement())\n name String\n os String?\n ip String?\n url String?\n cpu String?\n gpu String?\n ram String?\n disk String?\n}\n\nmodel settings {\n id Int @id @default(autoincrement())\n uptime_checks Boolean @default(true)\n}\n",
|
||
|
|
"inlineSchemaHash": "8fa6100a7dbf3da2cfc96ca0be031739068fa55eed449bcf0b675635e938f38b",
|
||
|
|
"copyEngine": true
|
||
|
|
}
|
||
|
|
|
||
|
|
const fs = require('fs')
|
||
|
|
|
||
|
|
config.dirname = __dirname
|
||
|
|
if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) {
|
||
|
|
const alternativePaths = [
|
||
|
|
"prisma/node_modules/.prisma/client",
|
||
|
|
"node_modules/.prisma/client",
|
||
|
|
]
|
||
|
|
|
||
|
|
const alternativePath = alternativePaths.find((altPath) => {
|
||
|
|
return fs.existsSync(path.join(process.cwd(), altPath, 'schema.prisma'))
|
||
|
|
}) ?? alternativePaths[0]
|
||
|
|
|
||
|
|
config.dirname = path.join(process.cwd(), alternativePath)
|
||
|
|
config.isBundled = true
|
||
|
|
}
|
||
|
|
|
||
|
|
config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"serverId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":1,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"online\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"server\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"os\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ip\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cpu\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"gpu\",\"ki
|
||
|
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
||
|
|
config.engineWasm = undefined
|
||
|
|
config.compilerWasm = undefined
|
||
|
|
|
||
|
|
|
||
|
|
const { warnEnvConflicts } = require('./runtime/library.js')
|
||
|
|
|
||
|
|
warnEnvConflicts({
|
||
|
|
rootEnvPath: config.relativeEnvPaths.rootEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.rootEnvPath),
|
||
|
|
schemaEnvPath: config.relativeEnvPaths.schemaEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.schemaEnvPath)
|
||
|
|
})
|
||
|
|
|
||
|
|
const PrismaClient = getPrismaClient(config)
|
||
|
|
exports.PrismaClient = PrismaClient
|
||
|
|
Object.assign(exports, Prisma)
|
||
|
|
|
||
|
|
// file annotations for bundling tools to include these files
|
||
|
|
path.join(__dirname, "query_engine-windows.dll.node");
|
||
|
|
path.join(process.cwd(), "prisma/node_modules/.prisma/client/query_engine-windows.dll.node")
|
||
|
|
// file annotations for bundling tools to include these files
|
||
|
|
path.join(__dirname, "schema.prisma");
|
||
|
|
path.join(process.cwd(), "prisma/node_modules/.prisma/client/schema.prisma")
|