xxl_job.sql 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 106.120.102.238
  4. Source Server Type : MySQL
  5. Source Server Version : 50731
  6. Source Host : 106.120.102.238:16306
  7. Source Schema : xxl_job
  8. Target Server Type : MySQL
  9. Target Server Version : 50731
  10. File Encoding : 65001
  11. Date: 18/02/2025 13:51:21
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for xxl_job_group
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `xxl_job_group`;
  19. CREATE TABLE `xxl_job_group` (
  20. `id` int(11) NOT NULL AUTO_INCREMENT,
  21. `app_name` varchar(64) NOT NULL COMMENT '执行器AppName',
  22. `title` varchar(12) NOT NULL COMMENT '执行器名称',
  23. `address_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '执行器地址类型:0=自动注册、1=手动录入',
  24. `address_list` text COMMENT '执行器地址列表,多地址逗号分隔',
  25. `update_time` datetime DEFAULT NULL,
  26. PRIMARY KEY (`id`)
  27. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;
  28. -- ----------------------------
  29. -- Table structure for xxl_job_info
  30. -- ----------------------------
  31. DROP TABLE IF EXISTS `xxl_job_info`;
  32. CREATE TABLE `xxl_job_info` (
  33. `id` int(11) NOT NULL AUTO_INCREMENT,
  34. `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
  35. `job_desc` varchar(255) NOT NULL,
  36. `add_time` datetime DEFAULT NULL,
  37. `update_time` datetime DEFAULT NULL,
  38. `author` varchar(64) DEFAULT NULL COMMENT '作者',
  39. `alarm_email` varchar(255) DEFAULT NULL COMMENT '报警邮件',
  40. `schedule_type` varchar(50) NOT NULL DEFAULT 'NONE' COMMENT '调度类型',
  41. `schedule_conf` varchar(128) DEFAULT NULL COMMENT '调度配置,值含义取决于调度类型',
  42. `misfire_strategy` varchar(50) NOT NULL DEFAULT 'DO_NOTHING' COMMENT '调度过期策略',
  43. `executor_route_strategy` varchar(50) DEFAULT NULL COMMENT '执行器路由策略',
  44. `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
  45. `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数',
  46. `executor_block_strategy` varchar(50) DEFAULT NULL COMMENT '阻塞处理策略',
  47. `executor_timeout` int(11) NOT NULL DEFAULT '0' COMMENT '任务执行超时时间,单位秒',
  48. `executor_fail_retry_count` int(11) NOT NULL DEFAULT '0' COMMENT '失败重试次数',
  49. `glue_type` varchar(50) NOT NULL COMMENT 'GLUE类型',
  50. `glue_source` mediumtext COMMENT 'GLUE源代码',
  51. `glue_remark` varchar(128) DEFAULT NULL COMMENT 'GLUE备注',
  52. `glue_updatetime` datetime DEFAULT NULL COMMENT 'GLUE更新时间',
  53. `child_jobid` varchar(255) DEFAULT NULL COMMENT '子任务ID,多个逗号分隔',
  54. `trigger_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '调度状态:0-停止,1-运行',
  55. `trigger_last_time` bigint(13) NOT NULL DEFAULT '0' COMMENT '上次调度时间',
  56. `trigger_next_time` bigint(13) NOT NULL DEFAULT '0' COMMENT '下次调度时间',
  57. PRIMARY KEY (`id`)
  58. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;
  59. -- ----------------------------
  60. -- Table structure for xxl_job_lock
  61. -- ----------------------------
  62. DROP TABLE IF EXISTS `xxl_job_lock`;
  63. CREATE TABLE `xxl_job_lock` (
  64. `lock_name` varchar(50) NOT NULL COMMENT '锁名称',
  65. PRIMARY KEY (`lock_name`)
  66. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  67. -- ----------------------------
  68. -- Table structure for xxl_job_log
  69. -- ----------------------------
  70. DROP TABLE IF EXISTS `xxl_job_log`;
  71. CREATE TABLE `xxl_job_log` (
  72. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  73. `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
  74. `job_id` int(11) NOT NULL COMMENT '任务,主键ID',
  75. `executor_address` varchar(255) DEFAULT NULL COMMENT '执行器地址,本次执行的地址',
  76. `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
  77. `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数',
  78. `executor_sharding_param` varchar(20) DEFAULT NULL COMMENT '执行器任务分片参数,格式如 1/2',
  79. `executor_fail_retry_count` int(11) NOT NULL DEFAULT '0' COMMENT '失败重试次数',
  80. `trigger_time` datetime DEFAULT NULL COMMENT '调度-时间',
  81. `trigger_code` int(11) NOT NULL COMMENT '调度-结果',
  82. `trigger_msg` text COMMENT '调度-日志',
  83. `handle_time` datetime DEFAULT NULL COMMENT '执行-时间',
  84. `handle_code` int(11) NOT NULL COMMENT '执行-状态',
  85. `handle_msg` text COMMENT '执行-日志',
  86. `alarm_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败',
  87. PRIMARY KEY (`id`),
  88. KEY `I_trigger_time` (`trigger_time`),
  89. KEY `I_handle_code` (`handle_code`)
  90. ) ENGINE=InnoDB AUTO_INCREMENT=544914 DEFAULT CHARSET=utf8mb4;
  91. -- ----------------------------
  92. -- Table structure for xxl_job_log_report
  93. -- ----------------------------
  94. DROP TABLE IF EXISTS `xxl_job_log_report`;
  95. CREATE TABLE `xxl_job_log_report` (
  96. `id` int(11) NOT NULL AUTO_INCREMENT,
  97. `trigger_day` datetime DEFAULT NULL COMMENT '调度-时间',
  98. `running_count` int(11) NOT NULL DEFAULT '0' COMMENT '运行中-日志数量',
  99. `suc_count` int(11) NOT NULL DEFAULT '0' COMMENT '执行成功-日志数量',
  100. `fail_count` int(11) NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量',
  101. `update_time` datetime DEFAULT NULL,
  102. PRIMARY KEY (`id`),
  103. UNIQUE KEY `i_trigger_day` (`trigger_day`) USING BTREE
  104. ) ENGINE=InnoDB AUTO_INCREMENT=407 DEFAULT CHARSET=utf8mb4;
  105. -- ----------------------------
  106. -- Table structure for xxl_job_logglue
  107. -- ----------------------------
  108. DROP TABLE IF EXISTS `xxl_job_logglue`;
  109. CREATE TABLE `xxl_job_logglue` (
  110. `id` int(11) NOT NULL AUTO_INCREMENT,
  111. `job_id` int(11) NOT NULL COMMENT '任务,主键ID',
  112. `glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型',
  113. `glue_source` mediumtext COMMENT 'GLUE源代码',
  114. `glue_remark` varchar(128) NOT NULL COMMENT 'GLUE备注',
  115. `add_time` datetime DEFAULT NULL,
  116. `update_time` datetime DEFAULT NULL,
  117. PRIMARY KEY (`id`)
  118. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  119. -- ----------------------------
  120. -- Table structure for xxl_job_registry
  121. -- ----------------------------
  122. DROP TABLE IF EXISTS `xxl_job_registry`;
  123. CREATE TABLE `xxl_job_registry` (
  124. `id` int(11) NOT NULL AUTO_INCREMENT,
  125. `registry_group` varchar(50) NOT NULL,
  126. `registry_key` varchar(255) NOT NULL,
  127. `registry_value` varchar(255) NOT NULL,
  128. `update_time` datetime DEFAULT NULL,
  129. PRIMARY KEY (`id`),
  130. KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`)
  131. ) ENGINE=InnoDB AUTO_INCREMENT=271 DEFAULT CHARSET=utf8mb4;
  132. -- ----------------------------
  133. -- Table structure for xxl_job_user
  134. -- ----------------------------
  135. DROP TABLE IF EXISTS `xxl_job_user`;
  136. CREATE TABLE `xxl_job_user` (
  137. `id` int(11) NOT NULL AUTO_INCREMENT,
  138. `username` varchar(50) NOT NULL COMMENT '账号',
  139. `password` varchar(50) NOT NULL COMMENT '密码',
  140. `role` tinyint(4) NOT NULL COMMENT '角色:0-普通用户、1-管理员',
  141. `permission` varchar(255) DEFAULT NULL COMMENT '权限:执行器ID列表,多个逗号分割',
  142. PRIMARY KEY (`id`),
  143. UNIQUE KEY `i_username` (`username`) USING BTREE
  144. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
  145. SET FOREIGN_KEY_CHECKS = 1;