You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.5 KiB
41 lines
1.5 KiB
/*
|
|
Navicat Premium Data Transfer
|
|
|
|
Source Server : localhost
|
|
Source Server Type : MySQL
|
|
Source Server Version : 50712
|
|
Source Host : localhost
|
|
Source Database : rbac
|
|
|
|
Target Server Type : MySQL
|
|
Target Server Version : 50712
|
|
File Encoding : utf-8
|
|
|
|
Date: 11/12/2016 23:25:30 PM
|
|
*/
|
|
|
|
SET NAMES utf8;
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for `tp_auth_access`
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `tp_auth_access`;
|
|
CREATE TABLE `tp_auth_access` (
|
|
`role_id` mediumint(8) unsigned NOT NULL COMMENT '角色',
|
|
`rule_name` varchar(255) NOT NULL COMMENT '规则唯一英文标识,全小写',
|
|
`type` varchar(30) DEFAULT NULL COMMENT '权限规则分类,请加应用前缀,如admin_',
|
|
`menu_id` int(11) DEFAULT NULL COMMENT '后台菜单ID',
|
|
KEY `role_id` (`role_id`),
|
|
KEY `rule_name` (`rule_name`) USING BTREE
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限授权表';
|
|
|
|
-- ----------------------------
|
|
-- Records of `tp_auth_access`
|
|
-- ----------------------------
|
|
BEGIN;
|
|
INSERT INTO `tp_auth_access` VALUES ('2', 'index/auth/default', 'admin_url', '1'), ('2', 'index/auth/default', 'admin_url', '8'), ('2', 'index/auth/menu', 'admin_url', '9'), ('2', 'index/auth/menuadd', 'admin_url', '10'), ('2', 'index/auth/menuedit', 'admin_url', '11'), ('2', 'index/auth/menudelete', 'admin_url', '12'), ('2', 'index/auth/menuorder', 'admin_url', '13');
|
|
COMMIT;
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|