This commit is contained in:
Vendored
+7
-4
@@ -7,17 +7,20 @@ VALUES
|
||||
ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name, status = EXCLUDED.status,
|
||||
policy_version = EXCLUDED.policy_version, updated_at = now();
|
||||
|
||||
INSERT INTO user_account (id, public_id, tenant_id, oidc_issuer, oidc_subject, display_name, status, platform_role)
|
||||
INSERT INTO user_account (id, public_id, tenant_id, oidc_issuer, oidc_subject, display_name, status, platform_role, account_kind)
|
||||
VALUES
|
||||
('10000000-0000-0000-0000-000000000101', '10000000-0000-0000-0000-000000000111', '10000000-0000-0000-0000-000000000001', 'http://localhost:58180/realms/voice-local', '00000000-0000-0000-0000-000000000101', '本地所有者', 'active', 'ops_admin'),
|
||||
('10000000-0000-0000-0000-000000000102', '10000000-0000-0000-0000-000000000112', '10000000-0000-0000-0000-000000000001', 'http://localhost:58180/realms/voice-local', '00000000-0000-0000-0000-000000000102', '本地编辑者', 'active', 'ops_approver'),
|
||||
('20000000-0000-0000-0000-000000000103', '20000000-0000-0000-0000-000000000113', '20000000-0000-0000-0000-000000000001', 'http://localhost:58180/realms/voice-local', '00000000-0000-0000-0000-000000000103', '隔离租户查看者', 'active', 'customer')
|
||||
('10000000-0000-0000-0000-000000000101', '10000000-0000-0000-0000-000000000111', '10000000-0000-0000-0000-000000000001', 'http://localhost:58180/realms/voice-local', '00000000-0000-0000-0000-000000000101', '本地所有者', 'active', 'customer', 'customer'),
|
||||
('10000000-0000-0000-0000-000000000102', '10000000-0000-0000-0000-000000000112', '10000000-0000-0000-0000-000000000001', 'http://localhost:58180/realms/voice-local', '00000000-0000-0000-0000-000000000102', '本地编辑者', 'active', 'customer', 'customer'),
|
||||
('20000000-0000-0000-0000-000000000103', '20000000-0000-0000-0000-000000000113', '20000000-0000-0000-0000-000000000001', 'http://localhost:58180/realms/voice-local', '00000000-0000-0000-0000-000000000103', '隔离租户查看者', 'active', 'customer', 'customer'),
|
||||
('10000000-0000-0000-0000-000000000104', '10000000-0000-0000-0000-000000000114', '10000000-0000-0000-0000-000000000001', 'http://localhost:58180/realms/voice-local', '00000000-0000-0000-0000-000000000104', '平台运维管理员', 'active', 'ops_admin', 'operator'),
|
||||
('10000000-0000-0000-0000-000000000105', '10000000-0000-0000-0000-000000000115', '10000000-0000-0000-0000-000000000001', 'http://localhost:58180/realms/voice-local', '00000000-0000-0000-0000-000000000105', '平台运维审批员', 'active', 'ops_approver', 'operator')
|
||||
ON CONFLICT (id) DO UPDATE SET
|
||||
oidc_issuer = EXCLUDED.oidc_issuer,
|
||||
oidc_subject = EXCLUDED.oidc_subject,
|
||||
display_name = EXCLUDED.display_name,
|
||||
status = EXCLUDED.status,
|
||||
platform_role = EXCLUDED.platform_role,
|
||||
account_kind = EXCLUDED.account_kind,
|
||||
updated_at = now();
|
||||
|
||||
INSERT INTO household (id, public_id, tenant_id, name, owner_user_id, status)
|
||||
|
||||
Reference in New Issue
Block a user