Add PanOS
This commit is contained in:
parent
af389b145d
commit
00097c68d2
|
@ -0,0 +1,15 @@
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "PanOS" (
|
||||||
|
"id" SERIAL,
|
||||||
|
"description" TEXT NOT NULL,
|
||||||
|
"ip" TEXT NOT NULL,
|
||||||
|
"encryptedKey" TEXT NOT NULL,
|
||||||
|
"note" TEXT,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "PanOS.ip_unique" ON "PanOS"("ip");
|
|
@ -122,3 +122,13 @@ model Statistic {
|
||||||
totalWifiDevices Int
|
totalWifiDevices Int
|
||||||
onlineWifiDevices Int
|
onlineWifiDevices Int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model PanOS {
|
||||||
|
id Int @id @default(autoincrement())
|
||||||
|
description String
|
||||||
|
ip String @unique
|
||||||
|
encryptedKey String
|
||||||
|
note String?
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime @updatedAt
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user