2017-11-01 17:55:49 +08:00
/*
2018-01-24 21:33:06 +08:00
Navicat Premium Data Transfer
2017-11-01 17:55:49 +08:00
2018-04-22 20:44:42 +08:00
Source Server : 139 . 224 . 200 . 249
2018-01-24 21:33:06 +08:00
Source Server Type : MySQL
2018-04-22 20:44:42 +08:00
Source Server Version : 50721
Source Host : 139 . 224 . 200 . 249
2018-01-24 21:33:06 +08:00
Source Database : pig
2017-11-01 17:55:49 +08:00
2018-01-24 21:33:06 +08:00
Target Server Type : MySQL
2018-04-22 20:44:42 +08:00
Target Server Version : 50721
2018-01-24 21:33:06 +08:00
File Encoding : utf - 8
2017-11-01 17:55:49 +08:00
2018-05-12 00:15:42 +08:00
Date : 05 / 12 / 2018 00 : 14 : 55 AM
2017-11-01 17:55:49 +08:00
* /
2018-01-24 21:33:06 +08:00
SET NAMES utf8 ;
SET FOREIGN_KEY_CHECKS = 0 ;
2017-11-01 17:55:49 +08:00
2018-03-27 08:48:14 +08:00
-- ----------------------------
-- Table structure for `JOB_EXECUTION_LOG`
-- ----------------------------
DROP TABLE IF EXISTS ` JOB_EXECUTION_LOG ` ;
CREATE TABLE ` JOB_EXECUTION_LOG ` (
` id ` varchar ( 40 ) NOT NULL ,
` job_name ` varchar ( 100 ) NOT NULL ,
` task_id ` varchar ( 255 ) NOT NULL ,
` hostname ` varchar ( 255 ) NOT NULL ,
` ip ` varchar ( 50 ) NOT NULL ,
` sharding_item ` int ( 11 ) NOT NULL ,
` execution_source ` varchar ( 20 ) NOT NULL ,
` failure_cause ` varchar ( 4000 ) DEFAULT NULL ,
` is_success ` int ( 11 ) NOT NULL ,
` start_time ` timestamp NULL DEFAULT NULL ,
` complete_time ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
2018-04-22 20:44:42 +08:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 ;
2018-03-27 08:48:14 +08:00
2018-05-12 00:15:42 +08:00
-- ----------------------------
-- Records of `JOB_EXECUTION_LOG`
-- ----------------------------
BEGIN ;
INSERT INTO ` JOB_EXECUTION_LOG ` VALUES ( ' 00bb7b84-5f66-4b36-b13d-7798ee6d4ff7 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@9983 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 19:00:00 ' , ' 2018-05-11 19:00:00 ' ) , ( ' 01d31f4d-457c-41cf-b81c-d90fe74b1edd ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@9983 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 15:00:00 ' , ' 2018-05-11 15:00:00 ' ) , ( ' 020fa499-0acf-4bbd-bef0-9bcebe21ba09 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 10:00:00 ' , ' 2018-05-11 10:00:00 ' ) , ( ' 0442a765-c82b-43a6-8be4-f91eaab8d671 ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 10:00:00 ' , ' 2018-05-11 10:00:00 ' ) , ( ' 071cb37d-217c-4fde-8a8d-4a4018a7ce24 ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 0 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 10:00:00 ' , ' 2018-05-11 10:00:00 ' ) , ( ' 08091389-12df-4214-86a0-97c4876415f9 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@9983 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-12 00:00:00 ' , ' 2018-05-12 00:00:00 ' ) , ( ' 0a5965b8-5a63-4a3a-9dcf-a5b91f3f73b6 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 04:00:00 ' , ' 2018-05-10 04:00:00 ' ) , ( ' 0a92f17f-7dc1-4b98-b422-6aba4fa92dba ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 11:00:00 ' , ' 2018-05-10 11:00:00 ' ) , ( ' 0b3c3c9d-a3e3-4ba1-931b-c880c80f5ee4 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 12:00:00 ' , ' 2018-05-10 12:00:00 ' ) , ( ' 0b50c30a-8064-44d3-8974-8b1e6de54146 ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 16:00:00 ' , ' 2018-05-10 16:00:00 ' ) , ( ' 0ca96da4-246d-4f05-a687-02ae6260f9ed ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@9983 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 17:00:00 ' , ' 2018-05-11 17:00:00 ' ) , ( ' 0ce557c5-9d8d-47d3-be84-0b280507e7f0 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 21:00:00 ' , ' 2018-05-10 21:00:00 ' ) , ( ' 0d3a4c50-705d-4861-8973-826b847b5f66 ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 02:00:00 ' , ' 2018-05-10 02:00:00 ' ) , ( ' 0f4c35cd-6926-421b-bcad-4454cd5e5b4d ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@9983 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORM
INSERT INTO ` JOB_EXECUTION_LOG ` VALUES ( ' c48b702b-251f-417f-99d7-28691e739dcc ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 23:00:00 ' , ' 2018-05-10 23:00:00 ' ) , ( ' c493cf22-9deb-485f-a76a-813302d33f95 ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 0 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 00:00:00 ' , ' 2018-05-10 00:00:00 ' ) , ( ' c6db89be-5c8c-4868-8aeb-f9b1b752a5b2 ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 01:00:00 ' , ' 2018-05-10 01:00:00 ' ) , ( ' c72c0af3-6d32-464b-9cbc-4190218c9c1c ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 17:00:00 ' , ' 2018-05-10 17:00:00 ' ) , ( ' c76d20e7-a73f-40b0-8137-584284fd671a ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 0 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 04:00:00 ' , ' 2018-05-11 04:00:00 ' ) , ( ' c7a1705d-cc07-4689-b248-e00e05427de8 ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@9983 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 15:00:00 ' , ' 2018-05-11 15:00:00 ' ) , ( ' c7a586d9-a158-49b6-955d-65c27bf6816b ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 05:00:00 ' , ' 2018-05-10 05:00:00 ' ) , ( ' c877033f-f89f-4c03-9884-c3dd869577b8 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 0 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 09:00:00 ' , ' 2018-05-11 09:00:00 ' ) , ( ' c8aa0413-f29f-4c46-ae6d-fb2da04ef04f ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 0 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 06:00:00 ' , ' 2018-05-11 06:00:00 ' ) , ( ' c98d7686-fc74-4111-86f0-27cbd52a86ce ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-10 18:00:00 ' , ' 2018-05-10 18:00:00 ' ) , ( ' c9b6a6e2-6f8f-43e3-b582-415902392b93 ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 04:00:00 ' , ' 2018-05-11 04:00:00 ' ) , ( ' caee7064-f1f9-44c2-a544-c5044d46f94e ' , ' com.github.pig.daemon.job.PigSimpleJob ' , ' com.github.pig.daemon.job.PigSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@9983 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 1 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-12 00:00:00 ' , ' 2018-05-12 00:00:00 ' ) , ( ' cb89a27c-4f70-46cd-b01d-1a594a8a7df4 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@9983 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 2 ' , ' NORMAL_TRIGGER ' , null , ' 1 ' , ' 2018-05-11 12:00:00 ' , ' 2018-05-11 12:00:00 ' ) , ( ' cbb07e18-18a4-4d51-bee4-93c21b1691a9 ' , ' com.github.pig.daemon.job.DemoSimpleJob ' , ' com.github.pig.daemon.job.DemoSimpleJob@-@0,1,2@-@READY@-@139.224.200.249@-@22133 ' , ' iZuf67kf3vjkywias79fzgZ ' , ' 139.224.200.249 ' , ' 0 ' , ' NORMAL
COMMIT ;
2018-03-27 08:48:14 +08:00
-- ----------------------------
-- Table structure for `JOB_STATUS_TRACE_LOG`
-- ----------------------------
DROP TABLE IF EXISTS ` JOB_STATUS_TRACE_LOG ` ;
CREATE TABLE ` JOB_STATUS_TRACE_LOG ` (
` id ` varchar ( 40 ) NOT NULL ,
` job_name ` varchar ( 100 ) NOT NULL ,
` original_task_id ` varchar ( 255 ) NOT NULL ,
` task_id ` varchar ( 255 ) NOT NULL ,
` slave_id ` varchar ( 50 ) NOT NULL ,
` source ` varchar ( 50 ) NOT NULL ,
` execution_type ` varchar ( 20 ) NOT NULL ,
` sharding_item ` varchar ( 100 ) NOT NULL ,
` state ` varchar ( 20 ) NOT NULL ,
` message ` varchar ( 4000 ) DEFAULT NULL ,
` creation_time ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
KEY ` TASK_ID_STATE_INDEX ` ( ` task_id ` , ` state ` )
2018-04-22 20:44:42 +08:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 ;
2018-03-27 08:48:14 +08:00
2018-01-25 11:21:59 +08:00
-- ----------------------------
-- Table structure for `sys_UserConnection`
-- ----------------------------
DROP TABLE IF EXISTS ` sys_UserConnection ` ;
CREATE TABLE ` sys_UserConnection ` (
` userId ` varchar ( 128 ) CHARACTER SET utf8mb4 NOT NULL ,
` providerId ` varchar ( 128 ) CHARACTER SET utf8mb4 NOT NULL ,
` providerUserId ` varchar ( 128 ) CHARACTER SET utf8mb4 NOT NULL ,
` rank ` int ( 11 ) NOT NULL ,
` displayName ` varchar ( 255 ) CHARACTER SET utf8mb4 DEFAULT NULL ,
` profileUrl ` varchar ( 512 ) CHARACTER SET utf8mb4 DEFAULT NULL ,
` imageUrl ` varchar ( 512 ) CHARACTER SET utf8mb4 DEFAULT NULL ,
` accessToken ` varchar ( 512 ) CHARACTER SET utf8mb4 NOT NULL ,
` secret ` varchar ( 512 ) CHARACTER SET utf8mb4 DEFAULT NULL ,
` refreshToken ` varchar ( 512 ) CHARACTER SET utf8mb4 DEFAULT NULL ,
` expireTime ` bigint ( 20 ) DEFAULT NULL ,
PRIMARY KEY ( ` userId ` , ` providerId ` , ` providerUserId ` ) ,
UNIQUE KEY ` UserConnectionRank ` ( ` userId ` , ` providerId ` , ` rank ` )
2018-02-04 22:53:31 +08:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = DYNAMIC ;
2018-01-25 11:21:59 +08:00
-- ----------------------------
-- Records of `sys_UserConnection`
-- ----------------------------
BEGIN ;
INSERT INTO ` sys_UserConnection ` VALUES ( ' B86F3FDF72CD481F4AA094A2345BF446 ' , ' qq ' , ' B86F3FDF72CD481F4AA094A2345BF446 ' , ' 1 ' , ' 冷冷 ' , null , ' http://q.qlogo.cn/qqapp/101322838/B86F3FDF72CD481F4AA094A2345BF446/40 ' , ' E09B51404CDC276F463D05DF1C573514 ' , null , ' B30A1C7C8601259F220807DD2EAA412E ' , ' 1524300218147 ' ) ;
COMMIT ;
2017-11-19 22:54:50 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
-- Table structure for `sys_dept`
-- ----------------------------
DROP TABLE IF EXISTS ` sys_dept ` ;
CREATE TABLE ` sys_dept ` (
` dept_id ` int ( 20 ) NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 50 ) DEFAULT NULL COMMENT ' 部门名称 ' ,
` order_num ` int ( 11 ) DEFAULT NULL COMMENT ' 排序 ' ,
` create_time ` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` update_time ` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT ' 修改时间 ' ,
` del_flag ` char ( 1 ) DEFAULT ' 0 ' COMMENT ' 是否删除 -1: 已删除 0: 正常 ' ,
` parent_id ` int ( 11 ) DEFAULT NULL ,
PRIMARY KEY ( ` dept_id ` )
2018-02-04 22:53:31 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 10 DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' 部门管理 ' ;
2018-01-24 21:33:06 +08:00
-- ----------------------------
-- Records of `sys_dept`
-- ----------------------------
BEGIN ;
2018-03-27 08:48:14 +08:00
INSERT INTO ` sys_dept ` VALUES ( ' 1 ' , ' 山东农信 ' , null , ' 2018-01-22 19:00:23 ' , ' 2018-01-23 12:40:46 ' , ' 0 ' , ' 0 ' ) , ( ' 2 ' , ' 沙县国际 ' , null , ' 2018-01-22 19:00:38 ' , ' 2018-01-23 12:42:04 ' , ' 0 ' , ' 0 ' ) , ( ' 3 ' , ' 潍坊农信 ' , null , ' 2018-01-22 19:00:44 ' , ' 2018-01-23 12:40:56 ' , ' 0 ' , ' 1 ' ) , ( ' 4 ' , ' 高新农信 ' , null , ' 2018-01-22 19:00:52 ' , ' 2018-01-23 12:41:11 ' , ' 0 ' , ' 3 ' ) , ( ' 5 ' , ' 院校农信 ' , null , ' 2018-01-22 19:00:57 ' , ' 2018-01-23 12:41:22 ' , ' 0 ' , ' 4 ' ) , ( ' 6 ' , ' 潍坊学院农信 ' , ' 115 ' , ' 2018-01-22 19:01:06 ' , ' 2018-03-07 16:22:04 ' , ' 0 ' , ' 5 ' ) , ( ' 7 ' , ' 山东沙县 ' , null , ' 2018-01-22 19:01:57 ' , ' 2018-01-23 12:42:15 ' , ' 0 ' , ' 2 ' ) , ( ' 8 ' , ' 潍坊沙县 ' , null , ' 2018-01-22 19:02:03 ' , ' 2018-01-23 12:42:23 ' , ' 0 ' , ' 7 ' ) , ( ' 9 ' , ' 高新沙县 ' , null , ' 2018-01-22 19:02:14 ' , ' 2018-03-07 16:28:14 ' , ' 0 ' , ' 8 ' ) ;
2018-01-24 21:33:06 +08:00
COMMIT ;
-- ----------------------------
-- Table structure for `sys_dept_relation`
-- ----------------------------
DROP TABLE IF EXISTS ` sys_dept_relation ` ;
CREATE TABLE ` sys_dept_relation ` (
` ancestor ` int ( 11 ) NOT NULL COMMENT ' 祖先节点 ' ,
` descendant ` int ( 11 ) NOT NULL COMMENT ' 后代节点 ' ,
PRIMARY KEY ( ` ancestor ` , ` descendant ` ) ,
2018-02-04 22:53:31 +08:00
KEY ` idx1 ` ( ` ancestor ` ) ,
KEY ` idx2 ` ( ` descendant ` )
) ENGINE = InnoDB DEFAULT CHARSET = latin1 ROW_FORMAT = DYNAMIC ;
2018-01-24 21:33:06 +08:00
-- ----------------------------
-- Records of `sys_dept_relation`
-- ----------------------------
BEGIN ;
INSERT INTO ` sys_dept_relation ` VALUES ( ' 1 ' , ' 1 ' ) , ( ' 1 ' , ' 3 ' ) , ( ' 1 ' , ' 4 ' ) , ( ' 1 ' , ' 5 ' ) , ( ' 1 ' , ' 6 ' ) , ( ' 2 ' , ' 2 ' ) , ( ' 2 ' , ' 7 ' ) , ( ' 2 ' , ' 8 ' ) , ( ' 2 ' , ' 9 ' ) , ( ' 3 ' , ' 3 ' ) , ( ' 3 ' , ' 4 ' ) , ( ' 3 ' , ' 5 ' ) , ( ' 3 ' , ' 6 ' ) , ( ' 4 ' , ' 4 ' ) , ( ' 4 ' , ' 5 ' ) , ( ' 4 ' , ' 6 ' ) , ( ' 5 ' , ' 5 ' ) , ( ' 5 ' , ' 6 ' ) , ( ' 6 ' , ' 6 ' ) , ( ' 7 ' , ' 7 ' ) , ( ' 7 ' , ' 8 ' ) , ( ' 7 ' , ' 9 ' ) , ( ' 8 ' , ' 8 ' ) , ( ' 8 ' , ' 9 ' ) , ( ' 9 ' , ' 9 ' ) ;
COMMIT ;
-- ----------------------------
-- Table structure for `sys_dict`
2017-11-19 22:54:50 +08:00
-- ----------------------------
DROP TABLE IF EXISTS ` sys_dict ` ;
CREATE TABLE ` sys_dict ` (
` id ` int ( 64 ) NOT NULL AUTO_INCREMENT COMMENT ' 编号 ' ,
` value ` varchar ( 100 ) NOT NULL COMMENT ' 数据值 ' ,
` label ` varchar ( 100 ) NOT NULL COMMENT ' 标签名 ' ,
` type ` varchar ( 100 ) NOT NULL COMMENT ' 类型 ' ,
` description ` varchar ( 100 ) NOT NULL COMMENT ' 描述 ' ,
` sort ` decimal ( 10 , 0 ) NOT NULL COMMENT ' 排序(升序) ' ,
` create_time ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
2018-01-24 21:33:06 +08:00
` update_time ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
2017-11-19 22:54:50 +08:00
` remarks ` varchar ( 255 ) DEFAULT NULL COMMENT ' 备注信息 ' ,
` del_flag ` char ( 1 ) NOT NULL DEFAULT ' 0 ' COMMENT ' 删除标记 ' ,
PRIMARY KEY ( ` id ` ) ,
KEY ` sys_dict_value ` ( ` value ` ) ,
KEY ` sys_dict_label ` ( ` label ` ) ,
KEY ` sys_dict_del_flag ` ( ` del_flag ` )
2018-05-12 00:15:42 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' 字典表 ' ;
2017-11-19 22:54:50 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
-- Records of `sys_dict`
2017-11-19 22:54:50 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
BEGIN ;
2018-05-12 00:15:42 +08:00
INSERT INTO ` sys_dict ` VALUES ( ' 2 ' , ' 9 ' , ' 异常 ' , ' log_type ' , ' 日志异常 ' , ' 1 ' , ' 2017-12-28 13:06:39 ' , ' 2018-01-06 10:54:41 ' , null , ' 0 ' ) , ( ' 3 ' , ' 0 ' , ' 正常 ' , ' log_type ' , ' 正常 ' , ' 1 ' , ' 2018-05-11 23:52:57 ' , ' 2018-05-11 23:52:57 ' , ' 123 ' , ' 0 ' ) ;
2018-01-24 21:33:06 +08:00
COMMIT ;
2017-11-19 22:54:50 +08:00
2017-11-29 18:30:01 +08:00
-- ----------------------------
2018-02-05 23:42:22 +08:00
-- Table structure for `sys_log_0`
2017-11-29 18:30:01 +08:00
-- ----------------------------
2018-02-05 23:42:22 +08:00
DROP TABLE IF EXISTS ` sys_log_0 ` ;
CREATE TABLE ` sys_log_0 ` (
` id ` bigint ( 64 ) NOT NULL COMMENT ' 编号 ' ,
` type ` char ( 1 ) DEFAULT ' 1 ' COMMENT ' 日志类型 ' ,
` title ` varchar ( 255 ) DEFAULT ' ' COMMENT ' 日志标题 ' ,
` service_id ` varchar ( 32 ) DEFAULT NULL COMMENT ' 服务ID ' ,
` create_by ` varchar ( 64 ) DEFAULT NULL COMMENT ' 创建者 ' ,
` create_time ` datetime DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` update_time ` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
` remote_addr ` varchar ( 255 ) DEFAULT NULL COMMENT ' 操作IP地址 ' ,
2018-04-24 15:32:19 +08:00
` user_agent ` varchar ( 1000 ) DEFAULT NULL COMMENT ' 用户代理 ' ,
2018-02-05 23:42:22 +08:00
` request_uri ` varchar ( 255 ) DEFAULT NULL COMMENT ' 请求URI ' ,
` method ` varchar ( 10 ) DEFAULT NULL COMMENT ' 操作方式 ' ,
` params ` text COMMENT ' 操作提交的数据 ' ,
` time ` mediumtext COMMENT ' 执行时间 ' ,
` del_flag ` char ( 1 ) DEFAULT ' 0 ' COMMENT ' 删除标记 ' ,
` exception ` text COMMENT ' 异常信息 ' ,
PRIMARY KEY ( ` id ` ) ,
KEY ` sys_log_create_by ` ( ` create_by ` ) ,
KEY ` sys_log_request_uri ` ( ` request_uri ` ) ,
KEY ` sys_log_type ` ( ` type ` ) ,
KEY ` sys_log_create_date ` ( ` create_time ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' 日志表 ' ;
2018-05-12 00:15:42 +08:00
-- ----------------------------
-- Records of `sys_log_0`
-- ----------------------------
BEGIN ;
INSERT INTO ` sys_log_0 ` VALUES ( ' 994972340860190722 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:07:46 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/95771526054865053 ' , ' GET ' , ' ' , ' 13 ' , ' 0 ' , null ) , ( ' 994972344404377602 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:07:47 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/51761526054865902 ' , ' GET ' , ' ' , ' 11 ' , ' 0 ' , null ) , ( ' 994972359608729602 ' , ' 9 ' , ' ' , ' pig-auth ' , ' anonymousUser ' , ' 2018-05-12 00:07:50 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /auth/oauth/token ' , ' POST ' , ' password=%5B123456%5D&randomStr=%5B51761526054865902%5D&code=%5Bnaga%5D&grant_type=%5Bpassword%5D&scope=%5Bserver%5D&username=%5Bpig%5D ' , ' 33 ' , ' 0 ' , ' {\"error\":\"unauthorized\",\"error_description\":null} ' ) , ( ' 994972382794842114 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:07:56 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/30851526054875038 ' , ' GET ' , ' ' , ' 11 ' , ' 0 ' , null ) , ( ' 994972398531870722 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:08:00 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/31271526054878679 ' , ' GET ' , ' ' , ' 12 ' , ' 0 ' , null ) , ( ' 994972823872045058 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:09:41 ' , null , ' 113.120.98.205 ' , ' Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36 ' , ' /admin/code/46221526054981099 ' , ' GET ' , ' ' , ' 11 ' , ' 0 ' , null ) , ( ' 994972840238219266 ' , ' 9 ' , ' ' , ' pig-auth ' , ' anonymousUser ' , ' 2018-05-12 00:09:45 ' , null , ' 113.120.98.205 ' , ' Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36 ' , ' /auth/oauth/token ' , ' POST ' , ' password=%5B123456%5D&randomStr=%5B46221526054981099%5D&code=%5B17nn%5D&grant_type=%5Bpassword%5D&scope=%5Bserver%5D&username=%5Bpig%5D ' , ' 17 ' , ' 0 ' , ' {\"error\":\"unauthorized\",\"error_description\":null} ' ) , ( ' 994972840850587650 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:09:45 ' , null , ' 113.120.98.205 ' , ' Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36 ' , ' /admin/code/68201526054985507 ' , ' GET ' , ' ' , ' 11 ' , ' 0 ' , null ) , ( ' 994973141116616706 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:10:57 ' , null , ' 111.206.221.84 ' , ' Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 (compatible; Baiduspider-render/2.0; +http://www.baidu.com/search/spider.html) ' , ' /admin/code/76691526055056571 ' , ' GET ' , ' ' , ' 13 ' , ' 0 ' , null ) , ( ' 994973895680294914 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:13:57 ' , null , ' 112.94.117.165 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/75551526055236458 ' , ' GET ' , ' ' , ' 11 ' , ' 0 ' , null ) , ( ' 994973910305832962 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:14:00 ' , null , ' 112.94.117.165 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/18551526055239885 ' , ' GET ' , ' ' , ' 12 ' , ' 0 ' , null ) , ( ' 994973915729068034 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:14:01 ' , null , ' 112.94.117.165 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/68661526055241309 ' , ' GET ' , ' ' , ' 11 ' , ' 0 ' , null ) , ( ' 994973945865142274 ' , ' 9 ' , ' ' , ' pig-auth ' , ' anonymousUser ' , ' 2018-05-12 00:14:09 ' , null , ' 112.94
COMMIT ;
2018-02-05 23:42:22 +08:00
-- ----------------------------
-- Table structure for `sys_log_1`
-- ----------------------------
DROP TABLE IF EXISTS ` sys_log_1 ` ;
CREATE TABLE ` sys_log_1 ` (
` id ` bigint ( 64 ) NOT NULL COMMENT ' 编号 ' ,
2017-11-29 18:30:01 +08:00
` type ` char ( 1 ) DEFAULT ' 1 ' COMMENT ' 日志类型 ' ,
` title ` varchar ( 255 ) DEFAULT ' ' COMMENT ' 日志标题 ' ,
2017-12-25 21:15:14 +08:00
` service_id ` varchar ( 32 ) DEFAULT NULL COMMENT ' 服务ID ' ,
2017-11-29 18:30:01 +08:00
` create_by ` varchar ( 64 ) DEFAULT NULL COMMENT ' 创建者 ' ,
` create_time ` datetime DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` update_time ` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
` remote_addr ` varchar ( 255 ) DEFAULT NULL COMMENT ' 操作IP地址 ' ,
2018-04-24 15:32:19 +08:00
` user_agent ` varchar ( 1000 ) DEFAULT NULL COMMENT ' 用户代理 ' ,
2017-11-29 18:30:01 +08:00
` request_uri ` varchar ( 255 ) DEFAULT NULL COMMENT ' 请求URI ' ,
` method ` varchar ( 10 ) DEFAULT NULL COMMENT ' 操作方式 ' ,
` params ` text COMMENT ' 操作提交的数据 ' ,
` time ` mediumtext COMMENT ' 执行时间 ' ,
` del_flag ` char ( 1 ) DEFAULT ' 0 ' COMMENT ' 删除标记 ' ,
2018-01-24 21:33:06 +08:00
` exception ` text COMMENT ' 异常信息 ' ,
2017-11-29 18:30:01 +08:00
PRIMARY KEY ( ` id ` ) ,
2018-02-04 22:53:31 +08:00
KEY ` sys_log_create_by ` ( ` create_by ` ) ,
KEY ` sys_log_request_uri ` ( ` request_uri ` ) ,
KEY ` sys_log_type ` ( ` type ` ) ,
KEY ` sys_log_create_date ` ( ` create_time ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' 日志表 ' ;
2017-11-29 18:30:01 +08:00
2018-04-22 20:44:42 +08:00
-- ----------------------------
-- Records of `sys_log_1`
-- ----------------------------
BEGIN ;
2018-05-12 00:15:42 +08:00
INSERT INTO ` sys_log_1 ` VALUES ( ' 994972330378625025 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:07:43 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/42361526054862508 ' , ' GET ' , ' ' , ' 15 ' , ' 0 ' , null ) , ( ' 994972359931691009 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:07:50 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/94801526054869593 ' , ' GET ' , ' ' , ' 11 ' , ' 0 ' , null ) , ( ' 994972430404386817 ' , ' 9 ' , ' ' , ' pig-auth ' , ' anonymousUser ' , ' 2018-05-12 00:08:07 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /auth/oauth/token ' , ' POST ' , ' password=%5B123456%5D&randomStr=%5B31271526054878679%5D&code=%5B4f6d%5D&grant_type=%5Bpassword%5D&scope=%5Bserver%5D&username=%5Bpig%5D ' , ' 18 ' , ' 0 ' , ' {\"error\":\"unauthorized\",\"error_description\":null} ' ) , ( ' 994972430777679873 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:08:07 ' , null , ' 223.21.98.41 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/77571526054886469 ' , ' GET ' , ' ' , ' 13 ' , ' 0 ' , null ) , ( ' 994973965557399553 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:14:13 ' , null , ' 112.94.117.165 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/93661526055253189 ' , ' GET ' , ' ' , ' 13 ' , ' 0 ' , null ) , ( ' 994974019127050241 ' , ' 9 ' , ' ' , ' pig-auth ' , ' anonymousUser ' , ' 2018-05-12 00:14:26 ' , null , ' 112.94.117.165 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /auth/oauth/token ' , ' POST ' , ' password=%5B123456%5D&randomStr=%5B93661526055253189%5D&code=%5Bbbwb%5D&grant_type=%5Bpassword%5D&scope=%5Bserver%5D&username=%5Bpig%5D ' , ' 18 ' , ' 0 ' , ' {\"error\":\"unauthorized\",\"error_description\":null} ' ) , ( ' 994974045706354689 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:14:32 ' , null , ' 112.94.117.165 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/65431526055272141 ' , ' GET ' , ' ' , ' 10 ' , ' 0 ' , null ) , ( ' 994974069794242561 ' , ' 9 ' , ' ' , ' pig-auth ' , ' anonymousUser ' , ' 2018-05-12 00:14:38 ' , null , ' 112.94.117.165 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /auth/oauth/token ' , ' POST ' , ' password=%5B123456%5D&randomStr=%5B65431526055272141%5D&code=%5Bfx3n%5D&grant_type=%5Bpassword%5D&scope=%5Bserver%5D&username=%5Bpig%5D ' , ' 17 ' , ' 0 ' , ' {\"error\":\"unauthorized\",\"error_description\":null} ' ) , ( ' 994974070045900801 ' , ' 0 ' , ' ' , ' pig-upms-service ' , ' anonymousUser ' , ' 2018-05-12 00:14:38 ' , null , ' 112.94.117.165 ' , ' Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 ' , ' /admin/code/45491526055278102 ' , ' GET ' , ' ' , ' 11 ' , ' 0 ' , null ) ;
2018-04-22 20:44:42 +08:00
COMMIT ;
2017-11-01 17:55:49 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
-- Table structure for `sys_menu`
2017-11-01 17:55:49 +08:00
-- ----------------------------
DROP TABLE IF EXISTS ` sys_menu ` ;
CREATE TABLE ` sys_menu ` (
2017-11-08 19:50:13 +08:00
` menu_id ` int ( 11 ) NOT NULL COMMENT ' 菜单ID ' ,
` name ` varchar ( 32 ) NOT NULL COMMENT ' 菜单名称 ' ,
` permission ` varchar ( 32 ) DEFAULT NULL COMMENT ' 菜单权限标识 ' ,
2017-11-17 13:43:22 +08:00
` path ` varchar ( 128 ) DEFAULT NULL COMMENT ' 前端URL ' ,
2017-11-08 19:50:13 +08:00
` url ` varchar ( 128 ) DEFAULT NULL COMMENT ' 请求链接 ' ,
` method ` varchar ( 32 ) DEFAULT NULL COMMENT ' 请求方法 ' ,
2017-11-01 17:55:49 +08:00
` parent_id ` int ( 11 ) DEFAULT NULL COMMENT ' 父菜单ID ' ,
2017-11-08 19:50:13 +08:00
` icon ` varchar ( 32 ) DEFAULT NULL COMMENT ' 图标 ' ,
` component ` varchar ( 64 ) DEFAULT NULL COMMENT ' VUE页面 ' ,
2017-11-01 17:55:49 +08:00
` sort ` int ( 11 ) DEFAULT NULL COMMENT ' 排序值 ' ,
` type ` char ( 1 ) DEFAULT NULL COMMENT ' 菜单类型 ( 0菜单 1按钮) ' ,
` create_time ` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` update_time ` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
` del_flag ` char ( 1 ) DEFAULT ' 0 ' COMMENT ' 0--正常 1--删除 ' ,
PRIMARY KEY ( ` menu_id ` )
2018-02-04 22:53:31 +08:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' 菜单权限表 ' ;
2018-01-24 21:33:06 +08:00
-- ----------------------------
-- Records of `sys_menu`
-- ----------------------------
BEGIN ;
2018-05-12 00:15:42 +08:00
INSERT INTO ` sys_menu ` VALUES ( ' 1 ' , ' 系统管理 ' , null , ' /admin ' , null , null , ' -1 ' , ' icon-xitongguanli ' , ' Layout ' , ' 1 ' , ' 0 ' , ' 2017-11-07 20:56:00 ' , ' 2018-04-20 13:50:20 ' , ' 0 ' ) , ( ' 2 ' , ' 用户管理 ' , null , ' /admin/user ' , null , null , ' 1 ' , ' icon-yonghuguanli ' , ' _import(\ ' admin / user \ ' ) ' , ' 2 ' , ' 0 ' , ' 2017-11-02 22:24:37 ' , ' 2018-04-20 13:50:23 ' , ' 0 ' ) , ( ' 3 ' , ' 菜单管理 ' , null , ' /admin/menu ' , null , null , ' 1 ' , ' icon-caidanguanli ' , ' _import(\ ' admin / menu \ ' ) ' , ' 3 ' , ' 0 ' , ' 2017-11-08 09:57:27 ' , ' 2018-04-20 13:50:25 ' , ' 0 ' ) , ( ' 4 ' , ' 角色管理 ' , null , ' /admin/role ' , null , null , ' 1 ' , ' icon-jiaoseguanli ' , ' _import(\ ' admin / role \ ' ) ' , ' 4 ' , ' 0 ' , ' 2017-11-08 10:13:37 ' , ' 2018-04-20 13:50:27 ' , ' 0 ' ) , ( ' 5 ' , ' 日志管理 ' , null , ' /admin/log ' , null , null , ' 1 ' , ' icon-rizhiguanli ' , ' _import(\ ' admin / log \ ' ) ' , ' 5 ' , ' 0 ' , ' 2017-11-20 14:06:22 ' , ' 2018-04-20 13:50:29 ' , ' 0 ' ) , ( ' 6 ' , ' 字典管理 ' , null , ' /admin/dict ' , null , null , ' 1 ' , ' icon-zygl ' , ' _import(\ ' admin / dict \ ' ) ' , ' 6 ' , ' 0 ' , ' 2017-11-29 11:30:52 ' , ' 2018-04-20 13:50:35 ' , ' 0 ' ) , ( ' 7 ' , ' 部门管理 ' , null , ' /admin/dept ' , null , null , ' 1 ' , ' icon-iconbmgl ' , ' _import(\ ' admin / dept \ ' ) ' , ' 7 ' , ' 0 ' , ' 2018-01-20 13:17:19 ' , ' 2018-04-20 13:50:38 ' , ' 0 ' ) , ( ' 8 ' , ' 系统监控 ' , null , ' #/monitor:5001 ' , null , null , ' -1 ' , ' icon-iconbmgl ' , null , ' 8 ' , ' 0 ' , ' 2018-01-22 12:30:41 ' , ' 2018-04-20 13:50:53 ' , ' 0 ' ) , ( ' 9 ' , ' 服务监控 ' , null , ' http://139.224.200.249:5001 ' , null , null , ' 8 ' , ' icon-jiankong ' , null , ' 9 ' , ' 0 ' , ' 2018-01-23 10:53:33 ' , ' 2018-04-21 03:51:56 ' , ' 0 ' ) , ( ' 10 ' , ' zipkin监控 ' , null , ' http://139.224.200.249:5002 ' , null , null , ' 8 ' , ' icon-jiankong ' , null , ' 11 ' , ' 0 ' , ' 2018-01-23 10:55:18 ' , ' 2018-04-22 07:02:34 ' , ' 0 ' ) , ( ' 11 ' , ' pinpoint监控 ' , null , ' https://pinpoint.pig4cloud.com ' , null , null , ' 8 ' , ' icon-xiazaihuancun ' , null , ' 10 ' , ' 0 ' , ' 2018-01-25 11:08:52 ' , ' 2018-04-22 07:02:38 ' , ' 0 ' ) , ( ' 12 ' , ' 缓存状态 ' , null , ' http://139.224.200.249:8585 ' , null , null , ' 8 ' , ' icon-ecs-status ' , null , ' 12 ' , ' 0 ' , ' 2018-01-23 10:56:11 ' , ' 2018-04-21 03:51:47 ' , ' 0 ' ) , ( ' 13 ' , ' ELK状态 ' , null , ' http://139.224.200.249:5601 ' , null , null , ' 8 ' , ' icon-ecs-status ' , null , ' 13 ' , ' 0 ' , ' 2018-01-23 10:55:47 ' , ' 2018-04-21 03:51:40 ' , ' 0 ' ) , ( ' 14 ' , ' 接口文档 ' , null , ' http://139.224.200.249:9999/swagger-ui.html ' , null , null , ' 8 ' , ' icon-wendangdocument72 ' , null , ' 14 ' , ' 0 ' , ' 2018-01-23 10:56:43 ' , ' 2018-04-21 03:50:47 ' , ' 0 ' ) , ( ' 15 ' , ' 任务监控 ' , null , ' http://139.224.200.249:8899 ' , null , null , ' 8 ' , ' icon-jiankong ' , null , ' 15 ' , ' 0 ' , ' 2018-01-23 10:55:18 ' , ' 2018-04-21 03:51:34 ' , ' 0 ' ) , ( ' 21 ' , ' 用户查看 ' , ' ' , null , ' /admin/user/** ' , ' GET ' , ' 2 ' , null , null , null , ' 1 ' , ' 2017-11-07 20:58:05 ' , ' 2018-02-04 14:28:49 ' , ' 0 ' ) , ( ' 22 ' , ' 用户新增 ' , ' sys_user_add ' , null , ' /admin/user/* ' , ' POST ' , ' 2 ' , null , null , null , ' 1 ' , ' 2017-11-08 09:52:09 ' , ' 2017-12-04 16:31:10 ' , ' 0 ' ) , ( ' 23 ' , ' 用户修改 ' , ' sys_user_upd ' , null , ' /admin/user/** ' , ' PUT ' , ' 2 ' , null , null , null , ' 1 ' , ' 2017-11-08 09:52:48 ' , ' 2018-01-17 17:40:01 ' , ' 0 ' ) , ( ' 24 ' , ' 用户删除 ' , ' sys_user_del ' , null , ' /admin/user/* ' , ' DELETE ' , ' 2 ' , null , null , null , ' 1 ' , ' 2017-11-08 09:54:01 ' , ' 2017-12-04 16:31:18 ' , ' 0 ' ) , ( ' 31 ' , ' 菜单查看 ' , null , null , ' /admin/menu/** ' , ' GET ' , ' 3 ' , null , null , null , ' 1 ' , ' 2017-11-08 09:57:56 ' , ' 2017-11-14 17:29:17 ' , ' 0 ' ) , ( ' 32 ' , ' 菜单新增 ' , ' sys_menu_add ' , null , ' /admin/menu/* ' , ' POST ' , ' 3 ' , null , null , null , ' 1 ' , ' 2017-11-08 10:15:53 ' , ' 2018-01-20 14:37:50 ' , ' 0 ' ) , ( ' 33 ' , ' 菜单修改 ' , ' sys_menu_edit ' , null , ' /admin/menu/* ' , ' PUT ' , ' 3 ' , null , null , null , ' 1 ' , ' 2017-11-08 10:16:23 ' , ' 2018-01-20 14:37:56 ' , ' 0 ' ) , ( ' 34 ' , ' 菜单删除 ' , ' sys_menu_del ' , null , ' /admin/menu/* ' , ' DELETE ' , ' 3 ' , null , null , null , ' 1 ' , ' 2017-11-08 10:16:43 ' , ' 2018-01-20 14:38:03 ' , ' 0 ' ) , ( ' 41 ' , ' 角色查看 ' , null , null , ' /admin/role/** ' , ' GET ' , ' 4 ' , null , null , null , ' 1 ' , ' 2017-11-08 10:14:01 ' , ' 2018-02-04 13:55:06 ' , ' 0 ' ) , ( ' 42 ' , ' 角色新增 ' , ' sys_role_add ' , null , ' /admin/role/* ' , ' POST ' , ' 4 ' , null , null , null , ' 1 ' , ' 2017-11-08 10:14:18 ' , ' 2018-04-20 07:21:38 ' , ' 0 ' ) , ( ' 43 ' , ' 角色修改 ' , ' sys_role_edit ' , null , ' /admin/role/* ' , ' PUT ' , ' 4 ' , null , null , null , ' 1 ' , ' 2017-11-08 10:14
2018-01-24 21:33:06 +08:00
COMMIT ;
-- ----------------------------
-- Table structure for `sys_role`
2017-11-01 17:55:49 +08:00
-- ----------------------------
DROP TABLE IF EXISTS ` sys_role ` ;
CREATE TABLE ` sys_role ` (
` role_id ` int ( 11 ) NOT NULL AUTO_INCREMENT ,
` role_name ` varchar ( 64 ) COLLATE utf8mb4_bin NOT NULL ,
` role_code ` varchar ( 64 ) COLLATE utf8mb4_bin NOT NULL ,
` role_desc ` varchar ( 255 ) COLLATE utf8mb4_bin DEFAULT NULL ,
` create_time ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
` update_time ` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP ,
` del_flag ` char ( 1 ) COLLATE utf8mb4_bin DEFAULT ' 0 ' COMMENT ' 删除标识( 0-正常,1-删除) ' ,
PRIMARY KEY ( ` role_id ` ) ,
UNIQUE KEY ` role_idx1_role_code ` ( ` role_code ` )
2018-05-12 00:15:42 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 17 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = DYNAMIC ;
2018-01-24 21:33:06 +08:00
-- ----------------------------
-- Records of `sys_role`
-- ----------------------------
BEGIN ;
2018-05-12 00:15:42 +08:00
INSERT INTO ` sys_role ` VALUES ( ' 1 ' , ' admin ' , ' ROLE_ADMIN ' , ' 超级管理员 ' , ' 2017-10-29 15:45:51 ' , ' 2018-04-22 11:40:29 ' , ' 0 ' ) , ( ' 14 ' , ' demo ' , ' demo ' , ' demo用户 ' , ' 2018-04-20 07:14:32 ' , ' 2018-04-21 23:35:22 ' , ' 0 ' ) ;
2018-01-24 21:33:06 +08:00
COMMIT ;
-- ----------------------------
-- Table structure for `sys_role_dept`
-- ----------------------------
DROP TABLE IF EXISTS ` sys_role_dept ` ;
CREATE TABLE ` sys_role_dept ` (
` id ` int ( 20 ) NOT NULL AUTO_INCREMENT ,
` role_id ` int ( 20 ) DEFAULT NULL COMMENT ' 角色ID ' ,
` dept_id ` int ( 20 ) DEFAULT NULL COMMENT ' 部门ID ' ,
PRIMARY KEY ( ` id ` )
2018-05-12 00:15:42 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 19 DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' 角色与部门对应关系 ' ;
2017-11-01 17:55:49 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
-- Records of `sys_role_dept`
2017-11-01 17:55:49 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
BEGIN ;
2018-05-12 00:15:42 +08:00
INSERT INTO ` sys_role_dept ` VALUES ( ' 11 ' , ' 1 ' , ' 1 ' ) , ( ' 14 ' , ' 14 ' , ' 1 ' ) ;
2018-01-24 21:33:06 +08:00
COMMIT ;
2017-11-01 17:55:49 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
-- Table structure for `sys_role_menu`
2017-11-01 17:55:49 +08:00
-- ----------------------------
DROP TABLE IF EXISTS ` sys_role_menu ` ;
CREATE TABLE ` sys_role_menu ` (
` role_id ` int ( 11 ) NOT NULL COMMENT ' 角色ID ' ,
` menu_id ` int ( 11 ) NOT NULL COMMENT ' 菜单ID ' ,
PRIMARY KEY ( ` role_id ` , ` menu_id ` )
2018-02-04 22:53:31 +08:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' 角色菜单表 ' ;
2018-01-24 21:33:06 +08:00
-- ----------------------------
-- Records of `sys_role_menu`
-- ----------------------------
BEGIN ;
2018-05-12 00:15:42 +08:00
INSERT INTO ` sys_role_menu ` VALUES ( ' 1 ' , ' 1 ' ) , ( ' 1 ' , ' 2 ' ) , ( ' 1 ' , ' 3 ' ) , ( ' 1 ' , ' 4 ' ) , ( ' 1 ' , ' 5 ' ) , ( ' 1 ' , ' 6 ' ) , ( ' 1 ' , ' 7 ' ) , ( ' 1 ' , ' 8 ' ) , ( ' 1 ' , ' 9 ' ) , ( ' 1 ' , ' 10 ' ) , ( ' 1 ' , ' 11 ' ) , ( ' 1 ' , ' 12 ' ) , ( ' 1 ' , ' 13 ' ) , ( ' 1 ' , ' 14 ' ) , ( ' 1 ' , ' 15 ' ) , ( ' 1 ' , ' 21 ' ) , ( ' 1 ' , ' 22 ' ) , ( ' 1 ' , ' 23 ' ) , ( ' 1 ' , ' 24 ' ) , ( ' 1 ' , ' 31 ' ) , ( ' 1 ' , ' 32 ' ) , ( ' 1 ' , ' 33 ' ) , ( ' 1 ' , ' 34 ' ) , ( ' 1 ' , ' 41 ' ) , ( ' 1 ' , ' 42 ' ) , ( ' 1 ' , ' 43 ' ) , ( ' 1 ' , ' 44 ' ) , ( ' 1 ' , ' 45 ' ) , ( ' 1 ' , ' 51 ' ) , ( ' 1 ' , ' 52 ' ) , ( ' 1 ' , ' 61 ' ) , ( ' 1 ' , ' 62 ' ) , ( ' 1 ' , ' 63 ' ) , ( ' 1 ' , ' 64 ' ) , ( ' 1 ' , ' 71 ' ) , ( ' 1 ' , ' 72 ' ) , ( ' 1 ' , ' 73 ' ) , ( ' 1 ' , ' 74 ' ) , ( ' 14 ' , ' 1 ' ) , ( ' 14 ' , ' 2 ' ) , ( ' 14 ' , ' 3 ' ) , ( ' 14 ' , ' 4 ' ) , ( ' 14 ' , ' 5 ' ) , ( ' 14 ' , ' 6 ' ) , ( ' 14 ' , ' 7 ' ) , ( ' 14 ' , ' 8 ' ) , ( ' 14 ' , ' 9 ' ) , ( ' 14 ' , ' 10 ' ) , ( ' 14 ' , ' 11 ' ) , ( ' 14 ' , ' 12 ' ) , ( ' 14 ' , ' 13 ' ) , ( ' 14 ' , ' 14 ' ) , ( ' 14 ' , ' 15 ' ) , ( ' 14 ' , ' 21 ' ) , ( ' 14 ' , ' 31 ' ) , ( ' 14 ' , ' 41 ' ) , ( ' 14 ' , ' 51 ' ) , ( ' 14 ' , ' 61 ' ) , ( ' 14 ' , ' 71 ' ) ;
2018-01-24 21:33:06 +08:00
COMMIT ;
-- ----------------------------
-- Table structure for `sys_user`
2017-11-01 17:55:49 +08:00
-- ----------------------------
DROP TABLE IF EXISTS ` sys_user ` ;
CREATE TABLE ` sys_user ` (
` user_id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' 主键ID ' ,
` username ` varchar ( 64 ) COLLATE utf8mb4_bin NOT NULL COMMENT ' 用户名 ' ,
` password ` varchar ( 255 ) COLLATE utf8mb4_bin NOT NULL ,
` salt ` varchar ( 255 ) COLLATE utf8mb4_bin DEFAULT NULL COMMENT ' 随机盐 ' ,
2018-05-12 00:15:42 +08:00
` phone ` varchar ( 20 ) COLLATE utf8mb4_bin NOT NULL COMMENT ' 简介 ' ,
2017-11-17 13:43:22 +08:00
` avatar ` varchar ( 255 ) COLLATE utf8mb4_bin DEFAULT NULL COMMENT ' 头像 ' ,
2018-02-04 22:53:31 +08:00
` dept_id ` int ( 11 ) DEFAULT NULL COMMENT ' 部门ID ' ,
2017-11-01 17:55:49 +08:00
` create_time ` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` update_time ` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT ' 修改时间 ' ,
` del_flag ` char ( 1 ) COLLATE utf8mb4_bin DEFAULT ' 0 ' COMMENT ' 0-正常, 1-删除 ' ,
PRIMARY KEY ( ` user_id ` ) ,
2018-05-12 00:15:42 +08:00
UNIQUE KEY ` user_idx1_username ` ( ` username ` ) ,
UNIQUE KEY ` user_idx2_phone ` ( ` phone ` )
) ENGINE = InnoDB AUTO_INCREMENT = 7 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = DYNAMIC COMMENT = ' 用户表 ' ;
2017-11-01 17:55:49 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
-- Records of `sys_user`
2017-11-01 17:55:49 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
BEGIN ;
2018-05-12 00:15:42 +08:00
INSERT INTO ` sys_user ` VALUES ( ' 1 ' , ' admin ' , ' $2a$10$vg5QNHhCknAqevx9vM2s5esllJEzF/pa8VZXtFYHhhOhUcCw/GWyS ' , null , ' 17034642111 ' , null , ' 1 ' , ' 2018-04-20 07:15:18 ' , ' 2018-05-11 17:12:00 ' , ' 0 ' ) , ( ' 4 ' , ' pig ' , ' $2a$10$vg5QNHhCknAqevx9vM2s5esllJEzF/pa8VZXtFYHhhOhUcCw/GWyS ' , null , ' 17034642118 ' , null , ' 1 ' , ' 2018-04-22 11:39:07 ' , ' 2018-05-10 18:01:11 ' , ' 0 ' ) ;
2018-01-24 21:33:06 +08:00
COMMIT ;
2017-11-01 17:55:49 +08:00
-- ----------------------------
2018-01-24 21:33:06 +08:00
-- Table structure for `sys_user_role`
2017-11-01 17:55:49 +08:00
-- ----------------------------
DROP TABLE IF EXISTS ` sys_user_role ` ;
CREATE TABLE ` sys_user_role ` (
` user_id ` int ( 11 ) NOT NULL COMMENT ' 用户ID ' ,
` role_id ` int ( 11 ) NOT NULL COMMENT ' 角色ID ' ,
PRIMARY KEY ( ` user_id ` , ` role_id ` )
2018-02-04 22:53:31 +08:00
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC COMMENT = ' 用户角色表 ' ;
2018-01-24 21:33:06 +08:00
-- ----------------------------
-- Records of `sys_user_role`
-- ----------------------------
BEGIN ;
2018-04-22 20:44:42 +08:00
INSERT INTO ` sys_user_role ` VALUES ( ' 1 ' , ' 1 ' ) , ( ' 4 ' , ' 14 ' ) ;
2018-01-24 21:33:06 +08:00
COMMIT ;
2017-11-01 17:55:49 +08:00
2018-01-24 21:33:06 +08:00
-- ----------------------------
-- Table structure for `zipkin_annotations`
-- ----------------------------
DROP TABLE IF EXISTS ` zipkin_annotations ` ;
CREATE TABLE ` zipkin_annotations ` (
` trace_id_high ` bigint ( 20 ) NOT NULL DEFAULT ' 0 ' COMMENT ' If non zero, this means the trace uses 128 bit traceIds instead of 64 bit ' ,
` trace_id ` bigint ( 20 ) NOT NULL COMMENT ' coincides with zipkin_spans.trace_id ' ,
` span_id ` bigint ( 20 ) NOT NULL COMMENT ' coincides with zipkin_spans.id ' ,
` a_key ` varchar ( 255 ) NOT NULL COMMENT ' BinaryAnnotation.key or Annotation.value if type == -1 ' ,
` a_value ` blob COMMENT ' BinaryAnnotation.value(), which must be smaller than 64KB ' ,
` a_type ` int ( 11 ) NOT NULL COMMENT ' BinaryAnnotation.type() or -1 if Annotation ' ,
` a_timestamp ` bigint ( 20 ) DEFAULT NULL COMMENT ' Used to implement TTL; Annotation.timestamp or zipkin_spans.timestamp ' ,
` endpoint_ipv4 ` int ( 11 ) DEFAULT NULL COMMENT ' Null when Binary/Annotation.endpoint is null ' ,
` endpoint_ipv6 ` binary ( 16 ) DEFAULT NULL COMMENT ' Null when Binary/Annotation.endpoint is null, or no IPv6 address ' ,
` endpoint_port ` smallint ( 6 ) DEFAULT NULL COMMENT ' Null when Binary/Annotation.endpoint is null ' ,
` endpoint_service_name ` varchar ( 255 ) DEFAULT NULL COMMENT ' Null when Binary/Annotation.endpoint is null ' ,
UNIQUE KEY ` trace_id_high ` ( ` trace_id_high ` , ` trace_id ` , ` span_id ` , ` a_key ` , ` a_timestamp ` ) COMMENT ' Ignore insert on duplicate ' ,
UNIQUE KEY ` trace_id_high_4 ` ( ` trace_id_high ` , ` trace_id ` , ` span_id ` , ` a_key ` , ` a_timestamp ` ) COMMENT ' Ignore insert on duplicate ' ,
KEY ` trace_id_high_2 ` ( ` trace_id_high ` , ` trace_id ` , ` span_id ` ) COMMENT ' for joining with zipkin_spans ' ,
KEY ` trace_id_high_3 ` ( ` trace_id_high ` , ` trace_id ` ) COMMENT ' for getTraces/ByIds ' ,
KEY ` endpoint_service_name ` ( ` endpoint_service_name ` ) COMMENT ' for getTraces and getServiceNames ' ,
KEY ` a_type ` ( ` a_type ` ) COMMENT ' for getTraces ' ,
KEY ` a_key ` ( ` a_key ` ) COMMENT ' for getTraces ' ,
KEY ` trace_id ` ( ` trace_id ` , ` span_id ` , ` a_key ` ) COMMENT ' for dependencies job ' ,
KEY ` trace_id_high_5 ` ( ` trace_id_high ` , ` trace_id ` , ` span_id ` ) COMMENT ' for joining with zipkin_spans ' ,
KEY ` trace_id_high_6 ` ( ` trace_id_high ` , ` trace_id ` ) COMMENT ' for getTraces/ByIds ' ,
KEY ` endpoint_service_name_2 ` ( ` endpoint_service_name ` ) COMMENT ' for getTraces and getServiceNames ' ,
KEY ` a_type_2 ` ( ` a_type ` ) COMMENT ' for getTraces ' ,
KEY ` a_key_2 ` ( ` a_key ` ) COMMENT ' for getTraces ' ,
KEY ` trace_id_2 ` ( ` trace_id ` , ` span_id ` , ` a_key ` ) COMMENT ' for dependencies job '
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = COMPRESSED ;
-- ----------------------------
-- Table structure for `zipkin_dependencies`
-- ----------------------------
DROP TABLE IF EXISTS ` zipkin_dependencies ` ;
CREATE TABLE ` zipkin_dependencies ` (
` day ` date NOT NULL ,
` parent ` varchar ( 255 ) NOT NULL ,
` child ` varchar ( 255 ) NOT NULL ,
` call_count ` bigint ( 20 ) DEFAULT NULL ,
UNIQUE KEY ` day ` ( ` day ` , ` parent ` , ` child ` ) ,
UNIQUE KEY ` day_2 ` ( ` day ` , ` parent ` , ` child ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = COMPRESSED ;
-- ----------------------------
-- Table structure for `zipkin_spans`
-- ----------------------------
DROP TABLE IF EXISTS ` zipkin_spans ` ;
CREATE TABLE ` zipkin_spans ` (
` trace_id_high ` bigint ( 20 ) NOT NULL DEFAULT ' 0 ' COMMENT ' If non zero, this means the trace uses 128 bit traceIds instead of 64 bit ' ,
` trace_id ` bigint ( 20 ) NOT NULL ,
` id ` bigint ( 20 ) NOT NULL ,
` name ` varchar ( 255 ) NOT NULL ,
` parent_id ` bigint ( 20 ) DEFAULT NULL ,
` debug ` bit ( 1 ) DEFAULT NULL ,
` start_ts ` bigint ( 20 ) DEFAULT NULL COMMENT ' Span.timestamp(): epoch micros used for endTs query and to implement TTL ' ,
` duration ` bigint ( 20 ) DEFAULT NULL COMMENT ' Span.duration(): micros used for minDuration and maxDuration query ' ,
UNIQUE KEY ` trace_id_high ` ( ` trace_id_high ` , ` trace_id ` , ` id ` ) COMMENT ' ignore insert on duplicate ' ,
UNIQUE KEY ` trace_id_high_4 ` ( ` trace_id_high ` , ` trace_id ` , ` id ` ) COMMENT ' ignore insert on duplicate ' ,
KEY ` trace_id_high_2 ` ( ` trace_id_high ` , ` trace_id ` , ` id ` ) COMMENT ' for joining with zipkin_annotations ' ,
KEY ` trace_id_high_3 ` ( ` trace_id_high ` , ` trace_id ` ) COMMENT ' for getTracesByIds ' ,
KEY ` name ` ( ` name ` ) COMMENT ' for getTraces and getSpanNames ' ,
KEY ` start_ts ` ( ` start_ts ` ) COMMENT ' for getTraces ordering and range ' ,
KEY ` trace_id_high_5 ` ( ` trace_id_high ` , ` trace_id ` , ` id ` ) COMMENT ' for joining with zipkin_annotations ' ,
KEY ` trace_id_high_6 ` ( ` trace_id_high ` , ` trace_id ` ) COMMENT ' for getTracesByIds ' ,
KEY ` name_2 ` ( ` name ` ) COMMENT ' for getTraces and getSpanNames ' ,
KEY ` start_ts_2 ` ( ` start_ts ` ) COMMENT ' for getTraces ordering and range '
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ROW_FORMAT = COMPRESSED ;
SET FOREIGN_KEY_CHECKS = 1 ;