Model the durable state
Open Databases and create three restricted Tables. Enable Audit before live writes begin; enabling it later does not reconstruct earlier row history.orders
balances
Create a unique business constraint for the account and currency combination if each account owns only one balance per currency.
transactions
Treat the
transactions Table as an append-oriented ledger. Settlement should append or transition an explicit transaction state according to your accounting model; it should not silently rewrite the original amount.
Validate the public command
Create aJSON_VALIDATOR Component and add an element such as reserveOrderRequest. The command accepts only the order ID and a caller-generated idempotency key:

