| 86 | | ||UC0001 – Register||High||Nothing else works without it; demonstrates `INSERT` with a uniqueness check.|| |
| 87 | | ||UC0002 – Log in||High||Authenticates every Trader action; demonstrates `SELECT` with parameter binding.|| |
| 88 | | ||UC0003 – Deposit||High||Shows a multi-row transaction: `UPDATE users` plus `INSERT INTO transactions`.|| |
| 89 | | ||UC0004 – Buy||Very high||Core of the exchange: `INSERT orders`, `UPDATE users`, upsert `holdings`, ledger entry, market trade.|| |
| 90 | | ||UC0005 – Sell||Very high||Dual of Buy; demonstrates row-level `FOR UPDATE` locking, reservation of committed crypto (`holdings.reserved_quantity`) and cost-basis bookkeeping.|| |
| 91 | | ||UC0006 – Portfolio||High||Demonstrates joins over `holdings`, `markets` and `crypto`, and the `v_portfolio` view.|| |
| 92 | | ||UC0007 – Watchlist||Medium||Demonstrates N–M relation handling and `ON CONFLICT` upsert semantics.|| |
| | 86 | ||[wiki:UC0001] – Register||High||Nothing else works without it; demonstrates `INSERT` with a uniqueness check.|| |
| | 87 | ||[wiki:UC0002] – Log in||High||Authenticates every Trader action; demonstrates `SELECT` with parameter binding.|| |
| | 88 | ||[wiki:UC0003] – Deposit||High||Shows a multi-row transaction: `UPDATE users` plus `INSERT INTO transactions`.|| |
| | 89 | ||[wiki:UC0004] – Buy||Very high||Core of the exchange: `INSERT orders`, `UPDATE users`, upsert `holdings`, ledger entry, market trade.|| |
| | 90 | ||[wiki:UC0005] – Sell||Very high||Dual of Buy; demonstrates row-level `FOR UPDATE` locking, reservation of committed crypto (`holdings.reserved_quantity`) and cost-basis bookkeeping.|| |
| | 91 | ||[wiki:UC0006] – Portfolio||High||Demonstrates joins over `holdings`, `markets` and `crypto`, and the `v_portfolio` view.|| |
| | 92 | ||[wiki:UC0007] – Watchlist||Medium||Demonstrates N–M relation handling and `ON CONFLICT` upsert semantics.|| |