desci-labs / desci-codex

Reference implementation of the CODEX protocol, using Ceramic and ComposeDB
8 stars 0 forks source link

Metadata and commitID versioning #15

Closed m0ar closed 1 year ago

m0ar commented 1 year ago

This PR adds a metadata field to the ResearchObject, and metadata payloads to Annotation. This can be used to hold JSON and JSON patches, respectively.

Further, it adds an xVersion wherever there is a field holding a StreamID ref, indicating which version the reference was made to. To support querying for this, each model now also has a @documentVersion field named version.