Add the Digital Core domain model from semprini-blog-dataproducts
The MD-DDL model (domain, entities, enums, the Canonical Party product declaration) moves into its own repository, owned by the domain's modelling team. Engineering teams consume its product declarations and generate products from semprini-data-product-templates. Adds the MD-DDL agent wrappers (md-ddl init), pyproject with md-ddl, and README/CLAUDE.md describing the team split and the handoff interface. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
commit
aeba56e5f2
41 files changed
+3007
No files matched your search
@@ -0,0 +1,54 @@
|
||||
# [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["<a href='./exchange-rate.md'>Exchange Rate</a>"]
|
||||
```
|
||||
|
||||
```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.
|
||||
Reference in new issue
Block a user