Cat.sql 16.9 KB
Newer Older
Y
youyong 已提交
1
CREATE TABLE `dailygraph` (
S
fix  
sean.wang 已提交
2 3
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL COMMENT '报表名称',
Y
fix bug  
youyong205 已提交
4
  `ip` varchar(50) NULL COMMENT '报表来自于哪台cat-client机器ip, 空串表示合并同domain所有ip',
Y
youyong 已提交
5
  `domain` varchar(50) NOT NULL COMMENT '报表处理的Domain信息',
S
fix  
sean.wang 已提交
6 7
  `period` datetime NOT NULL  COMMENT '报表时间段',
  `type` tinyint(4) NOT NULL COMMENT '报表数据格式, 1/xml, 2/json, 3/csv, 默认3',
S
sean.wang 已提交
8 9
  `detail_content` mediumtext NOT NULL COMMENT '详细绘图内容',
  `summary_content` mediumtext NOT NULL COMMENT '概要绘图内容',
S
fix  
sean.wang 已提交
10
  `creation_date` datetime NOT NULL COMMENT '报表创建时间',
Y
youyong 已提交
11 12 13
  PRIMARY KEY (`id`),
  UNIQUE KEY `dailygraph_period_ip_domain_name` (`period`,`ip`,`domain`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用于月报的画图曲线';
S
fix  
sean.wang 已提交
14 15 16 17

CREATE TABLE `dailyreport` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL COMMENT '报表名称, transaction, problem...',
Y
fix bug  
youyong205 已提交
18
  `ip` varchar(50) NOT NULL COMMENT '报表来自于哪台cat-consumer机器',
Y
youyong 已提交
19
  `domain` varchar(50) NOT NULL COMMENT '报表处理的Domain信息',
S
fix  
sean.wang 已提交
20 21 22
  `period` datetime NOT NULL  COMMENT '报表时间段',
  `type` tinyint(4) NOT NULL COMMENT '报表数据格式, 1/xml, 2/json, 默认1',
  `creation_date` datetime NOT NULL COMMENT '报表创建时间',
Y
youyong 已提交
23
  PRIMARY KEY (`id`),
Y
youyong 已提交
24
  UNIQUE KEY `period` (`period`,`domain`,`name`)
Y
youyong 已提交
25
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='天报表';
S
sean.wang 已提交
26

Y
youyong 已提交
27
CREATE TABLE `weeklyreport` (
Y
youyong 已提交
28 29
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL COMMENT '报表名称, transaction, problem...',
Y
fix bug  
youyong205 已提交
30
  `ip` varchar(50) NOT NULL COMMENT '报表来自于哪台cat-consumer机器',
Y
youyong 已提交
31
  `domain` varchar(50) NOT NULL COMMENT '报表处理的Domain信息',
Y
youyong 已提交
32 33 34 35 36 37 38 39 40 41
  `period` datetime NOT NULL  COMMENT '报表时间段',
  `type` tinyint(4) NOT NULL COMMENT '报表数据格式, 1/xml, 2/json, 默认1',
  `creation_date` datetime NOT NULL COMMENT '报表创建时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `period` (`period`,`domain`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='周报表';

CREATE TABLE `monthreport` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL COMMENT '报表名称, transaction, problem...',
Y
fix bug  
youyong205 已提交
42
  `ip` varchar(50) NOT NULL COMMENT '报表来自于哪台cat-consumer机器',
Y
youyong 已提交
43
  `domain` varchar(50) NOT NULL COMMENT '报表处理的Domain信息',
Y
youyong 已提交
44
  `period` datetime NOT NULL  COMMENT '报表时间段',
Y
youyong 已提交
45 46 47 48 49 50
  `type` tinyint(4) NOT NULL COMMENT '报表数据格式, 1/xml, 2/json, 默认1',
  `creation_date` datetime NOT NULL COMMENT '报表创建时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `period` (`period`,`domain`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='月报表';

Y
youyong 已提交
51
CREATE TABLE `graph` (
S
fix  
sean.wang 已提交
52 53
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL COMMENT '报表名称',
Y
fix bug  
youyong205 已提交
54
  `ip` varchar(50) NULL COMMENT '报表来自于哪台cat-client机器ip, NULL表示合并同domain所有ip',
Y
youyong 已提交
55
  `domain` varchar(50) NOT NULL COMMENT '报表处理的Domain信息',
S
fix  
sean.wang 已提交
56 57
  `period` datetime NOT NULL  COMMENT '报表时间段',
  `type` tinyint(4) NOT NULL COMMENT '报表数据格式, 1/xml, 2/json, 3/csv, 默认3',
S
sean.wang 已提交
58 59
  `detail_content` mediumtext NOT NULL COMMENT '详细绘图内容',
  `summary_content` mediumtext NOT NULL COMMENT '概要绘图内容',
S
fix  
sean.wang 已提交
60
  `creation_date` datetime NOT NULL COMMENT '报表创建时间',
Y
youyong 已提交
61 62
  PRIMARY KEY (`id`),
  UNIQUE KEY `graph_period_ip_domain_name` (`period`,`ip`,`domain`,`name`)
Y
youyong 已提交
63
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='小时图表曲线';
S
fix  
sean.wang 已提交
64

Y
youyong 已提交
65 66 67
CREATE TABLE `hostinfo` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` varchar(50) NOT NULL COMMENT '部署机器IP',
Y
youyong205 已提交
68 69
  `domain` varchar(200) NOT NULL COMMENT '部署机器对应的项目名',
  `hostname` varchar(200) DEFAULT NULL COMMENT '机器域名',
Y
youyong 已提交
70 71 72 73
  `creation_date` datetime NOT NULL,
  `last_modified_date` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `ip_index` (`ip`)
Y
youyong 已提交
74
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='IP和项目名的对应关系';
S
sean.wang 已提交
75

Y
youyong 已提交
76
CREATE TABLE `report` (
Y
youyong 已提交
77
  `id` int(11) NOT NULL AUTO_INCREMENT,
F
Frankie Wu 已提交
78
  `type` tinyint(4) NOT NULL COMMENT '报表类型, 1/xml, 9/binary 默认1',
Y
youyong 已提交
79
  `name` varchar(20) NOT NULL COMMENT '报表名称',
Y
fix bug  
youyong205 已提交
80
  `ip` varchar(50) DEFAULT NULL COMMENT '报表来自于哪台机器',
81 82
  `domain` varchar(50) NOT NULL  COMMENT '报表项目',
  `period` timestamp NOT NULL COMMENT '报表时间段',
F
Frankie Wu 已提交
83
  `creation_date` timestamp NOT NULL COMMENT '报表创建时间',
Y
youyong 已提交
84
  PRIMARY KEY (`id`),
Y
youyong 已提交
85 86 87
  KEY `IX_Domain_Name_Period` (`domain`,`name`,`period`),
  KEY `IX_Name_Period` (`name`,`period`),
  KEY `IX_Period` (`period`)
Y
youyong 已提交
88
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED COMMENT='用于存放实时报表信息,处理之后的结果';
Y
youyong 已提交
89

90 91 92 93 94 95
CREATE TABLE `report_content` (
  `report_id` int(11) NOT NULL COMMENT '报表ID',
  `content` longblob NOT NULL COMMENT '二进制报表内容',
  `creation_date` timestamp NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`report_id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED COMMENT='小时报表二进制内容';
Y
yong.you 已提交
96

Y
yong.you 已提交
97 98 99 100 101
CREATE TABLE `daily_report_content` (
  `report_id` int(11) NOT NULL COMMENT '报表ID',
  `content` longblob NOT NULL COMMENT '二进制报表内容',
  `creation_date` timestamp NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`report_id`)
Y
yong.you 已提交
102
)ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED COMMENT='天报表二进制内容';
Y
yong.you 已提交
103 104 105 106 107 108

CREATE TABLE `weekly_report_content` (
  `report_id` int(11) NOT NULL COMMENT '报表ID',
  `content` longblob NOT NULL COMMENT '二进制报表内容',
  `creation_date` timestamp NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`report_id`)
Y
yong.you 已提交
109
)ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED COMMENT='周报表二进制内容';
Y
yong.you 已提交
110 111 112 113 114 115

CREATE TABLE `monthly_report_content` (
  `report_id` int(11) NOT NULL COMMENT '报表ID',
  `content` longblob NOT NULL COMMENT '二进制报表内容',
  `creation_date` timestamp NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`report_id`)
Y
yong.you 已提交
116
)ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED COMMENT='月报表二进制内容';
Y
yong.you 已提交
117

118 119 120 121
CREATE TABLE `businessReport` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` tinyint(4) NOT NULL COMMENT '报表类型 报表数据格式, 1/Binary, 2/xml , 3/json',
  `name` varchar(20) NOT NULL COMMENT '报表名称',
Y
fix bug  
youyong205 已提交
122
  `ip` varchar(50) NOT NULL COMMENT '报表来自于哪台机器',
Y
yong.you 已提交
123
  `productLine` varchar(50) NOT NULL COMMENT '指标来源于哪个产品组',
Y
youyong205 已提交
124
  `period` timestamp NOT NULL COMMENT '报表时间段',
Y
yong.you 已提交
125
  `content` longblob COMMENT '用于存放报表的具体内容',
F
Frankie Wu 已提交
126
  `creation_date` timestamp NOT NULL COMMENT '报表创建时间',
127
  PRIMARY KEY (`id`),
Y
youyong205 已提交
128
  KEY `IX_Period_productLine_name` (`period`,`productLine`,`name`)
F
Frankie Wu 已提交
129
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED COMMENT='用于存放业务监控实时报表信息,处理之后的结果';
Y
yong.you 已提交
130

Y
youyong 已提交
131 132 133 134 135 136
CREATE TABLE `task` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `producer`      varchar(20) NOT NULL COMMENT '任务创建者ip',
  `consumer`      varchar(20) NULL COMMENT '任务执行者ip',
  `failure_count` tinyint(4) NOT NULL COMMENT '任务失败次数',
  `report_name`   varchar(20) NOT NULL COMMENT '报表名称, transaction, problem...',
Y
youyong 已提交
137
  `report_domain` varchar(50) NOT NULL COMMENT '报表处理的Domain信息',  
Y
youyong 已提交
138 139 140 141 142 143 144 145
  `report_period` datetime NOT NULL  COMMENT '报表时间',
  `status`        tinyint(4) NOT NULL COMMENT '执行状态: 1/todo, 2/doing, 3/done 4/failed',  
  `task_type`     tinyint(4) NOT NULL DEFAULT '1' COMMENT '0表示小时任务,1表示天任务',
  `creation_date` datetime NOT NULL  COMMENT '任务创建时间',
  `start_date`    datetime NULL  COMMENT '开始时间, 这次执行开始时间',
  `end_date`      datetime NULL  COMMENT '结束时间, 这次执行结束时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `task_period_domain_name_type` (`report_period`,`report_domain`,`report_name`,`task_type`)
Y
youyong 已提交
146 147
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台任务';

Y
youyong 已提交
148
CREATE TABLE `project` (
Y
youyong 已提交
149
  `id` int(11) NOT NULL AUTO_INCREMENT,
Y
youyong205 已提交
150 151
  `domain` varchar(200) NOT NULL COMMENT '项目名称',
  `cmdb_domain` varchar(200) DEFAULT  NULL COMMENT 'cmdb项目名称',
Y
youyong205 已提交
152 153
  `level` int(5) DEFAULT NULL COMMENT '项目级别',  
  `bu` varchar(50) DEFAULT NULL COMMENT 'CMDB事业部',
L
leon.li 已提交
154
  `cmdb_productline` varchar(50) DEFAULT NULL COMMENT 'CMDB产品线',
Y
youyong 已提交
155
  `owner` varchar(50)  DEFAULT NULL COMMENT '项目负责人',
Y
youyong205 已提交
156 157
  `email` varchar(200)  DEFAULT NULL COMMENT '项目组邮件',
  `phone` varchar(200)  DEFAULT NULL COMMENT '联系电话',
Y
youyong 已提交
158 159
  `creation_date` datetime DEFAULT NULL COMMENT '创建时间',
  `modify_date` datetime DEFAULT NULL COMMENT '修改时间',
J
jialinsun 已提交
160
  PRIMARY KEY (`id`),
Y
youyong205 已提交
161
  KEY `domain` (`domain`)
Y
youyong 已提交
162 163
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='项目基本信息';

164 165
CREATE TABLE `topologyGraph` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
Y
fix bug  
youyong205 已提交
166
  `ip` varchar(50) NOT NULL COMMENT '报表来自于哪台cat-client机器ip',
167 168 169 170 171 172 173 174
  `period` datetime NOT NULL  COMMENT '报表时间段,精确到分钟',
  `type` tinyint(4) NOT NULL COMMENT '报表数据格式, 1/xml, 2/json, 3/binary',
  `content` longblob COMMENT '用于存放报表的具体内容',
  `creation_date` datetime NOT NULL COMMENT '报表创建时间',
  PRIMARY KEY (`id`),
  KEY `period` (`period`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用于存储历史的拓扑图曲线';

Y
yong.you 已提交
175 176
CREATE TABLE `config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
Y
yong.you 已提交
177
  `name` varchar(50) NOT NULL COMMENT '配置名称',
Y
yong.you 已提交
178 179 180 181 182 183 184
  `content` longtext COMMENT '配置的具体内容',
  `creation_date` datetime NOT NULL COMMENT '配置创建时间',
  `modify_date` datetime NOT NULL COMMENT '配置修改时间',
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用于存储系统的全局配置信息';

S
sunryuan 已提交
185 186 187 188 189 190 191 192
CREATE TABLE `baseline` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `report_name` varchar(100) DEFAULT NULL,
  `index_key` varchar(100) DEFAULT NULL,
  `report_period` datetime DEFAULT NULL,
  `data` blob,
  `creation_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
Y
youyong205 已提交
193
  KEY `period_name_key` (`report_period`,`report_name`,`index_key`)
F
Frankie Wu 已提交
194
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
R
add sql  
Renyuan Sun 已提交
195

Y
youyong205 已提交
196 197 198 199 200 201 202 203
CREATE TABLE `alteration` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `type` varchar(64) NOT NULL COMMENT '分类',
  `title` varchar(128) NOT NULL COMMENT '变更标题',
  `domain` varchar(128) NOT NULL COMMENT '变更项目',
  `hostname` varchar(128) NOT NULL COMMENT '变更机器名',
  `ip` varchar(128) DEFAULT NULL COMMENT '变更机器IP',
  `date` datetime NOT NULL COMMENT '变更时间',
Y
youyong205 已提交
204 205
  `user` varchar(45) NOT NULL COMMENT '变更用户',
  `alt_group` varchar(45) DEFAULT NULL COMMENT '变更组别',
L
leon.li 已提交
206
  `content` longtext NOT NULL COMMENT '变更内容',
Y
youyong205 已提交
207
  `url` varchar(200) DEFAULT NULL COMMENT '变更链接',
J
jialinsun 已提交
208
  `status` tinyint(4) DEFAULT '0' COMMENT '变更状态',
Y
youyong205 已提交
209 210 211
  `creation_date` datetime NOT NULL COMMENT '数据库创建时间',
  PRIMARY KEY (`id`),
  KEY `ind_date_domain_host` (`date`,`domain`,`hostname`)
Y
youyong205 已提交
212
) ENGINE=InnoDB AUTO_INCREMENT=1241 DEFAULT CHARSET=utf8 COMMENT='变更表';
Y
youyong205 已提交
213

214 215 216 217 218 219
CREATE TABLE `alert` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `domain` varchar(128) NOT NULL COMMENT '告警项目',
  `alert_time` datetime NOT NULL COMMENT '告警时间',
  `category` varchar(64) NOT NULL COMMENT '告警分类:network/business/system/exception -alert',
  `type` varchar(64) NOT NULL COMMENT '告警类型:error/warning',
L
leon.li 已提交
220
  `content` longtext NOT NULL COMMENT '告警内容',
221 222 223
  `metric` varchar(128) NOT NULL COMMENT '告警指标',
  `creation_date` datetime NOT NULL COMMENT '数据插入时间',
  PRIMARY KEY (`id`)
L
leon.li 已提交
224 225 226 227 228 229
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='存储告警信息';

CREATE TABLE `alert_summary` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `domain` varchar(128) NOT NULL COMMENT '告警项目',
  `alert_time` datetime NOT NULL COMMENT '告警时间',
L
leon.li 已提交
230
  `content` longtext NOT NULL COMMENT '统一告警内容',
L
leon.li 已提交
231 232
  `creation_date` datetime NOT NULL COMMENT '数据插入时间',
  PRIMARY KEY (`id`)
Y
youyong205 已提交
233 234
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='统一告警信息';

Y
youyong205 已提交
235 236
CREATE TABLE `operation` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
Y
youyong205 已提交
237
  `user` varchar(128) NOT NULL COMMENT '用户名',
Y
youyong205 已提交
238 239 240 241 242 243 244 245
  `module` varchar(128) NOT NULL COMMENT '模块',
  `operation` varchar(128) NOT NULL COMMENT '操作',
  `time` datetime NOT NULL COMMENT '修改时间',
  `content` longtext NOT NULL COMMENT '修改内容',
  `creation_date` datetime NOT NULL COMMENT '数据插入时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户操作日志';

J
jialinsun 已提交
246
CREATE TABLE `app_command_data_1` (
Y
youyong205 已提交
247 248
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `period` date NOT NULL COMMENT '时间',
J
jialinsun 已提交
249 250 251 252
  `minute_order` smallint NOT NULL COMMENT '分钟',
  `city` smallint NOT NULL COMMENT '城市',
  `operator` tinyint NOT NULL COMMENT '运营商',
  `network` tinyint NOT NULL COMMENT '网络类型',
J
jialinsun 已提交
253
  `app_version` int NOT NULL COMMENT '版本',
J
jialinsun 已提交
254 255 256 257 258 259 260 261
  `connect_type` tinyint NOT NULL COMMENT '访问类型,是否长连接',
  `code` smallint NOT NULL COMMENT '返回码',
  `platform` tinyint NOT NULL COMMENT '平台',
  `access_number` bigint NOT NULL COMMENT '访问量',
  `response_sum_time` bigint NOT NULL COMMENT '响应时间大小',
  `request_package` bigint NOT NULL COMMENT '请求包大小',
  `response_package` bigint NOT NULL COMMENT '响应包大小',
  `status` smallint NOT NULL COMMENT '数据状态',
Y
youyong205 已提交
262 263
  `creation_date` datetime NOT NULL COMMENT '数据插入时间',
  PRIMARY KEY (`id`),
J
jialinsun 已提交
264
  UNIQUE KEY `IX_condition` (`period`,`minute_order`,`city`,`operator`,`network`,`app_version`,`connect_type`,`code`,`platform`)
J
jialinsun 已提交
265
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='app基本数据';
L
leon.li 已提交
266

J
jialinsun 已提交
267 268 269 270 271 272 273
CREATE TABLE `app_speed_data_1` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `period` date NOT NULL COMMENT '时间',
  `minute_order` smallint NOT NULL COMMENT '分钟',
  `city` smallint NOT NULL COMMENT '城市',
  `operator` tinyint NOT NULL COMMENT '运营商',
  `network` tinyint NOT NULL COMMENT '网络类型',
J
jialinsun 已提交
274
  `app_version` int NOT NULL COMMENT '版本',
J
jialinsun 已提交
275 276 277 278 279 280 281 282
  `platform` tinyint NOT NULL COMMENT '平台',
  `access_number` bigint NOT NULL COMMENT '访问量',
  `slow_access_number` bigint NOT NULL COMMENT '慢用户访问量',
  `response_sum_time` bigint NOT NULL COMMENT '响应时间大小',
  `slow_response_sum_time` bigint NOT NULL COMMENT '慢用户响应时间大小',
  `status` smallint NOT NULL COMMENT '数据状态',
  `creation_date` datetime NOT NULL COMMENT '数据插入时间',
  PRIMARY KEY (`id`),
Y
youyong205 已提交
283
  UNIQUE KEY `IX_condition` (period,minute_order,city,operator,network,app_version,platform)
J
jialinsun 已提交
284 285
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='app测速数据';

J
jialinsun 已提交
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
CREATE TABLE `web_api_data_1` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `period` date NOT NULL COMMENT '时间',
  `minute_order` smallint(6) NOT NULL COMMENT '分钟',
  `city` smallint(6) NOT NULL COMMENT '城市',
  `operator` tinyint(4) NOT NULL COMMENT '运营商',
  `code` smallint(6) NOT NULL COMMENT '返回码',
  `access_number` bigint(20) NOT NULL COMMENT '访问量',
  `response_sum_time` bigint(20) NOT NULL COMMENT '响应时间大小',
  `updatetime` datetime NOT NULL COMMENT '数据更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `IX_condition` (`period`,`minute_order`,`city`,`operator`,`code`),
  KEY `updatetime` (`updatetime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='web基本数据';)

