Viktorani API - v0.0.8
    Preparing search index...

    Interface ManagedPlayer

    A long-lived player profile managed outside of any single game session.

    A player may belong to multiple teams simultaneously (many-to-many). The bidirectional relationship with ManagedTeam.playerIds must be kept in sync atomically — use syncPlayerTeams() from src/db/players-teams.ts.

    totalScore and gameLog are read-only from this epic; written by GameMaster.

    interface ManagedPlayer {
        archivedAt: Date | null;
        gameLog: GameLogEntry[];
        id: string;
        labelIds: string[];
        name: string;
        teamIds: string[];
        totalScore: number;
    }
    Index

    Properties

    archivedAt: Date | null

    ISO timestamp when this player was archived, or null if active.

    gameLog: GameLogEntry[]

    Ordered participation history. Updated by GameMaster epic.

    id: string
    labelIds: string[]

    IDs of ManagedLabels attached to this player.

    name: string
    teamIds: string[]

    IDs of all ManagedTeams this player currently belongs to.

    totalScore: number

    Cumulative score across all game sessions. Updated by GameMaster epic.