123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- /*
- Navicat Premium Data Transfer
- Source Server : 百度云
- Source Server Type : MySQL
- Source Server Version : 50735
- Source Host : 180.76.231.231:6033
- Source Schema : xxl_job
- Target Server Type : MySQL
- Target Server Version : 50735
- File Encoding : 65001
- Date: 02/04/2023 15:54:32
- */
- SET NAMES utf8mb4;
- SET FOREIGN_KEY_CHECKS = 0;
- -- ----------------------------
- -- Table structure for xxl_job_group
- -- ----------------------------
- DROP TABLE IF EXISTS `xxl_job_group`;
- CREATE TABLE `xxl_job_group` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `app_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行器AppName',
- `title` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行器名称',
- `address_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '执行器地址类型:0=自动注册、1=手动录入',
- `address_list` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '执行器地址列表,多地址逗号分隔',
- `update_time` datetime NULL DEFAULT NULL,
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Records of xxl_job_group
- -- ----------------------------
- INSERT INTO `xxl_job_group` VALUES (1, 'xxl-job-executor-sample', '示例执行器', 0, NULL, '2023-04-02 15:54:15');
- INSERT INTO `xxl_job_group` VALUES (2, 'lottery-job', '抽奖系统任务调度', 0, 'http://192.168.0.4:9998/', '2023-04-02 15:54:15');
- -- ----------------------------
- -- Table structure for xxl_job_info
- -- ----------------------------
- DROP TABLE IF EXISTS `xxl_job_info`;
- CREATE TABLE `xxl_job_info` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
- `job_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
- `add_time` datetime NULL DEFAULT NULL,
- `update_time` datetime NULL DEFAULT NULL,
- `author` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '作者',
- `alarm_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '报警邮件',
- `schedule_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'NONE' COMMENT '调度类型',
- `schedule_conf` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '调度配置,值含义取决于调度类型',
- `misfire_strategy` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'DO_NOTHING' COMMENT '调度过期策略',
- `executor_route_strategy` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '执行器路由策略',
- `executor_handler` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '执行器任务handler',
- `executor_param` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '执行器任务参数',
- `executor_block_strategy` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '阻塞处理策略',
- `executor_timeout` int(11) NOT NULL DEFAULT 0 COMMENT '任务执行超时时间,单位秒',
- `executor_fail_retry_count` int(11) NOT NULL DEFAULT 0 COMMENT '失败重试次数',
- `glue_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'GLUE类型',
- `glue_source` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'GLUE源代码',
- `glue_remark` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'GLUE备注',
- `glue_updatetime` datetime NULL DEFAULT NULL COMMENT 'GLUE更新时间',
- `child_jobid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '子任务ID,多个逗号分隔',
- `trigger_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '调度状态:0-停止,1-运行',
- `trigger_last_time` bigint(13) NOT NULL DEFAULT 0 COMMENT '上次调度时间',
- `trigger_next_time` bigint(13) NOT NULL DEFAULT 0 COMMENT '下次调度时间',
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Records of xxl_job_info
- -- ----------------------------
- INSERT INTO `xxl_job_info` VALUES (1, 1, '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2018-11-03 22:21:31', '', 0, 0, 0);
- INSERT INTO `xxl_job_info` VALUES (2, 2, '活动状态扫描', '2023-03-01 14:30:05', '2023-03-01 14:30:05', 'seamew', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'lotteryActivityStateJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2023-03-01 14:30:05', '', 0, 0, 0);
- INSERT INTO `xxl_job_info` VALUES (3, 2, '扫描用户抽奖奖品发放MQ状态补偿', '2023-03-02 10:28:14', '2023-03-02 10:29:01', 'seamew', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'lotteryOrderMQStateJobHandler', '1,2', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2023-03-02 10:28:14', '', 0, 0, 0);
- -- ----------------------------
- -- Table structure for xxl_job_lock
- -- ----------------------------
- DROP TABLE IF EXISTS `xxl_job_lock`;
- CREATE TABLE `xxl_job_lock` (
- `lock_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '锁名称',
- PRIMARY KEY (`lock_name`) USING BTREE
- ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Records of xxl_job_lock
- -- ----------------------------
- INSERT INTO `xxl_job_lock` VALUES ('schedule_lock');
- -- ----------------------------
- -- Table structure for xxl_job_log
- -- ----------------------------
- DROP TABLE IF EXISTS `xxl_job_log`;
- CREATE TABLE `xxl_job_log` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
- `job_id` int(11) NOT NULL COMMENT '任务,主键ID',
- `executor_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '执行器地址,本次执行的地址',
- `executor_handler` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '执行器任务handler',
- `executor_param` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '执行器任务参数',
- `executor_sharding_param` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '执行器任务分片参数,格式如 1/2',
- `executor_fail_retry_count` int(11) NOT NULL DEFAULT 0 COMMENT '失败重试次数',
- `trigger_time` datetime NULL DEFAULT NULL COMMENT '调度-时间',
- `trigger_code` int(11) NOT NULL COMMENT '调度-结果',
- `trigger_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '调度-日志',
- `handle_time` datetime NULL DEFAULT NULL COMMENT '执行-时间',
- `handle_code` int(11) NOT NULL COMMENT '执行-状态',
- `handle_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '执行-日志',
- `alarm_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败',
- PRIMARY KEY (`id`) USING BTREE,
- INDEX `I_trigger_time`(`trigger_time`) USING BTREE,
- INDEX `I_handle_code`(`handle_code`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Records of xxl_job_log
- -- ----------------------------
- -- ----------------------------
- -- Table structure for xxl_job_log_report
- -- ----------------------------
- DROP TABLE IF EXISTS `xxl_job_log_report`;
- CREATE TABLE `xxl_job_log_report` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `trigger_day` datetime NULL DEFAULT NULL COMMENT '调度-时间',
- `running_count` int(11) NOT NULL DEFAULT 0 COMMENT '运行中-日志数量',
- `suc_count` int(11) NOT NULL DEFAULT 0 COMMENT '执行成功-日志数量',
- `fail_count` int(11) NOT NULL DEFAULT 0 COMMENT '执行失败-日志数量',
- `update_time` datetime NULL DEFAULT NULL,
- PRIMARY KEY (`id`) USING BTREE,
- UNIQUE INDEX `i_trigger_day`(`trigger_day`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Records of xxl_job_log_report
- -- ----------------------------
- INSERT INTO `xxl_job_log_report` VALUES (1, '2023-03-01 00:00:00', 0, 6, 1, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (2, '2023-02-28 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (3, '2023-02-27 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (4, '2023-03-02 00:00:00', 0, 8, 12, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (5, '2023-03-03 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (6, '2023-03-04 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (7, '2023-03-05 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (8, '2023-03-06 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (9, '2023-03-07 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (10, '2023-03-08 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (11, '2023-03-09 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (12, '2023-03-10 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (13, '2023-03-11 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (14, '2023-03-12 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (15, '2023-03-13 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (16, '2023-03-14 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (17, '2023-03-15 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (18, '2023-03-16 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (19, '2023-03-17 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (20, '2023-03-18 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (21, '2023-03-19 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (22, '2023-03-20 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (23, '2023-03-21 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (24, '2023-03-22 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (25, '2023-03-23 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (26, '2023-03-24 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (27, '2023-03-25 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (28, '2023-03-26 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (29, '2023-03-27 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (30, '2023-03-28 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (31, '2023-03-29 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (32, '2023-03-30 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (33, '2023-03-31 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (34, '2023-04-01 00:00:00', 0, 0, 0, NULL);
- INSERT INTO `xxl_job_log_report` VALUES (35, '2023-04-02 00:00:00', 0, 0, 0, NULL);
- -- ----------------------------
- -- Table structure for xxl_job_logglue
- -- ----------------------------
- DROP TABLE IF EXISTS `xxl_job_logglue`;
- CREATE TABLE `xxl_job_logglue` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `job_id` int(11) NOT NULL COMMENT '任务,主键ID',
- `glue_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'GLUE类型',
- `glue_source` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'GLUE源代码',
- `glue_remark` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'GLUE备注',
- `add_time` datetime NULL DEFAULT NULL,
- `update_time` datetime NULL DEFAULT NULL,
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Records of xxl_job_logglue
- -- ----------------------------
- -- ----------------------------
- -- Table structure for xxl_job_registry
- -- ----------------------------
- DROP TABLE IF EXISTS `xxl_job_registry`;
- CREATE TABLE `xxl_job_registry` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `registry_group` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
- `registry_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
- `registry_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
- `update_time` datetime NULL DEFAULT NULL,
- PRIMARY KEY (`id`) USING BTREE,
- INDEX `i_g_k_v`(`registry_group`, `registry_key`, `registry_value`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 117 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Records of xxl_job_registry
- -- ----------------------------
- INSERT INTO `xxl_job_registry` VALUES (116, 'EXECUTOR', 'lottery-job', 'http://192.168.0.4:9998/', '2023-04-02 15:54:00');
- -- ----------------------------
- -- Table structure for xxl_job_user
- -- ----------------------------
- DROP TABLE IF EXISTS `xxl_job_user`;
- CREATE TABLE `xxl_job_user` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
- `password` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码',
- `role` tinyint(4) NOT NULL COMMENT '角色:0-普通用户、1-管理员',
- `permission` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限:执行器ID列表,多个逗号分割',
- PRIMARY KEY (`id`) USING BTREE,
- UNIQUE INDEX `i_username`(`username`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Records of xxl_job_user
- -- ----------------------------
- INSERT INTO `xxl_job_user` VALUES (1, 'admin', 'ffa569e559909982e0ec38b7889b97d3', 1, NULL);
- SET FOREIGN_KEY_CHECKS = 1;
|