Skip to content

Schema: memory

Part of the generated database reference.

user_memories

  • Domain: memory Β· Feature gate: #[cfg(feature = "memory")] Β· Migration: 6.5.88-user-memories
  • Rust source: botschema/src/memory.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
org_id UUID yes β€” β€” β€”
branch_id UUID yes β€” β€” β€”
owner_user_id UUID no β€” β€” β€”
scope VARCHAR(16) no 'private' β€” β€”
kind VARCHAR(32) no 'fact' β€” β€”
content TEXT no β€” β€” β€”
source VARCHAR(120) no 'conversation' β€” β€”
confidence REAL no 0.8 β€” β€”
pinned BOOLEAN no FALSE β€” β€”
superseded_by UUID yes β€” β€” β€”
embedding_ref TEXT yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”

Drift: in migrations only: key, memory_type, user_id, value