Add DeviceCleanupWorker to periodically clean up stale device tokens that haven't been used within the retention period. This prevents accumulation of invalid registration_ids and maintains data hygiene. - New DeviceCleanupConfig with enabled, retention_days (3), and interval_minutes (360) - New repository methods DeleteStaleDevices and DeleteOldestActiveDevice - Updated RegisterDevice to evict oldest active device when reaching limit - Reduced MaxDevicesPerUser from 10 to 3 per user - Worker integrated into app startup/shutdown lifecycle
21 lines
185 B
Plaintext
21 lines
185 B
Plaintext
# Build artifacts
|
|
/server
|
|
*.exe
|
|
*.tar
|
|
|
|
# Runtime files
|
|
data/
|
|
logs/
|
|
*.log
|
|
|
|
# Local docker metadata
|
|
.last_docker_tag
|
|
.last_docker_tar
|
|
|
|
# Local environment files
|
|
.env
|
|
.env.*
|
|
|
|
|
|
plans/
|
|
docs/ |