chore: update CI, DB init, and documentation
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user