# [Digital Core](../domain.md) ## Entities ### Agreement An Agreement is the contract behind a relationship: the terms binding one or more Party Roles to a Product. It is the answer to "what did we actually promise?". Keeping it as a first-class entity rather than a few columns on Account means the terms can outlive any individual account and be pointed at from several places. ```mermaid --- config: layout: elk --- classDiagram class Agreement{ * Agreement Identifier : string Agreement Number : string Agreement Status : enum~AgreementStatus~ Effective Date : date Maturity Date : date } PurchaseAgreement --|> Agreement SubscriptionAgreement --|> Agreement Agreement "1" --> "0..*" PartyRole : governs class AgreementStatus["Agreement Status"]{<>} class PurchaseAgreement["Purchase Agreement"] class SubscriptionAgreement["Subscription Agreement"] class PartyRole["Party Role"] ``` ```yaml existence: independent mutability: slowly_changing attributes: Agreement Identifier: type: string identifier: primary description: Unique identifier of the agreement record. Agreement Number: type: string description: Human-facing agreement reference quoted to customers. Agreement Status: type: enum:Agreement Status description: > Current lifecycle state. Active agreements govern current obligations; expired and terminated ones are kept because disputes are usually about agreements that have ended. Effective Date: type: date description: Date the agreement became enforceable. Maturity Date: type: date description: Date the agreement is scheduled to end, if it has a fixed end. ``` ```yaml governance: retention_basis: Inherited from the domain default of 7 years post relationship end ``` ## Relationships ### Agreement Involves Party Roles An Agreement governs one or more Party Roles participating in the contract. ```yaml source: Agreement type: governs target: Party Role cardinality: one-to-many granularity: atomic ownership: Agreement ```