diff --git a/db/20181229/traffic_statistic.sql b/db/20181229/traffic_statistic.sql new file mode 100644 index 0000000..4e106e3 --- /dev/null +++ b/db/20181229/traffic_statistic.sql @@ -0,0 +1,9 @@ +CREATE TABLE `traffic_asn_statistic` ( + `stat_id` bigint(20) NOT NULL AUTO_INCREMENT, + `asn_type` int(11) NOT NULL COMMENT '1-src_asn 2-dst_asn', + `asn` varchar(64) NOT NULL, + `packets` bigint(20) NOT NULL, + `bytes` bigint(20) NOT NULL, + `stat_time` datetime NOT NULL , + PRIMARY KEY (`stat_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; \ No newline at end of file