Files
voidea/docs/backlog/temp-users-cleanup-note.md

43 lines
723 B
Markdown

# Temp Users Cleanup Note - VoIdea
**Date:** 2026-05-10
**Status:** Backlog
---
## Overview
Mechanism for QATesterAgent to clean up temporary test accounts.
---
## Requirements
1. Create temp users with unique prefix: est_
2. Track creation time
3. Clean up after test completion
4. Verify cleanup in logs
5. No cascade delete on real users
---
## Safety Rules
1. Never delete users without est_ prefix
2. Use soft delete before hard delete
3. Log all cleanup operations
4. Verify foreign key constraints
5. Test cleanup in staging first
---
## Implementation
- PostgreSQL trigger for auto-cleanup (optional)
- Celery task for scheduled cleanup
- Admin notification on cleanup
---
*Created: 2026-05-10*