mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
286 lines
12 KiB
PL/PgSQL
286 lines
12 KiB
PL/PgSQL
/*
|
|
Navicat Premium Data Transfer
|
|
|
|
Source Server : local-mysql001
|
|
Source Server Type : MySQL
|
|
Source Server Version : 50718
|
|
Source Host : localhost:3306
|
|
Source Schema : ruoyi-vue-pro
|
|
|
|
Target Server Type : MySQL
|
|
Target Server Version : 50718
|
|
File Encoding : 65001
|
|
|
|
Date: 03/05/2021 12:01:37
|
|
*/
|
|
|
|
SET NAMES utf8mb4;
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_BLOB_TRIGGERS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`;
|
|
CREATE TABLE `QRTZ_BLOB_TRIGGERS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
|
`BLOB_DATA` blob,
|
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
|
KEY `SCHED_NAME` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
|
CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_BLOB_TRIGGERS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_CALENDARS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_CALENDARS`;
|
|
CREATE TABLE `QRTZ_CALENDARS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`CALENDAR_NAME` varchar(190) NOT NULL,
|
|
`CALENDAR` blob NOT NULL,
|
|
PRIMARY KEY (`SCHED_NAME`,`CALENDAR_NAME`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_CALENDARS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_CRON_TRIGGERS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`;
|
|
CREATE TABLE `QRTZ_CRON_TRIGGERS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
|
`CRON_EXPRESSION` varchar(120) NOT NULL,
|
|
`TIME_ZONE_ID` varchar(80) DEFAULT NULL,
|
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
|
CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_CRON_TRIGGERS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', '0 * * * * ? *', 'Asia/Shanghai');
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_FIRED_TRIGGERS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`;
|
|
CREATE TABLE `QRTZ_FIRED_TRIGGERS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`ENTRY_ID` varchar(95) NOT NULL,
|
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
|
`INSTANCE_NAME` varchar(190) NOT NULL,
|
|
`FIRED_TIME` bigint(13) NOT NULL,
|
|
`SCHED_TIME` bigint(13) NOT NULL,
|
|
`PRIORITY` int(11) NOT NULL,
|
|
`STATE` varchar(16) NOT NULL,
|
|
`JOB_NAME` varchar(190) DEFAULT NULL,
|
|
`JOB_GROUP` varchar(190) DEFAULT NULL,
|
|
`IS_NONCONCURRENT` varchar(1) DEFAULT NULL,
|
|
`REQUESTS_RECOVERY` varchar(1) DEFAULT NULL,
|
|
PRIMARY KEY (`SCHED_NAME`,`ENTRY_ID`),
|
|
KEY `IDX_QRTZ_FT_TRIG_INST_NAME` (`SCHED_NAME`,`INSTANCE_NAME`),
|
|
KEY `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY` (`SCHED_NAME`,`INSTANCE_NAME`,`REQUESTS_RECOVERY`),
|
|
KEY `IDX_QRTZ_FT_J_G` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
|
|
KEY `IDX_QRTZ_FT_JG` (`SCHED_NAME`,`JOB_GROUP`),
|
|
KEY `IDX_QRTZ_FT_T_G` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
|
KEY `IDX_QRTZ_FT_TG` (`SCHED_NAME`,`TRIGGER_GROUP`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_FIRED_TRIGGERS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_JOB_DETAILS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`;
|
|
CREATE TABLE `QRTZ_JOB_DETAILS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`JOB_NAME` varchar(190) NOT NULL,
|
|
`JOB_GROUP` varchar(190) NOT NULL,
|
|
`DESCRIPTION` varchar(250) DEFAULT NULL,
|
|
`JOB_CLASS_NAME` varchar(250) NOT NULL,
|
|
`IS_DURABLE` varchar(1) NOT NULL,
|
|
`IS_NONCONCURRENT` varchar(1) NOT NULL,
|
|
`IS_UPDATE_DATA` varchar(1) NOT NULL,
|
|
`REQUESTS_RECOVERY` varchar(1) NOT NULL,
|
|
`JOB_DATA` blob,
|
|
PRIMARY KEY (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
|
|
KEY `IDX_QRTZ_J_REQ_RECOVERY` (`SCHED_NAME`,`REQUESTS_RECOVERY`),
|
|
KEY `IDX_QRTZ_J_GRP` (`SCHED_NAME`,`JOB_GROUP`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_JOB_DETAILS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000037400104A4F425F48414E444C45525F4E414D457400187379735573657253657373696F6E54696D656F75744A6F627800);
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_LOCKS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_LOCKS`;
|
|
CREATE TABLE `QRTZ_LOCKS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`LOCK_NAME` varchar(40) NOT NULL,
|
|
PRIMARY KEY (`SCHED_NAME`,`LOCK_NAME`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_LOCKS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
INSERT INTO `QRTZ_LOCKS` VALUES ('schedulerName', 'STATE_ACCESS');
|
|
INSERT INTO `QRTZ_LOCKS` VALUES ('schedulerName', 'TRIGGER_ACCESS');
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`;
|
|
CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_GROUP`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_PAUSED_TRIGGER_GRPS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_SCHEDULER_STATE
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`;
|
|
CREATE TABLE `QRTZ_SCHEDULER_STATE` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`INSTANCE_NAME` varchar(190) NOT NULL,
|
|
`LAST_CHECKIN_TIME` bigint(13) NOT NULL,
|
|
`CHECKIN_INTERVAL` bigint(13) NOT NULL,
|
|
PRIMARY KEY (`SCHED_NAME`,`INSTANCE_NAME`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_SCHEDULER_STATE
|
|
-- ----------------------------
|
|
BEGIN;
|
|
INSERT INTO `QRTZ_SCHEDULER_STATE` VALUES ('schedulerName', 'Yunai1620010117445', 1620010210071, 15000);
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_SIMPLE_TRIGGERS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`;
|
|
CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
|
`REPEAT_COUNT` bigint(7) NOT NULL,
|
|
`REPEAT_INTERVAL` bigint(12) NOT NULL,
|
|
`TIMES_TRIGGERED` bigint(10) NOT NULL,
|
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
|
CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_SIMPLE_TRIGGERS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_SIMPROP_TRIGGERS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`;
|
|
CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
|
`STR_PROP_1` varchar(512) DEFAULT NULL,
|
|
`STR_PROP_2` varchar(512) DEFAULT NULL,
|
|
`STR_PROP_3` varchar(512) DEFAULT NULL,
|
|
`INT_PROP_1` int(11) DEFAULT NULL,
|
|
`INT_PROP_2` int(11) DEFAULT NULL,
|
|
`LONG_PROP_1` bigint(20) DEFAULT NULL,
|
|
`LONG_PROP_2` bigint(20) DEFAULT NULL,
|
|
`DEC_PROP_1` decimal(13,4) DEFAULT NULL,
|
|
`DEC_PROP_2` decimal(13,4) DEFAULT NULL,
|
|
`BOOL_PROP_1` varchar(1) DEFAULT NULL,
|
|
`BOOL_PROP_2` varchar(1) DEFAULT NULL,
|
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
|
CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_SIMPROP_TRIGGERS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
COMMIT;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for QRTZ_TRIGGERS
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `QRTZ_TRIGGERS`;
|
|
CREATE TABLE `QRTZ_TRIGGERS` (
|
|
`SCHED_NAME` varchar(120) NOT NULL,
|
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
|
`JOB_NAME` varchar(190) NOT NULL,
|
|
`JOB_GROUP` varchar(190) NOT NULL,
|
|
`DESCRIPTION` varchar(250) DEFAULT NULL,
|
|
`NEXT_FIRE_TIME` bigint(13) DEFAULT NULL,
|
|
`PREV_FIRE_TIME` bigint(13) DEFAULT NULL,
|
|
`PRIORITY` int(11) DEFAULT NULL,
|
|
`TRIGGER_STATE` varchar(16) NOT NULL,
|
|
`TRIGGER_TYPE` varchar(8) NOT NULL,
|
|
`START_TIME` bigint(13) NOT NULL,
|
|
`END_TIME` bigint(13) DEFAULT NULL,
|
|
`CALENDAR_NAME` varchar(190) DEFAULT NULL,
|
|
`MISFIRE_INSTR` smallint(2) DEFAULT NULL,
|
|
`JOB_DATA` blob,
|
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
|
KEY `IDX_QRTZ_T_J` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
|
|
KEY `IDX_QRTZ_T_JG` (`SCHED_NAME`,`JOB_GROUP`),
|
|
KEY `IDX_QRTZ_T_C` (`SCHED_NAME`,`CALENDAR_NAME`),
|
|
KEY `IDX_QRTZ_T_G` (`SCHED_NAME`,`TRIGGER_GROUP`),
|
|
KEY `IDX_QRTZ_T_STATE` (`SCHED_NAME`,`TRIGGER_STATE`),
|
|
KEY `IDX_QRTZ_T_N_STATE` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
|
|
KEY `IDX_QRTZ_T_N_G_STATE` (`SCHED_NAME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
|
|
KEY `IDX_QRTZ_T_NEXT_FIRE_TIME` (`SCHED_NAME`,`NEXT_FIRE_TIME`),
|
|
KEY `IDX_QRTZ_T_NFT_ST` (`SCHED_NAME`,`TRIGGER_STATE`,`NEXT_FIRE_TIME`),
|
|
KEY `IDX_QRTZ_T_NFT_MISFIRE` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`),
|
|
KEY `IDX_QRTZ_T_NFT_ST_MISFIRE` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_STATE`),
|
|
KEY `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
|
|
CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `QRTZ_JOB_DETAILS` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- ----------------------------
|
|
-- Records of QRTZ_TRIGGERS
|
|
-- ----------------------------
|
|
BEGIN;
|
|
INSERT INTO `QRTZ_TRIGGERS` VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', 'sysUserSessionTimeoutJob', 'DEFAULT', NULL, 1620010260000, 1620010200000, 5, 'WAITING', 'CRON', 1613649236000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000007D074000F4A4F425F52455452595F434F554E547371007E0009000000037800);
|
|
COMMIT;
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|