mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
Uptime History DB Model
This commit is contained in:
parent
d779355c4c
commit
7da6501ca7
@ -0,0 +1,9 @@
|
|||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "uptime_history" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"applicationId" INTEGER NOT NULL DEFAULT 1,
|
||||||
|
"online" BOOLEAN NOT NULL DEFAULT true,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "uptime_history_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
@ -25,6 +25,13 @@ model application {
|
|||||||
online Boolean @default(true)
|
online Boolean @default(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model uptime_history {
|
||||||
|
id Int @id @default(autoincrement())
|
||||||
|
applicationId Int @default(1)
|
||||||
|
online Boolean @default(true)
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
}
|
||||||
|
|
||||||
model server {
|
model server {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
name String
|
name String
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user