chore: update CI, DB init, and documentation
CI / Go vulnerabilities (push) Successful in 37s
CI / Tests (push) Successful in 1m44s
CI / Frontend lint & types (push) Successful in 1m51s
CI / Race detector (push) Successful in 4m42s

Update CI workflow, PostgreSQL init script, README, and obsidian technical docs.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-07-07 00:10:18 +01:00
co-authored by Sisyphus
parent 27be7cea91
commit f4969645c4
7 changed files with 82 additions and 20 deletions
+6
View File
@@ -939,6 +939,9 @@ BEGIN
-- Anonymize admin notification references (not customer data — just drop the user link)
UPDATE admin_notifications SET user_id = NULL WHERE user_id = target_id;
-- Clear login audit trail (no ongoing legal basis after account closure)
DELETE FROM login_audit WHERE user_id = target_id;
END;
$$ LANGUAGE plpgsql;
@@ -961,6 +964,9 @@ BEGIN
user_id = NULL
WHERE user_id = target_id;
-- Clear login audit trail before deleting the user row
DELETE FROM login_audit WHERE user_id = target_id;
DELETE FROM users WHERE id = target_id AND account_role = 'guest';
END;
$$ LANGUAGE plpgsql;