-- 027_webhooks.sql — Webhook secrets + workflow webhook support (v0.27.3)

-- Per-task webhook secret for HMAC signing
ALTER TABLE tasks ADD COLUMN IF NOT EXISTS webhook_secret TEXT;

-- Workflows can also fire webhooks on completion
ALTER TABLE workflows ADD COLUMN IF NOT EXISTS webhook_url TEXT;
ALTER TABLE workflows ADD COLUMN IF NOT EXISTS webhook_secret TEXT;
