# [Digital Core](../domain.md) ## Entities ### Currency Currency is a monetary unit that amounts are expressed in. Reference data, shared by accounts, transactions and exchange rates. ```mermaid --- config: layout: elk --- classDiagram class Currency{ * Currency Code : string Currency Name : string Minor Unit : integer } ExchangeRate "0..*" --> "1" Currency : from ExchangeRate "0..*" --> "1" Currency : to class ExchangeRate["Exchange Rate"] ``` ```yaml existence: independent mutability: reference attributes: Currency Code: type: string identifier: primary description: ISO 4217 alphabetic currency code. Currency Name: type: string description: Official display name of the currency. Minor Unit: type: integer description: > Number of decimal places the currency uses. Not universally two — the Japanese yen uses none — which is why it is stored rather than assumed. ``` ```yaml governance: retention_basis: Inherited from the domain default of 7 years post relationship end ``` ## Relationships No relationships are sourced directly from Currency in the current domain model.