-- settings-crm (wave-15)
-- Extends tenant_settings with pipeline_stages JSONB and lead_scoring_enabled BOOLEAN.
-- Base table owned by foundation-auth-rbac; modules add columns via IF NOT EXISTS.
-- lead_scoring_criteria already added by spec 118 (lead-qualification-scoring)
-- lead_lost_reasons already added by spec 111 (lead-lost-re-engagement)

ALTER TABLE tenant_settings
  ADD COLUMN IF NOT EXISTS pipeline_stages JSONB DEFAULT NULL,
  ADD COLUMN IF NOT EXISTS lead_scoring_enabled BOOLEAN NOT NULL DEFAULT true;
