Description
Add a @Cron job that updates RetentionCohort rows nightly for all cohorts within the tracked window (e.g. last 90 days).
Why this matters
Retention curves need daily recomputation as more users cross day-1/7/30 thresholds relative to their signup cohort.
Files to touch
backend/src/analytics/jobs/retention-cohort-rollup.job.ts
Acceptance Criteria
Notes
This issue is part of the new analytics module effort (tracking, aggregation,
and reporting on player/game activity). Please keep new code inside
backend/src/analytics/ following the same module/controller/service/provider
layout used by existing modules (e.g. progress, streak, quests).
Description
Add a
@Cronjob that updatesRetentionCohortrows nightly for all cohorts within the tracked window (e.g. last 90 days).Why this matters
Retention curves need daily recomputation as more users cross day-1/7/30 thresholds relative to their signup cohort.
Files to touch
backend/src/analytics/jobs/retention-cohort-rollup.job.tsAcceptance Criteria
Notes
This issue is part of the new
analyticsmodule effort (tracking, aggregation,and reporting on player/game activity). Please keep new code inside
backend/src/analytics/following the same module/controller/service/providerlayout used by existing modules (e.g.
progress,streak,quests).