- Migration 0004: composite indexes (user_id, date) on sessions and daily_stats; (user_id, start_at, end_at) on planned_blocks and manual_entries — speeds up calendar and monthly/dow queries - admin POST /recompute-stats: recomputes all DailyStat records from raw session wall-clock intervals; use once after upgrading to fix historical data that was stored as active_hours Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| versions | ||
| alembic.ini | ||
| env.py | ||