powerjob-mysql.sql 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : Local@3306
  4. Source Server Type : MySQL
  5. Source Server Version : 80021
  6. Source Host : localhost:3306
  7. Source Schema : powerjob-daily
  8. Target Server Type : MySQL
  9. Target Server Version : 80021
  10. File Encoding : 65001
  11. Date: 05/04/2021 13:15:19
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for app_info
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `app_info`;
  19. CREATE TABLE `app_info` (
  20. `id` bigint NOT NULL AUTO_INCREMENT,
  21. `app_name` varchar(255) DEFAULT NULL,
  22. `current_server` varchar(255) DEFAULT NULL,
  23. `gmt_create` datetime(6) DEFAULT NULL,
  24. `gmt_modified` datetime(6) DEFAULT NULL,
  25. `password` varchar(255) DEFAULT NULL,
  26. PRIMARY KEY (`id`),
  27. UNIQUE KEY `appNameUK` (`app_name`)
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  29. -- ----------------------------
  30. -- Table structure for container_info
  31. -- ----------------------------
  32. DROP TABLE IF EXISTS `container_info`;
  33. CREATE TABLE `container_info` (
  34. `id` bigint NOT NULL AUTO_INCREMENT,
  35. `app_id` bigint DEFAULT NULL,
  36. `container_name` varchar(255) DEFAULT NULL,
  37. `gmt_create` datetime(6) DEFAULT NULL,
  38. `gmt_modified` datetime(6) DEFAULT NULL,
  39. `last_deploy_time` datetime(6) DEFAULT NULL,
  40. `source_info` varchar(255) DEFAULT NULL,
  41. `source_type` int DEFAULT NULL,
  42. `status` int DEFAULT NULL,
  43. `version` varchar(255) DEFAULT NULL,
  44. PRIMARY KEY (`id`),
  45. KEY `IDX8hixyaktlnwil2w9up6b0p898` (`app_id`)
  46. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  47. -- ----------------------------
  48. -- Table structure for instance_info
  49. -- ----------------------------
  50. DROP TABLE IF EXISTS `instance_info`;
  51. CREATE TABLE `instance_info` (
  52. `id` bigint NOT NULL AUTO_INCREMENT,
  53. `actual_trigger_time` bigint DEFAULT NULL,
  54. `app_id` bigint DEFAULT NULL,
  55. `expected_trigger_time` bigint DEFAULT NULL,
  56. `finished_time` bigint DEFAULT NULL,
  57. `gmt_create` datetime(6) DEFAULT NULL,
  58. `gmt_modified` datetime(6) DEFAULT NULL,
  59. `instance_id` bigint DEFAULT NULL,
  60. `instance_params` longtext,
  61. `job_id` bigint DEFAULT NULL,
  62. `job_params` longtext,
  63. `last_report_time` bigint DEFAULT NULL,
  64. `result` text,
  65. `running_times` bigint DEFAULT NULL,
  66. `status` int DEFAULT NULL,
  67. `task_tracker_address` varchar(255) DEFAULT NULL,
  68. `type` int DEFAULT NULL,
  69. `wf_instance_id` bigint DEFAULT NULL,
  70. PRIMARY KEY (`id`),
  71. KEY `IDX5b1nhpe5je7gc5s1ur200njr7` (`job_id`),
  72. KEY `IDXjnji5lrr195kswk6f7mfhinrs` (`app_id`),
  73. KEY `IDXa98hq3yu0l863wuotdjl7noum` (`instance_id`)
  74. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  75. -- ----------------------------
  76. -- Table structure for job_info
  77. -- ----------------------------
  78. DROP TABLE IF EXISTS `job_info`;
  79. CREATE TABLE `job_info` (
  80. `id` bigint NOT NULL AUTO_INCREMENT,
  81. `app_id` bigint DEFAULT NULL,
  82. `concurrency` int DEFAULT NULL,
  83. `designated_workers` varchar(255) DEFAULT NULL,
  84. `dispatch_strategy` int DEFAULT NULL,
  85. `execute_type` int DEFAULT NULL,
  86. `extra` varchar(255) DEFAULT NULL,
  87. `gmt_create` datetime(6) DEFAULT NULL,
  88. `gmt_modified` datetime(6) DEFAULT NULL,
  89. `instance_retry_num` int DEFAULT NULL,
  90. `instance_time_limit` bigint DEFAULT NULL,
  91. `job_description` varchar(255) DEFAULT NULL,
  92. `job_name` varchar(255) DEFAULT NULL,
  93. `job_params` text,
  94. `lifecycle` varchar(255) DEFAULT NULL,
  95. `max_instance_num` int DEFAULT NULL,
  96. `max_worker_count` int DEFAULT NULL,
  97. `min_cpu_cores` double NOT NULL,
  98. `min_disk_space` double NOT NULL,
  99. `min_memory_space` double NOT NULL,
  100. `next_trigger_time` bigint DEFAULT NULL,
  101. `notify_user_ids` varchar(255) DEFAULT NULL,
  102. `processor_info` varchar(255) DEFAULT NULL,
  103. `processor_type` int DEFAULT NULL,
  104. `status` int DEFAULT NULL,
  105. `task_retry_num` int DEFAULT NULL,
  106. `time_expression` varchar(255) DEFAULT NULL,
  107. `time_expression_type` int DEFAULT NULL,
  108. PRIMARY KEY (`id`),
  109. KEY `IDXk2xprmn3lldmlcb52i36udll1` (`app_id`)
  110. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  111. -- ----------------------------
  112. -- Table structure for oms_lock
  113. -- ----------------------------
  114. DROP TABLE IF EXISTS `oms_lock`;
  115. CREATE TABLE `oms_lock` (
  116. `id` bigint NOT NULL AUTO_INCREMENT,
  117. `gmt_create` datetime(6) DEFAULT NULL,
  118. `gmt_modified` datetime(6) DEFAULT NULL,
  119. `lock_name` varchar(255) DEFAULT NULL,
  120. `max_lock_time` bigint DEFAULT NULL,
  121. `ownerip` varchar(255) DEFAULT NULL,
  122. PRIMARY KEY (`id`),
  123. UNIQUE KEY `lockNameUK` (`lock_name`)
  124. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  125. -- ----------------------------
  126. -- Table structure for server_info
  127. -- ----------------------------
  128. DROP TABLE IF EXISTS `server_info`;
  129. CREATE TABLE `server_info` (
  130. `id` bigint NOT NULL AUTO_INCREMENT,
  131. `gmt_create` datetime(6) DEFAULT NULL,
  132. `gmt_modified` datetime(6) DEFAULT NULL,
  133. `ip` varchar(255) DEFAULT NULL,
  134. PRIMARY KEY (`id`),
  135. UNIQUE KEY `UKtk8ytgpl7mpukhnvhbl82kgvy` (`ip`)
  136. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  137. -- ----------------------------
  138. -- Table structure for user_info
  139. -- ----------------------------
  140. DROP TABLE IF EXISTS `user_info`;
  141. CREATE TABLE `user_info` (
  142. `id` bigint NOT NULL AUTO_INCREMENT,
  143. `email` varchar(255) DEFAULT NULL,
  144. `extra` varchar(255) DEFAULT NULL,
  145. `gmt_create` datetime(6) DEFAULT NULL,
  146. `gmt_modified` datetime(6) DEFAULT NULL,
  147. `password` varchar(255) DEFAULT NULL,
  148. `phone` varchar(255) DEFAULT NULL,
  149. `username` varchar(255) DEFAULT NULL,
  150. `web_hook` varchar(255) DEFAULT NULL,
  151. PRIMARY KEY (`id`)
  152. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  153. -- ----------------------------
  154. -- Table structure for workflow_info
  155. -- ----------------------------
  156. DROP TABLE IF EXISTS `workflow_info`;
  157. CREATE TABLE `workflow_info` (
  158. `id` bigint NOT NULL AUTO_INCREMENT,
  159. `app_id` bigint DEFAULT NULL,
  160. `extra` varchar(255) DEFAULT NULL,
  161. `gmt_create` datetime(6) DEFAULT NULL,
  162. `gmt_modified` datetime(6) DEFAULT NULL,
  163. `lifecycle` varchar(255) DEFAULT NULL,
  164. `max_wf_instance_num` int DEFAULT NULL,
  165. `next_trigger_time` bigint DEFAULT NULL,
  166. `notify_user_ids` varchar(255) DEFAULT NULL,
  167. `pedag` text,
  168. `status` int DEFAULT NULL,
  169. `time_expression` varchar(255) DEFAULT NULL,
  170. `time_expression_type` int DEFAULT NULL,
  171. `wf_description` varchar(255) DEFAULT NULL,
  172. `wf_name` varchar(255) DEFAULT NULL,
  173. PRIMARY KEY (`id`),
  174. KEY `IDX7uo5w0e3beeho3fnx9t7eiol3` (`app_id`)
  175. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  176. -- ----------------------------
  177. -- Table structure for workflow_instance_info
  178. -- ----------------------------
  179. DROP TABLE IF EXISTS `workflow_instance_info`;
  180. CREATE TABLE `workflow_instance_info` (
  181. `id` bigint NOT NULL AUTO_INCREMENT,
  182. `actual_trigger_time` bigint DEFAULT NULL,
  183. `app_id` bigint DEFAULT NULL,
  184. `dag` text,
  185. `expected_trigger_time` bigint DEFAULT NULL,
  186. `finished_time` bigint DEFAULT NULL,
  187. `gmt_create` datetime(6) DEFAULT NULL,
  188. `gmt_modified` datetime(6) DEFAULT NULL,
  189. `result` text,
  190. `status` int DEFAULT NULL,
  191. `wf_context` text,
  192. `wf_init_params` text,
  193. `wf_instance_id` bigint DEFAULT NULL,
  194. `workflow_id` bigint DEFAULT NULL,
  195. PRIMARY KEY (`id`)
  196. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  197. -- ----------------------------
  198. -- Table structure for workflow_node_info
  199. -- ----------------------------
  200. DROP TABLE IF EXISTS `workflow_node_info`;
  201. CREATE TABLE `workflow_node_info` (
  202. `id` bigint NOT NULL AUTO_INCREMENT,
  203. `app_id` bigint NOT NULL,
  204. `enable` bit(1) NOT NULL,
  205. `extra` text,
  206. `gmt_create` datetime(6) NOT NULL,
  207. `gmt_modified` datetime(6) NOT NULL,
  208. `job_id` bigint DEFAULT NULL,
  209. `node_name` varchar(255) DEFAULT NULL,
  210. `node_params` text,
  211. `skip_when_failed` bit(1) NOT NULL,
  212. `type` int DEFAULT NULL,
  213. `workflow_id` bigint DEFAULT NULL,
  214. PRIMARY KEY (`id`),
  215. KEY `IDX36t7rhj4mkg2a5pb4ttorscta` (`app_id`),
  216. KEY `IDXacr0i6my8jr002ou8i1gmygju` (`workflow_id`)
  217. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  218. SET FOREIGN_KEY_CHECKS = 1;