-- 记录阿拉丁认证失败原因
alter table sys_user_sub
    add fail_reason varchar(255) null comment '认证失败原因' after cert_remark;

-- deptSub修改联合索引
drop index dept_sub_type on sys_dept_sub;
create unique index dept_sub_type
    on sys_dept_sub (dept_id, subject_type, subject_channel);