Each entity, split by who changes it.
A layer is a group of fields that change together: it is the unit of a permission, of an approval and of a release. Its scope is the lowest level at which a value may differ.
| Entity | Layer | Scope | Kind | Fields |
|---|---|---|---|---|
| product | identity | global | Released | name, brand, status |
texts | language | Released | title, description, slug | |
media | language | Released | photos | |
pricing | market | Dated | price, cost | |
stock | warehouse | Balances | on_hand, reserved, sold, supplied | |
| order | placed | global | Stated once | customer, email, total, currency, day |
fulfilment | global | Released | status, carrier, tracking | |
| order line | placed | global | Stated once | product, quantity, unit_price |
The entities and their layers
A released layer publishes and rolls back. A dated one holds values by period, one stated once never changes, balances add up, and an overlay is written live by another system.