Add database management commands to CLI:
- tsr db scan <directory> - Scan safetensors, compute hashes, store metadata
- tsr db link - Match unlinked files to CivitAI by hash lookup
- tsr db cache <model_id> - Fetch and cache full CivitAI model data
- tsr db list - List local files with CivitAI info
- tsr db search - Search cached models offline
- tsr db triggers <file> - Show trigger words for a LoRA
- tsr db stats - Show database statistics
Update API functions to accept optional console for quiet/batch operations.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Create database infrastructure for local model file tracking and CivitAI cache:
- schema.sql: Full schema with local_files, CivitAI cache tables, and views
- db.py: Database class with CRUD operations for file scanning, CivitAI linking,
model caching, search, and trigger word retrieval
- Update compute_sha256 to support optional console for silent batch operations
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>