Files
semprini-domain-cdp-digital…/canonical-party/events/schemas/party.schema.json
T
paulandClaude Opus 5 cfb32d2d1b Add Canonical Party as generated in semprini-blog-dataproducts
The canonical data product for the Digital Core domain, copied unchanged from
the blog repository's products/canonical-party (generated by /agent-product
from data_model/data_products/canonical.md, 65 of 65 checks on the blog's
stack on 2026-09-09). The next commit adapts it to the domain platform.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 23:21:27 +12:00

45 lines
2.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:digital-core:canonical-party:party",
"title": "Party",
"description": "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. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by party_id).",
"type": "object",
"additionalProperties": false,
"required": ["party_id", "party_type", "legal_name"],
"properties": {
"party_id": {
"type": "string",
"format": "uuid",
"description": "Globally unique identifier for this party across all systems. Immutable once assigned."
},
"party_type": {
"type": "string",
"enum": ["Person", "Company"],
"description": "Discriminator naming the subtype (Person or Company) that extends this party."
},
"legal_name": {
"type": "string",
"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", "null"],
"description": "Alternative names: trading names, former names, maiden names, or the name a person actually goes by. Several names are separated by semicolons."
},
"party_status": {
"type": ["string", "null"],
"enum": ["Prospect", "Active", "Suspended", "Inactive", "Closed", null],
"description": "Where the party sits in its lifecycle with the business. Controls whether new relationships may be established."
},
"created_at": {
"type": ["string", "null"],
"format": "date-time",
"description": "Set by the ODS. Optional on the inbound topic."
},
"updated_at": {
"type": ["string", "null"],
"format": "date-time",
"description": "Set by the ODS on every change. Optional on the inbound topic."
}
}
}