feat: add pause/resume functionality for API keys (#158)

- Add isActive field to API key schema with migration
- Implement PUT /api/keys/[id] endpoint for toggle
- Update validation to reject paused keys (403)
- Add UI toggle controls with confirmation
- Ensure cloud sync preserves pause state
This commit is contained in:
Thiên Toán
2026-02-20 15:07:12 +07:00
committed by GitHub
parent 806bd4ae14
commit 73388a02a1
4 changed files with 119 additions and 9 deletions

View File

@@ -362,6 +362,7 @@ erDiagram
string name
string key
string machineId
boolean isActive
}
USAGE_ENTRY {