OSDN Git Service

???
authorHAOYUatHZ <haoyu@protonmail.com>
Sat, 31 Aug 2019 11:25:43 +0000 (19:25 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Sat, 31 Aug 2019 11:25:43 +0000 (19:25 +0800)
docs/precog/sql_dump/precog_schema.sql

index 54feb71..ba7a104 100644 (file)
@@ -23,6 +23,7 @@ CREATE TABLE `nodes` (
   `ip` varchar(128) NOT NULL DEFAULT '',
   `port` smallint unsigned NOT NULL DEFAULT '0',
   `best_height` int(11) DEFAULT '0',
+  `avg_lantency_ms` int(11) DEFAULT NULL,
   `latest_daily_uptime_minutes` int(11) DEFAULT '0',
   `status` tinyint(1) NOT NULL DEFAULT '0',
   `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
@@ -43,9 +44,7 @@ CREATE TABLE `node_livenesses` (
   `node_id` int(11) NOT NULL,
   `ping_times` int(11) DEFAULT '0',
   `pong_times` int(11) DEFAULT '0',
-  `avg_lantency_ms` int(11) DEFAULT NULL,
   `best_height` int(11) DEFAULT '0',
-  `status` tinyint(1) NOT NULL DEFAULT '0',
   `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
   `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   PRIMARY KEY (`id`),