提交 | 用户 | 时间
|
f154f0
|
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 |
create table |
|
186 |
t_st_schedule |
|
187 |
( |
|
188 |
id varchar(64) not null, |
|
189 |
name varchar(64), |
|
190 |
scheduletime datetime, |
|
191 |
primary key (id) |
|
192 |
) engine = innodb |
|
193 |
default character set utf8mb4; |
|
194 |
create table |
|
195 |
t_st_schedule_energy_type |
|
196 |
( |
|
197 |
id varchar(64) not null, |
|
198 |
energytypename varchar(64), |
|
199 |
primary key (id) |
|
200 |
) engine = innodb |
|
201 |
default character set utf8mb4; |
|
202 |
|
|
203 |
create table |
|
204 |
t_st_schedule_model |
|
205 |
( |
|
206 |
id varchar(64) not null, |
|
207 |
modelname varchar(64), |
|
208 |
scheduleid varchar(64), |
|
209 |
objectid varchar(64), |
|
210 |
classname varchar(128), |
|
211 |
methodname varchar(64), |
|
212 |
modelpath varchar(256), |
|
213 |
portlength integer, |
|
214 |
modelstatus integer, |
|
215 |
resultstrid varchar(64), |
|
216 |
modelparamstructure varchar(128), |
|
217 |
primary key (id) |
|
218 |
) engine = innodb |
|
219 |
default character set utf8mb4; |
|
220 |
|
|
221 |
create table |
|
222 |
t_st_schedule_model_accuracy_rate |
|
223 |
( |
|
224 |
id varchar(36) not null, |
|
225 |
accuracy_rate_num varchar(36) not null, |
|
226 |
schedule_model_id varchar(36) not null, |
|
227 |
result_key varchar(36) not null, |
|
228 |
point_id varchar(36) not null, |
|
229 |
rate_type varchar(36) not null, |
|
230 |
hour_accuracy_rate decimal(6, 4), |
|
231 |
day_accuracy_rate decimal(6, 4), |
|
232 |
is_enable integer, |
|
233 |
update_time datetime, |
|
234 |
begin_time datetime, |
|
235 |
primary key (id) |
|
236 |
) engine = innodb |
|
237 |
default character set utf8mb4; |
|
238 |
|
|
239 |
|
|
240 |
create table |
|
241 |
t_st_schedule_result |
|
242 |
( |
|
243 |
id varchar(64), |
|
244 |
scheduleid varchar(64), |
|
245 |
modelid varchar(64), |
|
246 |
result varchar(64), |
|
247 |
scheduletime datetime, |
|
248 |
primary key (id) |
|
249 |
) engine = innodb |
|
250 |
default character set utf8mb4; |
|
251 |
|
|
252 |
create table |
|
253 |
t_st_schedule_result_str |
|
254 |
( |
|
255 |
id varchar(64), |
|
256 |
resultstr varchar(32), |
|
257 |
primary key (id) |
|
258 |
) engine = innodb |
|
259 |
default character set utf8mb4; |
|
260 |
|
|
261 |
create table |
|
262 |
t_st_schedule_model_user_param |
|
263 |
( |
|
264 |
id varchar(64) not null, |
|
265 |
modelid varchar(64), |
|
266 |
userid varchar(64), |
|
267 |
energytypeid varchar(64), |
|
268 |
paramid varchar(64), |
|
269 |
modelsatus integer, |
|
270 |
userorder integer, |
|
271 |
energyorder integer, |
|
272 |
isadjust integer, |
|
273 |
upadjlimit decimal(30, 6), |
|
274 |
downadjlimit decimal(30, 6), |
|
275 |
adjorder integer, |
|
276 |
primary key (id) |
|
277 |
) engine = innodb |
|
278 |
default character set utf8mb4; |
|
279 |
|
|
280 |
create table |
|
281 |
t_st_schedule_object |
|
282 |
( |
|
283 |
id varchar(64) not null, |
|
284 |
name varchar(64), |
|
285 |
`order` integer, |
|
286 |
primary key (id) |
|
287 |
) engine = innodb |
|
288 |
default character set utf8mb4; |
|
289 |
|
|
290 |
create table |
|
291 |
t_st_schedule_param |
|
292 |
( |
|
293 |
id varchar(64) not null, |
|
294 |
modelid varchar(64), |
|
295 |
modelparamname varchar(64), |
|
296 |
modelparamid varchar(64), |
|
297 |
modelparamorder integer, |
|
298 |
modelparamportorder integer, |
|
299 |
datalength integer, |
|
300 |
modelparamtype varchar(64), |
|
301 |
primary key (id) |
|
302 |
) engine = innodb |
|
303 |
default character set utf8mb4; |
|
304 |
|
|
305 |
create table |
|
306 |
t_st_schedule_param_setting |
|
307 |
( |
|
308 |
id varchar(64) not null, |
|
309 |
modelid varchar(64), |
|
310 |
`key` varchar(64), |
|
311 |
value varchar(64), |
|
312 |
valuetype varchar(64), |
|
313 |
name varchar(64), |
|
314 |
primary key (id), |
|
315 |
key idx_modelid (modelid) |
|
316 |
) engine = innodb |
|
317 |
default character set utf8mb4; |
|
318 |
|
|
319 |
create table |
|
320 |
t_st_schedule_scheme |
|
321 |
( |
|
322 |
id varchar(64) not null, |
|
323 |
modelid varchar(64), |
|
324 |
starttime datetime, |
|
325 |
endtime datetime, |
|
326 |
scheduletime datetime, |
|
327 |
objectvalue decimal(30, 6), |
|
328 |
schemeorder integer, |
|
329 |
isadjust integer, |
|
330 |
primary key (id), |
|
331 |
key idx_modelid (modelid) |
|
332 |
) engine = innodb |
|
333 |
default character set utf8mb4; |
|
334 |
|
|
335 |
create table |
|
336 |
t_st_schedule_scheme_detailes |
|
337 |
( |
|
338 |
id varchar(64) not null, |
|
339 |
adjustuserid varchar(64), |
|
340 |
schemid varchar(64), |
|
341 |
value text, |
|
342 |
isadjust decimal(30, 0), |
|
343 |
modelid varchar(64), |
|
344 |
scheduletime datetime, |
|
345 |
resultkey varchar(64), |
|
346 |
primary key (id), |
|
347 |
key idx_modelid (modelid) |
|
348 |
) engine = innodb |
|
349 |
default character set utf8mb4; |
|
350 |
|
|
351 |
create table |
|
352 |
t_st_schedule_scheme_detailes_max |
|
353 |
( |
|
354 |
id varchar(64) not null, |
|
355 |
adjustuserid varchar(64), |
|
356 |
schemid varchar(64), |
|
357 |
value text, |
|
358 |
isadjust decimal(30, 0), |
|
359 |
modelid varchar(64), |
|
360 |
scheduletime datetime, |
|
361 |
resultkey varchar(64), |
|
362 |
primary key (id) |
|
363 |
) engine = innodb |
|
364 |
default character set utf8mb4; |
|
365 |
|
|
366 |
|
|
367 |
create table |
|
368 |
t_st_schedule_scheme_eval_type |
|
369 |
( |
|
370 |
id varchar(64) not null, |
|
371 |
evalname varchar(64), |
|
372 |
primary key (id) |
|
373 |
) engine = innodb |
|
374 |
default character set utf8mb4; |
|
375 |
|
|
376 |
create table |
|
377 |
t_st_schedule_scheme_eval_value |
|
378 |
( |
|
379 |
id varchar(64) not null, |
|
380 |
schemid varchar(64), |
|
381 |
evalid varchar(64), |
|
382 |
schprevalue decimal(30, 6), |
|
383 |
schedvalue decimal(30, 6), |
|
384 |
primary key (id) |
|
385 |
) engine = innodb |
|
386 |
default character set utf8mb4; |
|
387 |
|
|
388 |
create table |
|
389 |
t_st_schedule_user |
|
390 |
( |
|
391 |
id varchar(64) not null, |
|
392 |
username varchar(64), |
|
393 |
adjuststatus integer, |
|
394 |
primary key (id) |
|
395 |
) engine = innodb |
|
396 |
default character set utf8mb4; |
|
397 |
|
|
398 |
|
|
399 |
create table |
|
400 |
t_tm_model_param |
|
401 |
( |
|
402 |
id varchar(56) not null, |
|
403 |
modelid varchar(56), |
|
404 |
modelparamname varchar(64), |
|
405 |
modelparamid varchar(56), |
|
406 |
modelparamorder integer, |
|
407 |
modelparamportorder integer, |
|
408 |
datalength integer, |
|
409 |
modelparamtype varchar(32), |
|
410 |
comparisonlength integer, |
|
411 |
replacethreshold decimal(5, 3), |
|
412 |
comparisonthreshold decimal(5, 3), |
|
413 |
primary key (id), |
|
414 |
key idx_modelid (modelid) |
|
415 |
) engine = innodb |
|
416 |
default character set utf8mb4; |
|
417 |
|
|
418 |
create table |
|
419 |
t_st_schedule_predict_item |
|
420 |
( |
|
421 |
id varchar(64) not null, |
|
422 |
name varchar(64), |
|
423 |
title varchar(64), |
|
424 |
predictitemid varchar(64), |
|
425 |
schedulemodelid varchar(64), |
|
426 |
maxvaluekey varchar(64), |
|
427 |
minvaluekey varchar(64), |
|
428 |
min_predict_length integer, |
|
429 |
meaunit varchar(10), |
|
430 |
adjustkey varchar(36), |
|
431 |
adjustindex integer, |
|
432 |
adjustparam varchar(128), |
|
433 |
create_time datetime default current_timestamp, |
|
434 |
update_time datetime default current_timestamp, |
|
435 |
suggestkey varchar(36), |
|
436 |
primary key (id) |
|
437 |
) engine = innodb |
|
438 |
default character set utf8mb4; |
|
439 |
|
7fd198
|
440 |
create table t_mm_predict_alarm_config |
f154f0
|
441 |
( |
7fd198
|
442 |
id varchar(36) not null, |
潘 |
443 |
title varchar(36) COMMENT '消息标题', |
|
444 |
alarm_obj varchar(36) COMMENT '监控对象', |
|
445 |
item_id varchar(36) COMMENT '预测项ID', |
|
446 |
comp_length int COMMENT '比较长度', |
|
447 |
upper_limit decimal(10, 4) COMMENT '上限', |
|
448 |
lower_limit decimal(10, 4) COMMENT '下限', |
|
449 |
unit varchar(10) COMMENT '单位', |
|
450 |
coefficient decimal(10, 4) COMMENT '转换系数', |
|
451 |
model_id varchar(36) COMMENT '调度建议模型', |
|
452 |
is_enable tinyint NOT NULL COMMENT '是否启用(0禁用 1启用)', |
|
453 |
`creator` varchar(64) NOT NULL DEFAULT '' COMMENT '创建者', |
|
454 |
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|
455 |
`updater` varchar(64) DEFAULT '' COMMENT '更新者', |
|
456 |
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
|
457 |
primary key (id) |
|
458 |
) engine = innodb |
|
459 |
default character set utf8mb4 COMMENT = '预警配置表'; |
|
460 |
|
|
461 |
create table t_mm_predict_alarm_message |
|
462 |
( |
|
463 |
id varchar(36) not null, |
|
464 |
title varchar(36) COMMENT '消息标题', |
|
465 |
content varchar(128) COMMENT '消息内容', |
|
466 |
alarm_obj varchar(36) COMMENT '监控对象', |
|
467 |
point_id varchar(36) COMMENT '监控点位ID', |
|
468 |
item_id varchar(36) COMMENT '预测项ID', |
|
469 |
current_value decimal(18, 4) COMMENT '当前值', |
|
470 |
out_time datetime COMMENT '超出时间', |
|
471 |
out_value decimal(18, 4) COMMENT '超出值', |
|
472 |
alarm_type varchar(10) COMMENT '预警类型', |
|
473 |
alarm_time datetime COMMENT '预警时间', |
|
474 |
create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
f154f0
|
475 |
primary key (id), |
潘 |
476 |
key idx_item_id (item_id), |
7fd198
|
477 |
key idx_alarm_obj (alarm_obj), |
潘 |
478 |
key idx_alarm_time (alarm_time) |
f154f0
|
479 |
) engine = innodb |
7fd198
|
480 |
default character set utf8mb4 COMMENT = '预警消息表'; |
f154f0
|
481 |
|
潘 |
482 |
create table |
|
483 |
t_mm_item_result_json |
|
484 |
( |
|
485 |
id varchar(36) not null, |
|
486 |
outputid varchar(36), |
|
487 |
predicttime datetime, |
|
488 |
jsonvalue varchar(6400), |
|
489 |
cumulant varchar(36), |
|
490 |
primary key (id), |
|
491 |
key idx_outputid (outputid), |
|
492 |
key idx_predicttime (predicttime) |
|
493 |
) engine = innodb |
|
494 |
default character set utf8mb4; |
|
495 |
|
|
496 |
create table |
|
497 |
t_mm_item_result_last_point |
|
498 |
( |
|
499 |
id varchar(36) not null, |
|
500 |
outputid varchar(36), |
|
501 |
datatime datetime, |
|
502 |
datavalue decimal(19, 3), |
|
503 |
primary key (id), |
|
504 |
key idx_outputid (outputid) |
|
505 |
) engine = innodb |
|
506 |
default character set utf8mb4; |
|
507 |
|
|
508 |
create table |
|
509 |
t_mm_item_accuracy_rate |
|
510 |
( |
|
511 |
id varchar(36) not null, |
|
512 |
item_id varchar(36) not null, |
|
513 |
sample_length integer, |
|
514 |
value_type integer, |
|
515 |
in_deviation decimal(8, 3), |
|
516 |
in_accuracy_rate decimal(6, 4), |
|
517 |
out_deviation decimal(8, 3), |
|
518 |
out_accuracy_rate decimal(6, 4), |
|
519 |
is_enable integer, |
|
520 |
update_time datetime, |
|
521 |
begin_time datetime, |
|
522 |
primary key (id), |
|
523 |
key idx_item_id (item_id) |
|
524 |
) engine = innodb |
|
525 |
default character set utf8mb4; |
|
526 |
|
|
527 |
create table |
|
528 |
t_st_schedule_suggest |
|
529 |
( |
7fd198
|
530 |
id varchar(36) not null, |
潘 |
531 |
title varchar(50) COMMENT '标题', |
|
532 |
content varchar(256) COMMENT '内容', |
|
533 |
sort integer COMMENT '排序', |
|
534 |
alarm_id varchar(36) COMMENT '预警ID', |
|
535 |
item_id varchar(36) COMMENT '预测项ID', |
|
536 |
model_id varchar(36) COMMENT '模型ID', |
|
537 |
adjust_obj varchar(20) COMMENT '调整对象', |
|
538 |
adjust_medium varchar(20) COMMENT '调整介质', |
|
539 |
adjust_strategy varchar(20) COMMENT '调整策略', |
|
540 |
adjust_mode varchar(20) COMMENT '调整方式', |
|
541 |
adjust_value decimal(18, 4) COMMENT '调整值', |
|
542 |
adjust_unit varchar(20) COMMENT '调整单位', |
|
543 |
adjust_times decimal(18, 4) COMMENT '持续时长', |
|
544 |
adjust_start datetime COMMENT '调整开始时间', |
|
545 |
adjust_end datetime COMMENT '调整结束时间', |
|
546 |
suggest_time datetime COMMENT '建议时间', |
|
547 |
status tinyint NOT NULL COMMENT '状态(0未处理 1已采纳 2已忽略)', |
|
548 |
create_time datetime default current_timestamp COMMENT '创建时间', |
f154f0
|
549 |
primary key (id), |
潘 |
550 |
key idx_model_id (model_id), |
|
551 |
key idx_type (type) |
|
552 |
) engine = innodb |
7fd198
|
553 |
default character set utf8mb4 COMMENT = '调度建议表'; |