Study stats models
Folder: models/user-study-stats/
| File | Purpose |
|---|---|
practice-attempt-event.model.ts | Raw event: user answered something (append-only) |
user-practice-daily-rollup.model.ts | Per-day aggregates for dashboards |
user-practice-topic-rollup.model.ts | Per-topic strength / volume |
user-recent-practice-subtopic.model.ts | ”Continue where you left off” pointers |
Services:
services/user-study-stats/study-stats.service.tsrecord-practice-attempt-analytics.tsrecord-recent-practice-subtopic.tsstudy-stats-window.ts— date window math
Baby rule: events first, rollups derived — so history stays auditable.
Last updated on