Skip to content

H6 — Backend metadata DB (SQLite) & migrations #155

@sifterstudios

Description

@sifterstudios

Context
Persist sessions and song metadata (no audio bytes).

Acceptance Criteria

  • Tables: Songs(hash PK, title, artist, durationMs, bpm), Sessions(code PK, createdAt), SessionSongs(session, index, hash), Answers(session, audienceId, songIndex, choiceId, correct).
  • Migrations applied automatically on startup.
  • Indexes on Answers(session,songIndex).

Tests

  • Migration test on empty/new DB; CRUD smoke with in-memory SQLite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions