2024-12-03 19:29:26 +08:00
|
|
|
|
/*
|
|
|
|
|
Navicat Premium Data Transfer
|
|
|
|
|
|
|
|
|
|
Source Server : kenaito-mysql.odboy.local
|
|
|
|
|
Source Server Type : MySQL
|
|
|
|
|
Source Server Version : 80025
|
|
|
|
|
Source Host : kenaito-mysql.odboy.local:13306
|
|
|
|
|
Source Schema : kenaito_config
|
|
|
|
|
|
|
|
|
|
Target Server Type : MySQL
|
|
|
|
|
Target Server Version : 80025
|
|
|
|
|
File Encoding : 65001
|
|
|
|
|
|
2024-12-05 21:51:13 +08:00
|
|
|
|
Date: 05/12/2024 19:35:22
|
2024-12-03 19:29:26 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
SET NAMES utf8mb4;
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
|
|
2024-12-05 21:51:13 +08:00
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for config_app
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `config_app`;
|
|
|
|
|
CREATE TABLE `config_app` (
|
|
|
|
|
`id` bigint(0) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`app_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '应用名称',
|
|
|
|
|
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '应用描述',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '配置应用' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of config_app
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `config_app` VALUES (1, 'kenaito-config-demo', '测试应用');
|
|
|
|
|
|
2024-12-03 19:29:26 +08:00
|
|
|
|
-- ----------------------------
|
2024-12-05 18:31:13 +08:00
|
|
|
|
-- Table structure for config_file
|
2024-12-03 19:29:26 +08:00
|
|
|
|
-- ----------------------------
|
2024-12-05 18:31:13 +08:00
|
|
|
|
DROP TABLE IF EXISTS `config_file`;
|
|
|
|
|
CREATE TABLE `config_file` (
|
2024-12-03 19:29:26 +08:00
|
|
|
|
`id` bigint(0) NOT NULL AUTO_INCREMENT,
|
2024-12-05 18:31:13 +08:00
|
|
|
|
`app_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
|
|
|
|
|
`env` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
|
|
|
|
|
`filename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '例如: application-daily.properties',
|
2024-12-05 21:51:13 +08:00
|
|
|
|
`version` bigint(0) NOT NULL DEFAULT 1 COMMENT '当前配置内容版本',
|
2024-12-03 19:29:26 +08:00
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
2024-12-05 18:31:13 +08:00
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '配置文件' ROW_FORMAT = Dynamic;
|
2024-12-03 19:29:26 +08:00
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
2024-12-05 18:31:13 +08:00
|
|
|
|
-- Records of config_file
|
2024-12-03 19:29:26 +08:00
|
|
|
|
-- ----------------------------
|
2024-12-05 21:51:13 +08:00
|
|
|
|
INSERT INTO `config_file` VALUES (1, 'kenaito-config-demo', 'daily', 'application-daily.yml', 1);
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for config_version
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `config_version`;
|
|
|
|
|
CREATE TABLE `config_version` (
|
|
|
|
|
`file_id` bigint(0) NOT NULL,
|
|
|
|
|
`file_content` longblob NULL,
|
|
|
|
|
PRIMARY KEY (`file_id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '配置内容版本' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of config_version
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `config_version` VALUES (1, 0x7365727665723A0D0A2020706F72743A2032383030300D0A202068747470323A0D0A202020202320CCE1B8DFCDF8C2E7B4ABCAE4D0A7C2CA2C20C4ACC8CFCEAA66616C73650D0A20202020656E61626C65643A20747275650D0A2020756E646572746F773A0D0A20202020746872656164733A0D0A2020202020202320B9A4D7F7CFDFB3CCCAFDA3ACC4ACC8CFC9E8D6C3CEAA696F2D74687265616473202A2038A1A3C8E7B9FBC4E3B5C4D3A6D3C3B3CCD0F2D3D0BADCB6E0CDACB2BDD7E8C8FBB2D9D7F7A3ACBFC9D2D4CACAB5B1D4F6BCD3D5E2B8F6D6B50D0A202020202020776F726B65723A2031360D0A2020202020202320C9E8D6C3494FCFDFB3CCCAFD2C20CBFCD6F7D2AAD6B4D0D0B7C7D7E8C8FBB5C4C8CECEF12CCBFCC3C7BBE1B8BAD4F0B6E0B8F6C1ACBDD32C20C4ACC8CFC9E8D6C3C3BFB8F6435055BACBD0C4D2BBB8F6CFDFB3CC0D0A2020202020202320D7E8C8FBC8CECEF1CFDFB3CCB3D82C20B5B1D6B4D0D0C0E0CBC6736572766C6574C7EBC7F3D7E8C8FBB2D9D7F72C20756E646572746F77BBE1B4D3D5E2B8F6CFDFB3CCB3D8D6D0C8A1B5C3CFDFB3CC2CCBFCB5C4D6B5C9E8D6C3C8A1BEF6D3DACFB5CDB3B5C4B8BAD4D80D0A202020202020696F3A20320D0A202020202320C9E8D6C3CEAA74727565D2D4CAB9D3C3D6B1BDD3C4DAB4E6A3A8B6D1CDE2C4DAB4E6A3A9C0B4B4E6B4A2BBBAB3E5C7F8A1A3D5E2BFC9D2D4BCF5C9D9C0ACBBF8BBD8CAD5B5C4BFAACFFAA1A30D0A202020206469726563742D627566666572733A20747275650D0A202020202320D2D4CFC2B5C4C5E4D6C3BBE1D3B0CFEC6275666665722CD5E2D0A9627566666572BBE1D3C3D3DAB7FECEF1C6F7C1ACBDD3B5C4494FB2D9D7F72CD3D0B5E3C0E0CBC66E65747479B5C4B3D8BBAFC4DAB4E6B9DCC0ED0D0A202020202320C3BFBFE9627566666572B5C4BFD5BCE4B4F3D0A12CD4BDD0A1B5C4BFD5BCE4B1BBC0FBD3C3D4BDB3E4B7D60D0A202020206275666665722D73697A653A20313032340D0A202020206163636573736C6F673A0D0A2020202020202320B9D8B1D5C8D5D6BE0D0A202020202020656E61626C65643A2066616C73650D0A2020636F6D7072657373696F6E3A0D0A202020202320CAC7B7F1BFAAC6F4D1B9CBF50D0A20202020656E61626C65643A20747275650D0A202020206D696D652D74797065733A20746578742F68746D6C2C746578742F786D6C2C746578742F706C61696E2C746578742F6373732C746578742F6A6176617363726970742C6170706C69636174696F6E2F6A6176617363726970742C6170706C69636174696F6E2F6A736F6E0D0A20202320C6F4D3C3D3C5D1C5CDA3BBFAA3ACB2A2D7F1CAD8737072696E672E6C6966656379636C652E74696D656F75742D7065722D73687574646F776E2D7068617365CAF4D0D4D6D0B8F8B3F6B5C4B3ACCAB10D0A20202320475241434546554C2028D3C5D1C5293A20B5B1D3A6D3C3B3CCD0F2D2D422475241434546554C22C4A3CABDB9D8B1D5CAB1A3ACCBFCB2BBBBE1BDD3CADCD0C2B5C4C7EBC7F3C7D2BBE1B3A2CAD4CDEAB3C9CBF9D3D0D5FDD4DABDF8D0D0B5C4C7EBC7F3BACDB4A6C0EDA3ACC8BBBAF3B2C5BBE1D6D5D6B9A1A3D5E2D6D6B7BDCABDCACAD3C3D3DAC4C7D0A9BFC9C4DCD0E8D2AAD2BBD0A9CAB1BCE4C0B4C7E5C0EDD7CAD4B4BBF2CDEAB3C9D5FDD4DABDF8D0D0B5C4C8CECEF1B5C4B3A1BEB0A1A30D0A20202320494D4D45444941544528C1A2BCB4293A20B5B1D3A6D3C3B3CCD0F2D2D422494D4D45444941544522C4A3CABDB9D8B1D5CAB1A3ACCBFCBBE1C1A2BCB4D6D5D6B9A3ACB6F8B2BBB9DCB5B1C7B0CAC7B7F1D3D0C8CEBACEBBEEB6AFC8CECEF1BBF2C7EBC7F3A1A3D5E2D6D6B7BDCABDCACAD3C3D3DAC4C7D0A9BFC9D2D4C1A2BCB4CDA3D6B9B6F8B2BBBBE1D4ECB3C9D1CFD6D8CECACCE2B5C4C7E9BFF6A1A30D0A202073687574646F776E3A20677261636566756C0D0A6D7962617469732D706C75733A0D0A2020636F6E66696775726174696F6E3A0D0A202020202320BFAAC6F4204D79626174697320B6FEBCB6BBBAB4E6A3ACC4ACC8CFCEAA20747275650D0A2020202063616368652D656E61626C65643A2066616C73650D0A202020202320C9E8D6C3B1BEB5D8BBBAB4E6D7F7D3C3D3F22C204D79626174697320D2BBBCB6BBBAB4E62C20C4ACC8CFCEAA2053455353494F4E0D0A202020202320CDACD2BBB8F62073657373696F6E20CFE0CDACB2E9D1AFD3EFBEE4B2BBBBE1D4D9B4CEB2E9D1AFCAFDBEDDBFE20D0A202020202320CEA2B7FECEF1D6D02C20BDA8D2E9C9E8D6C3CEAA53544154454D454E542C20BCB4B9D8B1D5D2BBBCB6BBBAB4E60D0A202020206C6F63616C2D63616368652D73636F70653A2053544154454D454E540D0A202020202320CAC7B7F1BFAAC6F4D7D4B6AFCDD5B7E5C3FCC3FBB9E6D4F2A3A863616D656C2063617365A3A9D3B3C9E42C20BCB4B4D3BEADB5E4CAFDBEDDBFE2C1D0C3FB20415F434F4C554D4EA3A8CFC2BBAECFDFC3FCC3FBA3A920B5BDBEADB5E4204A61766120CAF4D0D4C3FB2061436F6C756D6EA3A8CDD5B7E5C3FCC3FBA3A920B5C4C0E0CBC6D3B3C9E40D0A202020206D61702D756E64657273636F72652D746F2D63616D656C2D636173653A20747275650D0A20202020232053716CC8D5D6BE0D0A202020206C6F672D696D706C3A206F72672E6170616368652E6962617469732E6C6F6767696E672E7374646F75742E5374644F7574496D706C0D0A20202320C6F4B6AFCAB1CAC7B7F1BCECB2E9204D79426174697320584D4C20CEC4BCFEB5C4B4E
|
2024-12-03 19:29:26 +08:00
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for demo
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `demo`;
|
|
|
|
|
CREATE TABLE `demo` (
|
|
|
|
|
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
|
|
|
|
|
`create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建者',
|
|
|
|
|
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
|
|
|
|
|
`update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '更新者',
|
|
|
|
|
`update_time` datetime(0) NOT NULL COMMENT '更新时间',
|
|
|
|
|
`available` int(0) NOT NULL DEFAULT 1 COMMENT '数据有效性',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of demo
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_dept
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_dept`;
|
|
|
|
|
CREATE TABLE `system_dept` (
|
|
|
|
|
`dept_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
`pid` bigint(0) NULL DEFAULT NULL COMMENT '上级部门',
|
|
|
|
|
`sub_count` int(0) NULL DEFAULT 0 COMMENT '子部门数目',
|
|
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '名称',
|
|
|
|
|
`dept_sort` int(0) NULL DEFAULT 999 COMMENT '排序',
|
|
|
|
|
`enabled` bit(1) NOT NULL COMMENT '状态',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
PRIMARY KEY (`dept_id`) USING BTREE,
|
|
|
|
|
INDEX `inx_pid`(`pid`) USING BTREE,
|
|
|
|
|
INDEX `inx_enabled`(`enabled`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '部门' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_dept
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_dept` VALUES (2, 7, 1, '研发部', 3, b'1', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dept` VALUES (5, 7, 0, '运维部', 4, b'1', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dept` VALUES (6, 8, 0, '测试部', 6, b'1', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dept` VALUES (7, NULL, 2, '华南分部', 0, b'1', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dept` VALUES (8, NULL, 2, '华北分部', 1, b'1', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dept` VALUES (15, 8, 0, 'UI部门', 7, b'1', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dept` VALUES (17, 2, 0, '研发一组', 999, b'1', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_dict
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_dict`;
|
|
|
|
|
CREATE TABLE `system_dict` (
|
|
|
|
|
`dict_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '字典名称',
|
|
|
|
|
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
PRIMARY KEY (`dict_id`) USING BTREE
|
2024-12-05 18:31:13 +08:00
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '数据字典' ROW_FORMAT = Dynamic;
|
2024-12-03 19:29:26 +08:00
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_dict
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_dict` VALUES (1, 'user_status', '用户状态', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dict` VALUES (4, 'dept_status', '部门状态', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dict` VALUES (5, 'job_status', '岗位状态', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
2024-12-05 18:31:13 +08:00
|
|
|
|
INSERT INTO `system_dict` VALUES (8, 'config_center_env', '配置中心环境', 'admin', 'admin', '2024-12-05 18:03:51', '2024-12-05 18:03:51');
|
2024-12-03 19:29:26 +08:00
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_dict_detail
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_dict_detail`;
|
|
|
|
|
CREATE TABLE `system_dict_detail` (
|
|
|
|
|
`detail_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
`dict_id` bigint(0) NULL DEFAULT NULL COMMENT '字典id',
|
|
|
|
|
`label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '字典标签',
|
|
|
|
|
`value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '字典值',
|
|
|
|
|
`dict_sort` int(0) NULL DEFAULT NULL COMMENT '排序',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
PRIMARY KEY (`detail_id`) USING BTREE,
|
|
|
|
|
INDEX `FK5tpkputc6d9nboxojdbgnpmyb`(`dict_id`) USING BTREE
|
2024-12-05 18:31:13 +08:00
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '数据字典详情' ROW_FORMAT = Dynamic;
|
2024-12-03 19:29:26 +08:00
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_dict_detail
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (1, 1, '激活', 'true', 1, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (2, 1, '禁用', 'false', 2, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (3, 4, '启用', 'true', 1, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (4, 4, '停用', 'false', 2, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (5, 5, '启用', 'true', 1, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (6, 5, '停用', 'false', 2, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
2024-12-05 18:31:13 +08:00
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (14, 8, 'DAILY', 'daily', 1, 'admin', 'admin', '2024-12-05 18:04:35', '2024-12-05 18:04:35');
|
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (15, 8, 'STAGE', 'stage', 2, 'admin', 'admin', '2024-12-05 18:04:55', '2024-12-05 18:04:55');
|
|
|
|
|
INSERT INTO `system_dict_detail` VALUES (16, 8, 'PROD', 'prod', 3, 'admin', 'admin', '2024-12-05 18:05:45', '2024-12-05 18:05:45');
|
2024-12-03 19:29:26 +08:00
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_job
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_job`;
|
|
|
|
|
CREATE TABLE `system_job` (
|
|
|
|
|
`job_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
`name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '岗位名称',
|
|
|
|
|
`enabled` bit(1) NOT NULL COMMENT '岗位状态',
|
|
|
|
|
`job_sort` int(0) NULL DEFAULT NULL COMMENT '排序',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
PRIMARY KEY (`job_id`) USING BTREE,
|
|
|
|
|
UNIQUE INDEX `uniq_name`(`name`) USING BTREE,
|
|
|
|
|
INDEX `inx_enabled`(`enabled`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '岗位' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_job
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_job` VALUES (8, '人事专员', b'1', 3, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_job` VALUES (10, '产品经理', b'1', 4, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_job` VALUES (11, '全栈开发', b'1', 2, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_job` VALUES (12, '软件测试', b'1', 5, 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_menu
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_menu`;
|
|
|
|
|
CREATE TABLE `system_menu` (
|
|
|
|
|
`menu_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
`pid` bigint(0) NULL DEFAULT NULL COMMENT '上级菜单ID',
|
|
|
|
|
`sub_count` int(0) NULL DEFAULT 0 COMMENT '子菜单数目',
|
|
|
|
|
`type` int(0) NULL DEFAULT NULL COMMENT '菜单类型',
|
|
|
|
|
`title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '菜单标题',
|
|
|
|
|
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '组件名称',
|
|
|
|
|
`component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '组件',
|
|
|
|
|
`menu_sort` int(0) NULL DEFAULT NULL COMMENT '排序',
|
|
|
|
|
`icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '图标',
|
|
|
|
|
`path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '链接地址',
|
|
|
|
|
`i_frame` bit(1) NULL DEFAULT NULL COMMENT '是否外链',
|
|
|
|
|
`cache` bit(1) NULL DEFAULT b'0' COMMENT '缓存',
|
|
|
|
|
`hidden` bit(1) NULL DEFAULT b'0' COMMENT '隐藏',
|
|
|
|
|
`permission` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '权限',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
PRIMARY KEY (`menu_id`) USING BTREE,
|
|
|
|
|
UNIQUE INDEX `uniq_title`(`title`) USING BTREE,
|
|
|
|
|
UNIQUE INDEX `uniq_name`(`name`) USING BTREE,
|
|
|
|
|
INDEX `inx_pid`(`pid`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 136 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '系统菜单' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_menu
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_menu` VALUES (2, 130, 3, 1, '用户管理', 'User', 'system/user/index', 2, 'peoples', 'user', b'0', b'0', b'0', 'user:list', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (3, 130, 3, 1, '角色管理', 'Role', 'system/role/index', 3, 'role', 'role', b'0', b'0', b'0', 'roles:list', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (5, 130, 3, 1, '菜单管理', 'Menu', 'system/menu/index', 5, 'menu', 'menu', b'0', b'0', b'0', 'menu:list', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (6, 131, 3, 0, '系统监控', NULL, NULL, 10, 'monitor', 'monitor', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (9, 6, 0, 1, 'SQL监控', 'Sql', 'monitor/sql/index', 18, 'sqlMonitor', 'druid', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (10, 131, 5, 0, '组件管理', NULL, NULL, 50, 'zujian', 'components', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (11, 10, 0, 1, '图标库', 'Icons', 'components/icons/index', 51, 'icon', 'icon', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (14, 36, 0, 1, '邮件工具', 'Email', 'tools/email/index', 35, 'email', 'email', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (15, 10, 0, 1, '富文本', 'Editor', 'components/Editor', 52, 'fwb', 'tinymce', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (18, 36, 3, 1, '存储管理', 'Storage', 'tools/storage/index', 34, 'qiniu', 'storage', b'0', b'0', b'0', 'storage:list', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (21, 131, 2, 0, '多级菜单', NULL, '', 900, 'menu', 'nested', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (22, 21, 2, 0, '二级菜单1', NULL, '', 999, 'menu', 'menu1', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (23, 21, 0, 1, '二级菜单2', NULL, 'nested/menu2/index', 999, 'menu', 'menu2', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (24, 22, 0, 1, '三级菜单1', 'Test', 'nested/menu1/menu1-1', 999, 'menu', 'menu1-1', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (27, 22, 0, 1, '三级菜单2', NULL, 'nested/menu1/menu1-2', 999, 'menu', 'menu1-2', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (33, 10, 0, 1, 'Markdown', 'Markdown', 'components/MarkDown', 53, 'markdown', 'markdown', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (34, 10, 0, 1, 'Yaml编辑器', 'YamlEdit', 'components/YamlEdit', 54, 'dev', 'yaml', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (35, 130, 3, 1, '部门管理', 'Dept', 'system/dept/index', 6, 'dept', 'dept', b'0', b'0', b'0', 'dept:list', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (36, 131, 2, 0, '系统工具', NULL, '', 30, 'sys-tools', 'sys-tools', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (37, 130, 3, 1, '岗位管理', 'Job', 'system/job/index', 7, 'Steve-Jobs', 'job', b'0', b'0', b'0', 'job:list', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (39, 131, 3, 1, '字典管理', 'Dict', 'system/dict/index', 8, 'dictionary', 'dict', b'0', b'0', b'0', 'dict:list', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (41, 6, 0, 1, '在线用户', 'OnlineUser', 'monitor/online/index', 10, 'Steve-Jobs', 'online', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (44, 2, 0, 2, '用户新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'user:add', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (45, 2, 0, 2, '用户编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'user:edit', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (46, 2, 0, 2, '用户删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'user:del', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (48, 3, 0, 2, '角色创建', NULL, '', 2, '', '', b'0', b'0', b'0', 'roles:add', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (49, 3, 0, 2, '角色修改', NULL, '', 3, '', '', b'0', b'0', b'0', 'roles:edit', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (50, 3, 0, 2, '角色删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'roles:del', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (52, 5, 0, 2, '菜单新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'menu:add', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (53, 5, 0, 2, '菜单编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'menu:edit', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (54, 5, 0, 2, '菜单删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'menu:del', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (56, 35, 0, 2, '部门新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'dept:add', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (57, 35, 0, 2, '部门编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'dept:edit', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (58, 35, 0, 2, '部门删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'dept:del', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (60, 37, 0, 2, '岗位新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'job:add', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (61, 37, 0, 2, '岗位编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'job:edit', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (62, 37, 0, 2, '岗位删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'job:del', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (64, 39, 0, 2, '字典新增', NULL, '', 2, '', '', b'0', b'0', b'0', 'dict:add', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (65, 39, 0, 2, '字典编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'dict:edit', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (66, 39, 0, 2, '字典删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'dict:del', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (77, 18, 0, 2, '上传文件', NULL, '', 2, '', '', b'0', b'0', b'0', 'storage:add', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (78, 18, 0, 2, '文件编辑', NULL, '', 3, '', '', b'0', b'0', b'0', 'storage:edit', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (79, 18, 0, 2, '文件删除', NULL, '', 4, '', '', b'0', b'0', b'0', 'storage:del', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (80, 6, 0, 1, '服务监控', 'ServerMonitor', 'monitor/server/index', 14, 'codeConsole', 'server', b'0', b'0', b'0', 'monitor:list', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (83, 10, 0, 1, '图表库', 'Echarts', 'components/Echarts', 50, 'chart', 'echarts', b'0', b'1', b'0', '', 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (118, 10, 0, 1, '拖拽表格', 'DragTableDemo', 'components/DragTableDemo', 999, 'app', 'dragTableDemo', b'0', b'1', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (119, 10, 0, 1, '数字滚动', 'CountToDemo', 'components/CountToDemo', 999, 'app', 'countToDemo', b'0', b'1', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (120, 10, 0, 1, '代码编辑器', 'CodemirrorDemo', 'components/CodemirrorDemo', 999, 'app', 'codemirrorDemo', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (121, 10, 0, 1, '窗口拆分', 'SplitPaneDemo', 'components/SplitPaneDemo', 999, 'app', 'splitPaneDemo', b'0', b'1', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (122, 10, 0, 1, '一键复制', 'ClipboardDemo', 'components/ClipboardDemo', 999, 'app', 'clipboardDemo', b'0', b'1', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (123, 10, 0, 1, 'WebSocket', 'WebSocketDemo', 'components/WebSocketDemo', 999, 'app', 'webSocketDemo', b'0', b'1', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (130, NULL, 5, 0, '用户中心', NULL, NULL, 4, 'peoples', 'sso', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
2024-12-05 18:31:13 +08:00
|
|
|
|
INSERT INTO `system_menu` VALUES (131, NULL, 5, 0, '系统管理', NULL, NULL, 999, 'system1', 'sysconfig', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-11-15 22:12:18', '2024-11-15 22:12:18');
|
2024-12-05 21:51:13 +08:00
|
|
|
|
INSERT INTO `system_menu` VALUES (136, NULL, 1, 0, '配置中心', NULL, NULL, 999, 'menu', 'config', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-12-05 19:24:14', '2024-12-05 19:24:14');
|
|
|
|
|
INSERT INTO `system_menu` VALUES (137, 136, 3, 1, '配置管理', 'ConfigFile', 'config/file/index', 999, 'menu', 'configFile', b'0', b'0', b'0', NULL, 'admin', 'admin', '2024-12-05 19:25:36', '2024-12-05 19:25:36');
|
2024-12-03 19:29:26 +08:00
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_role
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_role`;
|
|
|
|
|
CREATE TABLE `system_role` (
|
|
|
|
|
`role_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '名称',
|
|
|
|
|
`level` int(0) NULL DEFAULT NULL COMMENT '角色级别',
|
|
|
|
|
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述',
|
|
|
|
|
`data_scope` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '数据权限',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
PRIMARY KEY (`role_id`) USING BTREE,
|
|
|
|
|
UNIQUE INDEX `uniq_name`(`name`) USING BTREE,
|
|
|
|
|
INDEX `role_name_index`(`name`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色表' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_role
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_role` VALUES (1, '超级管理员', 1, '-', '全部', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
INSERT INTO `system_role` VALUES (2, '普通用户', 2, '-', '本级', 'admin', 'admin', '2024-09-30 18:45:18', '2024-09-30 18:45:18');
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_roles_depts
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_roles_depts`;
|
|
|
|
|
CREATE TABLE `system_roles_depts` (
|
|
|
|
|
`role_id` bigint(0) NOT NULL,
|
|
|
|
|
`dept_id` bigint(0) NOT NULL,
|
|
|
|
|
PRIMARY KEY (`role_id`, `dept_id`) USING BTREE,
|
|
|
|
|
INDEX `FK7qg6itn5ajdoa9h9o78v9ksur`(`dept_id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色部门关联' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_roles_depts
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_roles_menus
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_roles_menus`;
|
|
|
|
|
CREATE TABLE `system_roles_menus` (
|
|
|
|
|
`menu_id` bigint(0) NOT NULL COMMENT '菜单ID',
|
|
|
|
|
`role_id` bigint(0) NOT NULL COMMENT '角色ID',
|
|
|
|
|
PRIMARY KEY (`menu_id`, `role_id`) USING BTREE,
|
|
|
|
|
INDEX `FKcngg2qadojhi3a651a5adkvbq`(`role_id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色菜单关联' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_roles_menus
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (2, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (3, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (5, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (6, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (9, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (10, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (11, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (14, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (15, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (18, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (21, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (22, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (23, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (24, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (27, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (33, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (34, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (35, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (36, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (37, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (39, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (41, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (44, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (45, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (46, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (48, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (49, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (50, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (52, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (53, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (54, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (56, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (57, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (58, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (60, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (61, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (62, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (64, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (65, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (66, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (77, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (78, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (79, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (80, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (83, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (118, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (119, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (120, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (121, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (122, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (123, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (130, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (131, 1);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (10, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (11, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (15, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (21, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (22, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (23, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (24, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (27, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (33, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (34, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (83, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (118, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (119, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (120, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (121, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (122, 2);
|
|
|
|
|
INSERT INTO `system_roles_menus` VALUES (123, 2);
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_tool_email_log
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_tool_email_log`;
|
|
|
|
|
CREATE TABLE `system_tool_email_log` (
|
|
|
|
|
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
|
|
|
|
|
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
|
|
|
|
|
`update_time` datetime(0) NOT NULL COMMENT '更新时间',
|
|
|
|
|
`email_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '邮件类型',
|
|
|
|
|
`from_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '谁发的',
|
|
|
|
|
`to_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '发给谁',
|
|
|
|
|
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主题',
|
|
|
|
|
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '内容',
|
|
|
|
|
`err_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '异常信息',
|
|
|
|
|
`send_status` int(0) NOT NULL COMMENT '发送状态(1已发送2发送成功3发送失败)',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'TOOL邮件发送记录' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_tool_email_log
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_tool_local_storage
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_tool_local_storage`;
|
|
|
|
|
CREATE TABLE `system_tool_local_storage` (
|
|
|
|
|
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
`real_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件真实的名称',
|
|
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件名',
|
|
|
|
|
`suffix` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '后缀',
|
|
|
|
|
`path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '路径',
|
|
|
|
|
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '类型',
|
|
|
|
|
`size` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '大小',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '本地存储' ROW_FORMAT = Compact;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_tool_local_storage
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_user
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_user`;
|
|
|
|
|
CREATE TABLE `system_user` (
|
|
|
|
|
`user_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
`dept_id` bigint(0) NULL DEFAULT NULL COMMENT '部门名称',
|
|
|
|
|
`username` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '用户名',
|
|
|
|
|
`nick_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '昵称',
|
|
|
|
|
`gender` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别',
|
|
|
|
|
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '手机号码',
|
|
|
|
|
`email` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '邮箱',
|
|
|
|
|
`avatar_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '头像地址',
|
|
|
|
|
`avatar_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '头像真实路径',
|
|
|
|
|
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '密码',
|
|
|
|
|
`is_admin` bit(1) NULL DEFAULT b'0' COMMENT '是否为admin账号',
|
|
|
|
|
`enabled` bit(1) NULL DEFAULT NULL COMMENT '状态:1启用、0禁用',
|
|
|
|
|
`create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`update_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
`pwd_reset_time` datetime(0) NULL DEFAULT NULL COMMENT '修改密码的时间',
|
|
|
|
|
`dingtalk_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'dingtalk_id',
|
|
|
|
|
`dingtalk_union_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'dingtalk_union_id',
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
PRIMARY KEY (`user_id`) USING BTREE,
|
|
|
|
|
UNIQUE INDEX `uniq_phone`(`phone`) USING BTREE,
|
|
|
|
|
UNIQUE INDEX `uniq_username`(`username`) USING BTREE,
|
|
|
|
|
UNIQUE INDEX `uniq_email`(`email`) USING BTREE,
|
|
|
|
|
INDEX `inx_enabled`(`enabled`) USING BTREE,
|
|
|
|
|
INDEX `inx_deptid`(`dept_id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 103 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '系统用户' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_user
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_user` VALUES (1, 2, 'admin', '管理员', '男', '18797874076', '1943815081@qq.com', NULL, NULL, '$2a$10$Egp1/gvFlt7zhlXVfEFw4OfWQCGPw0ClmMcc6FjTnvXNRVf9zdMRa', b'1', b'1', 'admin', 'anonymous', '2020-05-03 16:38:31', '0707644155678044', 'zf1xhIVabNeJOENYVGl1pwiEiE', '2024-09-30 18:45:18', '2024-10-29 15:56:38');
|
|
|
|
|
INSERT INTO `system_user` VALUES (3, 2, 'odboy', 'Odboy', '男', '17353066905', 'tianjun@odboy.cn', NULL, NULL, '$2a$10$4XcyudOYTSz6fue6KFNMHeUQnCX5jbBQypLEnGk1PmekXt5c95JcK', b'0', b'1', 'admin', 'anonymous', NULL, '016339065647678044', 'QRw9oJooPuMnV414UiPWiPnwiEiE', '2024-09-30 18:45:18', '2024-10-29 15:56:37');
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_users_jobs
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_users_jobs`;
|
|
|
|
|
CREATE TABLE `system_users_jobs` (
|
|
|
|
|
`user_id` bigint(0) NOT NULL COMMENT '用户ID',
|
|
|
|
|
`job_id` bigint(0) NOT NULL COMMENT '岗位ID',
|
|
|
|
|
PRIMARY KEY (`user_id`, `job_id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_users_jobs
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_users_jobs` VALUES (1, 11);
|
|
|
|
|
INSERT INTO `system_users_jobs` VALUES (3, 11);
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for system_users_roles
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `system_users_roles`;
|
|
|
|
|
CREATE TABLE `system_users_roles` (
|
|
|
|
|
`user_id` bigint(0) NOT NULL COMMENT '用户ID',
|
|
|
|
|
`role_id` bigint(0) NOT NULL COMMENT '角色ID',
|
|
|
|
|
PRIMARY KEY (`user_id`, `role_id`) USING BTREE,
|
|
|
|
|
INDEX `FKq4eq273l04bpu4efj0jd0jb98`(`role_id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户角色关联' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of system_users_roles
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
INSERT INTO `system_users_roles` VALUES (1, 1);
|
|
|
|
|
INSERT INTO `system_users_roles` VALUES (3, 2);
|
|
|
|
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|