Add host and hostServer columns to server model and migration

This commit is contained in:
headlessdev 2025-04-18 11:33:20 +02:00
parent 60dd711856
commit 82cee64860
3 changed files with 20 additions and 0 deletions

15
package-lock.json generated
View File

@ -4577,6 +4577,21 @@
"optional": true "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,3 @@
-- AlterTable
ALTER TABLE "server" ADD COLUMN "host" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "hostServer" TEXT;

View File

@ -34,6 +34,8 @@ model uptime_history {
model server { model server {
id Int @id @default(autoincrement()) id Int @id @default(autoincrement())
host Boolean @default(false)
hostServer String?
name String name String
os String? os String?
ip String? ip String?