mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 05:13:58 -07:00
Add simple root server watcher (for our own new dashboard, but also for user use).
This commit is contained in:
parent
1b2cfd63e5
commit
6fabaae736
6 changed files with 293 additions and 1 deletions
21
root-watcher/schema.sql
Normal file
21
root-watcher/schema.sql
Normal file
|
@ -0,0 +1,21 @@
|
|||
/* Schema for ZeroTier root watcher log database */
|
||||
|
||||
/* If you cluster this DB using any PG clustering scheme that uses logs, you must remove UNLOGGED here! */
|
||||
CREATE UNLOGGED TABLE "Peer"
|
||||
(
|
||||
"ztAddress" BIGINT NOT NULL,
|
||||
"timestamp" BIGINT NOT NULL,
|
||||
"versionMajor" INTEGER NOT NULL,
|
||||
"versionMinor" INTEGER NOT NULL,
|
||||
"versionRev" INTEGER NOT NULL,
|
||||
"rootId" INTEGER NOT NULL,
|
||||
"phyPort" INTEGER NOT NULL,
|
||||
"phyLinkQuality" REAL NOT NULL,
|
||||
"phyLastReceive" BIGINT NOT NULL,
|
||||
"phyAddress" INET NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX "Peer_ztAddress" ON "Peer" ("ztAddress");
|
||||
CREATE INDEX "Peer_timestamp" ON "Peer" ("timestamp");
|
||||
CREATE INDEX "Peer_rootId" ON "Peer" ("rootId");
|
||||
CREATE INDEX "Peer_phyAddress" ON "Peer" ("phyAddress");
|
Loading…
Add table
Add a link
Reference in a new issue