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

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 {
id Int @id @default(autoincrement())
host Boolean @default(false)
hostServer String?
name String
os String?
ip String?