LDG-001Move balance between two accounts without losing anyLock both rows in a fixed order, check inside the transaction, and write a ledger entry for each side. Skipping any of the three is how balances drift.PHPTested on PHP 8.2, MariaDB 10.6Handles money and fraud surface