ALTER TABLE lead_capture_links
    ADD COLUMN integration_type VARCHAR(100) NULL AFTER business_type,
    ADD COLUMN integration_id INT UNSIGNED NULL AFTER integration_type,
    ADD INDEX idx_capture_links_integration (integration_type, integration_id),
    ADD CONSTRAINT fk_capture_links_integration FOREIGN KEY (integration_id) REFERENCES api_integrations (id) ON DELETE SET NULL;

