Skip to main content
Create the three Tables before writing the reservation Component.

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 a JSON_VALIDATOR Component and add an element such as reserveOrderRequest. The command accepts only the order ID and a caller-generated idempotency key:
The amount, currency, destination account, and desired order status are intentionally absent. They come from trusted rows selected under the runtime principal. Continue with first production workflow. Next: step 2.
Last modified on November 8, 2026