提交 | 用户 | 时间
|
6a5cf8
|
1 |
create table |
潘 |
2 |
t_dm_module |
|
3 |
( |
|
4 |
id varchar(36) not null, |
|
5 |
modulename varchar(50), |
|
6 |
moduletype varchar(30), |
|
7 |
cycle decimal(5, 0), |
|
8 |
modulenavconfig varchar(3072), |
|
9 |
predicttime datetime, |
|
10 |
collecttime datetime, |
|
11 |
create_time datetime default current_timestamp, |
|
12 |
update_time datetime default current_timestamp, |
|
13 |
traintime datetime, |
|
14 |
primary key (id), |
|
15 |
key idx_moduletype (moduletype) |
|
16 |
) engine = innodb |
|
17 |
default character set utf8mb4; |
|
18 |
|
|
19 |
|
|
20 |
create table |
|
21 |
t_dm_module_item |
|
22 |
( |
|
23 |
id varchar(36) not null, |
|
24 |
moduleid varchar(36), |
|
25 |
itemid varchar(36), |
|
26 |
itemorder bigint, |
|
27 |
status bigint, |
|
28 |
categoryid varchar(64), |
|
29 |
primary key (id), |
|
30 |
key idx_moduleid (moduleid) |
|
31 |
) engine = innodb |
|
32 |
default character set utf8mb4; |
|
33 |
|
|
34 |
create table t_mm_item_output |
|
35 |
( |
|
36 |
id varchar(36) not null, |
|
37 |
itemid varchar(36), |
|
38 |
pointid varchar(36), |
|
39 |
resulttableid varchar(36), |
|
40 |
tagname varchar(50), |
|
41 |
outputorder decimal(5, 0), |
|
42 |
primary key (id), |
|
43 |
key idx_itemid (itemid) |
|
44 |
) engine = innodb |
|
45 |
default character set utf8mb4; |
|
46 |
|
|
47 |
create table |
|
48 |
t_mm_item_result |
|
49 |
( |
|
50 |
id varchar(36) not null, |
|
51 |
outputid varchar(36), |
|
52 |
datatime datetime, |
|
53 |
datavalue decimal(19, 3), |
|
54 |
primary key (id), |
|
55 |
key idx_outputid (outputid) |
|
56 |
) engine = innodb |
|
57 |
default character set utf8mb4; |
|
58 |
|
|
59 |
create table |
|
60 |
t_mm_item_type |
|
61 |
( |
|
62 |
id varchar(36) not null, |
|
63 |
itemtypename varchar(50), |
|
64 |
itemclasstype varchar(100), |
|
65 |
assemblyname varchar(64), |
|
66 |
primary key (id) |
|
67 |
) engine = innodb |
|
68 |
default character set utf8mb4; |
|
69 |
|
|
70 |
create table |
|
71 |
t_mm_model_arith_settings |
|
72 |
( |
|
73 |
id varchar(64) not null, |
|
74 |
modelid varchar(64), |
|
75 |
`key` varchar(64), |
|
76 |
value varchar(256), |
|
77 |
name varchar(64), |
|
78 |
valuetype varchar(64), |
|
79 |
primary key (id), |
|
80 |
key idx_modelid (modelid) |
|
81 |
) engine = innodb |
|
82 |
default character set utf8mb4; |
|
83 |
|
|
84 |
create table |
|
85 |
t_mm_model_param |
|
86 |
( |
|
87 |
id varchar(56) not null, |
|
88 |
modelid varchar(56), |
|
89 |
modelparamname varchar(64), |
|
90 |
modelparamid varchar(56), |
|
91 |
modelparamorder integer, |
|
92 |
modelparamportorder integer, |
|
93 |
datalength integer, |
|
94 |
modelparamtype varchar(32), |
|
95 |
primary key (id), |
|
96 |
key idx_modelid (modelid) |
|
97 |
) engine = innodb |
|
98 |
default character set utf8mb4; |
|
99 |
|
|
100 |
create table |
|
101 |
t_mm_model_resultstr |
|
102 |
( |
|
103 |
id varchar(64) not null, |
|
104 |
resultstr varchar(64), |
|
105 |
constraint p_key_1 primary key (id) |
|
106 |
) engine = innodb |
|
107 |
default character set utf8mb4; |
|
108 |
|
|
109 |
create table |
|
110 |
t_mm_predict_item |
|
111 |
( |
|
112 |
id varchar(36) not null, |
|
113 |
itemno varchar(16), |
|
114 |
itemname varchar(50), |
|
115 |
caltypeid varchar(36), |
|
116 |
itemtypeid varchar(36), |
|
117 |
predictlength decimal(5, 0), |
|
118 |
granularity decimal(5, 0), |
|
119 |
status decimal(5, 0), |
|
120 |
isfuse decimal(5, 0), |
|
121 |
predictphase decimal(5, 0), |
|
122 |
workchecked decimal(5, 0), |
|
123 |
unittransfactor decimal(31, 6), |
|
124 |
create_time datetime default current_timestamp, |
|
125 |
update_time datetime default current_timestamp, |
|
126 |
saveindex varchar(16), |
|
127 |
primary key (id), |
|
128 |
key idx_itemno (itemno) |
|
129 |
) engine = innodb |
|
130 |
default character set utf8mb4; |
|
131 |
|
|
132 |
create table |
|
133 |
t_mm_predict_merge_item |
|
134 |
( |
|
135 |
id varchar(36) not null, |
|
136 |
itemid varchar(36), |
|
137 |
expression varchar(200), |
|
138 |
num integer, |
|
139 |
primary key (id), |
|
140 |
key idx_itemid (itemid) |
|
141 |
) engine = innodb |
|
142 |
default character set utf8mb4; |
|
143 |
|
|
144 |
create table |
|
145 |
t_mm_predict_model |
|
146 |
( |
|
147 |
id varchar(36) not null, |
|
148 |
modelno varchar(32), |
|
149 |
modelname varchar(50), |
|
150 |
itemid varchar(36), |
|
151 |
arithid varchar(36), |
|
152 |
trainsamplength decimal(5, 0), |
|
153 |
predictsamplength decimal(5, 0), |
|
154 |
isonlinetrain decimal(5, 0), |
|
155 |
modelpath varchar(256), |
|
156 |
isnormal decimal(5, 0), |
|
157 |
normalmax decimal(19, 3), |
|
158 |
normalmin decimal(19, 3), |
|
159 |
status decimal(5, 0), |
|
160 |
classname varchar(256), |
|
161 |
methodname varchar(64), |
|
162 |
modelparamstructure varchar(128), |
|
163 |
resultstrid varchar(64), |
|
164 |
settingmap varchar(256), |
|
165 |
trainmodelpath varchar(256), |
|
166 |
pathstatus decimal(5, 0), |
|
167 |
pdim smallint, |
|
168 |
traninip varchar(16), |
|
169 |
comparisonclassname varchar(256), |
|
170 |
primary key (id), |
|
171 |
key idx_modelno (modelno), |
|
172 |
key idx_itemid (itemid) |
|
173 |
) engine = innodb |
|
174 |
default character set utf8mb4; |
|
175 |
|
|
176 |
create table |
|
177 |
t_mm_result_table |
|
178 |
( |
|
179 |
id varchar(36) not null, |
|
180 |
tablename varchar(30), |
|
181 |
primary key (id) |
|
182 |
) engine = innodb |
|
183 |
default character set utf8mb4; |
|
184 |
|
|
185 |
|
|
186 |
create table t_mm_predict_alarm_config |
|
187 |
( |
|
188 |
id varchar(36) not null, |
|
189 |
title varchar(20) COMMENT '消息标题', |
|
190 |
alarm_obj varchar(36) COMMENT '监控对象', |
|
191 |
item_id varchar(36) COMMENT '预测项ID', |
|
192 |
comp_length int COMMENT '比较长度', |
|
193 |
upper_limit decimal(10, 4) COMMENT '上限', |
|
194 |
lower_limit decimal(10, 4) COMMENT '下限', |
|
195 |
unit varchar(10) COMMENT '单位', |
|
196 |
coefficient decimal(10, 4) COMMENT '转换系数', |
|
197 |
model_id varchar(36) COMMENT '调度建议模型', |
|
198 |
is_enable tinyint NOT NULL COMMENT '是否启用(0禁用 1启用)', |
|
199 |
`creator` varchar(64) NOT NULL DEFAULT '' COMMENT '创建者', |
|
200 |
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|
201 |
`updater` varchar(64) DEFAULT '' COMMENT '更新者', |
|
202 |
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
|
203 |
primary key (id) |
|
204 |
) engine = innodb |
|
205 |
default character set utf8mb4 COMMENT = '预警配置表'; |
|
206 |
|
|
207 |
create table t_mm_predict_alarm_message |
|
208 |
( |
|
209 |
id varchar(36) not null, |
|
210 |
title varchar(36) COMMENT '消息标题', |
|
211 |
content varchar(128) COMMENT '消息内容', |
|
212 |
alarm_obj varchar(36) COMMENT '监控对象', |
|
213 |
point_id varchar(36) COMMENT '监控点位ID', |
|
214 |
item_id varchar(36) COMMENT '预测项ID', |
|
215 |
current_value decimal(18, 4) COMMENT '当前值', |
|
216 |
out_time datetime COMMENT '超出时间', |
|
217 |
out_value decimal(18, 4) COMMENT '超出值', |
|
218 |
alarm_type varchar(10) COMMENT '预警类型', |
|
219 |
alarm_time datetime COMMENT '预警时间', |
|
220 |
create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|
221 |
primary key (id), |
|
222 |
key idx_item_id (item_id), |
|
223 |
key idx_alarm_obj (alarm_obj), |
|
224 |
key idx_alarm_time (alarm_time) |
|
225 |
) engine = innodb |
|
226 |
default character set utf8mb4 COMMENT = '预警消息表'; |
|
227 |
|
|
228 |
|
|
229 |
-- 调度模块 |
|
230 |
|
|
231 |
create table t_st_schedule_scheme |
|
232 |
( |
|
233 |
`id` varchar(36) not null COMMENT 'ID', |
|
234 |
`code` varchar(20) COMMENT '编号', |
|
235 |
`name` varchar(20) COMMENT '名称', |
|
236 |
`trigger_method` varchar(20) COMMENT '触发方式', |
|
237 |
`trigger_condition` varchar(20) COMMENT '触发条件', |
|
238 |
`schedule_obj` varchar(20) COMMENT '调整对象', |
|
239 |
`schedule_type` varchar(20) COMMENT '调整类型', |
|
240 |
`schedule_strategy` varchar(20) COMMENT '调整策略', |
|
241 |
`model_id` varchar(36) COMMENT '调度模型', |
|
242 |
`schedule_time` datetime COMMENT '调度时间', |
|
243 |
`status` tinyint NOT NULL DEFAULT 0 COMMENT '方案状态(0正常 1停用)', |
|
244 |
`remark` varchar(100) COMMENT '备注', |
|
245 |
`creator` varchar(64) NOT NULL DEFAULT '' COMMENT '创建者', |
|
246 |
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|
247 |
`updater` varchar(64) NULL DEFAULT '' COMMENT '更新者', |
|
248 |
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
|
249 |
primary key (id), |
|
250 |
UNIQUE INDEX `uk_code` (`code` ASC) USING BTREE |
|
251 |
) engine = innodb |
|
252 |
default character set utf8mb4 COMMENT = '调度方案表'; |
|
253 |
|
|
254 |
|
|
255 |
create table t_st_schedule_model |
|
256 |
( |
|
257 |
`id` varchar(36) not null COMMENT 'ID', |
|
258 |
`model_code` varchar(64) COMMENT '编号', |
|
259 |
`model_name` varchar(64) COMMENT '名称', |
|
260 |
`model_type` varchar(64) COMMENT '模型类型', |
|
261 |
`class_name` varchar(128) COMMENT '类名', |
|
262 |
`method_name` varchar(64) COMMENT '方法名', |
|
263 |
`port_length` integer COMMENT '输入数量', |
|
264 |
`param_structure` varchar(256) COMMENT '参数构造', |
|
265 |
`model_path` varchar(256) COMMENT '路径', |
|
266 |
`result_str_id` varchar(64) COMMENT '结果ID', |
|
267 |
`invocation` varchar(64) COMMENT '调用方式', |
|
268 |
`status` tinyint NOT NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', |
|
269 |
`creator` varchar(64) NOT NULL DEFAULT '' COMMENT '创建者', |
|
270 |
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|
271 |
`updater` varchar(64) NULL DEFAULT '' COMMENT '更新者', |
|
272 |
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
|
273 |
primary key (id), |
|
274 |
UNIQUE INDEX `uk_model_code` (`model_code` ASC) USING BTREE |
|
275 |
) engine = innodb |
|
276 |
default character set utf8mb4 COMMENT = '调度模型表'; |
|
277 |
|
|
278 |
create table |
|
279 |
t_st_schedule_model_param |
|
280 |
( |
|
281 |
id varchar(36) not null, |
|
282 |
modelid varchar(64), |
|
283 |
modelparamname varchar(64), |
|
284 |
modelparamid varchar(64), |
|
285 |
modelparamorder integer, |
|
286 |
modelparamportorder integer, |
|
287 |
datalength integer, |
|
288 |
modelparamtype varchar(64), |
|
289 |
primary key (id) |
|
290 |
) engine = innodb |
|
291 |
default character set utf8mb4 COMMENT = '调度模型输入参数表'; |
|
292 |
|
|
293 |
|
|
294 |
create table |
|
295 |
t_st_schedule_model_setting |
|
296 |
( |
|
297 |
`id` varchar(36) not null, |
|
298 |
`modelid` varchar(64), |
|
299 |
`key` varchar(64), |
|
300 |
`value` varchar(64), |
|
301 |
`valuetype` varchar(64), |
|
302 |
`name` varchar(64), |
|
303 |
primary key (id), |
|
304 |
key idx_modelid (modelid) |
|
305 |
) engine = innodb |
|
306 |
default character set utf8mb4 COMMENT = '调度模型设置参数表'; |
|
307 |
|
|
308 |
create table |
|
309 |
t_st_schedule_scheme_suggest |
|
310 |
( |
|
311 |
id varchar(36) not null, |
|
312 |
title varchar(50) COMMENT '标题', |
|
313 |
content varchar(256) COMMENT '内容', |
|
314 |
sort integer COMMENT '排序', |
|
315 |
scheme_id varchar(36) COMMENT '方案ID', |
|
316 |
alarm_id varchar(36) COMMENT '预警ID', |
|
317 |
item_id varchar(36) COMMENT '预测项ID', |
|
318 |
model_id varchar(36) COMMENT '模型ID', |
|
319 |
schedule_obj varchar(20) COMMENT '调整对象', |
|
320 |
schedule_type varchar(20) COMMENT '调整类型', |
|
321 |
schedule_strategy varchar(20) COMMENT '调整策略', |
|
322 |
adjust_mode varchar(20) COMMENT '调整方式', |
|
323 |
adjust_value decimal(18, 4) COMMENT '调整值', |
|
324 |
adjust_unit varchar(20) COMMENT '调整单位', |
|
325 |
adjust_times decimal(18, 4) COMMENT '持续时长', |
|
326 |
adjust_start datetime COMMENT '调整开始时间', |
|
327 |
adjust_end datetime COMMENT '调整结束时间', |
|
328 |
schedule_time datetime COMMENT '调度时间', |
|
329 |
status tinyint NOT NULL COMMENT '状态(0未处理 1已采纳 2已忽略)', |
|
330 |
handler varchar(36) COMMENT '处理人', |
|
331 |
handle_time datetime COMMENT '处理时间', |
|
332 |
create_time datetime default current_timestamp COMMENT '创建时间', |
|
333 |
primary key (id), |
|
334 |
key idx_scheme_id (scheme_id), |
|
335 |
key idx_alarm_id (alarm_id), |
|
336 |
key idx_item_id (item_id), |
|
337 |
key idx_model_id (model_id), |
|
338 |
key idx_schedule_obj (schedule_obj), |
|
339 |
key idx_schedule_type (schedule_type) |
|
340 |
) engine = innodb |
|
341 |
default character set utf8mb4 COMMENT = '调度建议表'; |
|
342 |
|
|
343 |
|
|
344 |
create table |
|
345 |
t_st_schedule_record |
|
346 |
( |
|
347 |
`id` varchar(36) not null, |
|
348 |
`scheme_id` varchar(36) COMMENT '方案ID', |
|
349 |
`model_id` varchar(36) COMMENT '模型ID', |
|
350 |
`model_name` varchar(64) COMMENT '名称', |
|
351 |
`schedule_time` datetime COMMENT '调度时间', |
|
352 |
`create_time` datetime default current_timestamp COMMENT '创建时间', |
|
353 |
primary key (id), |
|
354 |
key idx_scheme_id (scheme_id), |
|
355 |
key idx_model_id (model_id), |
|
356 |
key idx_schedule_time (schedule_time) |
|
357 |
) engine = innodb |
|
358 |
default character set utf8mb4 COMMENT = '调度记录表'; |
|
359 |
|
|
360 |
|
|
361 |
create table |
|
362 |
t_st_schedule_record_detail |
|
363 |
( |
|
364 |
`id` varchar(36) not null, |
|
365 |
`record_id` varchar(36), |
|
366 |
`scheme_id` varchar(64), |
|
367 |
`model_id` varchar(36) COMMENT '模型ID', |
|
368 |
`result_key` varchar(64), |
|
369 |
`result_value` text, |
|
370 |
`schedule_time` datetime COMMENT '调度时间', |
|
371 |
primary key (id), |
|
372 |
key idx_record_id (record_id), |
|
373 |
key idx_scheme_id (scheme_id), |
|
374 |
key idx_model_id (model_id) |
|
375 |
) engine = innodb |
|
376 |
default character set utf8mb4 COMMENT = '调度记录详情表'; |
|
377 |
|
|
378 |
create table |
|
379 |
t_st_schedule_energy_type |
|
380 |
( |
|
381 |
id varchar(64) not null, |
|
382 |
energytypename varchar(64), |
|
383 |
primary key (id) |
|
384 |
) engine = innodb |
|
385 |
default character set utf8mb4; |
|
386 |
|
|
387 |
|
|
388 |
|
|
389 |
create table |
|
390 |
t_st_schedule_model_accuracy_rate |
|
391 |
( |
|
392 |
id varchar(36) not null, |
|
393 |
accuracy_rate_num varchar(36) not null, |
|
394 |
schedule_model_id varchar(36) not null, |
|
395 |
result_key varchar(36) not null, |
|
396 |
point_id varchar(36) not null, |
|
397 |
rate_type varchar(36) not null, |
|
398 |
hour_accuracy_rate decimal(6, 4), |
|
399 |
day_accuracy_rate decimal(6, 4), |
|
400 |
is_enable integer, |
|
401 |
update_time datetime, |
|
402 |
begin_time datetime, |
|
403 |
primary key (id) |
|
404 |
) engine = innodb |
|
405 |
default character set utf8mb4; |
|
406 |
|
|
407 |
|
|
408 |
create table |
|
409 |
t_st_schedule_result |
|
410 |
( |
|
411 |
id varchar(64), |
|
412 |
scheduleid varchar(64), |
|
413 |
modelid varchar(64), |
|
414 |
result varchar(64), |
|
415 |
scheduletime datetime, |
|
416 |
primary key (id) |
|
417 |
) engine = innodb |
|
418 |
default character set utf8mb4; |
|
419 |
|
|
420 |
create table |
|
421 |
t_st_schedule_result_str |
|
422 |
( |
|
423 |
id varchar(64), |
|
424 |
resultstr varchar(32), |
|
425 |
primary key (id) |
|
426 |
) engine = innodb |
|
427 |
default character set utf8mb4; |
|
428 |
|
|
429 |
create table |
|
430 |
t_st_schedule_model_user_param |
|
431 |
( |
|
432 |
id varchar(64) not null, |
|
433 |
modelid varchar(64), |
|
434 |
userid varchar(64), |
|
435 |
energytypeid varchar(64), |
|
436 |
paramid varchar(64), |
|
437 |
modelsatus integer, |
|
438 |
userorder integer, |
|
439 |
energyorder integer, |
|
440 |
isadjust integer, |
|
441 |
upadjlimit decimal(30, 6), |
|
442 |
downadjlimit decimal(30, 6), |
|
443 |
adjorder integer, |
|
444 |
primary key (id) |
|
445 |
) engine = innodb |
|
446 |
default character set utf8mb4; |
|
447 |
|
|
448 |
create table |
|
449 |
t_st_schedule_object |
|
450 |
( |
|
451 |
id varchar(64) not null, |
|
452 |
name varchar(64), |
|
453 |
`order` integer, |
|
454 |
primary key (id) |
|
455 |
) engine = innodb |
|
456 |
default character set utf8mb4; |
|
457 |
|
|
458 |
|
|
459 |
|
|
460 |
create table |
|
461 |
t_st_schedule_scheme |
|
462 |
( |
|
463 |
id varchar(64) not null, |
|
464 |
modelid varchar(64), |
|
465 |
starttime datetime, |
|
466 |
endtime datetime, |
|
467 |
scheduletime datetime, |
|
468 |
objectvalue decimal(30, 6), |
|
469 |
schemeorder integer, |
|
470 |
isadjust integer, |
|
471 |
primary key (id), |
|
472 |
key idx_modelid (modelid) |
|
473 |
) engine = innodb |
|
474 |
default character set utf8mb4; |
|
475 |
|
|
476 |
create table |
|
477 |
t_st_schedule_scheme_detailes |
|
478 |
( |
|
479 |
id varchar(64) not null, |
|
480 |
adjustuserid varchar(64), |
|
481 |
schemid varchar(64), |
|
482 |
value text, |
|
483 |
isadjust decimal(30, 0), |
|
484 |
modelid varchar(64), |
|
485 |
scheduletime datetime, |
|
486 |
resultkey varchar(64), |
|
487 |
primary key (id), |
|
488 |
key idx_modelid (modelid) |
|
489 |
) engine = innodb |
|
490 |
default character set utf8mb4; |
|
491 |
|
|
492 |
create table |
|
493 |
t_st_schedule_scheme_detailes_max |
|
494 |
( |
|
495 |
id varchar(64) not null, |
|
496 |
adjustuserid varchar(64), |
|
497 |
schemid varchar(64), |
|
498 |
value text, |
|
499 |
isadjust decimal(30, 0), |
|
500 |
modelid varchar(64), |
|
501 |
scheduletime datetime, |
|
502 |
resultkey varchar(64), |
|
503 |
primary key (id) |
|
504 |
) engine = innodb |
|
505 |
default character set utf8mb4; |
|
506 |
|
|
507 |
|
|
508 |
create table |
|
509 |
t_st_schedule_scheme_eval_type |
|
510 |
( |
|
511 |
id varchar(64) not null, |
|
512 |
evalname varchar(64), |
|
513 |
primary key (id) |
|
514 |
) engine = innodb |
|
515 |
default character set utf8mb4; |
|
516 |
|
|
517 |
create table |
|
518 |
t_st_schedule_scheme_eval_value |
|
519 |
( |
|
520 |
id varchar(64) not null, |
|
521 |
schemid varchar(64), |
|
522 |
evalid varchar(64), |
|
523 |
schprevalue decimal(30, 6), |
|
524 |
schedvalue decimal(30, 6), |
|
525 |
primary key (id) |
|
526 |
) engine = innodb |
|
527 |
default character set utf8mb4; |
|
528 |
|
|
529 |
create table |
|
530 |
t_st_schedule_user |
|
531 |
( |
|
532 |
id varchar(64) not null, |
|
533 |
username varchar(64), |
|
534 |
adjuststatus integer, |
|
535 |
primary key (id) |
|
536 |
) engine = innodb |
|
537 |
default character set utf8mb4; |
|
538 |
|
|
539 |
|
|
540 |
create table |
|
541 |
t_tm_model_param |
|
542 |
( |
|
543 |
id varchar(56) not null, |
|
544 |
modelid varchar(56), |
|
545 |
modelparamname varchar(64), |
|
546 |
modelparamid varchar(56), |
|
547 |
modelparamorder integer, |
|
548 |
modelparamportorder integer, |
|
549 |
datalength integer, |
|
550 |
modelparamtype varchar(32), |
|
551 |
comparisonlength integer, |
|
552 |
replacethreshold decimal(5, 3), |
|
553 |
comparisonthreshold decimal(5, 3), |
|
554 |
primary key (id), |
|
555 |
key idx_modelid (modelid) |
|
556 |
) engine = innodb |
|
557 |
default character set utf8mb4; |
|
558 |
|
|
559 |
create table |
|
560 |
t_st_schedule_predict_item |
|
561 |
( |
|
562 |
id varchar(64) not null, |
|
563 |
name varchar(64), |
|
564 |
title varchar(64), |
|
565 |
predictitemid varchar(64), |
|
566 |
schedulemodelid varchar(64), |
|
567 |
maxvaluekey varchar(64), |
|
568 |
minvaluekey varchar(64), |
|
569 |
min_predict_length integer, |
|
570 |
meaunit varchar(10), |
|
571 |
adjustkey varchar(36), |
|
572 |
adjustindex integer, |
|
573 |
adjustparam varchar(128), |
|
574 |
create_time datetime default current_timestamp, |
|
575 |
update_time datetime default current_timestamp, |
|
576 |
suggestkey varchar(36), |
|
577 |
primary key (id) |
|
578 |
) engine = innodb |
|
579 |
default character set utf8mb4; |
|
580 |
|
|
581 |
|
|
582 |
|
|
583 |
create table |
|
584 |
t_mm_item_result_json |
|
585 |
( |
|
586 |
id varchar(36) not null, |
|
587 |
outputid varchar(36), |
|
588 |
predicttime datetime, |
|
589 |
jsonvalue varchar(6400), |
|
590 |
cumulant varchar(36), |
|
591 |
primary key (id), |
|
592 |
key idx_outputid (outputid), |
|
593 |
key idx_predicttime (predicttime) |
|
594 |
) engine = innodb |
|
595 |
default character set utf8mb4; |
|
596 |
|
|
597 |
create table |
|
598 |
t_mm_item_result_last_point |
|
599 |
( |
|
600 |
id varchar(36) not null, |
|
601 |
outputid varchar(36), |
|
602 |
datatime datetime, |
|
603 |
datavalue decimal(19, 3), |
|
604 |
primary key (id), |
|
605 |
key idx_outputid (outputid) |
|
606 |
) engine = innodb |
|
607 |
default character set utf8mb4; |
|
608 |
|
|
609 |
create table |
|
610 |
t_mm_item_accuracy_rate |
|
611 |
( |
|
612 |
id varchar(36) not null, |
|
613 |
item_id varchar(36) not null, |
|
614 |
sample_length integer, |
|
615 |
value_type integer, |
|
616 |
in_deviation decimal(8, 3), |
|
617 |
in_accuracy_rate decimal(6, 4), |
|
618 |
out_deviation decimal(8, 3), |
|
619 |
out_accuracy_rate decimal(6, 4), |
|
620 |
is_enable integer, |
|
621 |
update_time datetime, |
|
622 |
begin_time datetime, |
|
623 |
primary key (id), |
|
624 |
key idx_item_id (item_id) |
|
625 |
) engine = innodb |
|
626 |
default character set utf8mb4; |
|
627 |
|