add gpuUsage and temp fields to server and server_history models in schema.prisma

This commit is contained in:
headlessdev 2025-04-28 19:48:30 +02:00
parent f7697ff925
commit 07497b1832
3 changed files with 13 additions and 17 deletions

19
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "corecontrol",
"version": "0.0.9",
"version": "0.0.10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "corecontrol",
"version": "0.0.9",
"version": "0.0.10",
"dependencies": {
"@prisma/client": "^6.6.0",
"@prisma/extension-accelerate": "^1.3.0",
@ -5073,21 +5073,6 @@
"optional": true
}
}
},
"node_modules/@next/swc-win32-x64-msvc": {
"version": "15.3.0",
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.3.0.tgz",
"integrity": "sha512-vHUQS4YVGJPmpjn7r5lEZuMhK5UQBNBRSB+iGDvJjaNk649pTIcRluDWNb9siunyLLiu/LDPHfvxBtNamyuLTw==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
}
}
}

View File

@ -0,0 +1,7 @@
-- AlterTable
ALTER TABLE "server" ADD COLUMN "gpuUsage" TEXT,
ADD COLUMN "temp" TEXT;
-- AlterTable
ALTER TABLE "server_history" ADD COLUMN "gpuUsage" TEXT,
ADD COLUMN "temp" TEXT;

View File

@ -40,6 +40,8 @@ model server_history {
cpuUsage String?
ramUsage String?
diskUsage String?
gpuUsage String?
temp String?
createdAt DateTime @default(now())
}
@ -63,6 +65,8 @@ model server {
diskUsage String?
online Boolean @default(true)
uptime String?
gpuUsage String?
temp String?
}
model settings {