This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/db/20181225/add_event_report_table.sql

39 lines
1.5 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

##
##() ntc_major_task_report
CREATE TABLE `ntc_major_task_report` (
`stat_id` int(11) NOT NULL AUTO_INCREMENT ,
`task_id` int(20) NOT NULL ,
`task_name` varchar(64) NOT NULL ,
`letter_num` bigint(11) UNSIGNED NOT NULL DEFAULT 0 ,
`config_num` bigint(11) UNSIGNED NOT NULL DEFAULT 0 ,
`monitor_num` bigint(11) UNSIGNED NOT NULL DEFAULT 0 ,
`control_num` bigint(11) UNSIGNED NOT NULL DEFAULT 0 ,
`report_time` datetime NOT NULL ,
`task_time` datetime NOT NULL ,
PRIMARY KEY (`stat_id`),
INDEX `IDX_MAJOR_TASK_REPORT_TIME` (`report_time`) USING BTREE
)
ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
AUTO_INCREMENT=1
ROW_FORMAT=DYNAMIC;
##()ntc_task_report
CREATE TABLE `ntc_task_report` (
`stat_id` int(11) NOT NULL AUTO_INCREMENT ,
`task_id` int(20) NOT NULL ,
`task_name` varchar(64) NOT NULL ,
`report_type` int(11) NOT NULL ,#12
`ip_num` bigint(20) UNSIGNED NOT NULL DEFAULT 0 ,
`http_num` bigint(11) UNSIGNED NOT NULL DEFAULT 0 ,
`mail_num` bigint(11) UNSIGNED NOT NULL DEFAULT 0 ,
`vedio_num` bigint(11) UNSIGNED NOT NULL DEFAULT 0 ,
`agent_num` bigint(11) UNSIGNED NOT NULL DEFAULT 0 ,
`report_time` datetime NOT NULL ,
`task_time` datetime NOT NULL ,
PRIMARY KEY (`stat_id`),
INDEX `IDX_TASK_REPORT_TIME` (`report_time`) USING BTREE
)
ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
AUTO_INCREMENT=1
ROW_FORMAT=DYNAMIC;