-- Add header-level PO to AP invoices
ALTER TABLE ap_invoices
  ADD COLUMN po_id BIGINT NULL AFTER vendor_id,
  ADD INDEX idx_inv_po (po_id);
