forked from codingXiaxw/shiro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0b1171
commit 14dc184
Showing
2 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
|
||
|
||
/*!40101 SET NAMES utf8 */; | ||
|
||
/*!40101 SET SQL_MODE=''*/; | ||
|
||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
/*Table structure for table `sys_permission` */ | ||
|
||
CREATE TABLE `sys_permission` ( | ||
`id` bigint(20) NOT NULL COMMENT '主键', | ||
`name` varchar(128) NOT NULL COMMENT '资源名称', | ||
`type` varchar(32) NOT NULL COMMENT '资源类型:menu,button,', | ||
`url` varchar(128) DEFAULT NULL COMMENT '访问url地址', | ||
`percode` varchar(128) DEFAULT NULL COMMENT '权限代码字符串', | ||
`parentid` bigint(20) DEFAULT NULL COMMENT '父结点id', | ||
`parentids` varchar(128) DEFAULT NULL COMMENT '父结点id列表串', | ||
`sortstring` varchar(128) DEFAULT NULL COMMENT '排序号', | ||
`available` char(1) DEFAULT NULL COMMENT '是否可用,1:可用,0不可用', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
/*Table structure for table `sys_role` */ | ||
|
||
CREATE TABLE `sys_role` ( | ||
`id` varchar(36) NOT NULL, | ||
`name` varchar(128) NOT NULL, | ||
`available` char(1) DEFAULT NULL COMMENT '是否可用,1:可用,0不可用', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
/*Table structure for table `sys_role_permission` */ | ||
|
||
CREATE TABLE `sys_role_permission` ( | ||
`id` varchar(36) NOT NULL, | ||
`sys_role_id` varchar(32) NOT NULL COMMENT '角色id', | ||
`sys_permission_id` varchar(32) NOT NULL COMMENT '权限id', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
/*Table structure for table `sys_user` */ | ||
|
||
CREATE TABLE `sys_user` ( | ||
`id` varchar(36) NOT NULL COMMENT '主键', | ||
`usercode` varchar(32) NOT NULL COMMENT '账号', | ||
`username` varchar(64) NOT NULL COMMENT '姓名', | ||
`password` varchar(32) NOT NULL COMMENT '密码', | ||
`salt` varchar(64) DEFAULT NULL COMMENT '盐', | ||
`locked` char(1) DEFAULT NULL COMMENT '账号是否锁定,1:锁定,0未锁定', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
/*Table structure for table `sys_user_role` */ | ||
|
||
CREATE TABLE `sys_user_role` ( | ||
`id` varchar(36) NOT NULL, | ||
`sys_user_id` varchar(32) NOT NULL, | ||
`sys_role_id` varchar(32) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters