server_history model

This commit is contained in:
headlessdev
2025-04-21 13:25:55 +02:00
parent 21dd61c597
commit 1ae8b3e324
3 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
-- CreateTable
CREATE TABLE "server_history" (
"id" SERIAL NOT NULL,
"serverId" INTEGER NOT NULL DEFAULT 1,
"online" BOOLEAN NOT NULL DEFAULT true,
"cpuUsage" TEXT,
"ramUsage" TEXT,
"diskUsage" TEXT,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "server_history_pkey" PRIMARY KEY ("id")
);