Files
semprini-domain-digital-dat…/data_model/entities/exchange-rate.md
T
paulandClaude Opus 5.5 f66230b1fb Rename the domain Digital Core to Digital (2.0.0)
"Digital Core" is to be the name of a canonical data product the domain
will run, so the domain itself is Digital: its title, description and
owner address in domain.md, the back-link heading of every entity, enum
and product file, and the README, CLAUDE.md, Copilot instructions and
package description.

A breaking change by MD-DDL's test: a product generated from 1.0.0, such
as Canonical Party, names its domain, and would come out different now.
So version 2.0.0. v1.0.0 is tagged on the commit Canonical Party was
generated from, which was never tagged.

Lint: no findings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:19:39 +13:00

77 lines
1.7 KiB
Markdown

# [Digital](../domain.md)
## Entities
### Exchange Rate
An Exchange Rate records the conversion between two currencies at a point in time. Append-only: rates observed in the past are facts, and a historical conversion must still reproduce the number that was actually used.
```mermaid
---
config:
layout: elk
---
classDiagram
class ExchangeRate{
* Exchange Rate Identifier : string
Rate Value : decimal
Effective Date Time : datetime
}
ExchangeRate "0..*" --> "1" Currency : base
ExchangeRate "0..*" --> "1" Currency : quote
class Currency["<a href='./currency.md'>Currency</a>"]
```
```yaml
existence: dependent
mutability: append_only
attributes:
Exchange Rate Identifier:
type: string
identifier: primary
description: Unique identifier for the rate observation.
Rate Value:
type: decimal
description: Conversion multiplier from the base currency to the quote currency.
Effective Date Time:
type: datetime
description: The moment this rate became effective.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
### Exchange Rate References Base Currency
Each Exchange Rate references one base Currency — the one being converted from.
```yaml
source: Exchange Rate
type: references
target: Currency
cardinality: many-to-one
granularity: atomic
ownership: Exchange Rate
```
### Exchange Rate References Quote Currency
Each Exchange Rate references one quote Currency — the one being converted to.
```yaml
source: Exchange Rate
type: references
target: Currency
cardinality: many-to-one
granularity: atomic
ownership: Exchange Rate
```