halkyon/apps/meditate/halkyon_meditate_server/lib/src/journal/dream.spy.yaml

20 lines
825 B
YAML
Raw Normal View History

### A dream the person wrote down (ADR 0038, D14): the night it belongs to,
### its title and text, its marks (lucid, nightmare, recurring), its clarity,
### the mood on waking, its labels and when it was written, all in its sealed
### payload; the instance sees that it exists, its size and when it changed.
### Changed and deleted by the person alone. Synced.
class: Dream
table: dream
database: sync
fields:
### The key it is sealed with (ADR 0002's envelope); never null in Meditate,
### where everything is sealed.
keyId: String?
### The content, sealed: UTF-8 JSON with a `schemaVersion` once opened.
payload: ByteData
### The sealing's nonce (ADR 0002's envelope).
nonce: ByteData?
indexes:
# Deleting a space finds its rows through this index (see content_key).
dream_space_idx:
fields: spaceId