fix: finalize standard HTTPS deployment

This commit is contained in:
Codex Local
2026-08-26 11:19:43 +08:00
parent 8955b57ddc
commit 8607ec33e7
3 changed files with 9 additions and 5 deletions
+7 -3
View File
@@ -12,9 +12,13 @@ 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')
ON CONFLICT (tenant_id, oidc_issuer, oidc_subject) DO UPDATE SET
display_name = EXCLUDED.display_name, status = EXCLUDED.status,
platform_role = EXCLUDED.platform_role, updated_at = now();
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,
updated_at = now();
INSERT INTO household (id, public_id, tenant_id, name, owner_user_id, status)
VALUES