From 16d3be95503c55387d562ed2bf6892e6c65cd5b0 Mon Sep 17 00:00:00 2001 From: doufenghu Date: Tue, 13 Nov 2018 09:41:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(sql):=E5=A2=9E=E5=8A=A0=E6=B5=81=E6=8E=A7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=BB=9F=E8=AE=A1=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/init/galaxy_stru_mysql.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/db/init/galaxy_stru_mysql.sql b/db/init/galaxy_stru_mysql.sql index c92b7c7..95e6fd3 100644 --- a/db/init/galaxy_stru_mysql.sql +++ b/db/init/galaxy_stru_mysql.sql @@ -25,6 +25,7 @@ DROP TABLE IF EXISTS `ntc_entrance_stat_hour`; DROP TABLE IF EXISTS `ntc_lwhh_report`; DROP TABLE IF EXISTS `ntc_lwhh_stat_daily`; DROP TABLE IF EXISTS `ntc_lwhh_stat_hour`; +DROP TABLE IF EXISTS `pz_control_report`; DROP TABLE IF EXISTS `ntc_pz_report`; DROP TABLE IF EXISTS `ntc_pz_stat_daily`; DROP TABLE IF EXISTS `ntc_pz_stat_hour`; @@ -372,6 +373,22 @@ CREATE TABLE `ntc_pz_report` ( PRIMARY KEY (`stat_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; + +/*Table structure for table `pz_control_report` */ + + + +CREATE TABLE `pz_control_report` ( + `stat_id` bigint(20) NOT NULL AUTO_INCREMENT, + `cfg_id` int(20) NOT NULL, + `service` int(11) NOT NULL, + `sum` bigint(20) NOT NULL, + `report_time` datetime DEFAULT NULL, + PRIMARY KEY (`stat_id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; + + + /*Table structure for table `ntc_pz_stat_daily` */