document_update_spans API Postgres table
The Loro peer counters each stored update covers: one row per update and peer, decoded from its signed version vectors. Peer-ownership checks and edit attribution read these without decrypting anything.
Declared in packages/loro/src/server/schema.ts
Columns
document_iduuid- not null
The document the update belongs to.
update_iduuid- not null
The update (
document_updates.id).peer_idtext- not null
The Loro peer id.
start_counterinteger- not null
The half-open counter range the update covers for that peer.
end_counterinteger- not null
The half-open counter range the update covers for that peer.
Indexes
document_update_spans_peer_counter_idx(document_id, peer_id, end_counter)document_update_spans_update_peer_idx(update_id, peer_id)- unique