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.
46 lines
1.5 KiB
46 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:24 PM
|
|
*/
|
|
|
|
SET NAMES utf8;
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for `tp_auth_role`
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `tp_auth_role`;
|
|
CREATE TABLE `tp_auth_role` (
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(20) NOT NULL COMMENT '角色名称',
|
|
`pid` smallint(6) DEFAULT '0' COMMENT '父角色ID',
|
|
`status` tinyint(1) unsigned DEFAULT NULL COMMENT '状态',
|
|
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
|
|
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
|
|
`listorder` int(3) NOT NULL DEFAULT '0' COMMENT '排序字段',
|
|
PRIMARY KEY (`id`),
|
|
KEY `parentId` (`pid`),
|
|
KEY `status` (`status`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='角色表';
|
|
|
|
-- ----------------------------
|
|
-- Records of `tp_auth_role`
|
|
-- ----------------------------
|
|
BEGIN;
|
|
INSERT INTO `tp_auth_role` VALUES ('1', '超级管理员', '0', '1', '拥有网站最高管理员权限!', '1329633709', '1329633709', '0'), ('2', '文章管理', '0', '1', '', '0', '0', '0');
|
|
COMMIT;
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|