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