document_manifest_observations API Postgres table
Durable proof that an authorized user was served a document manifest while the document was live. With purge-path access, any observation of the document permits full purge-proof history; an explicit earlier checkpoint additionally requires this caller's observation of that exact hash. Path access alone only permits a terminal snapshot. These rows survive signed document purge.
Declared in packages/api-shared/src/schema/accessManifests.ts
Columns
iduuid- primary key
- not null
- default gen_random_uuid()
Surrogate database primary key.
user_iduuid- not null
User who was served the manifest, or whose write produced it.
document_iduuid- not null
Document the manifest describes.
manifest_hashtext- not null
Document link-set manifest the user observed. Joins to
accessManifests.manifestHash.
Indexes
document_manifest_observations_user_document_hash_idx(user_id, document_id, manifest_hash)- unique
document_manifest_observations_document_idx(document_id)