powerjob.sql 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. -- ----------------------------
  2. -- Table structure for pj_app_info
  3. -- ----------------------------
  4. DROP TABLE IF EXISTS `pj_app_info`;
  5. CREATE TABLE `pj_app_info` (
  6. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  7. `app_name` varchar(255) NULL DEFAULT NULL,
  8. `current_server` varchar(255) NULL DEFAULT NULL,
  9. `gmt_create` datetime(6) NULL DEFAULT NULL,
  10. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  11. `password` varchar(255) NULL DEFAULT NULL,
  12. PRIMARY KEY (`id`) USING BTREE,
  13. UNIQUE INDEX `uidx01_app_info`(`app_name`) USING BTREE
  14. ) ENGINE = InnoDB AUTO_INCREMENT = 2 ROW_FORMAT = Dynamic;
  15. -- ----------------------------
  16. -- Records of pj_app_info
  17. -- ----------------------------
  18. INSERT INTO `pj_app_info` VALUES (1, 'ruoyi-worker', '127.0.0.1:10010', '2023-06-13 16:32:59.263000', '2023-07-04 17:25:49.798000', '123456');
  19. -- ----------------------------
  20. -- Table structure for pj_container_info
  21. -- ----------------------------
  22. DROP TABLE IF EXISTS `pj_container_info`;
  23. CREATE TABLE `pj_container_info` (
  24. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  25. `app_id` bigint(0) NULL DEFAULT NULL,
  26. `container_name` varchar(255) NULL DEFAULT NULL,
  27. `gmt_create` datetime(6) NULL DEFAULT NULL,
  28. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  29. `last_deploy_time` datetime(6) NULL DEFAULT NULL,
  30. `source_info` varchar(255) NULL DEFAULT NULL,
  31. `source_type` int(0) NULL DEFAULT NULL,
  32. `status` int(0) NULL DEFAULT NULL,
  33. `version` varchar(255) NULL DEFAULT NULL,
  34. PRIMARY KEY (`id`) USING BTREE,
  35. INDEX `idx01_container_info`(`app_id`) USING BTREE
  36. ) ENGINE = InnoDB AUTO_INCREMENT = 1 ROW_FORMAT = Dynamic;
  37. -- ----------------------------
  38. -- Table structure for pj_instance_info
  39. -- ----------------------------
  40. DROP TABLE IF EXISTS `pj_instance_info`;
  41. CREATE TABLE `pj_instance_info` (
  42. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  43. `actual_trigger_time` bigint(0) NULL DEFAULT NULL,
  44. `app_id` bigint(0) NULL DEFAULT NULL,
  45. `expected_trigger_time` bigint(0) NULL DEFAULT NULL,
  46. `finished_time` bigint(0) NULL DEFAULT NULL,
  47. `gmt_create` datetime(6) NULL DEFAULT NULL,
  48. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  49. `instance_id` bigint(0) NULL DEFAULT NULL,
  50. `instance_params` longtext NULL,
  51. `job_id` bigint(0) NULL DEFAULT NULL,
  52. `job_params` longtext NULL,
  53. `last_report_time` bigint(0) NULL DEFAULT NULL,
  54. `result` longtext NULL,
  55. `running_times` bigint(0) NULL DEFAULT NULL,
  56. `status` int(0) NULL DEFAULT NULL,
  57. `task_tracker_address` varchar(255) NULL DEFAULT NULL,
  58. `type` int(0) NULL DEFAULT NULL,
  59. `wf_instance_id` bigint(0) NULL DEFAULT NULL,
  60. PRIMARY KEY (`id`) USING BTREE,
  61. INDEX `idx01_instance_info`(`job_id`, `status`) USING BTREE,
  62. INDEX `idx02_instance_info`(`app_id`, `status`) USING BTREE,
  63. INDEX `idx03_instance_info`(`instance_id`, `status`) USING BTREE
  64. ) ENGINE = InnoDB AUTO_INCREMENT = 4 ROW_FORMAT = Dynamic;
  65. -- ----------------------------
  66. -- Table structure for pj_job_info
  67. -- ----------------------------
  68. DROP TABLE IF EXISTS `pj_job_info`;
  69. CREATE TABLE `pj_job_info` (
  70. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  71. `alarm_config` varchar(255) NULL DEFAULT NULL,
  72. `app_id` bigint(0) NULL DEFAULT NULL,
  73. `concurrency` int(0) NULL DEFAULT NULL,
  74. `designated_workers` varchar(255) NULL DEFAULT NULL,
  75. `dispatch_strategy` int(0) NULL DEFAULT NULL,
  76. `execute_type` int(0) NULL DEFAULT NULL,
  77. `extra` varchar(255) NULL DEFAULT NULL,
  78. `gmt_create` datetime(6) NULL DEFAULT NULL,
  79. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  80. `instance_retry_num` int(0) NULL DEFAULT NULL,
  81. `instance_time_limit` bigint(0) NULL DEFAULT NULL,
  82. `job_description` varchar(255) NULL DEFAULT NULL,
  83. `job_name` varchar(255) NULL DEFAULT NULL,
  84. `job_params` longtext NULL,
  85. `lifecycle` varchar(255) NULL DEFAULT NULL,
  86. `log_config` varchar(255) NULL DEFAULT NULL,
  87. `max_instance_num` int(0) NULL DEFAULT NULL,
  88. `max_worker_count` int(0) NULL DEFAULT NULL,
  89. `min_cpu_cores` double NOT NULL,
  90. `min_disk_space` double NOT NULL,
  91. `min_memory_space` double NOT NULL,
  92. `next_trigger_time` bigint(0) NULL DEFAULT NULL,
  93. `notify_user_ids` varchar(255) NULL DEFAULT NULL,
  94. `processor_info` varchar(255) NULL DEFAULT NULL,
  95. `processor_type` int(0) NULL DEFAULT NULL,
  96. `status` int(0) NULL DEFAULT NULL,
  97. `tag` varchar(255) NULL DEFAULT NULL,
  98. `task_retry_num` int(0) NULL DEFAULT NULL,
  99. `time_expression` varchar(255) NULL DEFAULT NULL,
  100. `time_expression_type` int(0) NULL DEFAULT NULL,
  101. PRIMARY KEY (`id`) USING BTREE,
  102. INDEX `idx01_job_info`(`app_id`, `status`, `time_expression_type`, `next_trigger_time`) USING BTREE
  103. ) ENGINE = InnoDB AUTO_INCREMENT = 5 ROW_FORMAT = Dynamic;
  104. -- ----------------------------
  105. -- Records of pj_job_info
  106. -- ----------------------------
  107. INSERT INTO `pj_job_info` VALUES (1, '{\"alertThreshold\":0,\"silenceWindowLen\":0,\"statisticWindowLen\":0}', 1, 5, '', 2, 1, NULL, '2023-06-02 15:01:27.717000', '2023-07-04 17:22:12.374000', 1, 0, '', '单机处理器执行测试', NULL, '{}', '{\"type\":1}', 0, 0, 0, 0, 0, NULL, NULL, 'org.dromara.job.processors.StandaloneProcessorDemo', 1, 2, NULL, 1, '30000', 3);
  108. INSERT INTO `pj_job_info` VALUES (2, '{\"alertThreshold\":0,\"silenceWindowLen\":0,\"statisticWindowLen\":0}', 1, 5, '', 1, 2, NULL, '2023-06-02 15:04:45.342000', '2023-07-04 17:22:12.816000', 0, 0, NULL, '广播处理器测试', NULL, '{}', '{\"type\":1}', 0, 0, 0, 0, 0, NULL, NULL, 'org.dromara.job.processors.BroadcastProcessorDemo', 1, 2, NULL, 1, '30000', 3);
  109. INSERT INTO `pj_job_info` VALUES (3, '{\"alertThreshold\":0,\"silenceWindowLen\":0,\"statisticWindowLen\":0}', 1, 5, '', 1, 4, NULL, '2023-06-02 15:13:23.519000', '2023-06-02 16:03:22.421000', 0, 0, NULL, 'Map处理器测试', NULL, '{}', '{\"type\":1}', 0, 0, 0, 0, 0, NULL, NULL, 'org.dromara.job.processors.MapProcessorDemo', 1, 2, NULL, 1, '1000', 3);
  110. INSERT INTO `pj_job_info` VALUES (4, '{\"alertThreshold\":0,\"silenceWindowLen\":0,\"statisticWindowLen\":0}', 1, 5, '', 1, 3, NULL, '2023-06-02 15:45:25.896000', '2023-06-02 16:03:23.125000', 0, 0, NULL, 'MapReduce处理器测试', NULL, '{}', '{\"type\":1}', 0, 0, 0, 0, 0, NULL, NULL, 'org.dromara.job.processors.MapReduceProcessorDemo', 1, 2, NULL, 1, '1000', 3);
  111. -- ----------------------------
  112. -- Table structure for pj_oms_lock
  113. -- ----------------------------
  114. DROP TABLE IF EXISTS `pj_oms_lock`;
  115. CREATE TABLE `pj_oms_lock` (
  116. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  117. `gmt_create` datetime(6) NULL DEFAULT NULL,
  118. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  119. `lock_name` varchar(255) NULL DEFAULT NULL,
  120. `max_lock_time` bigint(0) NULL DEFAULT NULL,
  121. `ownerip` varchar(255) NULL DEFAULT NULL,
  122. PRIMARY KEY (`id`) USING BTREE,
  123. UNIQUE INDEX `uidx01_oms_lock`(`lock_name`) USING BTREE
  124. ) ENGINE = InnoDB AUTO_INCREMENT = 6 ROW_FORMAT = Dynamic;
  125. -- ----------------------------
  126. -- Table structure for pj_server_info
  127. -- ----------------------------
  128. DROP TABLE IF EXISTS `pj_server_info`;
  129. CREATE TABLE `pj_server_info` (
  130. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  131. `gmt_create` datetime(6) NULL DEFAULT NULL,
  132. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  133. `ip` varchar(255) NULL DEFAULT NULL,
  134. PRIMARY KEY (`id`) USING BTREE,
  135. UNIQUE INDEX `uidx01_server_info`(`ip`) USING BTREE,
  136. INDEX `idx01_server_info`(`gmt_modified`) USING BTREE
  137. ) ENGINE = InnoDB AUTO_INCREMENT = 2 ROW_FORMAT = Dynamic;
  138. -- ----------------------------
  139. -- Table structure for pj_user_info
  140. -- ----------------------------
  141. DROP TABLE IF EXISTS `pj_user_info`;
  142. CREATE TABLE `pj_user_info` (
  143. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  144. `email` varchar(255) NULL DEFAULT NULL,
  145. `extra` varchar(255) NULL DEFAULT NULL,
  146. `gmt_create` datetime(6) NULL DEFAULT NULL,
  147. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  148. `password` varchar(255) NULL DEFAULT NULL,
  149. `phone` varchar(255) NULL DEFAULT NULL,
  150. `username` varchar(255) NULL DEFAULT NULL,
  151. `web_hook` varchar(255) NULL DEFAULT NULL,
  152. PRIMARY KEY (`id`) USING BTREE,
  153. INDEX `uidx01_user_info`(`username`) USING BTREE,
  154. INDEX `uidx02_user_info`(`email`) USING BTREE
  155. ) ENGINE = InnoDB AUTO_INCREMENT = 1 ROW_FORMAT = Dynamic;
  156. -- ----------------------------
  157. -- Table structure for pj_workflow_info
  158. -- ----------------------------
  159. DROP TABLE IF EXISTS `pj_workflow_info`;
  160. CREATE TABLE `pj_workflow_info` (
  161. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  162. `app_id` bigint(0) NULL DEFAULT NULL,
  163. `extra` varchar(255) NULL DEFAULT NULL,
  164. `gmt_create` datetime(6) NULL DEFAULT NULL,
  165. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  166. `lifecycle` varchar(255) NULL DEFAULT NULL,
  167. `max_wf_instance_num` int(0) NULL DEFAULT NULL,
  168. `next_trigger_time` bigint(0) NULL DEFAULT NULL,
  169. `notify_user_ids` varchar(255) NULL DEFAULT NULL,
  170. `pedag` longtext NULL,
  171. `status` int(0) NULL DEFAULT NULL,
  172. `time_expression` varchar(255) NULL DEFAULT NULL,
  173. `time_expression_type` int(0) NULL DEFAULT NULL,
  174. `wf_description` varchar(255) NULL DEFAULT NULL,
  175. `wf_name` varchar(255) NULL DEFAULT NULL,
  176. PRIMARY KEY (`id`) USING BTREE,
  177. INDEX `idx01_workflow_info`(`app_id`, `status`, `time_expression_type`, `next_trigger_time`) USING BTREE
  178. ) ENGINE = InnoDB AUTO_INCREMENT = 1 ROW_FORMAT = Dynamic;
  179. -- ----------------------------
  180. -- Table structure for pj_workflow_instance_info
  181. -- ----------------------------
  182. DROP TABLE IF EXISTS `pj_workflow_instance_info`;
  183. CREATE TABLE `pj_workflow_instance_info` (
  184. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  185. `actual_trigger_time` bigint(0) NULL DEFAULT NULL,
  186. `app_id` bigint(0) NULL DEFAULT NULL,
  187. `dag` longtext NULL,
  188. `expected_trigger_time` bigint(0) NULL DEFAULT NULL,
  189. `finished_time` bigint(0) NULL DEFAULT NULL,
  190. `gmt_create` datetime(6) NULL DEFAULT NULL,
  191. `gmt_modified` datetime(6) NULL DEFAULT NULL,
  192. `parent_wf_instance_id` bigint(0) NULL DEFAULT NULL,
  193. `result` longtext NULL,
  194. `status` int(0) NULL DEFAULT NULL,
  195. `wf_context` longtext NULL,
  196. `wf_init_params` longtext NULL,
  197. `wf_instance_id` bigint(0) NULL DEFAULT NULL,
  198. `workflow_id` bigint(0) NULL DEFAULT NULL,
  199. PRIMARY KEY (`id`) USING BTREE,
  200. UNIQUE INDEX `uidx01_wf_instance`(`wf_instance_id`) USING BTREE,
  201. INDEX `idx01_wf_instance`(`workflow_id`, `status`, `app_id`, `expected_trigger_time`) USING BTREE
  202. ) ENGINE = InnoDB AUTO_INCREMENT = 1 ROW_FORMAT = Dynamic;
  203. -- ----------------------------
  204. -- Table structure for pj_workflow_node_info
  205. -- ----------------------------
  206. DROP TABLE IF EXISTS `pj_workflow_node_info`;
  207. CREATE TABLE `pj_workflow_node_info` (
  208. `id` bigint(0) NOT NULL AUTO_INCREMENT,
  209. `app_id` bigint(0) NOT NULL,
  210. `enable` bit(1) NOT NULL,
  211. `extra` longtext NULL,
  212. `gmt_create` datetime(6) NULL,
  213. `gmt_modified` datetime(6) NULL,
  214. `job_id` bigint(0) NULL DEFAULT NULL,
  215. `node_name` varchar(255) NULL DEFAULT NULL,
  216. `node_params` longtext NULL,
  217. `skip_when_failed` bit(1) NOT NULL,
  218. `type` int(0) NULL DEFAULT NULL,
  219. `workflow_id` bigint(0) NULL DEFAULT NULL,
  220. PRIMARY KEY (`id`) USING BTREE,
  221. INDEX `idx01_workflow_node_info`(`workflow_id`, `gmt_create`) USING BTREE
  222. ) ENGINE = InnoDB AUTO_INCREMENT = 1 ROW_FORMAT = Dynamic;