ci: 权限初始化数据

This commit is contained in:
CaptainB 2023-07-31 18:40:54 +08:00 committed by 刘瑞斌
parent 447e9a5bb5
commit e3ea6b569e
1 changed files with 2 additions and 4 deletions

View File

@ -20,12 +20,12 @@ INSERT INTO user_role (id, name, description, internal, type, create_time, updat
-- 初始化用户和组的关系
INSERT INTO user_role_relation (id, user_id, role_id, source_id, create_time, create_user) VALUES (uuid(), 'admin', 'admin', 'SYSTEM', 1684747668375, 'admin');
INSERT INTO user_role_relation (id, user_id, role_id, source_id, create_time, create_user) VALUES (uuid(), 'admin', 'member', 'SYSTEM', 1684747668375, 'admin');
-- 初始化用户组权限
-- 系统管理员拥有所有的权限,不用初始化
-- 系统成员的权限
-- 组织管理员权限
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (uuid(), 'org_admin', 'SYSTEM_PROJECT:READ+DELETE_USER');
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (uuid(), 'org_admin', 'SYSTEM_PROJECT:READ+ADD_USER');
@ -84,8 +84,6 @@ INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (uuid(), 'o
-- 项目成员权限
-- 只读用户的权限
-- 初始化当前站点配置
INSERT into system_parameter values('base.url', 'http://127.0.0.1:8081', 'text');