Primary backend components
app/api/games/catalog/route.tsGame,TeamGame,TeamGameSchedule,FeaturedGamesin Prisma- Play routers under
app/api/games/daily-spin,guess-player,live, andpick-em - Game Engine routers under
app/api/v1/engage/games/*, including the locker-singularity ledger underlocker-singularity/ledger(see Game Engine server) - Game Center routers under
app/api/events/*, includingGET /api/events/realtime - Admin selection:
app/api/admin/teams/[teamId]/games
Core model touchpoints
Game— catalog entry with cadence (DAILY/WEEKLY) and statusTeamGame— which games a team has enabledLiveGameSession,LiveGamePlayer,LiveGamePayout— live session stateGuessPlayerSession— guess-the-player sessionSpinWheelSegment,DailySpinDayUsage— daily spin configuration and usage
High-level flow
Architectural notes
- The catalog is the public, cacheable mini-game discovery contract. Game Center schedule and detail live under
/api/events/*. - Clients map
keyto a local route. Unknown legacy keys must be ignored, not guessed. Engine catalog rows with an unknown key stay visible as Update required / Not in this build. See Game Engine client. - Admin catalog management is documented with redaction only.
