-- Add receipt/invoice document linking to budget items
-- Each budget item can optionally link to a document (uploaded file) as its receipt/invoice

ALTER TABLE budget_items
  ADD COLUMN receipt_document_id UUID REFERENCES documents(id) ON DELETE SET NULL;

CREATE INDEX idx_budget_items_receipt ON budget_items(receipt_document_id);
