CREATE TABLE IF NOT EXISTS recaps (
  video_id      TEXT PRIMARY KEY,
  title         TEXT NOT NULL,
  channel       TEXT,
  thumbnail_url TEXT,
  duration_sec  INTEGER,
  language      TEXT,
  tldr          TEXT NOT NULL,
  vibe_check    TEXT,
  watch_verdict TEXT NOT NULL CHECK (watch_verdict IN ('watch', 'skim', 'skip')),
  goldfish_note TEXT,
  sections_json TEXT NOT NULL,
  transcript_hash TEXT,
  model         TEXT,
  created_at    TEXT NOT NULL,
  updated_at    TEXT NOT NULL
);

CREATE INDEX IF NOT EXISTS idx_recaps_created_at ON recaps (created_at DESC);
