亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

権限テーブルの作成

1,新建三張表think_auth_group,think_auth_group_access,think_auth_rules

CREATE TABLE think_auth_group(

id ??int(11) not null Primary key auto_increment,

title char(100) NOT NULL,

status tinyint(1) DEFAULT NULL,

rules char(80) DEFAULT NULL,

create_time int(11) DEFAULT NULL)

ENGINE=InnoDB DEFAULT CHARSET=utf8;

微信圖片_20180307174754.png

CREATE TABLE `think_auth_group_access` (

`uid` smallint(5) unsigned NOT NULL,

`group_id` smallint(5) unsigned NOT NULL,

UNIQUE KEY `uid_group_id` (`uid`,`group_id`),

KEY `uid` (`uid`),

KEY `group_id` (`group_id`)

) ENGINE=INNODB DEFAULT CHARSET=utf8;

微信圖片_20180307175024.png

CREATE TABLE think_auth_rules(

id ??int(11) not null 主キー auto_increment,

name varchar(100) NOT NULL,

title varchar(100) NOT NULL、

type tinyint(1) DEFAULT NULL、

status tinyint(1) DEFAULT NULL、

condition char(100) DEFAULT NULL ,

pid smallint(5) DEFAULT NULL,

sort tinyint(4) DEFAULT NULL,

create_time int(11) DEFAULT NULL)

ENGINE =InnoDB デフォルト CHARSET=utf8;

微信圖片_20180307175109.png



學(xué)び続ける
||
<?php echo "權(quán)限表添加";
提出するリセットコード