xxl-job.sql 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. CREATE DATABASE IF NOT EXISTS `mics_xxl-job` DEFAULT CHARACTER SET = utf8;
  2. Use `mics_xxl-job`;
  3. -- ----------------------------
  4. -- Table structure for XXL_JOB_QRTZ_JOB_DETAILS
  5. -- ----------------------------
  6. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_JOB_DETAILS`;
  7. CREATE TABLE `XXL_JOB_QRTZ_JOB_DETAILS` (
  8. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  9. `JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  10. `JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  11. `DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  12. `JOB_CLASS_NAME` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  13. `IS_DURABLE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  14. `IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  15. `IS_UPDATE_DATA` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  16. `REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  17. `JOB_DATA` blob NULL,
  18. PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE
  19. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  20. -- ----------------------------
  21. -- Records of XXL_JOB_QRTZ_JOB_DETAILS
  22. -- ----------------------------
  23. INSERT INTO `XXL_JOB_QRTZ_JOB_DETAILS` VALUES ('getSchedulerFactoryBean', '1', '1', NULL, 'com.xxl.job.admin.core.jobbean.RemoteHttpJobBean', '0', '0', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787000737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F40000000000010770800000010000000007800);
  24. -- ----------------------------
  25. -- Table structure for XXL_JOB_QRTZ_TRIGGERS
  26. -- ----------------------------
  27. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_TRIGGERS`;
  28. CREATE TABLE `XXL_JOB_QRTZ_TRIGGERS` (
  29. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  30. `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  31. `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  32. `JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  33. `JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  34. `DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  35. `NEXT_FIRE_TIME` bigint(13) NULL DEFAULT NULL,
  36. `PREV_FIRE_TIME` bigint(13) NULL DEFAULT NULL,
  37. `PRIORITY` int(11) NULL DEFAULT NULL,
  38. `TRIGGER_STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  39. `TRIGGER_TYPE` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  40. `START_TIME` bigint(13) NOT NULL,
  41. `END_TIME` bigint(13) NULL DEFAULT NULL,
  42. `CALENDAR_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  43. `MISFIRE_INSTR` smallint(2) NULL DEFAULT NULL,
  44. `JOB_DATA` blob NULL,
  45. PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  46. INDEX `SCHED_NAME`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
  47. CONSTRAINT `XXL_JOB_QRTZ_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `XXL_JOB_QRTZ_JOB_DETAILS` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
  48. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  49. -- ----------------------------
  50. -- Records of XXL_JOB_QRTZ_TRIGGERS
  51. -- ----------------------------
  52. INSERT INTO `XXL_JOB_QRTZ_TRIGGERS` VALUES ('getSchedulerFactoryBean', '1', '1', '1', '1', NULL, 1547913600000, -1, 5, 'WAITING', 'CRON', 1547654599000, 0, NULL, 2, '');
  53. -- ----------------------------
  54. -- Table structure for XXL_JOB_QRTZ_BLOB_TRIGGERS
  55. -- ----------------------------
  56. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_BLOB_TRIGGERS`;
  57. CREATE TABLE `XXL_JOB_QRTZ_BLOB_TRIGGERS` (
  58. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  59. `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  60. `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  61. `BLOB_DATA` blob NULL,
  62. PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  63. CONSTRAINT `XXL_JOB_QRTZ_BLOB_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `XXL_JOB_QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
  64. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  65. -- ----------------------------
  66. -- Table structure for XXL_JOB_QRTZ_CALENDARS
  67. -- ----------------------------
  68. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_CALENDARS`;
  69. CREATE TABLE `XXL_JOB_QRTZ_CALENDARS` (
  70. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  71. `CALENDAR_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  72. `CALENDAR` blob NOT NULL,
  73. PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE
  74. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  75. -- ----------------------------
  76. -- Table structure for XXL_JOB_QRTZ_CRON_TRIGGERS
  77. -- ----------------------------
  78. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_CRON_TRIGGERS`;
  79. CREATE TABLE `XXL_JOB_QRTZ_CRON_TRIGGERS` (
  80. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  81. `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  82. `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  83. `CRON_EXPRESSION` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  84. `TIME_ZONE_ID` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  85. PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  86. CONSTRAINT `XXL_JOB_QRTZ_CRON_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `XXL_JOB_QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
  87. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  88. -- ----------------------------
  89. -- Records of XXL_JOB_QRTZ_CRON_TRIGGERS
  90. -- ----------------------------
  91. INSERT INTO `XXL_JOB_QRTZ_CRON_TRIGGERS` VALUES ('getSchedulerFactoryBean', '1', '1', '0 0 0 * * ? *', 'Asia/Shanghai');
  92. -- ----------------------------
  93. -- Table structure for XXL_JOB_QRTZ_FIRED_TRIGGERS
  94. -- ----------------------------
  95. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_FIRED_TRIGGERS`;
  96. CREATE TABLE `XXL_JOB_QRTZ_FIRED_TRIGGERS` (
  97. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  98. `ENTRY_ID` varchar(95) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  99. `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  100. `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  101. `INSTANCE_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  102. `FIRED_TIME` bigint(13) NOT NULL,
  103. `SCHED_TIME` bigint(13) NOT NULL,
  104. `PRIORITY` int(11) NOT NULL,
  105. `STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  106. `JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  107. `JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  108. `IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  109. `REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  110. PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`) USING BTREE
  111. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  112. -- ----------------------------
  113. -- Table structure for XXL_JOB_QRTZ_LOCKS
  114. -- ----------------------------
  115. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_LOCKS`;
  116. CREATE TABLE `XXL_JOB_QRTZ_LOCKS` (
  117. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  118. `LOCK_NAME` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  119. PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`) USING BTREE
  120. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  121. -- ----------------------------
  122. -- Records of XXL_JOB_QRTZ_LOCKS
  123. -- ----------------------------
  124. INSERT INTO `XXL_JOB_QRTZ_LOCKS` VALUES ('getSchedulerFactoryBean', 'STATE_ACCESS');
  125. INSERT INTO `XXL_JOB_QRTZ_LOCKS` VALUES ('getSchedulerFactoryBean', 'TRIGGER_ACCESS');
  126. -- ----------------------------
  127. -- Table structure for XXL_JOB_QRTZ_PAUSED_TRIGGER_GRPS
  128. -- ----------------------------
  129. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_PAUSED_TRIGGER_GRPS`;
  130. CREATE TABLE `XXL_JOB_QRTZ_PAUSED_TRIGGER_GRPS` (
  131. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  132. `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  133. PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
  134. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  135. -- ----------------------------
  136. -- Table structure for XXL_JOB_QRTZ_SCHEDULER_STATE
  137. -- ----------------------------
  138. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_SCHEDULER_STATE`;
  139. CREATE TABLE `XXL_JOB_QRTZ_SCHEDULER_STATE` (
  140. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  141. `INSTANCE_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  142. `LAST_CHECKIN_TIME` bigint(13) NOT NULL,
  143. `CHECKIN_INTERVAL` bigint(13) NOT NULL,
  144. PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE
  145. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  146. -- ----------------------------
  147. -- Records of XXL_JOB_QRTZ_SCHEDULER_STATE
  148. -- ----------------------------
  149. INSERT INTO `XXL_JOB_QRTZ_SCHEDULER_STATE` VALUES ('getSchedulerFactoryBean', 'DESKTOP-AQDP0691547908833367', 1547912525884, 5000);
  150. -- ----------------------------
  151. -- Table structure for XXL_JOB_QRTZ_SIMPLE_TRIGGERS
  152. -- ----------------------------
  153. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_SIMPLE_TRIGGERS`;
  154. CREATE TABLE `XXL_JOB_QRTZ_SIMPLE_TRIGGERS` (
  155. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  156. `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  157. `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  158. `REPEAT_COUNT` bigint(7) NOT NULL,
  159. `REPEAT_INTERVAL` bigint(12) NOT NULL,
  160. `TIMES_TRIGGERED` bigint(10) NOT NULL,
  161. PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  162. CONSTRAINT `XXL_JOB_QRTZ_SIMPLE_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `XXL_JOB_QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
  163. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  164. -- ----------------------------
  165. -- Table structure for XXL_JOB_QRTZ_SIMPROP_TRIGGERS
  166. -- ----------------------------
  167. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_SIMPROP_TRIGGERS`;
  168. CREATE TABLE `XXL_JOB_QRTZ_SIMPROP_TRIGGERS` (
  169. `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  170. `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  171. `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  172. `STR_PROP_1` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  173. `STR_PROP_2` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  174. `STR_PROP_3` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  175. `INT_PROP_1` int(11) NULL DEFAULT NULL,
  176. `INT_PROP_2` int(11) NULL DEFAULT NULL,
  177. `LONG_PROP_1` bigint(20) NULL DEFAULT NULL,
  178. `LONG_PROP_2` bigint(20) NULL DEFAULT NULL,
  179. `DEC_PROP_1` decimal(13, 4) NULL DEFAULT NULL,
  180. `DEC_PROP_2` decimal(13, 4) NULL DEFAULT NULL,
  181. `BOOL_PROP_1` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  182. `BOOL_PROP_2` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  183. PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  184. CONSTRAINT `XXL_JOB_QRTZ_SIMPROP_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `XXL_JOB_QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
  185. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  186. -- ----------------------------
  187. -- Table structure for XXL_JOB_QRTZ_TRIGGER_GROUP
  188. -- ----------------------------
  189. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_TRIGGER_GROUP`;
  190. CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_GROUP` (
  191. `id` int(11) NOT NULL AUTO_INCREMENT,
  192. `app_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '执行器AppName',
  193. `title` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '执行器名称',
  194. `order` tinyint(4) NOT NULL DEFAULT 0 COMMENT '排序',
  195. `address_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '执行器地址类型:0=自动注册、1=手动录入',
  196. `address_list` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行器地址列表,多地址逗号分隔',
  197. PRIMARY KEY (`id`) USING BTREE
  198. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  199. -- ----------------------------
  200. -- Records of XXL_JOB_QRTZ_TRIGGER_GROUP
  201. -- ----------------------------
  202. INSERT INTO `XXL_JOB_QRTZ_TRIGGER_GROUP` VALUES (1, 'xxl-job-executor-sample', '示例执行器', 1, 0, '192.168.31.79:9777');
  203. -- ----------------------------
  204. -- Table structure for XXL_JOB_QRTZ_TRIGGER_INFO
  205. -- ----------------------------
  206. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_TRIGGER_INFO`;
  207. CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_INFO` (
  208. `id` int(11) NOT NULL AUTO_INCREMENT,
  209. `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
  210. `job_cron` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务执行CRON',
  211. `job_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  212. `add_time` datetime(0) NULL DEFAULT NULL,
  213. `update_time` datetime(0) NULL DEFAULT NULL,
  214. `author` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '作者',
  215. `alarm_email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报警邮件',
  216. `executor_route_strategy` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行器路由策略',
  217. `executor_handler` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行器任务handler',
  218. `executor_param` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行器任务参数',
  219. `executor_block_strategy` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '阻塞处理策略',
  220. `executor_timeout` int(11) NOT NULL DEFAULT 0 COMMENT '任务执行超时时间,单位秒',
  221. `executor_fail_retry_count` int(11) NOT NULL DEFAULT 0 COMMENT '失败重试次数',
  222. `glue_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'GLUE类型',
  223. `glue_source` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT 'GLUE源代码',
  224. `glue_remark` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'GLUE备注',
  225. `glue_updatetime` datetime(0) NULL DEFAULT NULL COMMENT 'GLUE更新时间',
  226. `child_jobid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '子任务ID,多个逗号分隔',
  227. PRIMARY KEY (`id`) USING BTREE
  228. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  229. -- ----------------------------
  230. -- Records of XXL_JOB_QRTZ_TRIGGER_INFO
  231. -- ----------------------------
  232. INSERT INTO `XXL_JOB_QRTZ_TRIGGER_INFO` VALUES (1, 1, '0 0 0 * * ? *', '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2018-11-03 22:21:31', '');
  233. -- ----------------------------
  234. -- Table structure for XXL_JOB_QRTZ_TRIGGER_LOG
  235. -- ----------------------------
  236. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_TRIGGER_LOG`;
  237. CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_LOG` (
  238. `id` int(11) NOT NULL AUTO_INCREMENT,
  239. `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
  240. `job_id` int(11) NOT NULL COMMENT '任务,主键ID',
  241. `executor_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行器地址,本次执行的地址',
  242. `executor_handler` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行器任务handler',
  243. `executor_param` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行器任务参数',
  244. `executor_sharding_param` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行器任务分片参数,格式如 1/2',
  245. `executor_fail_retry_count` int(11) NOT NULL DEFAULT 0 COMMENT '失败重试次数',
  246. `trigger_time` datetime(0) NULL DEFAULT NULL COMMENT '调度-时间',
  247. `trigger_code` int(11) NOT NULL COMMENT '调度-结果',
  248. `trigger_msg` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '调度-日志',
  249. `handle_time` datetime(0) NULL DEFAULT NULL COMMENT '执行-时间',
  250. `handle_code` int(11) NOT NULL COMMENT '执行-状态',
  251. `handle_msg` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '执行-日志',
  252. `alarm_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败',
  253. PRIMARY KEY (`id`) USING BTREE,
  254. INDEX `I_trigger_time`(`trigger_time`) USING BTREE,
  255. INDEX `I_handle_code`(`handle_code`) USING BTREE
  256. ) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  257. -- ----------------------------
  258. -- Table structure for XXL_JOB_QRTZ_TRIGGER_LOGGLUE
  259. -- ----------------------------
  260. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_TRIGGER_LOGGLUE`;
  261. CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_LOGGLUE` (
  262. `id` int(11) NOT NULL AUTO_INCREMENT,
  263. `job_id` int(11) NOT NULL COMMENT '任务,主键ID',
  264. `glue_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'GLUE类型',
  265. `glue_source` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT 'GLUE源代码',
  266. `glue_remark` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'GLUE备注',
  267. `add_time` timestamp(0) NULL DEFAULT NULL,
  268. `update_time` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0),
  269. PRIMARY KEY (`id`) USING BTREE
  270. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  271. -- ----------------------------
  272. -- Table structure for XXL_JOB_QRTZ_TRIGGER_REGISTRY
  273. -- ----------------------------
  274. DROP TABLE IF EXISTS `XXL_JOB_QRTZ_TRIGGER_REGISTRY`;
  275. CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_REGISTRY` (
  276. `id` int(11) NOT NULL AUTO_INCREMENT,
  277. `registry_group` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  278. `registry_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  279. `registry_value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  280. `update_time` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  281. PRIMARY KEY (`id`) USING BTREE
  282. ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  283. -- ----------------------------
  284. -- Records of XXL_JOB_QRTZ_TRIGGER_REGISTRY
  285. -- ----------------------------
  286. INSERT INTO `XXL_JOB_QRTZ_TRIGGER_REGISTRY` VALUES (3, 'EXECUTOR', 'xxl-job-executor-sample', '192.168.31.79:9777', '2019-01-17 16:04:58');