-- Update maxHostnames default from 15 to 10
-- Cloudflare API enforces 10 hostnames per widget, not 15 as documented

-- Update default constraint
ALTER TABLE "TurnstileWidget" ALTER COLUMN "maxHostnames" SET DEFAULT 10;

-- Update existing widgets that have the old default
UPDATE "TurnstileWidget" SET "maxHostnames" = 10 WHERE "maxHostnames" = 15;