L
leon.li 已提交
301 302 303 304 305 306 307 308
CREATE TABLE `overload` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `report_id` int(11) NOT NULL COMMENT '报告id',
  `report_type` tinyint(4) NOT NULL COMMENT '报告类型 1:hourly 2:daily 3:weekly 4:monthly',
  `report_size` double NOT NULL COMMENT '报告大小 单位MB',
  `period` datetime NOT NULL COMMENT '报表时间',
  `creation_date` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
Y
youyong205 已提交
309
  KEY `period` (`period`)
L
leon.li 已提交
310
) ENGINE=InnoDB AUTO_INCREMENT=1242 DEFAULT CHARSET=utf8 COMMENT='过大容量表';
L
leon.li 已提交
311 312 313 314 315 316 317 318 319 320 321

CREATE TABLE `config_modification` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `user_name` varchar(64) NOT NULL COMMENT '用户名',
  `account_name` varchar(64) NOT NULL COMMENT '账户名',
  `action_name` varchar(64) NOT NULL COMMENT 'action名',
  `argument` longtext COMMENT '参数内容',
  `date` datetime NOT NULL COMMENT '修改时间',
  `creation_date` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1242 DEFAULT CHARSET=utf8 COMMENT='配置修改记录表';
L
leon.li 已提交
322 323 324 325 326 327 328

CREATE TABLE `user_define_rule` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',
  `content` text NOT NULL COMMENT '用户定义规则',
  `creation_date` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1242 DEFAULT CHARSET=utf8 COMMENT='用户定义规则表';