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.
This PR adds a metadata field to the
ResearchObject
, and metadata payloads toAnnotation
. This can be used to hold JSON and JSON patches, respectively.Further, it adds an
xVersion
wherever there is a field holding aStreamID
ref, indicating which version the reference was made to. To support querying for this, each model now also has a@documentVersion
field namedversion
.