"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>
1.7 KiB
1.7 KiB
Digital
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.
---
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>"]
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.
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.
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.
source: Exchange Rate
type: references
target: Currency
cardinality: many-to-one
granularity: atomic
ownership: Exchange Rate