Companion
Properties
The columns of the base table, one row per commit (ClickHouseRows).
The columns of _events, one row per event.
The system columns _state_flat starts with, as _state has them.
What the comment of each of the Sink's tables and views says: their FORMAT.
The columns of _state, the current state: the base table's, but the events and the headers, which only the history needs. The Sink inserts these alone when it keeps no history.
Functions
The tables and views that several of types would share: prefixOf maps distinct names to one (order-item and order_item, Order and order, context a_b and aggregate c with context a and aggregate b_c), and one aggregate's table may be another's (order's _state_events is order_state's _events). By name, each with the aggregates that would share it; empty when there is none.
The names of type's tables start with <ctx>_<agg>, lower case, other characters than [a-z0-9_] as _.