01KSMB19JZZRDD683GZRRAS94BOne entity of kind participant. HEAD column = current value per catalog attribute (factWithStamp); log = every assertion ever made on this entity, newest first.
HEAD attrs come from Snapshot.factWithStamp(entity, attr) — for each attribute:
SELECT value, asserted_at, asserted_by
FROM current_facts
WHERE entity = 'participant:01KSMB19JZZRDD683GZRRAS94B' AND attribute = '<attr>'
The log comes from Snapshot.EntityHistory(entity) — one query, no view, ordered:
SELECT attribute, value, asserted_at, asserted_by
FROM facts
WHERE entity = 'participant:01KSMB19JZZRDD683GZRRAS94B'
ORDER BY asserted_at ASC, id ASC
| attribute | type | value | last asserted | by |
|---|---|---|---|---|
auth
content
|
text |
— | — | — |
endpoint
content
|
text |
— | — | — |
first_name
content
|
text |
— | — | — |
is_operator
|
int |
— | — | — |
kind
|
text |
— | system | |
last_name
content
|
text |
— | — | — |
lifecycle
|
text |
— | — | — |
p256dh
content
|
text |
— | — | — |
pid
|
text |
1b0f52082715102f69ac235ff15f6dd1 | system | |
profile_pixels
content
|
blob |
— | — | — |
status_message
content
|
text |
— | — | — |
tombstoned
|
bool |
— | — | — |
verified_lat
|
real |
— | — | — |
verified_lng
|
real |
— | — | — |
Every assertion is here forever — the chronicle is append-only. Excised rows are tombstone markers: the value column was set to NULL, but that the fact was asserted at this moment + by this actor stays in the log.
| t | attribute | value | by |
|---|---|---|---|
pid |
1b0f52082715102f69ac235ff15f6dd1 | system | |
kind |
participant | system |