CREATE TABLE IF NOT EXISTS episodes (
    id INTEGER PRIMARY KEY,
    timestamp TEXT,
    observation TEXT,
    decision TEXT,
    outcome TEXT
);
CREATE UNIQUE INDEX IF NOT EXISTS idx_episode_unique ON episodes(timestamp);
