Level 5 boss: reserve stock without overselling

A flash sale: hundreds of checkouts reserve the same mugs at once, and phones retry on every timeout. Make the schema refuse an oversell, a double reservation and an event about nothing, whatever order the requests arrive in.

Checking your access…