-- Stateful FUT-style draft sessions.
-- Each session tracks position order, per-position candidates, and picks made.
CREATE TABLE IF NOT EXISTS draft_sessions (
    id TEXT PRIMARY KEY,
    profile_id TEXT NOT NULL,
    difficulty TEXT NOT NULL DEFAULT 'professional',
    pick_order TEXT NOT NULL,              -- JSON array of position strings, e.g. ["GK","RB",...]
    picks TEXT NOT NULL DEFAULT '[]',      -- JSON array of picked card_ids (len tracks progress)
    current_candidates TEXT,               -- JSON array of card_ids offered for the current pick
    status TEXT NOT NULL DEFAULT 'active', -- active | completed | abandoned
    reward_coins INTEGER DEFAULT 0,
    reward_pack_id TEXT,
    squad_rating INTEGER DEFAULT 0,
    started_at TEXT NOT NULL,
    completed_at TEXT
);
