biz.sql 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. drop table if exists biz_fault_physical_model;
  2. create table biz_fault_physical_model
  3. (
  4. id bigint(20) not null auto_increment comment '序号',
  5. name varchar(64) comment '故障模型名称',
  6. type varchar(64) comment '故障模型类型',
  7. path varchar(255) comment '故障模型接口地址',
  8. params TEXT comment '故障模型参数参数',
  9. remark varchar(500) default null comment '备注',
  10. create_by varchar(64) default '' comment '创建者',
  11. create_time datetime comment '创建时间',
  12. update_by varchar(64) default '' comment '更新者',
  13. update_time datetime comment '更新时间',
  14. primary key (id)
  15. ) engine=innodb comment = '故障物理模型管理表';
  16. drop table if exists biz_fault_diagnosis_model;
  17. create table biz_fault_diagnosis_model
  18. (
  19. id bigint(20) not null auto_increment comment '序号',
  20. name varchar(64) comment '故障模型名称',
  21. type varchar(64) comment '故障模型类型',
  22. path varchar(255) comment '故障模型接口地址',
  23. params TEXT comment '故障模型参数参数',
  24. remark varchar(500) default null comment '备注',
  25. create_by varchar(64) default '' comment '创建者',
  26. create_time datetime comment '创建时间',
  27. update_by varchar(64) default '' comment '更新者',
  28. update_time datetime comment '更新时间',
  29. primary key (id)
  30. ) engine=innodb comment = '故障诊断算法模型管理表';
  31. --drop table if exists biz_evaluation_indicator;
  32. --create table biz_evaluation_indicator
  33. --(
  34. -- id bigint(20) not null auto_increment comment '序号',
  35. -- name varchar(64) comment '故障模型类型',
  36. -- formulas TEXT comment '公式',
  37. -- remark varchar(500) default null comment '备注',
  38. -- create_by varchar(64) default '' comment '创建者',
  39. -- create_time datetime comment '创建时间',
  40. -- update_by varchar(64) default '' comment '更新者',
  41. -- update_time datetime comment '更新时间',
  42. -- primary key (id)
  43. --) engine=innodb comment = '评估指标体系管理表';
  44. drop table if exists biz_evaluation_indicator;
  45. create table biz_evaluation_indicator
  46. (
  47. id bigint(20) not null auto_increment comment '序号',
  48. name varchar(64) comment '评估体系名称',
  49. params TEXT comment '评估体系参数',
  50. remark varchar(500) default null comment '说明',
  51. create_by varchar(64) default '' comment '创建者',
  52. create_time datetime comment '创建时间',
  53. update_by varchar(64) default '' comment '更新者',
  54. update_time datetime comment '更新时间',
  55. primary key (id)
  56. ) engine=innodb comment = '评估指标体系管理表';
  57. drop table if exists biz_formulas
  58. create table biz_formulas
  59. (
  60. id bigint(20) not null auto_increment comment '序号',
  61. name varchar(64) comment '公式名称',
  62. formulas TEXT comment '公式',
  63. remark varchar(500) default null comment '说明',
  64. create_by varchar(64) default '' comment '创建者',
  65. create_time datetime comment '创建时间',
  66. update_by varchar(64) default '' comment '更新者',
  67. update_time datetime comment '更新时间',
  68. primary key (id)
  69. ) engine=innodb comment = '公式管理管理表';
  70. drop table if exists biz_phy_model_data_gen
  71. create table biz_phy_model_data_gen
  72. (
  73. id bigint(20) not null auto_increment comment '序号',
  74. name varchar(64) comment '数据生成名称',
  75. model_id bigint(20) comment '数据生成模型',
  76. params TEXT comment '参数',
  77. data_id bigint(20) comment '数据id',
  78. status varchar(64) comment '状态',
  79. start_time datetime comment '开始时间',
  80. end_time datetime comment '结束时间',
  81. remark varchar(500) default null comment '说明',
  82. create_by varchar(64) default '' comment '创建者',
  83. create_time datetime comment '创建时间',
  84. update_by varchar(64) default '' comment '更新者',
  85. update_time datetime comment '更新时间',
  86. primary key (id)
  87. ) engine=innodb comment = '物理模型数据生成管理表';
  88. drop table if exists biz_phy_noise_data_gen
  89. create table biz_phy_noise_data_gen
  90. (
  91. id bigint(20) not null auto_increment comment '序号',
  92. name varchar(64) comment '数据生成名称',
  93. model_id bigint(20) comment '数据生成模型',
  94. params TEXT comment '参数',
  95. original_data_id bigint(20) comment '原始数据id',
  96. generated_data_id bigint(20) comment '生成后数据id',
  97. status varchar(64) comment '状态',
  98. start_time datetime comment '开始时间',
  99. end_time datetime comment '结束时间',
  100. remark varchar(500) default null comment '说明',
  101. create_by varchar(64) default '' comment '创建者',
  102. create_time datetime comment '创建时间',
  103. update_by varchar(64) default '' comment '更新者',
  104. update_time datetime comment '更新时间',
  105. primary key (id)
  106. ) engine=innodb comment = '噪声数据生成管理表';
  107. drop table if exists biz_test_data_gen
  108. create table biz_test_data_gen
  109. (
  110. id bigint(20) not null auto_increment comment '序号',
  111. name varchar(64) comment '数据生成名称',
  112. model_id bigint(20) comment '数据生成模型',
  113. params TEXT comment '参数',
  114. original_data_ids varchar(255) comment '原始数据ids',
  115. generated_data_id bigint(20) comment '生成后数据id',
  116. status varchar(64) comment '状态',
  117. start_time datetime comment '开始时间',
  118. end_time datetime comment '结束时间',
  119. remark varchar(500) default null comment '说明',
  120. create_by varchar(64) default '' comment '创建者',
  121. create_time datetime comment '创建时间',
  122. update_by varchar(64) default '' comment '更新者',
  123. update_time datetime comment '更新时间',
  124. primary key (id)
  125. ) engine=innodb comment = '测试数据生成管理表';
  126. drop table if exists biz_data
  127. create table biz_data
  128. (
  129. id bigint(20) not null auto_increment comment '序号',
  130. name varchar(64) comment '数据名称',
  131. type varchar(64) comment '数据类型(0物理模型数据,1实际数据,2噪声数据,3训练/验证数据)',
  132. file_path varchar(255) comment '文件路径',
  133. remark varchar(500) default null comment '说明',
  134. create_by varchar(64) default '' comment '创建者',
  135. create_time datetime comment '创建时间',
  136. update_by varchar(64) default '' comment '更新者',
  137. update_time datetime comment '更新时间',
  138. primary key (id)
  139. ) engine=innodb comment = '数据管理表';
  140. --drop table if exists biz_phy_model_data
  141. --create table biz_phy_model_data
  142. --(
  143. -- id bigint(20) not null auto_increment comment '序号',
  144. -- name varchar(64) comment '数据名称',
  145. -- file_path varchar(255) comment '文件路径',
  146. -- remark varchar(500) default null comment '说明',
  147. -- create_by varchar(64) default '' comment '创建者',
  148. -- create_time datetime comment '创建时间',
  149. -- update_by varchar(64) default '' comment '更新者',
  150. -- update_time datetime comment '更新时间',
  151. -- primary key (id)
  152. --) engine=innodb comment = '物理数据管理表';
  153. --drop table if exists biz_actual_data
  154. --create table biz_actual_data
  155. --(
  156. -- id bigint(20) not null auto_increment comment '序号',
  157. -- name varchar(64) comment '数据名称',
  158. -- file_path varchar(255) comment '文件路径',
  159. -- remark varchar(500) default null comment '说明',
  160. -- create_by varchar(64) default '' comment '创建者',
  161. -- create_time datetime comment '创建时间',
  162. -- update_by varchar(64) default '' comment '更新者',
  163. -- update_time datetime comment '更新时间',
  164. -- primary key (id)
  165. --) engine=innodb comment = '实际数据管理表';
  166. --
  167. --drop table if exists biz_noise_data
  168. --create table biz_noise_data
  169. --(
  170. -- id bigint(20) not null auto_increment comment '序号',
  171. -- name varchar(64) comment '数据名称',
  172. -- file_path varchar(255) comment '文件路径',
  173. -- remark varchar(500) default null comment '说明',
  174. -- create_by varchar(64) default '' comment '创建者',
  175. -- create_time datetime comment '创建时间',
  176. -- update_by varchar(64) default '' comment '更新者',
  177. -- update_time datetime comment '更新时间',
  178. -- primary key (id)
  179. --) engine=innodb comment = '噪声数据管理表';
  180. --
  181. --drop table if exists biz_train_val_data
  182. --create table biz_train_val_data
  183. --(
  184. -- id bigint(20) not null auto_increment comment '序号',
  185. -- name varchar(64) comment '数据名称',
  186. -- file_path varchar(255) comment '文件路径',
  187. -- remark varchar(500) default null comment '说明',
  188. -- create_by varchar(64) default '' comment '创建者',
  189. -- create_time datetime comment '创建时间',
  190. -- update_by varchar(64) default '' comment '更新者',
  191. -- update_time datetime comment '更新时间',
  192. -- primary key (id)
  193. --) engine=innodb comment = '训练验证数据管理表';
  194. drop table if exists biz_fd_algorithm
  195. create table biz_fd_algorithm
  196. (
  197. id bigint(20) not null auto_increment comment '序号',
  198. name varchar(64) comment '故障诊断名称',
  199. model_id varchar(255) comment '模型id',
  200. data_id bigint(20) comment '数据id',
  201. truth_labels varchar(255) comment '实际标签',
  202. test_labels varchar(255) comment '测试标签',
  203. remark varchar(500) default null comment '说明',
  204. start_time datetime comment '开始时间',
  205. end_time datetime comment '结束时间',
  206. create_by varchar(64) default '' comment '创建者',
  207. create_time datetime comment '创建时间',
  208. update_by varchar(64) default '' comment '更新者',
  209. update_time datetime comment '更新时间',
  210. primary key (id)
  211. ) engine=innodb comment = '故障诊断算法功能验证表';
  212. drop table if exists biz_performance_evaluation
  213. create table biz_performance_evaluation
  214. (
  215. id bigint(20) not null auto_increment comment '序号',
  216. name varchar(64) comment '性能评估名称',
  217. type varchar(64) comment '类型',
  218. valuation_indicator_id bigint(20) comment '评估id',
  219. fd_algorithm_id bigint(20) comment '故障诊断算法id',
  220. data_id bigint(20) comment '数据id',
  221. params TEXT comment '参数',
  222. result_file_path varchar(255) comment '文件结果',
  223. result_text Text comment '文本结果',
  224. remark varchar(500) default null comment '说明',
  225. start_time datetime comment '开始时间',
  226. end_time datetime comment '结束时间',
  227. create_by varchar(64) default '' comment '创建者',
  228. create_time datetime comment '创建时间',
  229. update_by varchar(64) default '' comment '更新者',
  230. update_time datetime comment '更新时间',
  231. primary key (id)
  232. ) engine=innodb comment = '算法性能评估表';
  233. drop table if exists biz_workflow
  234. create table biz_workflow
  235. (
  236. id bigint(20) not null auto_increment comment '序号',
  237. name varchar(64) comment '任务名称',
  238. status varchar(64) comment '任务状态',
  239. remark varchar(500) default null comment '说明',
  240. start_time datetime comment '开始时间',
  241. end_time datetime comment '结束时间',
  242. create_by varchar(64) default '' comment '创建者',
  243. create_time datetime comment '创建时间',
  244. update_by varchar(64) default '' comment '更新者',
  245. update_time datetime comment '更新时间',
  246. primary key (id)
  247. ) engine=innodb comment = '流程任务表';
  248. drop table if exists biz_workflow_node
  249. create table biz_workflow_node
  250. (
  251. id bigint(20) not null auto_increment comment '序号',
  252. name varchar(64) comment '数据名称',
  253. type varchar(64) comment '类型',
  254. sub_type varchar(64) comment '子类型',
  255. task_id bigint(20) comment '任务id',
  256. remark varchar(500) default null comment '说明',
  257. start_time datetime comment '开始时间',
  258. end_time datetime comment '结束时间',
  259. create_by varchar(64) default '' comment '创建者',
  260. create_time datetime comment '创建时间',
  261. update_by varchar(64) default '' comment '更新者',
  262. update_time datetime comment '更新时间',
  263. primary key (id)
  264. ) engine=innodb comment = '流程节点表';