# 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["Party"]
Person["Person"]
Company["Company"]
PartyRole["Party Role"]
Customer["Customer"]
Merchant["Merchant"]
Payer["Payer"]
Payee["Payee"]
ServiceAgent["Service Agent"]
PaymentInitiator["Payment Initiator"]
Address["Address"]
ContactAddress["Contact Address"]
CustomerPreferences["Customer Preferences"]
Account["Account"]
Product["Product"]
Agreement["Agreement"]
SubscriptionAgreement["Subscription Agreement"]
PurchaseAgreement["Purchase Agreement"]
Transaction["Transaction"]
ServiceLocation["Service Location"]
Currency["Currency"]
ExchangeRate["Exchange Rate"]
```
## 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
---