Files
semprini-domain-digital-dat…/data_model/domain.md
T
paulandClaude Opus 5.5 f66230b1fb Rename the domain Digital Core to Digital (2.0.0)
"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>
2026-09-27 16:19:39 +13:00

13 KiB

Digital

Digital 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

# Accountability
owners:
  - digital@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: "2.0.0"
tags:
  - Core
  - Party
  - Customer
  - Commerce

Domain Overview Diagram

---
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 Any individual or organisation the business has a relationship with. The abstract root of the model — everything else hangs off who someone is.
Person Party A human being. Carries the attributes that only apply to people.
Company Party An organisation with legal standing — a company, partnership, trust, charity or public body.
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 Party Role A Party that holds accounts, buys products or otherwise has an active commercial relationship.
Merchant Party Role A Party that accepts payment for goods or services.
Payee Party Role A Party that receives value in a transaction.
Payer Party Role A Party that provides value in a transaction.
Service Agent Party Role A staff member who serves customers — at a counter, over the phone or in a chat window.
Payment Initiator Party Role A Party that instructs a transaction on someone else's behalf.
Account A running record of what a Customer holds and owes. Balances land here and transactions move them.
Contact Address The link between a Party and an Address, saying what the address is used for and when.
Address The location itself, held once and shared. Two parties at the same address point at the same record.
Customer Preferences How a Customer wants to be contacted, and what they have consented to.
Product Something the business sells or provides. Accounts are instances of it.
Agreement The terms binding a Party Role to a Product. The contract behind the relationship.
Purchase Agreement Agreement An agreement covering a one-off purchase of goods or services.
Subscription Agreement Agreement An agreement covering a recurring service billed on a cycle.
Transaction A movement of value between parties and accounts. The thing that actually happened.
Currency A monetary unit that amounts are expressed in.
Exchange Rate The rate between two currencies at a point in time.
Service Location A place where service is delivered — a store, a depot, a contact centre.

Enums

Name Description
Party Status Where a party sits in its lifecycle with the business.
Party Role Status Lifecycle status of a specific role a party holds.
Address Type Structural type of an address record.
Address Purpose What a party uses an address for.
Address Verification Status Whether an address has been confirmed as real and current.
Verification Method How an address was confirmed.
Contact Preference The channel a customer prefers to be contacted on.
Company Legal Structure Legal form under which an organisation is constituted.
Association Type Nature of a relationship between two parties.
Account Holder Type How a customer holds an account.
Account Status Operational lifecycle state of an account.
Account Type Classification of an account by what it is for.
Agreement Status Lifecycle state of an agreement.
Transaction Type The mechanism by which value moved.
Transaction Status Lifecycle state of a transaction, from request to settlement.
Transaction Channel Where the transaction came from.
Currency Code ISO 4217 currency codes for transaction and account values.

Relationships

Name Description
Party Assumes Roles A Party can hold many Party Roles at once, and over time.
Party Has Contact Addresses A Party can have several addresses for different purposes.
Party Related To Party Parties connect to each other through ownership, employment, household or family ties.
Party Role Uses Contact Addresses A role picks which of the party's addresses applies to it.
Party Role Governed By Agreement A role may be governed by a specific Agreement.
Party Role At Point In Time Period snapshot of a role's state, for reporting as at a date.
Customer Holds Account Customers hold accounts, and accounts can be held jointly.
Customer Has Preferences A Customer has one active preference profile.
Contact Address References Address Each Contact Address points at one canonical Address.
Account Holds Product An Account is an instance of a Product.
Account Denominated In Currency An Account is held in exactly one Currency.
Agreement Involves Party Roles An Agreement binds one or more Party Roles.
Product In Terms Of Agreement A Product is offered on the terms of an Agreement.
Transaction Has Payer The party the value came from.
Transaction Has Payee The party the value went to.
Transaction Initiated By Payment Initiator Who instructed the transaction, when that is not the payer.
Transaction Denominated In Currency A Transaction is in exactly one Currency.
Transaction Has Debit Account The internal account debited. Null when the paying side is external.
Transaction Has Credit Account The internal account credited. Null when the receiving side is external.
Merchant Receives Payment A Merchant is paid through transactions.
Merchant Has Settlement Account Where a Merchant's takings are settled.
Service Agent Processes Transaction An agent handled the transaction on a customer's behalf.
Service Agent Assigned To Service Location Where an agent normally works.
Service Location Serves Account The location that looks after an account.
Service Location Transaction Summary Grouped relationship from a location to the transactions handled there.
Exchange Rate References Base Currency The currency being converted from.
Exchange Rate References Quote Currency The currency being converted to.

Data Products

Name Class Consumers Status
Canonical Party domain-aligned Cross-domain Integration Active