Files
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

41 lines
1.9 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:digital-core:canonical-party:customer",
"title": "Customer",
"description": "A Customer is a Party Role representing an active or prospective commercial relationship: someone who buys, subscribes, or holds an account with the business. 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 customer_id).",
"type": "object",
"additionalProperties": false,
"required": ["customer_id", "customer_number"],
"properties": {
"customer_id": {
"type": "string",
"format": "uuid",
"description": "The Role Identifier of the party role this customer extends (extends Party Role)."
},
"customer_number": {
"type": "string",
"description": "The customer identifier quoted in correspondence and used by service and support staff. Unlike the Party Identifier, this one is meant to be readable aloud over the phone. Unique."
},
"onboarding_date": {
"type": ["string", "null"],
"format": "date",
"description": "Date the customer onboarding process was completed."
},
"relationship_start_date": {
"type": ["string", "null"],
"format": "date",
"description": "Date the customer relationship became effective. May precede the onboarding date where a relationship was migrated in from another system or acquired with another business."
},
"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."
}
}
}