ALTER TABLE finanto_inss_cases
    ADD COLUMN signature_link VARCHAR(500) NULL AFTER loan_payload,
    ADD COLUMN signature_link_expires_at DATETIME NULL AFTER signature_link,
    ADD COLUMN signature_status VARCHAR(50) NULL AFTER signature_link_expires_at,
    ADD COLUMN signature_status_synced_at DATETIME NULL AFTER signature_status;

CREATE INDEX idx_finanto_signature_status
    ON finanto_inss_cases (signature_status);
