> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Global database definition

This section describes tables that are common to all cubes. This includes FX rates and trade booking.

## FX Rates

The FX rates are stored in the [FXRATES](https://docs.activeviam.com/solutions/frtb/6.0/database/fxrates.md) table.

## Trade Booking

The [TRADE\_MAPPING](https://docs.activeviam.com/solutions/frtb/6.0/database/trade_mapping.md) table maps trades/positions to books and legal entities by **TRADE\_ID** and **AS\_OF\_DATE**.

The multi-level book organizational hierarchy and desk descriptions are in the [BOOK\_HIERARCHY](https://docs.activeviam.com/solutions/frtb/6.0/database/book_hierarchy.md) table. This table is indexed by **BOOK** and **AS\_OF\_DATE**.

The multi-level legal entity organizational hierarchy is in the [LEGAL\_ENTITY\_HIERARCHY](https://docs.activeviam.com/solutions/frtb/6.0/database/legal_entity_hierarchy.md) table which is indexed by **LEGAL\_ENTITY** and **AS\_OF\_DATE**.
It is built from the LEGAL\_ENTITY\_PARENT\_CHILD table.

The [LEGAL\_ENTITY\_ATTRIBUTES](https://docs.activeviam.com/solutions/frtb/6.0/database/legal_entity_attributes.md) table provides a description of the legal entities.
