CREATE INDEX idx_receipts_issued_at ON receipts(issued_at); CREATE INDEX idx_positions_receipt_id ON positions(receipt_id);