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:
paulandClaude Opus 5 committed 2026-09-17 22:51:50 +12:00
commit aeba56e5f2
41 files changed
+3007

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
Read `.md-ddl/agents/agent-architect/AGENT.md` and adopt its identity, modes, and protocols for this session.
Follow the skill-loading protocol defined in the AGENT.md:
- Identify which skill(s) apply to the request below (architecture, product-design, odps-alignment)
- Read those `.md-ddl/agents/agent-architect/skills/<skill>/SKILL.md` files before responding
- For product design, read the relevant domain files before drafting product declarations
Produce production-quality data product declarations and ODPS manifests. Do not model domain entities or generate physical artifacts — those belong to Agent Ontology and Agent Artifact respectively.
Task: $ARGUMENTS
+10
View File
@@ -0,0 +1,10 @@
Read `.md-ddl/agents/agent-artifact/AGENT.md` and adopt its identity, modes, and protocols for this session.
Follow the skill-loading protocol defined in the AGENT.md:
- Identify which skill(s) apply to the request below (dimensional, normalized, wide-column, knowledge-graph)
- Read those `.md-ddl/agents/agent-artifact/skills/<skill>/SKILL.md` files before responding
- Read the relevant domain and product files from the examples or the user's working directory before generating artifacts
Generate physical artifacts (SQL DDL, JSON Schema, Parquet schema, Cypher) scoped by the data product declaration. Do not change the domain model — flag conceptual gaps and defer structural changes to Agent Ontology.
Task: $ARGUMENTS
+11
View File
@@ -0,0 +1,11 @@
Read `.md-ddl/agents/agent-governance/AGENT.md` and adopt its identity, modes, and protocols for this session.
Follow the skill-loading protocol defined in the AGENT.md:
- Identify which skill(s) apply to the request below (standards-conformance, regulatory-compliance, compliance-audit)
- Read those `.md-ddl/agents/agent-governance/skills/<skill>/SKILL.md` files before responding
- For regulatory audits, read the relevant regulator file from `.md-ddl/agents/agent-governance/skills/regulatory-compliance/regulators/`
- Read the domain files being audited before producing findings
Produce governance findings, gap reports, and remediation recommendations. Do not make structural model changes — flag gaps and defer them to Agent Ontology or Agent Architect.
Task: $ARGUMENTS
+10
View File
@@ -0,0 +1,10 @@
Read `.md-ddl/agents/agent-guide/AGENT.md` and adopt its identity, modes, and protocols for this session.
Follow the skill-loading protocol defined in the AGENT.md:
- Identify which skill(s) apply to the request below (Orientation, Concept Explorer, Worked Examples, Platform Setup)
- Read those `.md-ddl/agents/agent-guide/skills/<skill>/SKILL.md` files before responding
- If no specific skill is identified, default to Welcome mode
Do not generate production MD-DDL. Teach, demonstrate, and navigate. When the user is ready for production work, name the receiving agent and offer to formulate their opening prompt.
Task: $ARGUMENTS
+10
View File
@@ -0,0 +1,10 @@
Read `.md-ddl/agents/agent-ontology/AGENT.md` and adopt its identity, modes, and protocols for this session.
Follow the skill-loading protocol defined in the AGENT.md:
- Identify which skill(s) apply to the request below (domain-scoping, entity-modelling, relationship-events, standards-alignment, source-mapping, domain-review)
- Read those `.md-ddl/agents/agent-ontology/skills/<skill>/SKILL.md` files before responding
- If the skill references spec sections, read the relevant `.md-ddl/md-ddl-specification/*.md` files before drafting
Produce production-quality MD-DDL. Follow the output rules in the AGENT.md. Do not generate physical artifacts — that is Agent Artifact's responsibility.
Task: $ARGUMENTS
+11
View File
@@ -0,0 +1,11 @@
---
name: agent-architect
description: Specialist MD-DDL strategic design and data product publication agent for architecture philosophy discussion, data product declaration, product class and schema type selection, governance and masking strategies, and ODPS-aligned manifest generation.
argument-hint: An architecture discussion topic, an MD-DDL domain to design data products for, consumer needs and access patterns, or existing products to publish as ODPS manifests.
tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
---
Canonical source: `../../.md-ddl/agents/agent-architect/AGENT.md`
<agent_architect_core>
{{INCLUDE: ../../.md-ddl/agents/agent-architect/AGENT.md}}
</agent_architect_core>
+11
View File
@@ -0,0 +1,11 @@
---
name: agent-artifact
description: Specialist MD-DDL physical artifact generation agent for dimensional star schemas, normalized 3NF designs, SQL DDL, JSON Schema, and Parquet schema contracts.
argument-hint: An MD-DDL domain to generate physical artifacts from, a target physical style (dimensional/3NF), and a platform dialect.
tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
---
Canonical source: `../../.md-ddl/agents/agent-artifact/AGENT.md`
<agent_artifact_core>
{{INCLUDE: ../../.md-ddl/agents/agent-artifact/AGENT.md}}
</agent_artifact_core>
+11
View File
@@ -0,0 +1,11 @@
---
name: agent-governance
description: Specialist MD-DDL standards conformance and compliance assurance agent for auditing standards alignment, regulatory compliance, governance metadata completeness, and guiding remediation across domain portfolios.
argument-hint: A domain or corpus to audit, applicable standards or jurisdictions/frameworks, or a compliance posture and remediation request.
tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
---
Canonical source: `../../.md-ddl/agents/agent-governance/AGENT.md`
<agent_governance_core>
{{INCLUDE: ../../.md-ddl/agents/agent-governance/AGENT.md}}
</agent_governance_core>
+11
View File
@@ -0,0 +1,11 @@
---
name: agent-guide
description: Learning companion and navigator for the MD-DDL ecosystem — the first place to go for understanding the standard, exploring concepts, walking through examples, setting up your environment, and finding the right specialist agent.
argument-hint: A question about MD-DDL, a request for help getting started, or guidance on which agent to use for a specific task.
tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
---
Canonical source: `../../.md-ddl/agents/agent-guide/AGENT.md`
<agent_guide_core>
{{INCLUDE: ../../.md-ddl/agents/agent-guide/AGENT.md}}
</agent_guide_core>
+11
View File
@@ -0,0 +1,11 @@
---
name: agent-ontology
description: Specialist MD-DDL modelling agent for domain discovery, entity design, relationships/events, and standards-aligned domain authoring.
argument-hint: A domain to model, existing MD-DDL files to improve, or a modelling question requiring trade-offs and rule validation.
tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
---
Canonical source: `../../.md-ddl/agents/agent-ontology/AGENT.md`
<agent_ontology_core>
{{INCLUDE: ../../.md-ddl/agents/agent-ontology/AGENT.md}}
</agent_ontology_core>
+19
View File
@@ -0,0 +1,19 @@
# Copilot Instructions for semprini-domain-digital-datamodel
The MD-DDL model of the Digital Core domain, owned by its modelling team. It holds meaning
only; physical artifacts are generated by data product engineering teams from
semprini-data-product-templates. Read `CLAUDE.md` and `README.md` for the rules and the team
split.
MD-DDL is unpacked into `.md-ddl/` by `uv run md-ddl init --no-instructions`. Use the custom
agents in `.github/agents/`, scoped to `data_model/`:
Agent | Purpose
--- | ---
`agent-guide` | Learning, navigation, concept explanation. Start here.
`agent-ontology` | Domain discovery, entity modelling, source mapping.
`agent-architect` | Data product declarations, architecture discussion, ODPS manifests.
`agent-governance` | Standards conformance, compliance auditing, governance assurance.
`agent-artifact` | Generic physical schemas; for exploration only in this repository.
Validate with `uv run md-ddl lint data_model` before committing.
+3
View File
@@ -0,0 +1,3 @@
.venv/
__pycache__/
.claude/settings.local.json
+50
View File
@@ -0,0 +1,50 @@
# semprini-domain-digital-datamodel — Claude Instructions
## What this is
The MD-DDL model of the **Digital Core** domain, owned by the domain's modelling team. It
holds meaning only: entities, relationships, enums, governance posture and data product
declarations. Physical artifacts (DDL, schemas, jobs, products) are generated elsewhere, by
data product engineering teams, from the templates in `semprini-data-product-templates`.
See [README.md](README.md) for the team split and what engineering teams consume.
## Rules for this repository
- Edit only `data_model/`, `handoffs/`, and the docs. Never add physical artifacts here.
- A model gap found while generating a product is raised against this repository and fixed
with `/agent-ontology`; engineering teams do not patch around it in a product.
- Bump `version` in `data_model/domain.md` for any change a product could depend on, and tag
the release. Engineering teams pin tags, not `main`.
- Run `uv run md-ddl lint data_model` before committing; it must report no findings.
## MD-DDL agents
MD-DDL is installed from PyPI (`md-ddl`, a dependency in `pyproject.toml`) and unpacked into
`.md-ddl/` by `uv run md-ddl init --no-instructions`. The wrappers in `.claude/commands/` and
`.github/agents/` are committed; `.md-ddl/` is not.
Command | Agent | Purpose
--- | --- | ---
`/agent-guide` | Agent Guide | Learning, navigation, concept explanation. Start here.
`/agent-ontology` | Agent Ontology | Domain discovery, entity modelling, source mapping.
`/agent-architect` | Agent Architect | Data product declarations, architecture discussion, ODPS manifests.
`/agent-governance` | Agent Governance | Standards conformance, compliance auditing, governance assurance.
`/agent-artifact` | Agent Artifact | Generic physical schema generation. Use it here only to explore; products are generated by the engineering teams' template agents, which override its choices.
Scope every agent to `data_model/`.
## Handoffs to engineering
When a product declaration is ready for generation, write `handoffs/<product-slug>.md` in the
MD-DDL handoff format (`from`, `to`, `domain`, `domain_path`, `created`, `status: pending`),
recording the scope and the decisions the template cannot derive from the model. The
engineering team's generation agent consumes it.
## Key references
- MD-DDL specification: `.md-ddl/md-ddl-specification/` (single file: `MD-DDL-Complete.md`)
- Data product classes: specification section 2, *Domains* (`source-aligned`, `domain-aligned`, `consumer-aligned`)
- Examples: `.md-ddl/examples/`
- Validation beyond syntax: `.md-ddl/guides/validation-tooling.md`
Upgrade the standard with `uv lock --upgrade-package md-ddl && uv run md-ddl init --no-instructions --force`.
+77
View File
@@ -0,0 +1,77 @@
# Digital Core — domain data model
The MD-DDL model of the **Digital Core** domain: the shared spine of a digital business —
parties, the roles they play, how to reach them, what they hold, the agreements that govern
them, and the transactions that move value between them. It describes meaning, not storage:
no tables, keys or platform assumptions.
It started as the model in
[semprini-blog-dataproducts](https://git.semprini.me/paul/semprini-blog-dataproducts), where
one repository held the platform, the model, the template and the products. In the enterprise
setup each of those belongs to a different team, and this repository is the model's home.
## Who owns what
| Team | Owns | Repository |
|---|---|---|
| **Modelling team** (this domain) | The domain model and its data product declarations | this one |
| Data product engineering teams | Data product templates; generating, deploying and operating products | [semprini-data-product-templates](https://git.semprini.me/paul/semprini-data-product-templates), the domain repositories |
| Data platform team | The management zone, the Integration Bus, the domain platform template | [semprini-data](https://git.semprini.me/paul/semprini-data), [semprini-data-domain](https://git.semprini.me/paul/semprini-data-domain) |
All of them use semprini-core, the enterprise landing zone, for identity (Keycloak) and
source control (Gitea at git.semprini.me).
## Layout
```
data_model/
domain.md Domain summary: metadata, entities, relationships, data products
entities/ One file per entity
enums.md Enumerations
data_products/ Data product declarations, e.g. canonical.md
.claude/commands/ MD-DDL agent wrappers for Claude Code (md-ddl init)
.github/agents/ MD-DDL agent wrappers for Copilot (md-ddl init)
.md-ddl/ The MD-DDL standard, unpacked by md-ddl init (not committed)
```
## Working on the model
```bash
uv run md-ddl init --no-instructions # after cloning: unpacks .md-ddl/
uv run md-ddl lint data_model # mechanical pre-flight checks
```
Modelling is agent-driven: `/agent-guide` to start, `/agent-ontology` for entities,
relationships and sources, `/agent-architect` for data product declarations and ODPS,
`/agent-governance` for conformance. See [CLAUDE.md](CLAUDE.md).
## What engineering teams consume
The interface between this team and the engineering teams is the **data product
declaration**: a level-3 section in `data_model/data_products/*.md` with its `class`,
entities, owner, consumers, SLA and interfaces, plus the entity and enum files it
references. The MD-DDL `class` picks the template that generates the product:
| MD-DDL class | Product class | Template in semprini-data-product-templates |
|---|---|---|
| `domain-aligned` | Canonical | `canonical_data_product/` |
| `source-aligned` | Source aligned | planned |
| `consumer-aligned` | Experience | planned (one template per experience class) |
Decisions a template cannot read from the model (a scope boundary, an assumption about
temporal tracking) go with the request as a handoff note, in the MD-DDL handoff format:
`handoffs/<product-slug>.md` here, with `to: <engineering team>` and `status: pending`. The
engineering team's generation agent reads it and marks it `consumed`.
Engineering teams pin a released version of this repository rather than following `main`.
Tag a release whenever `data_model/domain.md`'s `version` changes:
```bash
git tag -a v1.0.0 -m "Digital Core 1.0.0" && git push origin v1.0.0
```
## Declared products
| Product | Class | Declaration | Status |
|---|---|---|---|
| Canonical Party | domain-aligned | [data_model/data_products/canonical.md](data_model/data_products/canonical.md) | Active; generated and verified in the blog repository |
+40
View File
@@ -0,0 +1,40 @@
# [Digital Core](../domain.md)
## Data Products
### Canonical Party
The governed canonical representation of Party, Party Role, and the identity entities around them, published for downstream domains and cross-domain integration.
This is the product every other domain reads to find out who someone is. It publishes the canonical model as modelled — no reshaping, no aggregation — so that consumers inherit the domain's definitions rather than inventing their own.
```yaml
class: domain-aligned
schema_type: normalized
owner: data.architecture@example.com
consumers:
- Cross-domain Integration
status: Active
version: "1.0.0"
sla:
freshness: "< 0.5 seconds"
availability: "99.95%"
refresh: real-time
```
#### Entities
- [Party](../entities/party.md)
- [Person](../entities/person.md)
- [Company](../entities/company.md)
- [Party Role](../entities/party_role.md)
- [Customer](../entities/customer.md)
- [Contact Address](../entities/contact_address.md)
- [Address](../entities/address.md)
#### Interfaces
- GraphQL
- SQL
+204
View File
@@ -0,0 +1,204 @@
# Digital Core
Digital Core is the shared operational spine of a digital business: the parties it deals with, the roles those parties play, how to reach them, what they hold, and the value that moves between them.
It is deliberately generic. A retailer, a telco, a utility, a streaming service and a bank all need the same handful of concepts — a Party who is either a Person or a Company, the Roles that Party plays (Customer, Merchant, Payer, Payee), the Accounts they hold against a Product, the Agreements that govern them, and the Transactions that move value. Naming those concepts once, in one place, is what lets every system downstream agree on what a customer actually is.
This is a business-aligned domain. It describes meaning, not storage: there are no foreign keys, no table names and no platform assumptions here. Those are generated from these definitions.
## Metadata
```yaml
# Accountability
owners:
- digital.core@example.com
stewards:
- data.steward@example.com
technical_leads:
- data.architecture@example.com
# Governance & Security
classification: "Confidential"
pii: true
default_retention: "7 years post relationship end"
# Lifecycle & Discovery
status: "Active"
version: "1.0.0"
tags:
- Core
- Party
- Customer
- Commerce
```
### Domain Overview Diagram
```mermaid
---
config:
layout: elk
elk:
mergeEdges: false
nodePlacementStrategy: LINEAR_SEGMENTS
look: classic
theme: dark
---
graph TD
Person --> |is a|Party
Company --> |is a|Party
PurchaseAgreement --> |is a|Agreement
SubscriptionAgreement --> |is a|Agreement
Party <--> |related to|Party
Party --> |assumes|PartyRole
Customer --> |is a|PartyRole
Merchant --> |is a|PartyRole
Payee --> |is a|PartyRole
Payer --> |is a|PartyRole
ServiceAgent --> |is a|PartyRole
PaymentInitiator --> |is a|PartyRole
Party --> |has|ContactAddress
PartyRole --> |uses|ContactAddress
Customer --> |holds|Account
Customer --> |has|CustomerPreferences
PartyRole --> |governed by|Agreement
Transaction --> |has payer|Payer
Transaction --> |has payee|Payee
Transaction --> |initiated by|PaymentInitiator
Transaction --> |denominated in|Currency
Transaction --> |debits|Account
Transaction --> |credits|Account
ServiceAgent --> |processes|Transaction
ServiceAgent --> |assigned to|ServiceLocation
Merchant --> |receives payment|Transaction
Merchant --> |settles into|Account
Account --> |instance of|Product
Account --> |denominated in|Currency
ServiceLocation --> |serves|Account
Product --> |in terms of|Agreement
ContactAddress --> |references|Address
ExchangeRate --> |base|Currency
ExchangeRate --> |quote|Currency
Party["<a href='./entities/party.md'>Party</a>"]
Person["<a href='./entities/person.md'>Person</a>"]
Company["<a href='./entities/company.md'>Company</a>"]
PartyRole["<a href='./entities/party_role.md'>Party Role</a>"]
Customer["<a href='./entities/customer.md'>Customer</a>"]
Merchant["<a href='./entities/merchant.md'>Merchant</a>"]
Payer["<a href='./entities/payer.md'>Payer</a>"]
Payee["<a href='./entities/payee.md'>Payee</a>"]
ServiceAgent["<a href='./entities/service-agent.md'>Service Agent</a>"]
PaymentInitiator["<a href='./entities/payment_initiator.md'>Payment Initiator</a>"]
Address["<a href='./entities/address.md'>Address</a>"]
ContactAddress["<a href='./entities/contact_address.md'>Contact Address</a>"]
CustomerPreferences["<a href='./entities/customer-preferences.md'>Customer Preferences</a>"]
Account["<a href='./entities/account.md'>Account</a>"]
Product["<a href='./entities/product.md'>Product</a>"]
Agreement["<a href='./entities/agreement.md'>Agreement</a>"]
SubscriptionAgreement["<a href='./entities/subscription-agreement.md'>Subscription Agreement</a>"]
PurchaseAgreement["<a href='./entities/purchase-agreement.md'>Purchase Agreement</a>"]
Transaction["<a href='./entities/transaction.md'>Transaction</a>"]
ServiceLocation["<a href='./entities/service-location.md'>Service Location</a>"]
Currency["<a href='./entities/currency.md'>Currency</a>"]
ExchangeRate["<a href='./entities/exchange-rate.md'>Exchange Rate</a>"]
```
## Entities
Name | Specializes | Description
--- | --- | ---
[Party](entities/party.md#party) | | Any individual or organisation the business has a relationship with. The abstract root of the model — everything else hangs off who someone is.
[Person](entities/person.md#person) | [Party](entities/party.md#party) | A human being. Carries the attributes that only apply to people.
[Company](entities/company.md#company) | [Party](entities/party.md#party) | An organisation with legal standing — a company, partnership, trust, charity or public body.
[Party Role](entities/party_role.md#party-role) | | The capacity in which a Party acts. Separates *who someone is* from *what they are doing*, so the same Party can be a Customer here and a Merchant there.
[Customer](entities/customer.md#customer) | [Party Role](entities/party_role.md#party-role) | A Party that holds accounts, buys products or otherwise has an active commercial relationship.
[Merchant](entities/merchant.md#merchant) | [Party Role](entities/party_role.md#party-role) | A Party that accepts payment for goods or services.
[Payee](entities/payee.md#payee) | [Party Role](entities/party_role.md#party-role) | A Party that receives value in a transaction.
[Payer](entities/payer.md#payer) | [Party Role](entities/party_role.md#party-role) | A Party that provides value in a transaction.
[Service Agent](entities/service-agent.md#service-agent) | [Party Role](entities/party_role.md#party-role) | A staff member who serves customers — at a counter, over the phone or in a chat window.
[Payment Initiator](entities/payment_initiator.md#payment-initiator) | [Party Role](entities/party_role.md#party-role) | A Party that instructs a transaction on someone else's behalf.
[Account](entities/account.md#account) | | A running record of what a Customer holds and owes. Balances land here and transactions move them.
[Contact Address](entities/contact_address.md#contact-address) | | The link between a Party and an Address, saying what the address is used for and when.
[Address](entities/address.md#address) | | The location itself, held once and shared. Two parties at the same address point at the same record.
[Customer Preferences](entities/customer-preferences.md#customer-preferences) | | How a Customer wants to be contacted, and what they have consented to.
[Product](entities/product.md#product) | | Something the business sells or provides. Accounts are instances of it.
[Agreement](entities/agreement.md#agreement) | | The terms binding a Party Role to a Product. The contract behind the relationship.
[Purchase Agreement](entities/purchase-agreement.md#purchase-agreement) | [Agreement](entities/agreement.md#agreement) | An agreement covering a one-off purchase of goods or services.
[Subscription Agreement](entities/subscription-agreement.md#subscription-agreement) | [Agreement](entities/agreement.md#agreement) | An agreement covering a recurring service billed on a cycle.
[Transaction](entities/transaction.md#transaction) | | A movement of value between parties and accounts. The thing that actually happened.
[Currency](entities/currency.md#currency) | | A monetary unit that amounts are expressed in.
[Exchange Rate](entities/exchange-rate.md#exchange-rate) | | The rate between two currencies at a point in time.
[Service Location](entities/service-location.md#service-location) | | A place where service is delivered — a store, a depot, a contact centre.
## Enums
Name | Description
--- | ---
[Party Status](enums.md#party-status) | Where a party sits in its lifecycle with the business.
[Party Role Status](enums.md#party-role-status) | Lifecycle status of a specific role a party holds.
[Address Type](enums.md#address-type) | Structural type of an address record.
[Address Purpose](enums.md#address-purpose) | What a party uses an address for.
[Address Verification Status](enums.md#address-verification-status) | Whether an address has been confirmed as real and current.
[Verification Method](enums.md#verification-method) | How an address was confirmed.
[Contact Preference](enums.md#contact-preference) | The channel a customer prefers to be contacted on.
[Company Legal Structure](enums.md#company-legal-structure) | Legal form under which an organisation is constituted.
[Association Type](enums.md#association-type) | Nature of a relationship between two parties.
[Account Holder Type](enums.md#account-holder-type) | How a customer holds an account.
[Account Status](enums.md#account-status) | Operational lifecycle state of an account.
[Account Type](enums.md#account-type) | Classification of an account by what it is for.
[Agreement Status](enums.md#agreement-status) | Lifecycle state of an agreement.
[Transaction Type](enums.md#transaction-type) | The mechanism by which value moved.
[Transaction Status](enums.md#transaction-status) | Lifecycle state of a transaction, from request to settlement.
[Transaction Channel](enums.md#transaction-channel) | Where the transaction came from.
[Currency Code](enums.md#currency-code) | ISO 4217 currency codes for transaction and account values.
## Relationships
Name | Description
--- | ---
[Party Assumes Roles](entities/party.md#party-assumes-roles) | A Party can hold many Party Roles at once, and over time.
[Party Has Contact Addresses](entities/party.md#party-has-contact-addresses) | A Party can have several addresses for different purposes.
[Party Related To Party](entities/party.md#party-related-to-party) | Parties connect to each other through ownership, employment, household or family ties.
[Party Role Uses Contact Addresses](entities/party_role.md#party-role-uses-contact-addresses) | A role picks which of the party's addresses applies to it.
[Party Role Governed By Agreement](entities/party_role.md#party-role-governed-by-agreement) | A role may be governed by a specific Agreement.
[Party Role At Point In Time](entities/party_role.md#party-role-at-point-in-time) | Period snapshot of a role's state, for reporting as at a date.
[Customer Holds Account](entities/customer.md#customer-holds-account) | Customers hold accounts, and accounts can be held jointly.
[Customer Has Preferences](entities/customer.md#customer-has-preferences) | A Customer has one active preference profile.
[Contact Address References Address](entities/contact_address.md#contact-address-references-address) | Each Contact Address points at one canonical Address.
[Account Holds Product](entities/account.md#account-holds-product) | An Account is an instance of a Product.
[Account Denominated In Currency](entities/account.md#account-denominated-in-currency) | An Account is held in exactly one Currency.
[Agreement Involves Party Roles](entities/agreement.md#agreement-involves-party-roles) | An Agreement binds one or more Party Roles.
[Product In Terms Of Agreement](entities/product.md#product-in-terms-of-agreement) | A Product is offered on the terms of an Agreement.
[Transaction Has Payer](entities/transaction.md#transaction-has-payer) | The party the value came from.
[Transaction Has Payee](entities/transaction.md#transaction-has-payee) | The party the value went to.
[Transaction Initiated By Payment Initiator](entities/transaction.md#transaction-initiated-by-payment-initiator) | Who instructed the transaction, when that is not the payer.
[Transaction Denominated In Currency](entities/transaction.md#transaction-denominated-in-currency) | A Transaction is in exactly one Currency.
[Transaction Has Debit Account](entities/transaction.md#transaction-has-debit-account) | The internal account debited. Null when the paying side is external.
[Transaction Has Credit Account](entities/transaction.md#transaction-has-credit-account) | The internal account credited. Null when the receiving side is external.
[Merchant Receives Payment](entities/merchant.md#merchant-receives-payment) | A Merchant is paid through transactions.
[Merchant Has Settlement Account](entities/merchant.md#merchant-has-settlement-account) | Where a Merchant's takings are settled.
[Service Agent Processes Transaction](entities/service-agent.md#service-agent-processes-transaction) | An agent handled the transaction on a customer's behalf.
[Service Agent Assigned To Service Location](entities/service-agent.md#service-agent-assigned-to-service-location) | Where an agent normally works.
[Service Location Serves Account](entities/service-location.md#service-location-serves-account) | The location that looks after an account.
[Service Location Transaction Summary](entities/service-location.md#service-location-transaction-summary) | Grouped relationship from a location to the transactions handled there.
[Exchange Rate References Base Currency](entities/exchange-rate.md#exchange-rate-references-base-currency) | The currency being converted from.
[Exchange Rate References Quote Currency](entities/exchange-rate.md#exchange-rate-references-quote-currency) | The currency being converted to.
## Data Products
Name | Class | Consumers | Status
--- | --- | --- | ---
[Canonical Party](./data_products/canonical.md#canonical-party) | domain-aligned | Cross-domain Integration | Active
---
+144
View File
@@ -0,0 +1,144 @@
# [Digital Core](../domain.md)
## Entities
### Account
An Account is the running record of what a Customer holds and owes. Balances live here and transactions move them.
Account is where a lot of businesses accidentally encode their product catalogue into a status column. Keeping the account generic and pushing the specifics onto Product and Agreement is what lets a new offering launch without a schema change.
```mermaid
---
config:
layout: elk
---
classDiagram
class Account{
* Account Identifier : string
Account Number : string
Account Type : enum~AccountType~
Account Status : enum~AccountStatus~
Opened Date : date
Closed Date : date
}
Customer "0..*" --> "0..*" Account : holds
Account "0..*" --> "1" Product : instance of
Account "0..*" --> "1" Currency : denominated in
ServiceLocation "1" --> "0..*" Account : serves
class AccountType["<a href='../enums.md#account-type'>Account Type</a>"]{<<enumeration>>}
class AccountStatus["<a href='../enums.md#account-status'>Account Status</a>"]{<<enumeration>>}
class Customer["<a href='./customer.md'>Customer</a>"]
class Product["<a href='./product.md'>Product</a>"]
class Currency["<a href='./currency.md'>Currency</a>"]
class ServiceLocation["<a href='./service-location.md'>Service Location</a>"]
```
```yaml
existence: independent
mutability: slowly_changing
temporal:
tracking: valid_time
description: >
Account status moves back and forth — Active to Suspended and back again — and the
dates of those moves matter. Valid time tracking supports questions like "was this
account suspended when that charge was applied?". Opened Date and Closed Date are the
outer boundaries of the account's life.
attributes:
Account Identifier:
type: string
identifier: primary
description: >
Globally unique identifier for this account. Immutable once assigned.
Account Number:
type: string
description: >
The account number as shown to the customer. Distinct from the identifier: this one
appears on statements and can change if the account is renumbered during a migration.
Account Type:
type: enum:Account Type
description: >
What the account is for — billing, subscription, prepaid, wallet and so on. Different
types behave differently: a prepaid account cannot go negative, a credit account can.
Account Status:
type: enum:Account Status
description: >
Current operational state. Suspension and closure are recorded with their effective
dates so that history can be reconstructed.
Opened Date:
type: date
description: >
Date the account was opened. Starts the account's valid time period and feeds
dormancy and tenure calculations.
Closed Date:
type: date
description: >
Date the account was permanently closed. Null means still open. Accounts are closed,
never deleted — a deleted account orphans every transaction that referenced it.
```
```yaml
constraints:
Closed Account Requires Closed Date:
check: >
Account Status != 'Closed'
OR Closed Date IS NOT NULL
description: >
An account with status Closed must record when it closed.
Closed Date After Opened Date:
check: "Closed Date IS NULL OR Closed Date > Opened Date"
description: >
An account's closure date must be later than its opening date.
```
```yaml
governance:
pii: false
classification: Confidential
retention: 7 years
retention_basis: Domain default
description: >
An account is not personal data in itself, but balances and holdings are commercially
sensitive and readily identify a customer through the holder relationship. Retained
for seven years after closure to cover billing disputes and tax records.
access_role:
- CUSTOMER_SERVICE
- DATA_ANALYST
```
## Relationships
### Account Holds Product
An Account is an instance of one Product definition.
```yaml
source: Account
type: references
target: Product
cardinality: many-to-one
granularity: atomic
ownership: Account
```
### Account Denominated In Currency
An Account is denominated in exactly one Currency. All balances and amounts on the account are expressed in it.
```yaml
source: Account
type: references
target: Currency
cardinality: many-to-one
granularity: atomic
ownership: Account
```
+119
View File
@@ -0,0 +1,119 @@
# [Digital Core](../domain.md)
## Entities
### Address
An Address is the canonical record of a location. It holds the structured components of the place itself and nothing else — no party, no purpose, no verification. Those belong on Contact Address.
Separating the two enables deduplication: one Address record serves every party at that location. Two households at the same building share a row rather than two near-identical strings that differ by a comma. It also makes the address itself reference data, which can be cleansed, geocoded and corrected once instead of everywhere.
Address records are not owned by any party and must not be edited when someone moves. Moving is a change to the *association*: the party's Contact Address is closed and a new one opened pointing at a different Address.
```mermaid
---
config:
layout: elk
---
classDiagram
class Address{
* Address Identifier : string
Address Type : enum~AddressType~
Address Line 1 : string
Address Line 2 : string
Suburb : string
City : string
State Or Region : string
Postcode : string
Country : string
}
ContactAddress "0..*" --> "1" Address : references
class AddressType["<a href='../enums.md#address-type'>Address Type</a>"]{<<enumeration>>}
class ContactAddress["<a href='./contact_address.md'>Contact Address</a>"]
```
```yaml
existence: independent
mutability: reference
attributes:
Address Identifier:
type: string
identifier: primary
description: >
Globally unique identifier for this location. Immutable once assigned. Many parties may reference the same identifier through their Contact Address records.
Address Type:
type: enum:Address Type
description: >
The structural type of the address. Determines which components apply — a PO Box has no street, and an overseas address may have no state or region.
Address Line 1:
type: string
description: >
The primary street line, typically number and street name. For a PO Box, the box number.
Address Line 2:
type: string
description: >
Secondary line for a unit, level, suite or building name.
Suburb:
type: string
description: >
The suburb or locality. Kept distinct from City because in Australia and New Zealand they are genuinely different things and merging them breaks delivery.
City:
type: string
description: >
The city or town.
State Or Region:
type: string
description: >
The state, territory, province or region, or the local equivalent.
Postcode:
type: string
description: >
The postal code. Held as a string to preserve leading zeros and to support formats that are not numeric.
Country:
type: string
description: >
ISO 3166-1 alpha-2 country code. Mandatory for every address type.
```
```yaml
constraints:
Country Required:
not_null: Country
description: >
Every address must have a country. Without one, the rest of the fields cannot be interpreted — postcode formats and address ordering are country-specific.
Street Address Requires Address Line 1:
check: >
Address Type != 'Street Address'
OR Address Line 1 IS NOT NULL
description: >
A street address must have at least Address Line 1 populated.
```
```yaml
governance:
pii: false
classification: Internal
retention: 7 years
retention_basis: Domain default
description: >
An address on its own identifies a place, not a person, so it is not personal data — the link to a party is, and that lives on Contact Address. Address records are treated as immutable: a corrected or renamed street produces a new record, leaving historical Contact Address references pointing at what was true at the time.
access_role:
- CUSTOMER_SERVICE
- DATA_ANALYST
```
## Relationships
No relationships are sourced directly from Address in the current domain model.
+81
View File
@@ -0,0 +1,81 @@
# [Digital Core](../domain.md)
## Entities
### Agreement
An Agreement is the contract behind a relationship: the terms binding one or more Party Roles to a Product.
It is the answer to "what did we actually promise?". Keeping it as a first-class entity rather than a few columns on Account means the terms can outlive any individual account and be pointed at from several places.
```mermaid
---
config:
layout: elk
---
classDiagram
class Agreement{
* Agreement Identifier : string
Agreement Number : string
Agreement Status : enum~AgreementStatus~
Effective Date : date
Maturity Date : date
}
PurchaseAgreement --|> Agreement
SubscriptionAgreement --|> Agreement
Agreement "1" --> "0..*" PartyRole : governs
class AgreementStatus["<a href='../enums.md#agreement-status'>Agreement Status</a>"]{<<enumeration>>}
class PurchaseAgreement["<a href='./purchase-agreement.md'>Purchase Agreement</a>"]
class SubscriptionAgreement["<a href='./subscription-agreement.md'>Subscription Agreement</a>"]
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
```
```yaml
existence: independent
mutability: slowly_changing
attributes:
Agreement Identifier:
type: string
identifier: primary
description: Unique identifier of the agreement record.
Agreement Number:
type: string
description: Human-facing agreement reference quoted to customers.
Agreement Status:
type: enum:Agreement Status
description: >
Current lifecycle state. Active agreements govern current obligations; expired and
terminated ones are kept because disputes are usually about agreements that have ended.
Effective Date:
type: date
description: Date the agreement became enforceable.
Maturity Date:
type: date
description: Date the agreement is scheduled to end, if it has a fixed end.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
### Agreement Involves Party Roles
An Agreement governs one or more Party Roles participating in the contract.
```yaml
source: Agreement
type: governs
target: Party Role
cardinality: one-to-many
granularity: atomic
ownership: Agreement
```
+86
View File
@@ -0,0 +1,86 @@
# [Digital Core](../domain.md)
## Entities
### Company
A Company is an organisation with legal standing — a company, partnership, trust, cooperative, charity or public body. It specialises Party and carries the registration and structure attributes that only apply to organisations.
Legal structure is worth recording explicitly rather than inferring from the name. It determines who is allowed to sign, who is liable, what evidence the business needs on file, and how the organisation is taxed.
```mermaid
---
config:
layout: elk
---
classDiagram
class Company{
Company Registration Number : string
Incorporation Country : string
Incorporation Date : date
Legal Structure : enum~CompanyLegalStructure~
Tax Identifier : string
}
Company --|> Party
class CompanyLegalStructure["<a href='../enums.md#company-legal-structure'>Company Legal Structure</a>"]{<<enumeration>>}
class Party["<a href='./party.md'>Party</a>"]
```
```yaml
extends: Party
existence: independent
mutability: slowly_changing
attributes:
Company Registration Number:
type: string
description: >
The registration identifier issued by the relevant companies registry, such as an ACN in Australia, an NZBN in New Zealand or a Companies House number in the UK. The most reliable way to tell two similarly named organisations apart.
Incorporation Country:
type: string
description: >
ISO 3166-1 alpha-2 code for the country the organisation is incorporated in. Determines which registry the registration number belongs to, and which country's company law applies.
Incorporation Date:
type: date
description: >
Date the organisation was formally incorporated or registered.
Legal Structure:
type: enum:Company Legal Structure
description: >
The legal form the organisation takes. Determines signing authority, liability and the evidence required to establish who controls it.
Tax Identifier:
type: string
description: >
Tax registration number issued by the relevant revenue authority, such as an ABN, VAT number or EIN. Needed to invoice the organisation correctly.
```
```yaml
constraints:
Registration Number Required For Active Company:
not_null: Company Registration Number
lifecycle_stage: Onboarding
description: >
An organisation must have a registration number recorded before the relationship is activated, so that it can be identified unambiguously in any later dispute or reconciliation.
```
```yaml
governance:
pii: false
classification: Internal
retention: 7 years
retention_basis: Domain default
description: >
Company records describe organisations rather than individuals, so they carry no personal data of their own and are classified a step lower than Person. Note that a sole trader blurs this line: the organisation and the individual are the same legal person, and those records should be treated as personal data.
access_role:
- CUSTOMER_SERVICE
- DATA_ANALYST
```
## Relationships
No relationships are sourced directly from Company in the current domain model.
+144
View File
@@ -0,0 +1,144 @@
# [Digital Core](../domain.md)
## Entities
### Contact Address
A Contact Address is the link between a Party and an Address: what the address is used for, whether it has been confirmed, and the period it was in use. It is not the address itself — the location lives in the Address entity and is shared.
That separation buys two things. Deduplication: when two parties share a location, one Address record exists and both point at it, so "who else is at this address" is a join rather than a fuzzy string match. And time: because the association carries valid from and to dates, you can answer "where were we sending this customer's mail last March", which is exactly what you need when a delivery goes missing or a dispute is raised.
A Party *has* Contact Addresses — it owns them. A Party Role *uses* them: a role points at whichever of the party's addresses applies in its context. The same person might have a home address for identity and a separate billing address used by their Customer role.
```mermaid
---
config:
layout: elk
---
classDiagram
class ContactAddress{
* Contact Address Identifier : string
Address Purpose : enum~AddressPurpose~
Is Primary : boolean
Verification Status : enum~AddressVerificationStatus~
Verification Date : date
Verification Method : enum~VerificationMethod~
Valid From : date
Valid To : date
}
Party "1" --> "0..*" ContactAddress : has
PartyRole "0..*" --> "0..*" ContactAddress : uses
ContactAddress "0..*" --> "1" Address : references
class AddressPurpose["<a href='../enums.md#address-purpose'>Address Purpose</a>"]{<<enumeration>>}
class AddressVerificationStatus["<a href='../enums.md#address-verification-status'>Address Verification Status</a>"]{<<enumeration>>}
class VerificationMethod["<a href='../enums.md#verification-method'>Verification Method</a>"]{<<enumeration>>}
class Party["<a href='./party.md'>Party</a>"]
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
class Address["<a href='./address.md'>Address</a>"]
```
```yaml
existence: associative
mutability: slowly_changing
temporal:
tracking: valid_time
description: >
Valid time is carried explicitly as Valid From and Valid To rather than left to generated columns. This allows a move to be recorded before it happens — a customer tells you in June that they move in July — and keeps point-in-time lookups honest.
attributes:
Contact Address Identifier:
type: string
identifier: primary
description: >
Globally unique identifier for this party-to-address association.
Address Purpose:
type: enum:Address Purpose
description: >
What the party uses this address for. A party can hold several addresses at once for different purposes — home, billing and delivery are frequently different places.
Is Primary:
type: boolean
default: false
description: >
Whether this is the party's main address for the given purpose. At most one address may be primary per purpose at any point in time.
Verification Status:
type: enum:Address Verification Status
description: >
Whether this address has been confirmed as real and current. Unverified addresses are usable but should not be relied on for anything expensive, such as a physical delivery.
Verification Date:
type: date
description: >
When the address was last confirmed. Verification ages: an address confirmed five years ago is weaker evidence than one confirmed last month.
Verification Method:
type: enum:Verification Method
description: >
How the address was confirmed. Recorded because the methods are not equally strong, and knowing which was used determines how much weight to put on the result.
Valid From:
type: date
description: >
The date the party started using this address for the stated purpose.
Valid To:
type: date
description: >
The date the party stopped using it. Null means still in use. Closed associations are kept rather than deleted, so historical lookups stay accurate.
```
```yaml
constraints:
One Primary Per Purpose:
check: >
COUNT(Contact Address WHERE Party == this.Party
AND Address Purpose == this.Address Purpose
AND Is Primary == true
AND (Valid To IS NULL OR Valid To >= Today)) <= 1
description: >
A party may have at most one primary Contact Address per purpose at any point in time. Two primary billing addresses is not a preference, it is a bug.
Valid To After Valid From:
check: "Valid To IS NULL OR Valid To > Valid From"
description: >
The end of the validity period must be later than the start.
Verification Date Required When Verified:
check: >
Verification Status != 'Verified'
OR Verification Date IS NOT NULL
description: >
An address marked Verified must record when it was verified, otherwise the status cannot be aged or trusted.
```
```yaml
governance:
pii: true
classification: Confidential
retention: 7 years
retention_basis: Domain default
description: >
A contact address ties a person to a location, which makes this association personal data even though the Address it points at is not. Records are closed via Valid To rather than deleted.
access_role:
- CUSTOMER_SERVICE
- PRIVACY_OFFICER
```
## Relationships
### Contact Address References Address
Each Contact Address references exactly one canonical Address record.
```yaml
source: Contact Address
type: references
target: Address
cardinality: many-to-one
granularity: atomic
ownership: Contact Address
```
+54
View File
@@ -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.
@@ -0,0 +1,74 @@
# [Digital Core](../domain.md)
## Entities
### Customer Preferences
Customer Preferences captures how a customer wants to be contacted and what they have agreed to be contacted about.
Consent is worth modelling explicitly rather than as a flag buried in a marketing tool. It has to be honoured across every channel the business owns, it has to be provable after the fact, and it changes independently of everything else about the customer.
```mermaid
---
config:
layout: elk
---
classDiagram
class CustomerPreferences{
* Preference Identifier : string
Contact Preference : enum~ContactPreference~
Marketing Consent : boolean
Effective From : date
}
Customer "1" --> "0..1" CustomerPreferences : has
class ContactPreference["<a href='../enums.md#contact-preference'>Contact Preference</a>"]{<<enumeration>>}
class Customer["<a href='./customer.md'>Customer</a>"]
```
```yaml
existence: dependent
mutability: slowly_changing
attributes:
Preference Identifier:
type: string
identifier: primary
description: Unique identifier for the preference profile.
Contact Preference:
type: enum:Contact Preference
description: >
The channel the customer prefers for outbound contact. Honoured for everything except
messages the business is obliged to send, such as a service outage or a billing notice.
Marketing Consent:
type: boolean
description: >
Whether the customer has agreed to marketing communications. Separate from contact
preference: knowing how to reach someone is not permission to sell to them.
Effective From:
type: date
description: Date the current preference set took effect.
```
```yaml
governance:
pii: true
classification: Confidential
retention: 7 years
retention_basis: Domain default
description: >
Consent records are the evidence that outbound contact was permitted, so they are kept
for the full retention period even after a customer opts out. An opt-out is a change of
preference, never a deletion of the record that the preference changed.
access_role:
- CUSTOMER_SERVICE
- MARKETING
- PRIVACY_OFFICER
```
## Relationships
No relationships are sourced directly from Customer Preferences in the current domain model.
+89
View File
@@ -0,0 +1,89 @@
# [Digital Core](../domain.md)
## Entities
### Customer
A Customer is a Party Role representing an active or prospective commercial relationship — someone who buys, subscribes, or holds an account with the business.
Customer is a role, not a person. The same human being who is a customer today may also be a supplier, an employee, or the payer on someone else's account. Modelling Customer as a role rather than as the party itself is what makes those coexist without duplicate records.
```mermaid
---
config:
layout: elk
---
classDiagram
class Customer{
* Customer Number : string
Onboarding Date : date
Relationship Start Date : date
}
Customer --|> PartyRole
Customer "0..*" --> "0..*" Account : holds
Customer "1" --> "0..1" CustomerPreferences : has
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
class Account["<a href='./account.md'>Account</a>"]
class CustomerPreferences["<a href='./customer-preferences.md'>Customer Preferences</a>"]
```
```yaml
extends: Party Role
existence: independent
mutability: slowly_changing
attributes:
Customer Number:
type: string
identifier: primary
description: >
The customer identifier quoted in correspondence and used by service and support staff. Unlike the Party Identifier, this one is meant to be readable aloud over the phone.
Onboarding Date:
type: date
description: Date the customer onboarding process was completed.
Relationship Start Date:
type: date
description: >
Date the customer relationship became effective. May precede the onboarding date where a relationship was migrated in from another system or acquired with another business.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
### Customer Holds Account
A Customer can hold one or more Accounts, and an Account can be held by more than one Customer. Joint accounts, business accounts with several authorised users, and family plans all need many-to-many — a shape that is painful to retrofit later, so it is declared up front.
```yaml
source: Customer
type: has
target: Account
cardinality: many-to-many
granularity: atomic
ownership: Customer
relationship_attributes:
- Holder Type (enum:Account Holder Type)
- Holder Start Date
- Holder End Date
- Is Primary Holder
```
### Customer Has Preferences
A Customer has at most one active Customer Preferences profile at a time.
```yaml
source: Customer
type: has
target: Customer Preferences
cardinality: one-to-one
granularity: atomic
ownership: Customer
```
+76
View File
@@ -0,0 +1,76 @@
# [Digital Core](../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
```
+82
View File
@@ -0,0 +1,82 @@
# [Digital Core](../domain.md)
## Entities
### Merchant
A Merchant is a Party Role that accepts payment for goods or services. In a marketplace or platform business the merchants are the sellers; in a payments business they are the businesses being paid.
```mermaid
---
config:
layout: elk
---
classDiagram
class Merchant{
* Merchant Identifier : string
Merchant Category Code : string
Settlement Account Identifier : string
}
Merchant --|> PartyRole
Merchant "1" --> "0..*" Transaction : processes
Merchant "0..*" --> "0..1" Account : settles into
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
class Transaction["<a href='./transaction.md'>Transaction</a>"]
class Account["<a href='./account.md'>Account</a>"]
```
```yaml
extends: Party Role
existence: independent
mutability: slowly_changing
attributes:
Merchant Identifier:
type: string
identifier: primary
description: Unique identifier for the merchant role instance.
Merchant Category Code:
type: string
description: >
ISO 18245 Merchant Category Code describing what the merchant sells. Useful for
analytics and for the pricing and routing rules that vary by category.
Settlement Account Identifier:
type: string
description: The account takings are settled into.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
### Merchant Receives Payment
A Merchant receives value through one or more Transactions.
```yaml
source: Merchant
type: associates_with
target: Transaction
cardinality: one-to-many
granularity: atomic
ownership: Merchant
```
### Merchant Has Settlement Account
A Merchant may have a designated Account into which settlement is paid.
```yaml
source: Merchant
type: references
target: Account
cardinality: many-to-one
granularity: atomic
ownership: Merchant
```
+146
View File
@@ -0,0 +1,146 @@
# [Digital Core](../domain.md)
## Entities
### Party
A Party is any individual or organisation the business has, or may have, a relationship with. It is the foundational abstract concept of the domain — it carries only what is true of *every* party, whoever they are.
A Party does not do anything directly. It acts through a Party Role: the same Party can be a Customer on one product, a Merchant taking payments, and the Payer on somebody else's bill, all at once. Keeping identity separate from role is what stops a model from sprouting a new "customer" table every time the business finds a new way to deal with people.
Specialisations of Party — Person and Company — carry the attributes specific to a human being or an organisation.
```mermaid
---
config:
layout: elk
---
classDiagram
class Party{
<<abstract>>
* Party Identifier : string
Legal Name : string
Also Known As : string
Party Status : enum~PartyStatus~
}
class Person
class Company{
}
Person --|> Party
Company --|> Party
Party "1" --> "0..*" PartyRole
Party "1" --> "0..*" ContactAddress
class PartyStatus["<a href='../enums.md#party-status'>Party Status</a>"]{<<enumeration>>}
class Person["<a href='./person.md'>Person</a>"]
class Company["<a href='./company.md'>Company</a>"]
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
class ContactAddress["<a href='./contact_address.md'>Contact Address</a>"]
```
```yaml
existence: independent
mutability: slowly_changing
temporal:
tracking: bitemporal
description: >
Valid time captures when the party information was true in the real world — a name change takes effect on the day it happened, not the day it was typed in. Transaction time captures when the business recorded it. Both are needed to answer "what did we believe about this party at the time we acted?", which is the question every audit and every dispute eventually asks.
attributes:
Party Identifier:
type: string
identifier: primary
description: >
Globally unique identifier for this party across all systems. Immutable once assigned.
Legal Name:
type: string
pii: true
description: >
The party's full name as it appears on official documentation. For an individual this is the full given and family name; for an organisation it is the registered name.
Also Known As:
type: string
pii: true
description: >
Alternative names: trading names, former names, maiden names, or the name a person actually goes by. People and businesses accumulate names, and searching only the legal one finds nobody. Several names are held in the one field, separated by semicolons, rather than as a repeating attribute — see the type mapping note in template/README.md.
Party Status:
type: enum:Party Status
description: >
Where the party sits in its lifecycle with the business. Controls whether new relationships may be established.
```
```yaml
constraints:
Legal Name Required:
not_null: Legal Name
description: >
Every party must have a name. A party record with no name cannot be matched, contacted, or reconciled against anything.
```
```yaml
governance:
pii: true
classification: Confidential
retention: 7 years
retention_basis: Domain default
description: >
Party records are retained for seven years after the relationship ends, then deleted. Party is the anchor for personal data in this domain — a deletion request resolves to a Party Identifier and cascades from here.
access_role:
- CUSTOMER_SERVICE
- DATA_ANALYST
- PRIVACY_OFFICER
```
## Relationships
### Party Assumes Roles
A Party can assume one or more Party Roles across different business contexts.
```yaml
source: Party
type: has
target: Party Role
cardinality: one-to-many
granularity: atomic
ownership: Party
```
### Party Has Contact Addresses
A Party can have one or more contact addresses for different purposes.
```yaml
source: Party
type: has
target: Contact Address
cardinality: one-to-many
granularity: atomic
ownership: Party
```
### Party Related To Party
A Party may be related to other Parties through ownership, control, employment, household or family ties. This self-referential relationship is what turns a list of parties into a graph — it answers "who owns this company", "who else lives at this address", "which accounts belong to this household".
A relationship instance is directional and named: "Director of", "Parent Organisation of", "Partner of". The same pair of parties may hold several associations of different types at once.
```yaml
source: Party
type: related_to
target: Party
cardinality: many-to-many
granularity: atomic
ownership: Party
self_referential: true
relationship_attributes:
- Association Type (enum:Association Type)
- Association Start Date
- Association End Date
- Verified
```
+159
View File
@@ -0,0 +1,159 @@
# [Digital Core](../domain.md)
## Entities
### Party Role
A Party Role is the capacity in which a Party acts. It separates *who someone is* from *what they are doing* — the single most useful distinction in the whole model.
The same person may be a Customer on a subscription, the Payer on a family member's bill, and a Service Agent employed by the business, all at the same time. Model those as three roles against one Party and the business can answer "how many customers do we have" and "is this the same human being" as separate questions, which they are.
Party Role is abstract and is never instantiated directly. Every role is one of its specialisations: Customer, Merchant, Payer, Payee, Service Agent, Payment Initiator.
```mermaid
---
config:
layout: elk
---
classDiagram
class PartyRole{
<<abstract>>
* Role Identifier : string
Role Status : enum~PartyRoleStatus~
Role Start Date : date
Role End Date : date
}
class Customer
class Merchant
class Payee
class Payer
class ServiceAgent
class PaymentInitiator
Customer --|> PartyRole
Merchant --|> PartyRole
Payee --|> PartyRole
Payer --|> PartyRole
ServiceAgent --|> PartyRole
PaymentInitiator --|> PartyRole
PartyRole "1" <-- "0..*" Party : assumes
PartyRole "0..*" --> "0..*" ContactAddress : uses
PartyRole "0..*" --> "0..1" Agreement : governed by
class PartyRoleStatus["<a href='../enums.md#party-role-status'>Party Role Status</a>"]{<<enumeration>>}
class Customer["<a href='./customer.md'>Customer</a>"]
class Merchant["<a href='./merchant.md'>Merchant</a>"]
class Payee["<a href='./payee.md'>Payee</a>"]
class Payer["<a href='./payer.md'>Payer</a>"]
class ServiceAgent["<a href='./service-agent.md'>Service Agent</a>"]
class PaymentInitiator["<a href='./payment_initiator.md'>Payment Initiator</a>"]
class Party["<a href='./party.md'>Party</a>"]
class ContactAddress["<a href='./contact_address.md'>Contact Address</a>"]
class Agreement["<a href='./agreement.md'>Agreement</a>"]
```
```yaml
existence: independent
mutability: slowly_changing
temporal:
tracking: bitemporal
description: >
Bitemporal tracking captures both when the role was actually in effect (valid time, via Role Start Date and Role End Date) and when the business knew about it (transaction time). This supports point-in-time questions such as "was this party a customer when that order was placed?" while still allowing corrections that arrive late to be recorded without rewriting history.
attributes:
Role Identifier:
type: string
identifier: primary
description: >
Globally unique identifier for this role instance. Distinct from the Party Identifier — one party holding two roles has two Role Identifiers.
Role Status:
type: enum:Party Role Status
description: >
The current lifecycle status of this role. Controls whether the role confers its business permissions.
Role Start Date:
type: date
description: >
The date this role became effective.
Role End Date:
type: date
description: >
The date this role ceased to be effective. Null means the role is still open. Roles are closed rather than deleted, so that history stays intact.
```
```yaml
constraints:
Role End After Start:
check: "Role End Date IS NULL OR Role End Date > Role Start Date"
description: >
A role's end date must be later than its start date. A null end date indicates the role is currently open.
Closed Role Requires End Date:
check: >
Role Status != 'Closed'
OR Role End Date IS NOT NULL
description: >
A role with a status of Closed must have a Role End Date recorded, so the valid time period is always closed correctly.
```
```yaml
governance:
pii: false
classification: Internal
retention: 7 years
retention_basis: Domain default
description: >
Role records carry no personal data themselves — they point at a Party, which does. Roles must never be deleted; closing them with an end date is the only permitted termination, because a deleted role silently rewrites what the business was entitled to do at a past moment.
access_role:
- CUSTOMER_SERVICE
- DATA_ANALYST
```
## Relationships
### Party Role Uses Contact Addresses
A Party Role may use one or more Contact Addresses owned by the underlying Party. The Party owns its addresses; a role picks which of them applies in its context.
```yaml
source: Party Role
type: associates_with
target: Contact Address
cardinality: many-to-many
granularity: atomic
ownership: Party Role
```
### Party Role Governed By Agreement
A Party Role may be governed by a specific Agreement that sets out its obligations and permissions.
```yaml
source: Party Role
type: references
target: Agreement
cardinality: many-to-one
granularity: atomic
ownership: Party Role
```
### Party Role At Point In Time
Captures the state of a Party Role as it stood on a given date. Reporting usually needs the state as at the end of a period rather than the state right now — how many active customers did we have on 30 June, not how many do we have today.
Party Role is declared bitemporal; this period-granularity relationship makes the snapshot pattern explicit so that generated physical models can materialise it.
```yaml
source: Party Role
type: snapshots
target: Party Role
cardinality: one-to-one
granularity: period
ownership: Party Role
self_referential: true
```
+47
View File
@@ -0,0 +1,47 @@
# [Digital Core](../domain.md)
## Entities
### Payee
A Payee is a Party Role representing the party value goes to in a transaction. Kept distinct from Merchant: every merchant being paid is a payee, but plenty of payees are not merchants — a refunded customer, an employee reimbursed, a partner receiving a share.
```mermaid
---
config:
layout: elk
---
classDiagram
class Payee{
* Payee Identifier : string
Beneficiary Reference : string
}
Payee --|> PartyRole
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
```
```yaml
extends: Party Role
existence: independent
mutability: slowly_changing
attributes:
Payee Identifier:
type: string
identifier: primary
description: Unique identifier for the payee role instance.
Beneficiary Reference:
type: string
description: Reference identifying the beneficiary in payment instructions.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
No relationships are sourced directly from Payee. The canonical direction is Transaction-owned — see [Transaction Has Payee](transaction.md#transaction-has-payee).
+47
View File
@@ -0,0 +1,47 @@
# [Digital Core](../domain.md)
## Entities
### Payer
A Payer is a Party Role representing the party value comes from in a transaction. It is a separate role from Customer because they are frequently not the same party: a parent pays a student's bill, a company pays an employee's expenses, a sponsor pays for someone else entirely.
```mermaid
---
config:
layout: elk
---
classDiagram
class Payer{
* Payer Identifier : string
Funding Source Reference : string
}
Payer --|> PartyRole
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
```
```yaml
extends: Party Role
existence: independent
mutability: slowly_changing
attributes:
Payer Identifier:
type: string
identifier: primary
description: Unique identifier for the payer role instance.
Funding Source Reference:
type: string
description: Reference to the account or instrument the money comes from.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
No relationships are sourced directly from Payer. The canonical direction is Transaction-owned — see [Transaction Has Payer](transaction.md#transaction-has-payer).
+49
View File
@@ -0,0 +1,49 @@
# [Digital Core](../domain.md)
## Entities
### Payment Initiator
A Payment Initiator is a Party Role representing whoever instructed a transaction, when that is not the payer themselves. A platform charging a saved card on a schedule, an accountant paying a client's invoices, an app initiating a payment through an open banking API — all are initiators acting on someone else's behalf.
Recording the initiator separately answers "who actually triggered this?", which matters when a payment is disputed.
```mermaid
---
config:
layout: elk
---
classDiagram
class PaymentInitiator{
* Payment Initiator Identifier : string
Initiation Channel : string
}
PaymentInitiator --|> PartyRole
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
```
```yaml
extends: Party Role
existence: independent
mutability: slowly_changing
attributes:
Payment Initiator Identifier:
type: string
identifier: primary
description: Unique identifier for the payment initiator role instance.
Initiation Channel:
type: string
description: The channel or integration the instruction arrived through.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
No relationships are sourced directly from Payment Initiator. The canonical direction is Transaction-owned — see [Transaction Initiated By Payment Initiator](transaction.md#transaction-initiated-by-payment-initiator).
+79
View File
@@ -0,0 +1,79 @@
# [Digital Core](../domain.md)
## Entities
### Person
A Person is a human being. Person specialises Party, inheriting everything that is true of any party and adding what only applies to people.
The split matters because the questions you ask of a person and of an organisation are genuinely different. A person has a birthday and a name they prefer to be called; a company has a registration number and a legal structure. Forcing both into one record produces a table where most columns are empty most of the time.
```mermaid
---
config:
layout: elk
---
classDiagram
class Party{
<<abstract>>
}
class Person{
Date of Birth : date
Preferred Name : string
Country of Residence : string
}
Person --|> Party
class Party["<a href='./party.md'>Party</a>"]
```
```yaml
extends: Party
existence: independent
mutability: slowly_changing
attributes:
Date of Birth:
type: date
pii: true
description: >
The individual's date of birth. Used to confirm identity, to check age eligibility for age-restricted products, and to avoid confusing two people with the same name.
Preferred Name:
type: string
pii: true
description: >
What the person actually wants to be called, when that differs from their legal name. Used for greetings and correspondence. Getting this right is cheap and getting it wrong is conspicuous.
Country of Residence:
type: string
pii: true
description: >
ISO 3166-1 alpha-2 code for the country the individual currently lives in. Drives tax treatment, applicable consumer law, currency defaults and delivery options.
```
```yaml
constraints:
Date of Birth Not In Future:
check: "Date of Birth IS NULL OR Date of Birth <= Today"
description: >
A date of birth in the future is a data entry error, not a person.
```
```yaml
governance:
pii: true
classification: Confidential
retention: 7 years
retention_basis: Domain default
description: >
Person carries the domain's most sensitive personal data. Date of Birth is the attribute most often requested for masking by downstream products — consumer-aligned products that only need an age band should derive one rather than publish the raw date.
access_role:
- CUSTOMER_SERVICE
- PRIVACY_OFFICER
```
## Relationships
No relationships are sourced directly from Person in the current domain model.
+66
View File
@@ -0,0 +1,66 @@
# [Digital Core](../domain.md)
## Entities
### Product
A Product is something the business sells or provides. Accounts are instances of it, and its commercial terms come from an Agreement.
Product is deliberately thin here. The catalogue — pricing tiers, features, eligibility — is a domain of its own in most businesses; what the core needs is a stable identifier to hang accounts off.
```mermaid
---
config:
layout: elk
---
classDiagram
class Product{
* Product Identifier : string
Product Name : string
Product Category : string
}
Product "0..*" --> "1" Agreement : in terms of
Account "0..*" --> "1" Product : holds
class Agreement["<a href='./agreement.md'>Agreement</a>"]
class Account["<a href='./account.md'>Account</a>"]
```
```yaml
existence: independent
mutability: slowly_changing
attributes:
Product Identifier:
type: string
identifier: primary
description: Unique identifier of the product definition.
Product Name:
type: string
description: Business name of the product as customers see it.
Product Category:
type: string
description: Classification used for grouping and reporting.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
### Product In Terms Of Agreement
A Product is offered on the terms of an Agreement template.
```yaml
source: Product
type: references
target: Agreement
cardinality: many-to-one
granularity: atomic
ownership: Product
```
+53
View File
@@ -0,0 +1,53 @@
# [Digital Core](../domain.md)
## Entities
### Purchase Agreement
A Purchase Agreement is a specialised Agreement covering a one-off purchase of goods or services — an order, a booking, a single licence.
It contrasts with a Subscription Agreement: a purchase completes, whereas a subscription recurs. Both are Agreements, which is why they share status, effective dates and the roles they bind.
```mermaid
---
config:
layout: elk
---
classDiagram
class PurchaseAgreement{
Order Reference : string
Total Amount : decimal
Fulfilment Terms : string
}
PurchaseAgreement --|> Agreement
class Agreement["<a href='./agreement.md'>Agreement</a>"]
```
```yaml
extends: Agreement
existence: independent
mutability: slowly_changing
attributes:
Order Reference:
type: string
description: Customer-facing reference for the order this agreement covers.
Total Amount:
type: decimal
description: Total contracted amount for the purchase.
Fulfilment Terms:
type: string
description: How and when the goods or services are to be delivered.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
No relationships are sourced directly from Purchase Agreement in the current domain model.
+94
View File
@@ -0,0 +1,94 @@
# [Digital Core](../domain.md)
## Entities
### Service Agent
A Service Agent is a Party Role representing a staff member who serves customers — at a counter, on the phone, or in a chat window.
Agents are modelled as a role for the same reason customers are. An agent is a person, that person may also be a customer of the business, and treating them as one Party wearing two roles avoids the awkward duplicate that appears when staff buy their employer's products.
Recording which agent handled a transaction is what makes service quality measurable and gives every action an accountable human.
```mermaid
---
config:
layout: elk
---
classDiagram
class ServiceAgent{
* Service Agent Identifier : string
Employee Number : string
Assigned Location Identifier : string
}
ServiceAgent --|> PartyRole
ServiceAgent "1" --> "0..*" Transaction : processes
ServiceAgent "0..*" --> "1" ServiceLocation : assigned to
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
class Transaction["<a href='./transaction.md'>Transaction</a>"]
class ServiceLocation["<a href='./service-location.md'>Service Location</a>"]
```
```yaml
extends: Party Role
existence: independent
mutability: slowly_changing
attributes:
Service Agent Identifier:
type: string
identifier: primary
description: Unique identifier for the service agent role instance.
Employee Number:
type: string
description: Internal staff identifier of the person acting as agent.
Assigned Location Identifier:
type: string
description: The service location the agent normally works from.
```
```yaml
governance:
pii: false
classification: Internal
retention: 7 years
retention_basis: Domain default
description: >
Agent records identify staff rather than customers, but they are still about people:
agent activity data should be used to improve service, not to build surveillance
metrics about individual employees.
access_role:
- SERVICE_MANAGER
- DATA_ANALYST
```
## Relationships
### Service Agent Processes Transaction
A Service Agent can handle one or more Transactions on a customer's behalf.
```yaml
source: Service Agent
type: associates_with
target: Transaction
cardinality: one-to-many
granularity: atomic
ownership: Service Agent
```
### Service Agent Assigned To Service Location
A Service Agent is assigned to a Service Location for operational purposes.
```yaml
source: Service Agent
type: assigned_to
target: Service Location
cardinality: many-to-one
granularity: atomic
ownership: Service Agent
```
+75
View File
@@ -0,0 +1,75 @@
# [Digital Core](../domain.md)
## Entities
### Service Location
A Service Location is somewhere the business delivers service: a store, a branch, a depot, a contact centre. It exists so that activity can be attributed to a place, which is what makes location-level performance and staffing analysis possible.
```mermaid
---
config:
layout: elk
---
classDiagram
class ServiceLocation{
* Service Location Identifier : string
Location Code : string
Location Name : string
}
ServiceLocation "1" --> "0..*" Account : serves
class Account["<a href='./account.md'>Account</a>"]
```
```yaml
existence: independent
mutability: reference
attributes:
Service Location Identifier:
type: string
identifier: primary
description: Unique identifier for the service location.
Location Code:
type: string
description: Short operational code used to refer to the location.
Location Name:
type: string
description: Human-readable name of the location.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
### Service Location Serves Account
A Service Location looks after one or more Accounts.
```yaml
source: Service Location
type: has
target: Account
cardinality: one-to-many
granularity: atomic
ownership: Service Location
```
### Service Location Transaction Summary
A Service Location has a grouped relationship to the Transactions handled through it. Declared at group granularity because the useful question is aggregate — how much went through this location this month — not which individual transaction.
```yaml
source: Service Location
type: associates_with
target: Transaction
cardinality: one-to-many
granularity: group
ownership: Service Location
```
@@ -0,0 +1,53 @@
# [Digital Core](../domain.md)
## Entities
### Subscription Agreement
A Subscription Agreement is a specialised Agreement covering a recurring service billed on a cycle — a streaming plan, a phone plan, a maintenance contract, a SaaS seat.
What distinguishes it from a one-off purchase is that it keeps charging until somebody stops it, so the cycle, the amount and any minimum term are the terms that matter.
```mermaid
---
config:
layout: elk
---
classDiagram
class SubscriptionAgreement{
Billing Cycle : string
Recurring Amount : decimal
Minimum Term Months : integer
}
SubscriptionAgreement --|> Agreement
class Agreement["<a href='./agreement.md'>Agreement</a>"]
```
```yaml
extends: Agreement
existence: independent
mutability: slowly_changing
attributes:
Billing Cycle:
type: string
description: How often the subscription is billed, such as monthly or annually.
Recurring Amount:
type: decimal
description: Amount charged each billing cycle.
Minimum Term Months:
type: integer
description: Minimum committed term in months, if any.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
No relationships are sourced directly from Subscription Agreement in the current domain model.
+219
View File
@@ -0,0 +1,219 @@
# [Digital Core](../domain.md)
## Entities
### Transaction
A Transaction is a movement of value between parties and accounts: the thing that actually happened. It carries the amount, the timing, the mechanism, and who was involved on each side.
Transaction is the busiest entity in the domain and the one most analytics is built on. It is append-only: a settled transaction is a historical fact and correcting it by editing the row destroys the audit trail. Reversals and adjustments are new transactions that reference the original.
```mermaid
---
config:
layout: elk
---
classDiagram
class Transaction{
* Transaction Identifier : string
Transaction Date Time : datetime
Settlement Date Time : datetime
Amount : decimal
Transaction Type : enum~TransactionType~
Transaction Channel : enum~TransactionChannel~
Transaction Status : enum~TransactionStatus~
Reference : string
}
Transaction "0..*" --> "1" Payer : has payer
Transaction "0..*" --> "1" Payee : has payee
Transaction "0..*" --> "0..1" PaymentInitiator : initiated by
Transaction "0..*" --> "1" Currency : denominated in
Transaction "0..*" --> "0..1" Account : debits
Transaction "0..*" --> "0..1" Account : credits
class TransactionType["<a href='../enums.md#transaction-type'>Transaction Type</a>"]{<<enumeration>>}
class TransactionChannel["<a href='../enums.md#transaction-channel'>Transaction Channel</a>"]{<<enumeration>>}
class TransactionStatus["<a href='../enums.md#transaction-status'>Transaction Status</a>"]{<<enumeration>>}
class Payer["<a href='./payer.md'>Payer</a>"]
class Payee["<a href='./payee.md'>Payee</a>"]
class PaymentInitiator["<a href='./payment_initiator.md'>Payment Initiator</a>"]
class Currency["<a href='./currency.md'>Currency</a>"]
class Account["<a href='./account.md'>Account</a>"]
```
```yaml
existence: dependent
mutability: append_only
temporal:
tracking: transaction_time
description: >
Transactions are append-only. Once settled they are never modified. Transaction time
records when the business captured the event. A reversal is a new record that references
the original identifier, so both the mistake and the correction remain visible.
attributes:
Transaction Identifier:
type: string
identifier: primary
description: >
Globally unique identifier for the transaction. Immutable once assigned. A reversal
carries its own identifier and names the original in its Reference.
Transaction Date Time:
type: datetime
description: >
When the transaction was initiated. This is the event time most reporting is grouped by.
Settlement Date Time:
type: datetime
description: >
When settlement actually completed. Often a different day from initiation, which is
why both are held — the gap between them is where reconciliation problems live.
Amount:
type: decimal
description: >
Value moved, in the denomination currency. Always positive: direction comes from the
payer and payee relationships, not from the sign. Signed amounts invite the bug where
a refund and a charge cancel out in a sum.
Transaction Type:
type: enum:Transaction Type
description: >
The mechanism the value moved by, such as card payment, direct debit or refund.
Transaction Channel:
type: enum:Transaction Channel
description: >
Where the transaction came from — web, mobile app, point of sale, contact centre.
Together with type this is the main dimension pair for behavioural analysis.
Transaction Status:
type: enum:Transaction Status
description: >
Current lifecycle state. Failed and cancelled transactions are retained: what did not
happen is often as informative as what did.
Reference:
type: string
description: >
Free-text reference supplied by the initiating party — an invoice number, a description,
or for a reversal, the identifier of the transaction being reversed.
```
```yaml
constraints:
Settlement After Initiation:
check: "Settlement Date Time IS NULL OR Settlement Date Time >= Transaction Date Time"
description: >
Settlement cannot precede initiation. Null settlement means the transaction has not
settled yet.
Settled Transaction Has Settlement Time:
check: >
Transaction Status != 'Settled'
OR Settlement Date Time IS NOT NULL
description: >
A transaction marked Settled must record when it settled.
Amount Must Be Positive:
check: "Amount > 0"
description: >
Amounts are always positive. Direction is carried by the payer and payee relationships.
```
```yaml
governance:
pii: false
classification: Confidential
retention: 7 years
retention_basis: Domain default
description: >
Transactions are not personal data on their own but reveal a great deal about a person
once joined to a party, so they are treated as confidential. Records are append-only and
are never modified or deleted; corrections are new records.
access_role:
- CUSTOMER_SERVICE
- DATA_ANALYST
- FINANCE
```
## Relationships
### Transaction Has Payer
A Transaction has one Payer: the party the value came from.
```yaml
source: Transaction
type: has
target: Payer
cardinality: one-to-many
granularity: atomic
ownership: Transaction
```
### Transaction Has Payee
A Transaction has one Payee: the party the value went to.
```yaml
source: Transaction
type: has
target: Payee
cardinality: one-to-many
granularity: atomic
ownership: Transaction
```
### Transaction Initiated By Payment Initiator
A Transaction may be initiated by a Payment Initiator acting on behalf of the payer.
```yaml
source: Transaction
type: references
target: Payment Initiator
cardinality: many-to-one
granularity: atomic
ownership: Transaction
```
### Transaction Denominated In Currency
A Transaction is denominated in exactly one Currency.
```yaml
source: Transaction
type: references
target: Currency
cardinality: many-to-one
granularity: atomic
ownership: Transaction
```
### Transaction Has Debit Account
The internal account value is taken from. Null when the paying side is external to the business.
```yaml
source: Transaction
type: references
target: Account
cardinality: many-to-one
granularity: atomic
ownership: Transaction
```
### Transaction Has Credit Account
The internal account value is paid into. Null when the receiving side is external to the business.
```yaml
source: Transaction
type: references
target: Account
cardinality: many-to-one
granularity: atomic
ownership: Transaction
```
+391
View File
@@ -0,0 +1,391 @@
# [Digital Core](domain.md)
## Enums
### Party Status
Where a party sits in its lifecycle with the business.
```yaml
values:
Prospect:
description: Known to the business but no relationship has started yet
Active:
description: Party is active and may hold roles, accounts and agreements
Suspended:
description: Party is temporarily blocked from new activity pending resolution of an issue
Inactive:
description: Relationship is dormant with no recent activity
Closed:
description: Relationship has ended and no new activity is permitted
```
---
### Party Role Status
Lifecycle status of a specific role a party holds.
```yaml
values:
Pending:
description: Role created but not yet activated
Active:
description: Role is active and confers its business permissions
Suspended:
description: Role is temporarily paused
Closed:
description: Role has ended and is no longer effective
```
---
### Address Type
Structural type of an address record.
```yaml
values:
Street Address:
description: Standard physical street address
PO Box:
description: Postal box address
Registered Office:
description: Registered office address for an organisation
Overseas Address:
description: Address located outside the primary operating country
```
---
### Address Purpose
What a party uses an address for.
```yaml
values:
Home:
description: Where an individual lives
Mailing:
description: Address used for correspondence
Business:
description: Primary business operating address
Registered Office:
description: Registered legal address for an organisation
Billing:
description: Address used for billing and statement delivery
Delivery:
description: Address goods are shipped to
```
---
### Address Verification Status
Whether an address has been confirmed as real and current.
```yaml
values:
Unverified:
description: Address has not been checked
Verified:
description: Address confirmed against acceptable evidence
Failed:
description: Verification was attempted and did not succeed
Expired:
description: Verification is old enough that it is no longer relied on
```
---
### Verification Method
How an address was confirmed.
```yaml
values:
Documentary:
description: Confirmed from a document supplied by the party
Electronic:
description: Confirmed against a third-party data source
In Person:
description: Confirmed face-to-face at a service location
Self Declared:
description: Supplied by the party with no independent check
```
---
### Contact Preference
The channel a customer prefers to be contacted on.
```yaml
values:
Email:
description: Customer prefers communications delivered by email
SMS:
description: Customer prefers text message notifications
Post:
description: Customer prefers physical mail correspondence
Phone:
description: Customer prefers to be contacted by telephone call
In App:
description: Customer prefers push notifications and in-app messages
No Contact:
description: Customer has opted out of all non-essential outbound communications
```
---
### Company Legal Structure
The legal form under which an organisation is constituted. Determines who can sign, who is liable, and what the business needs on file.
```yaml
values:
Private Company:
description: Privately held limited liability company not listed on a public exchange
Public Company:
description: Company whose shares are listed and traded on a public exchange
Partnership:
description: Two or more persons carrying on a business in common
Sole Trader:
description: Unincorporated individual carrying on business in their own name
Trust:
description: Arrangement where a trustee holds assets for the benefit of beneficiaries
Cooperative:
description: Member-owned and democratically controlled organisation
Government Entity:
description: Entity owned or controlled by national, state or local government
Non-Profit:
description: Organisation operating for a purpose other than profit
```
---
### Association Type
The nature of a relationship between two parties. Used to map ownership, control and household structures.
```yaml
values:
Parent Organisation:
description: Organisation that owns or controls the related organisation
Subsidiary:
description: Organisation owned or controlled by the related organisation
Owner:
description: Individual or organisation holding an ownership interest
Director:
description: Individual appointed to the board or equivalent governing body
Authorised Signatory:
description: Individual authorised to act on behalf of an organisation
Employer:
description: Organisation that employs the related party
Employee:
description: Individual employed by the related organisation
Partner:
description: Spouse or domestic partner
Family Member:
description: Related by family
Household Member:
description: Shares a household with the related party
```
---
### Account Holder Type
How a customer holds an account.
```yaml
values:
Primary Holder:
description: The principal account owner responsible for the relationship
Joint Holder:
description: Co-owner with equal rights to the primary holder
Authorised User:
description: Permitted to use the account but without ownership rights
Guardian:
description: Acting on behalf of a minor or someone unable to act for themselves
```
---
### Account Status
Operational lifecycle state of an account.
```yaml
values:
Pending:
description: Account created but not yet activated
Active:
description: Account is open and available for use
Dormant:
description: No customer activity for an extended period
Suspended:
description: Temporarily blocked pending resolution of a dispute or overdue balance
Closed:
description: Permanently closed; no further activity is permitted
```
---
### Account Type
Classification of an account by what it is for.
```yaml
values:
Billing:
description: Account charges accrue to and invoices are raised against
Subscription:
description: Account tracking a recurring service and its billing cycle
Prepaid:
description: Account funded in advance and drawn down by usage
Wallet:
description: Stored-value account holding a spendable balance
Credit:
description: Account representing an extended line of credit
Savings:
description: Account holding funds for accumulation
Settlement:
description: Account used to settle amounts owed to a merchant or partner
Loyalty:
description: Account holding points, credits or rewards rather than money
```
---
### Agreement Status
Lifecycle state of an agreement.
```yaml
values:
Draft:
description: Created but not yet accepted by all parties
Active:
description: Fully executed and currently in force
Suspended:
description: Temporarily paused pending resolution of a dispute
Expired:
description: Reached its scheduled end date with obligations fulfilled
Terminated:
description: Ended early by agreement or under agreed termination rights
Cancelled:
description: Cancelled before it took effect
```
---
### Transaction Type
The mechanism by which value moved.
```yaml
values:
Card Payment:
description: Payment made with a debit or credit card
Bank Transfer:
description: Credit transfer between bank accounts
Direct Debit:
description: Pull payment authorised by the account holder and initiated by the biller
Direct Credit:
description: Push payment credited directly to a beneficiary account
Wallet Transfer:
description: Movement of stored value between wallet accounts
Internal Transfer:
description: Movement between two accounts held by the same business
Refund:
description: Return of value to a payer for a previous transaction
Chargeback:
description: Reversal forced by the payer's provider following a dispute
Adjustment:
description: Correction raised by the business to fix a prior error
Fee:
description: Charge raised by the business for a service
```
---
### Transaction Status
Lifecycle state of a transaction, from request to settlement.
```yaml
values:
Pending:
description: Submitted and awaiting authorisation
Authorised:
description: Authorised but not yet settled
Settled:
description: Final settlement has occurred and value has moved
Failed:
description: Could not be processed and no value moved
Reversed:
description: A previously settled transaction has been reversed
Cancelled:
description: Cancelled before settlement at the request of an authorised party
Under Review:
description: Held pending a fraud or dispute review; settlement is suspended
```
---
### Transaction Channel
Where the transaction came from.
```yaml
values:
Web:
description: Initiated through the business's website
Mobile App:
description: Initiated through the business's mobile application
Point Of Sale:
description: Initiated at a physical point-of-sale terminal
Service Location:
description: Handled by a service agent at a physical location
Contact Centre:
description: Initiated by phone or chat through the contact centre
Partner API:
description: Submitted by an authorised third party through an API
Batch:
description: Submitted as part of a scheduled bulk file
Internal System:
description: Generated automatically by an internal process, such as a recurring fee
```
---
### Currency Code
ISO 4217 alphabetic currency codes used across account balances and transaction amounts. This is a representative subset — the full ISO 4217 code list is the normative reference.
Standard: [ISO 4217 — Currency codes](https://www.iso.org/iso-4217-currency-codes.html)
```yaml
values:
AUD:
description: Australian Dollar
NZD:
description: New Zealand Dollar
USD:
description: United States Dollar
EUR:
description: Euro
GBP:
description: Pound Sterling
JPY:
description: Japanese Yen
SGD:
description: Singapore Dollar
HKD:
description: Hong Kong Dollar
CHF:
description: Swiss Franc
CAD:
description: Canadian Dollar
```
+9
View File
@@ -0,0 +1,9 @@
[project]
name = "semprini-domain-digital-datamodel"
version = "1.0.0"
description = "Digital Core domain data model (MD-DDL)"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"md-ddl>=0.9.2",
]
Generated
+72
View File
@@ -0,0 +1,72 @@
version = 1
revision = 3
requires-python = ">=3.12"
[[package]]
name = "md-ddl"
version = "0.9.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pyyaml" },
]
sdist = { url = "https://files.pythonhosted.org/packages/86/2f/5d54bd18f70deac6030810983cbf081abd5b4347488f5a2d7efb88127dd0/md_ddl-0.9.2.tar.gz", hash = "sha256:9ce16a278760248d42661636d5f305e078600f226591cdd7b5c4bcd0a3c86a73", size = 721061, upload-time = "2026-08-31T22:43:06.494Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/02/3a/b3fbad0f1828522e398c84236405ae3d0ede5ce877c7568bb6142cda7992/md_ddl-0.9.2-py3-none-any.whl", hash = "sha256:0d88d5b45076258fb9c69c68b095771bb6ae6543dda96ed613ab03f6f7b1bd9d", size = 932996, upload-time = "2026-08-31T22:43:04.667Z" },
]
[[package]]
name = "pyyaml"
version = "6.0.3"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" },
{ url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" },
{ url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" },
{ url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" },
{ url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" },
{ url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" },
{ url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" },
{ url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" },
{ url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" },
{ url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" },
{ url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" },
{ url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" },
{ url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" },
{ url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" },
{ url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" },
{ url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" },
{ url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" },
{ url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },
{ url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },
{ url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },
{ url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" },
{ url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" },
{ url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" },
{ url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" },
{ url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" },
{ url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" },
{ url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" },
{ url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" },
{ url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" },
{ url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" },
{ url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" },
{ url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" },
{ url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" },
{ url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" },
{ url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" },
{ url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" },
{ url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" },
{ url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },
]
[[package]]
name = "semprini-domain-digital-datamodel"
version = "1.0.0"
source = { virtual = "." }
dependencies = [
{ name = "md-ddl" },
]
[package.metadata]
requires-dist = [{ name = "md-ddl", specifier = ">=0.9.2" }]