oms-sql.sql 6.8 KB

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