Files
fad_oa/script/sql/20241120表结构备份/sys_role.sql

21 lines
1.4 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

create table fad_oa.sys_role
(
role_id bigint not null comment '角色ID'
primary key,
role_name varchar(30) not null comment '角色名称',
role_key varchar(100) not null comment '角色权限字符串',
role_sort int not null comment '显示顺序',
data_scope char default '1' null comment '数据范围1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限',
menu_check_strictly tinyint(1) default 1 null comment '菜单树选择项是否关联显示',
dept_check_strictly tinyint(1) default 1 null comment '部门树选择项是否关联显示',
status char not null comment '角色状态0正常 1停用',
del_flag char default '0' null comment '删除标志0代表存在 2代表删除',
create_by varchar(64) default '' null comment '创建者',
create_time datetime null comment '创建时间',
update_by varchar(64) default '' null comment '更新者',
update_time datetime null comment '更新时间',
remark varchar(500) null comment '备注'
)
comment '角色信息表' charset = utf8mb4;