-- Phase 11: FUT Champions / Weekend League sessions
CREATE TABLE IF NOT EXISTS fut_champs_sessions (
    id TEXT PRIMARY KEY,
    profile_id TEXT NOT NULL,
    week_number INTEGER NOT NULL DEFAULT 1,
    matches_played INTEGER NOT NULL DEFAULT 0,
    wins INTEGER NOT NULL DEFAULT 0,
    draws INTEGER NOT NULL DEFAULT 0,
    losses INTEGER NOT NULL DEFAULT 0,
    status TEXT NOT NULL DEFAULT 'active',
    reward_tier TEXT,
    reward_coins INTEGER,
    reward_pack_id TEXT,
    reward_claimed INTEGER NOT NULL DEFAULT 0,
    started_at TEXT NOT NULL,
    completed_at TEXT
);

-- Division Rivals: track when each profile last claimed their weekly reward
ALTER TABLE seasons ADD COLUMN rivals_week_claimed INTEGER NOT NULL DEFAULT 0;
ALTER TABLE seasons ADD COLUMN rivals_total_points INTEGER NOT NULL DEFAULT 0;
