The following protocols are available globally.
A protocol for a single JSON document the can be stored or retrieved from a CouchDB database. The
_idfield is the unique identifier for the document. If it is not set, a random UUID will be assigned for the document. The
_revfield is the revision of the document. It is returned when you make requests and is used to prevent conflicts from multiple users updating the same document.
CouchDB reference:See more
public protocol Document: Codable