【8.1.0】【role】初始化角色关联公司的sql

pull/60/head
fengshuonan 2024-01-15 23:22:25 +08:00
parent 2f055e66c7
commit a196bdc0fd
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
ALTER TABLE `sys_role`
DROP COLUMN `role_system_flag`,
ADD COLUMN `role_type` tinyint NOT NULL DEFAULT 10 COMMENT '角色类型10-系统角色20-公司角色' AFTER `remark`,
ADD COLUMN `role_company_id` bigint NULL COMMENT '角色所属公司id当角色类型为20时传此值' AFTER `role_type`;
ALTER TABLE `sys_user_role`
ADD COLUMN `role_company_id` bigint NULL COMMENT '角色所属公司id' AFTER `role_id`;