|
|
@@ -490,8 +490,34 @@ CREATE TABLE `iot_sensor_log` (
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='动环传感器日志表';
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+drop table if exists mediator_north_business_statistics;
|
|
|
+CREATE TABLE `mediator_north_business_statistics` (
|
|
|
+ `id` bigint NOT NULL,
|
|
|
+ `org_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
|
|
|
+ `date` date DEFAULT NULL COMMENT '日期',
|
|
|
+ `channel_count` bigint DEFAULT NULL COMMENT '通道数量',
|
|
|
+ `video_integrity_count` bigint DEFAULT NULL COMMENT '录像完整下数量',
|
|
|
+ `video_days_count` bigint DEFAULT NULL COMMENT '录像视频天数数量',
|
|
|
+ `video_diagnosis_count` bigint DEFAULT NULL COMMENT '视频质量诊断数量',
|
|
|
+ `protection_count` bigint DEFAULT NULL COMMENT '防区数量',
|
|
|
+ `protection_status_count` bigint DEFAULT NULL COMMENT '防区状态数量',
|
|
|
+ `net_status_count` bigint DEFAULT NULL COMMENT '网络状态',
|
|
|
+ `hard_disk_count` bigint DEFAULT NULL COMMENT '硬盘检测数量',
|
|
|
+ `door_device_count` bigint DEFAULT NULL COMMENT '卷帘门状态(主机直连)数量',
|
|
|
+ PRIMARY KEY (`id`) USING BTREE
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='北向业务数据信息统计';
|
|
|
+
|
|
|
+drop table if exists mediator_north_base_statistics;
|
|
|
+CREATE TABLE `mediator_north_base_statistics` (
|
|
|
+ `id` bigint NOT NULL DEFAULT '20',
|
|
|
+ `date` date DEFAULT NULL COMMENT '接收日期',
|
|
|
+ `data_type` int DEFAULT NULL COMMENT '数据类型,0设备数,1通道数,2防区数,3iot产品信息,4iot产品属性,5iot设备基本信息',
|
|
|
+ `receive_count` bigint DEFAULT NULL COMMENT '接收数量',
|
|
|
+ `save_count` bigint DEFAULT NULL COMMENT '入库数量',
|
|
|
+ PRIMARY KEY (`id`) USING BTREE,
|
|
|
+ UNIQUE KEY `t_north_statistics_id_uindex` (`id`) USING BTREE,
|
|
|
+ KEY `t_north_statistics_date_data_type_index` (`date`,`data_type`) USING BTREE
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='北向基础信息统计表';
|
|
|
|
|
|
drop table if exists mediator_north_error;
|
|
|
CREATE TABLE `mediator_north_error` (
|