local_sync_notices Client SQLite table
Payload-free, device-local notices for automatic sync actions that leave no queued write behind (such as reverting a folder move that exceeded a hard structural bound). Listed in DEVICE_LOCAL_TABLE_NAMES so backups never export or restore rows from another install.
Declared in packages/client-sdk/src/data/sqlite/schema/localSyncNoticeSchema.ts
Columns
idtext- primary key
- not null
Notice id: a random UUID unless the writer supplies one.
kindtext- not null
What the automatic action was.
container_move_revertedis the only kind, and a row of any other kind is skipped when notices are listed.organization_idtext- nullable
Organization of the affected object, or null when it has none. A listing shows the current organization's notices and those with none, plus, when given the accessible organizations, those whose organization is not among them.
object_idtext- not null
Id of the affected object, such as the folder whose move reverted.
refusal_codetext- not null
Sync refusal code (
SyncRefusalCode) that explains the action. An unknown code reads asserver_rejected.messagetext- not null
User-facing explanation, such as why a folder move was reverted.
created_attext- not null
When the notice was recorded, as ISO-8601 text. Only the newest 200 notices are kept.
Indexes
local_sync_notices_created_at_idx(created_at)
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "local_sync_notices" (
"id" TEXT NOT NULL PRIMARY KEY,
"kind" TEXT NOT NULL,
"organization_id" TEXT,
"object_id" TEXT NOT NULL,
"refusal_code" TEXT NOT NULL,
"message" TEXT NOT NULL,
"created_at" TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS "local_sync_notices_created_at_idx" ON "local_sync_notices" ("created_at");