-- PBI-67: Model + mode-selectie per ClaudeJob-kind
--
-- Additieve migration: nieuwe optionele kolommen op products, tasks en
-- claude_jobs voor de override-cascade
--   task.requires_opus → job.requested_* → product.preferred_* → kind-default
-- Bestaande rijen krijgen NULL (Product/ClaudeJob) of false (Task.requires_opus)
-- en vallen daarmee terug op kind-defaults uit de resolver.

ALTER TABLE "products" ADD COLUMN "preferred_model" TEXT;
ALTER TABLE "products" ADD COLUMN "thinking_budget_default" INTEGER;
ALTER TABLE "products" ADD COLUMN "preferred_permission_mode" TEXT;

ALTER TABLE "tasks" ADD COLUMN "requires_opus" BOOLEAN NOT NULL DEFAULT false;

ALTER TABLE "claude_jobs" ADD COLUMN "requested_model" TEXT;
ALTER TABLE "claude_jobs" ADD COLUMN "requested_thinking_budget" INTEGER;
ALTER TABLE "claude_jobs" ADD COLUMN "requested_permission_mode" TEXT;
ALTER TABLE "claude_jobs" ADD COLUMN "actual_thinking_tokens" INTEGER;
