1 Star 0 Fork 2

liuhai/shiro_conversation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
shiro.sql 3.35 KB
一键复制 编辑 原始数据 按行查看 历史
记得哟 提交于 2019-07-24 15:15 . 更新数据库
/*
Navicat MySQL Data Transfer
Source Server : xiaozhu
Source Server Version : 50703
Source Host : localhost:3306
Source Database : shiro
Target Server Type : MYSQL
Target Server Version : 50703
File Encoding : 65001
Date: 2019-07-24 15:14:08
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `roles_permissions`
-- ----------------------------
DROP TABLE IF EXISTS `roles_permissions`;
CREATE TABLE `roles_permissions` (
`id` int(50) NOT NULL AUTO_INCREMENT,
`role_name` varchar(50) DEFAULT NULL,
`permission` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of roles_permissions
-- ----------------------------
INSERT INTO `roles_permissions` VALUES ('1', 'admin', 'user:update');
-- ----------------------------
-- Table structure for `test_permissions`
-- ----------------------------
DROP TABLE IF EXISTS `test_permissions`;
CREATE TABLE `test_permissions` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`role` varchar(50) DEFAULT NULL,
`permission` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of test_permissions
-- ----------------------------
INSERT INTO `test_permissions` VALUES ('1', 'zhu', 'select');
-- ----------------------------
-- Table structure for `test_user`
-- ----------------------------
DROP TABLE IF EXISTS `test_user`;
CREATE TABLE `test_user` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`username` varchar(50) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of test_user
-- ----------------------------
INSERT INTO `test_user` VALUES ('1', 'benzhu', '666666');
-- ----------------------------
-- Table structure for `test_user_roles`
-- ----------------------------
DROP TABLE IF EXISTS `test_user_roles`;
CREATE TABLE `test_user_roles` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`username` varchar(50) DEFAULT NULL,
`role` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of test_user_roles
-- ----------------------------
INSERT INTO `test_user_roles` VALUES ('1', 'benzhu', 'zhu');
-- ----------------------------
-- Table structure for `users`
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`username` varchar(50) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('1', 'benzhu', '5282d562ad1f43221a173ab92c1793d2');
-- ----------------------------
-- Table structure for `user_roles`
-- ----------------------------
DROP TABLE IF EXISTS `user_roles`;
CREATE TABLE `user_roles` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`username` varchar(50) DEFAULT NULL,
`role_name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user_roles
-- ----------------------------
INSERT INTO `user_roles` VALUES ('1', 'benzhu', 'admin');
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/coastal/shiro_conversation.git
git@gitee.com:coastal/shiro_conversation.git
coastal
shiro_conversation
shiro_conversation
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385