"Digital Core" is to be the name of a canonical data product the domain will run, so the domain itself is Digital: its title, description and owner address in domain.md, the back-link heading of every entity, enum and product file, and the README, CLAUDE.md, Copilot instructions and package description. A breaking change by MD-DDL's test: a product generated from 1.0.0, such as Canonical Party, names its domain, and would come out different now. So version 2.0.0. v1.0.0 is tagged on the commit Canonical Party was generated from, which was never tagged. Lint: no findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.3 KiB
2.3 KiB
Digital
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.
---
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>"]
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.
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.
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.