name, description, immutable
name
description
immutable
Schema
Full database schema, tables, columns, query patterns.
true
Database Schema
Tables
nodes
Column
Type
Notes
id
INTEGER
Primary key, auto-increment
title
TEXT
Required
description
TEXT
AI-generated grounding context (~1 sentence)
content
TEXT
User's notes/thoughts (not source content)
chunk
TEXT
Full verbatim source content
chunk_status
TEXT
'pending', 'chunked', 'failed'
link
TEXT
External URL (only for nodes representing external content)
type
TEXT
Nullable (reserved for future use)
metadata
TEXT
JSON blob (map_position, transcript_length, etc.)
is_pinned
INTEGER
Legacy — use hub node queries instead
created_at
TEXT
ISO timestamp
updated_at
TEXT
ISO timestamp
edges
Column
Type
Notes
id
INTEGER
Primary key
from_node_id
INTEGER
FK → nodes.id
to_node_id
INTEGER
FK → nodes.id
context
TEXT
JSON: { explanation, category, type, confidence, created_via }
source
TEXT
'user', 'ai_similarity', or helper name
explanation
TEXT
Human-readable reason for connection
created_at
TEXT
ISO timestamp
dimensions
Column
Type
Notes
id
INTEGER
Primary key
name
TEXT
Unique, case-insensitive
description
TEXT
Purpose description
is_locked
INTEGER
1 = priority dimension (auto-assigns to new nodes)
node_dimensions (junction)
Column
Type
node_id
INTEGER FK → nodes.id
dimension_id
INTEGER FK → dimensions.id
chunks (for semantic search)
Column
Type
Notes
id
INTEGER
Primary key
node_id
INTEGER
FK → nodes.id
chunk_index
INTEGER
Position in sequence
text
TEXT
Chunk content
embedding
BLOB
Vector (via sqlite-vec)
FTS Tables
chunks_fts — full-text search on chunk text
nodes_fts — full-text search on node title + content
Common Query Patterns
Top connected nodes (hubs):
Nodes in a dimension:
Edges for a node (both directions):
Use sqliteQuery for any read operation not covered by structured tools.