-- تسوية عهدة موظف على سند صرف مصروف
ALTER TABLE employee_custody_settlements
  MODIFY settlement_type ENUM('purchase_invoice','cash_return','expense_payment') NOT NULL;

ALTER TABLE cash_payments
  ADD COLUMN employee_custody_id BIGINT UNSIGNED NULL AFTER expense_item_id,
  ADD INDEX idx_cp_employee_custody (employee_custody_id);
