`host` varchar(128) NOT NULL DEFAULT '',
`port` smallint unsigned NOT NULL DEFAULT '0',
`best_height` int(11) DEFAULT '0',
- `lantency_ms` int(11) DEFAULT NULL,
- `active_begin_time` timestamp,
- `status` tinyint(1) NOT NULL DEFAULT '0',
+ `latest_daily_uptime_minutes` int(11) 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`),
LOCK TABLES `nodes` WRITE;
UNLOCK TABLES;
+
+# Dump of table node_livenesses
+# ------------------------------------------------------------
+
+CREATE TABLE `node_livenesses` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `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,
+ `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`),
+ CONSTRAINT `node_livenesses_ibfk_1` FOREIGN KEY (`node_id`) REFERENCES `nodes` (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+LOCK TABLES `node_livenesses` WRITE;
+UNLOCK TABLES;
+