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.
 
 
 
 

70 lines
2.8 KiB

/*==============================================================*/
/* Table: service_card_operate */
/*==============================================================*/
create table service_card_operate
(
id bigint not null auto_increment comment '主键id',
card_id bigint comment '服务卡id',
card_no varchar(32) comment '服务卡编号',
operate_content varchar(255) comment '操作内容',
create_at bigint default 0 comment '创建时间',
create_by varchar(32) comment '创建人',
primary key (id)
);
alter table service_card_operate comment '服务卡操作记录';
/*==============================================================*/
/* Table: function_permission */
/*==============================================================*/
create table function_permission
(
id int not null auto_increment comment 'id',
name varchar(50) comment '名称',
url varchar(200) comment 'url',
method varchar(20) comment '请求方式:GET,POST,PUT,DELETE',
create_time bigint default 0 comment '创建时间',
del_flag tinyint default 0 comment '删除标识:0-未删除,1-已删除',
primary key (id)
);
alter table function_permission comment '功能权限';
/*==============================================================*/
/* Table: role_info */
/*==============================================================*/
alter table role_info
add column status tinyint default 0 comment '状态:0-正常,1-禁止',
add column create_by varchar(32) comment '创建人',
add column update_time bigint comment '更新时间',
add column update_by varchar(32) comment '更新人';
/*==============================================================*/
/* Table: permission_info */
/*==============================================================*/
alter table permission_info
add column permission_url varchar(200) comment 'URL',
add column parent_id bigint comment '父级菜单',
add column level int comment '级别',
add column icon varchar(50) comment '图标',
add column sort bigint comment '排序',
add column type tinyint default 1 comment '权限类型:1-菜单,2-菜单组',
add column create_by varchar(32) comment '创建人',
add column update_time bigint comment '更新时间',
add column update_by varchar(32) comment '更新人',
add column fids varchar(200) comment '功能权限id集合:逗号分隔';
-- 更新用户状态
UPDATE
admin_info a
SET a.STATUS = '0'
WHERE
a.`status` = 1;
UPDATE
admin_info a
SET a.STATUS = '1'
WHERE
a.`status` in ('2','10','20','21')