Document

The Document interface serves as the base type for all entities in the Cadastry Chain system. It provides a consistent structure for storing and managing various types of data.

Key Properties

PropertyTypeDescription
CDIDstringUnique identifier for the document
heightnumberVersion number of the document
createdAtstringTimestamp of document creation
updatedAtstringTimestamp of the last update
createdBystringCDID of the actor who created the document
updatedBystringCDID of the actor who last updated the document
hashstringHash of the document content
classstringClass of the document (e.g., 'record.object.physical.artwork.painting')
recordRecordThe main content of the document if document is record
resourceResourceThe main content of the document if document is resource
evaluation[key: string]: EvaluationEvaluations of the document
identifier[key: string]: IdentifierAdditional identifiers
references[CDID: string]: DocumentReferenced documents from within record
power[key: string]: anyPower to change the document
permissionPermissionsAccess and modification permissions
signaturesSignature[]Signatures on the document

The Document interface provides a flexible foundation for representing various entities while maintaining a consistent structure across the system. It allows for versioning, permissions management, and cryptographic verification of content integrity and authorship.