document_recorded_attachment_slots Client SQLite table
The attachment slots a document store saw its document record, kept so a store opened after a restart or reload still detaches a binding whose slot it saw recorded and later reads removed. One row per slot; deleting or rebinding the local record drops its rows.
Declared in packages/client-sdk/src/data/sqlite/schema/documentAttachmentSightingSchema.ts
Columns
app_kindtext- not null
Document scope matching
documents.local_idtext- not null
Document scope matching
documents.slot_idtext- not null
The attachment slot a published snapshot recorded.
document_idtext- not null
The server document the slot was seen in. A store bound to another document drops the row instead of reading it. A slot seen before the record had a server id is written once it gets one.
seen_attext- not null
When this device first saw the slot recorded.
Keys and constraints
- Primary key
(app_kind, local_id, slot_id)
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "document_recorded_attachment_slots" (
"app_kind" TEXT NOT NULL,
"local_id" TEXT NOT NULL,
"slot_id" TEXT NOT NULL,
"document_id" TEXT NOT NULL,
"seen_at" TEXT NOT NULL,
PRIMARY KEY ("app_kind", "local_id", "slot_id")
);