zoukankan      html  css  js  c++  java
  • 角色权限表

    /******RBAC******/

    drop table if exists p39_privilege;
    create table p39_privilege
    (
    id mediumint unsigned not null auto_increment comment 'Id',
    pri_name varchar(30) not null comment '权限名称',
    moudle_name varchar(30) not null default '' comment '模块名称',
    controller_name varchar(30) not null default '' comment '控制器名称',
    action_name varchar(30) not null default '' comment '方法名称',
    parent_id mediumint unsigned not null default '0' comment '上级权限Id',
    primary key (id)
    )engine=InnoDB default charset=utf8 comment '权限表';

    drop table if exists p39_role_pri;
    create table p39_role_pri
    (
    pri_id mediumint unsigned not null comment '权限Id',
    role_id mediumint unsigned not null comment '角色Id',
    key pri_id(pri_id),
    key role_id(role_id)
    )engine=InnoDB default charset=utf8 comment '角色权限表';


    drop table if exists p39_role;
    create table p39_role
    (
    id mediumint unsigned not null auto_increment comment 'Id',
    role_name varchar(30) not null comment '角色名称',
    primary key (id)
    )engine=InnoDB default charset=utf8 comment '角色表';


    drop table if exists p39_admin_role;
    create table p39_admin_role
    (
    admin_id mediumint unsigned not null comment '管理员Id',
    role_id mediumint unsigned not null comment '角色Id',
    key admin_id(admin_id),
    key role_id(role_id)
    )engine=InnoDB default charset=utf8 comment '管理员角色表';

    drop table if exists p39_admin;
    create table p39_admin
    (
    id mediumint unsigned not null auto_increment comment 'Id',
    username varchar(30) not null comment '用户名',
    password char(32) not null comment '密码',
    primary key (id)
    )engine=InnoDB default charset=utf8 comment '管理员表';

    insert into p39_admin(id,username,password) values(1,'root',' 21232f297a57a5a743894a0e4a801fc3');

    世上无难事,只怕有心人......
  • 相关阅读:
    小菜鸟学 MQ(三)
    小菜鸟 学MQ(二)
    小菜鸟学 MQ(一)
    CXF 自定义拦截器
    WebService 入门程序(一)
    查找满足条件的颜色并替换
    jsfl 巧用获取jsfl绝对路径,导入配置文件,注意配置文件无法改变舞台宽高
    jsfl 发布保存关闭
    jsfl 改变舞台宽高
    AS3 在不规则区域内拖动
  • 原文地址:https://www.cnblogs.com/gooderic/p/5671694.html
Copyright © 2011-2022 走看看