-- Adds missing columns expected by SAT_backend on `sat_questions`.
-- Prefer running from repo root:  npm run migrate:sat-questions  (see SAT_backend/package.json)
-- That script is idempotent. If you apply SQL manually, run each ALTER only once; if the column
-- already exists, MySQL will error — use the script instead.

-- allows_media — question create/update APIs
-- ai_fill — AI “fill from image” (ollamaService / forms)

-- Manual one-shot (MySQL), only if columns are missing:
-- ALTER TABLE sat_questions ADD COLUMN allows_media TINYINT(1) NOT NULL DEFAULT 0;
-- ALTER TABLE sat_questions ADD COLUMN ai_fill TINYINT(1) NOT NULL DEFAULT 0;
