Files
semprini-domain-cdp-digital…/canonical-party/events/schemas/party_association.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

56 lines
2.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:digital-core:canonical-party:party_association",
"title": "Party Related To Party",
"description": "A Party may be related to other Parties through ownership, control, employment, household or family ties. A relationship instance is directional and named; the same pair of parties may hold several associations of different types at once. 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_association_id).",
"type": "object",
"additionalProperties": false,
"required": ["party_association_id", "source_party_id", "target_party_id"],
"properties": {
"party_association_id": {
"type": "string",
"format": "uuid",
"description": "Globally unique identifier for this party-to-party association."
},
"source_party_id": {
"type": "string",
"format": "uuid",
"description": "Identifier of the Party the association is stated from."
},
"target_party_id": {
"type": "string",
"format": "uuid",
"description": "Identifier of the Party the association points at."
},
"association_type": {
"type": ["string", "null"],
"enum": ["Parent Organisation", "Subsidiary", "Owner", "Director", "Authorised Signatory", "Employer", "Employee", "Partner", "Family Member", "Household Member", null],
"description": "The nature of the relationship between the two parties, read from source to target."
},
"association_start_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the association began."
},
"association_end_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the association ended. Null means still current."
},
"verified": {
"type": ["boolean", "null"],
"description": "Whether the association has been confirmed against acceptable evidence."
},
"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."
}
}
}