mysql version 50713_maple.sql

/*

Navicat MySQL Data Transfer

Source Server : Local DB

Source Server Version : 50713

Source Host : localhost:3306

Source Database : maple

Target Server Type : MYSQL

Target Server Version : 50713

File Encoding : 65001

Date: 2017-07-14 09:17:20

*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------

-- Table structure for sys_dictionary

-- ----------------------------

DROP TABLE IF EXISTS `sys_dictionary`;

CREATE TABLE `sys_dictionary` (

`id` bigint(20) NOT NULL AUTO_INCREMENT,

`create_time` datetime DEFAULT CURRENT_TIMESTAMP,

`is_deleted` int(11) DEFAULT '0',

`update_time` datetime DEFAULT CURRENT_TIMESTAMP,

`code` varchar(20) NOT NULL,

`description` longtext,

`is_fixed` int(11) DEFAULT '0',

`name` varchar(100) DEFAULT NULL,

`sequence` int(11) DEFAULT '0',

`status` int(11) DEFAULT '0',

`dict_type` varchar(100) NOT NULL DEFAULT '0',

`parent_id` bigint(30) DEFAULT NULL,

PRIMARY KEY (`id`),

UNIQUE KEY `UK_ah1isfy5alow4rtkty9vri85r` (`code`),

KEY `FKnd95at2xgu5eb9http5x3jdk` (`parent_id`),

CONSTRAINT `FKnd95at2xgu5eb9http5x3jdk` FOREIGN KEY (`parent_id`) REFERENCES `sys_dictionary` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------

-- Records of sys_dictionary

-- ----------------------------

-- ----------------------------

-- Table structure for sys_dictionary_type

-- ----------------------------

DROP TABLE IF EXISTS `sys_dictionary_type`;

CREATE TABLE `sys_dictionary_type` (

`id` bigint(20) NOT NULL AUTO_INCREMENT,

`create_time` datetime DEFAULT CURRENT_TIMESTAMP,

`is_deleted` int(11) DEFAULT '0',

`update_time` datetime DEFAULT CURRENT_TIMESTAMP,

`code` varchar(20) NOT NULL,

`description` longtext,

`is_fixed` int(11) DEFAULT '0',

`name` varchar(100) DEFAULT NULL,

PRIMARY KEY (`id`),

UNIQUE KEY `UK_hrpfljty1s5rqoii84gwvtscw` (`code`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------

-- Records of sys_dictionary_type

-- ----------------------------

-- ----------------------------

-- Table structure for sys_log

-- ----------------------------

DROP TABLE IF EXISTS `sys_log`;

CREATE TABLE `sys_log` (

`id` bigint(20) NOT NULL AUTO_INCREMENT,

`create_time` datetime DEFAULT CURRENT_TIMESTAMP,

`is_deleted` int(11) DEFAULT '0',

`update_time` datetime DEFAULT CURRENT_TIMESTAMP,

`content` longtext,

`description` longtext,

`ip` varchar(100) DEFAULT NULL,

`module` varchar(200) DEFAULT NULL,

`response_time` varchar(100) DEFAULT NULL,

`username` varchar(100) DEFAULT NULL,

PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------

-- Records of sys_log

-- ----------------------------

-- ----------------------------

-- Table structure for sys_resource

-- ----------------------------

DROP TABLE IF EXISTS `sys_resource`;

CREATE TABLE `sys_resource` (

`id` bigint(20) NOT NULL AUTO_INCREMENT,

`create_time` datetime DEFAULT CURRENT_TIMESTAMP,

`is_deleted` int(11) DEFAULT '0',

`update_time` datetime DEFAULT CURRENT_TIMESTAMP,

`code` longtext,

`description` longtext,

`icon` varchar(100) DEFAULT NULL,

`is_fixed` int(11) DEFAULT '0',

`name` varchar(100) DEFAULT NULL,

`sequence` int(11) DEFAULT '0',

`status` int(11) DEFAULT '0',

`type` varchar(100) DEFAULT NULL,

`url` longtext,

`parent_id` bigint(30) DEFAULT NULL,

PRIMARY KEY (`id`),

KEY `FK3fekum3ead5klp7y4lckn5ohi` (`parent_id`)

) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4;

-- ----------------------------

-- Records of sys_resource

-- ----------------------------

INSERT INTO `sys_resource` VALUES ('1', null, '0', '2017-04-02 16:31:00', null, '', null, '0', '系统设置', '1', '0', '1', '', null);

INSERT INTO `sys_resource` VALUES ('2', null, '0', '2017-04-02 16:31:08', null, '', null, '0', '系统监控', '2', '0', '1', '', null);

INSERT INTO `sys_resource` VALUES ('3', null, '0', '2017-04-07 12:10:33', null, '', null, '0', '用户管理', '1', '0', '1', '/admin/user/list', '1');

INSERT INTO `sys_resource` VALUES ('4', null, '0', '2017-07-12 16:11:55', null, '', null, '0', '角色管理', '2', '0', '1', '/admin/role/list', '1');

INSERT INTO `sys_resource` VALUES ('5', null, '0', '2017-04-07 12:10:57', null, '', null, '0', '菜单管理', '4', '0', '1', '/admin/menu/list', '1');

INSERT INTO `sys_resource` VALUES ('6', null, '0', '2017-07-12 16:07:42', null, '', null, '0', '日志记录', '1', '0', '1', '/admin/log/list', '2');

INSERT INTO `sys_resource` VALUES ('7', null, '0', '2017-07-12 16:07:38', null, '', null, '0', '数据库监控', '2', '0', '1', '/druid/index.html', '2');

INSERT INTO `sys_resource` VALUES ('9', '2017-04-01 21:33:22', '0', '2017-04-07 19:44:00', 'sys:menu:add', '添加菜单', null, '0', '添加', null, '0', '2', null, '5');

INSERT INTO `sys_resource` VALUES ('10', '2017-04-06 20:21:45', '0', '2017-04-06 20:21:45', null, '', null, '0', '权限管理', '3', '0', '1', '/admin/permission/list', '1');

INSERT INTO `sys_resource` VALUES ('11', '2017-04-07 12:05:08', '0', '2017-04-07 12:05:08', null, '', null, '0', '字典管理', '5', '0', '1', '/admin/dict/list', '1');

-- ----------------------------

-- Table structure for sys_role

-- ----------------------------

DROP TABLE IF EXISTS `sys_role`;

CREATE TABLE `sys_role` (

`id` bigint(20) NOT NULL AUTO_INCREMENT,

`create_time` datetime DEFAULT CURRENT_TIMESTAMP,

`is_deleted` int(11) DEFAULT '0',

`update_time` datetime DEFAULT CURRENT_TIMESTAMP,

`code` varchar(100) NOT NULL,

`description` longtext,

`name` varchar(100) DEFAULT NULL,

`status` int(11) NOT NULL DEFAULT '0',

`is_fixed` int(11) DEFAULT '0',

PRIMARY KEY (`id`),

UNIQUE KEY `UK_plpigyqwsqfn7mn66npgf9ftp` (`code`)

) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

-- ----------------------------

-- Records of sys_role

-- ----------------------------

INSERT INTO `sys_role` VALUES ('1', '2017-03-31 18:23:40', '0', '2017-07-12 16:04:38', 'admin', '超级管理员', '超级管理员', '0', '1');

-- ----------------------------

-- Table structure for sys_role_resource

-- ----------------------------

DROP TABLE IF EXISTS `sys_role_resource`;

CREATE TABLE `sys_role_resource` (

`role_id` bigint(30) NOT NULL,

`resource_id` bigint(30) NOT NULL,

PRIMARY KEY (`role_id`,`resource_id`),

KEY `FKkj7e3cva1e2s3nsd0yghpbsnk` (`resource_id`),

CONSTRAINT `FK7urjh5xeujvp29nihwbs5b9kr` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`),

CONSTRAINT `FKkj7e3cva1e2s3nsd0yghpbsnk` FOREIGN KEY (`resource_id`) REFERENCES `sys_resource` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------

-- Records of sys_role_resource

-- ----------------------------

INSERT INTO `sys_role_resource` VALUES ('1', '1');

INSERT INTO `sys_role_resource` VALUES ('1', '2');

INSERT INTO `sys_role_resource` VALUES ('1', '3');

INSERT INTO `sys_role_resource` VALUES ('1', '4');

INSERT INTO `sys_role_resource` VALUES ('1', '5');

INSERT INTO `sys_role_resource` VALUES ('1', '6');

INSERT INTO `sys_role_resource` VALUES ('1', '7');

INSERT INTO `sys_role_resource` VALUES ('1', '10');

INSERT INTO `sys_role_resource` VALUES ('1', '11');

-- ----------------------------

-- Table structure for sys_user

-- ----------------------------

DROP TABLE IF EXISTS `sys_user`;

CREATE TABLE `sys_user` (

`id` bigint(20) NOT NULL AUTO_INCREMENT,

`create_time` datetime DEFAULT CURRENT_TIMESTAMP,

`is_deleted` int(11) DEFAULT '0',

`update_time` datetime DEFAULT CURRENT_TIMESTAMP,

`email` varchar(50) DEFAULT NULL,

`gender` int(11) DEFAULT '0',

`mobile` varchar(40) DEFAULT NULL,

`name` varchar(200) DEFAULT NULL,

`password` varchar(200) NOT NULL,

`status` int(11) NOT NULL DEFAULT '0',

`username` varchar(100) NOT NULL,

`is_fixed` int(11) DEFAULT '0',

PRIMARY KEY (`id`),

UNIQUE KEY `UK_51bvuyvihefoh4kp5syh2jpi4` (`username`)

) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

-- ----------------------------

-- Records of sys_user

-- ----------------------------

INSERT INTO `sys_user` VALUES ('1', '2017-03-26 19:57:50', '0', '2017-04-10 20:07:33', '', '0', '', 'admin', 'e10adc3949ba59abbe56e057f20f883e', '0', 'admin', '1');

-- ----------------------------

-- Table structure for sys_user_role

-- ----------------------------

DROP TABLE IF EXISTS `sys_user_role`;

CREATE TABLE `sys_user_role` (

`user_id` bigint(30) NOT NULL,

`role_id` bigint(30) NOT NULL,

PRIMARY KEY (`user_id`,`role_id`),

KEY `FKhh52n8vd4ny9ff4x9fb8v65qx` (`role_id`),

CONSTRAINT `FKb40xxfch70f5qnyfw8yme1n1s` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`),

CONSTRAINT `FKhh52n8vd4ny9ff4x9fb8v65qx` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------

-- Records of sys_user_role

-- ----------------------------

INSERT INTO `sys_user_role` VALUES ('1', '1');

一键复制

编辑

Web IDE

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值