Skip to Content
Anuma SDKDatabase Schema

Database Schema

Current version: v27

Tables

history

ColumnTypeIndexedOptional
message_idnumber
conversation_idstring
rolestring
contentstring
modelstring
image_modelstring
filesstring
file_idsstring
created_atnumber
updated_atnumber
vectorstring
embedding_modelstring
chunksstring
usagestring
sourcesstring
response_durationnumber
was_stoppedboolean
errorstring
thought_processstring
thinkingstring
parent_message_idstring
feedbackstring
tool_call_eventsstring

conversations

ColumnTypeIndexedOptional
conversation_idstring
titlestring
project_idstring
created_atnumber
updated_atnumber
is_deletedboolean

projects

ColumnTypeIndexedOptional
project_idstring
namestring
created_atnumber
updated_atnumber
is_deletedboolean

modelPreferences

ColumnTypeIndexedOptional
wallet_addressstring
modelsstring

userPreferences

ColumnTypeIndexedOptional
wallet_addressstring
nicknamestring
occupationstring
descriptionstring
modelsstring
personalitystring
created_atnumber
updated_atnumber

memory_vault

ColumnTypeIndexedOptional
contentstring
scopestring
folder_idstring
created_atnumber
updated_atnumber
is_deletedboolean
user_idstring
embeddingstring

vault_folders

ColumnTypeIndexedOptional
namestring
scopestring
created_atnumber
updated_atnumber
is_deletedboolean
is_systemboolean
contextstring

conversation_summaries

ColumnTypeIndexedOptional
conversation_idstring
summarystring
summarized_up_tostring
token_countnumber
created_atnumber
updated_atnumber

media

ColumnTypeIndexedOptional
media_idstring
wallet_addressstring
message_idstring
conversation_idstring
namestring
mime_typestring
media_typestring
sizenumber
rolestring
modelstring
source_urlstring
dimensionsstring
durationnumber
metadatastring
created_atnumber
updated_atnumber
is_deletedboolean

app_files

ColumnTypeIndexedOptional
conversation_idstring
pathstring
contentstring
created_atnumber
updated_atnumber

saved_tools

ColumnTypeIndexedOptional
namestring
display_namestring
descriptionstring
parametersstring
htmlstring
conversation_idstring
created_atnumber
updated_atnumber
is_deletedboolean

Migration History

VersionChanges
v27Added tool_call_events to history
v26Added app_files table
v25Added saved_tools table
v24Added context to vault_folders
v23Added conversation_summaries table
v22Added is_system to vault_folders
v21Added embedding to memory_vault
v20CREATE INDEX IF NOT EXISTS memory_vault_updated_at ON memory_vault (updated_at);
v19Added user_id to memory_vault
v18Added vault_folders table; Added folder_id to memory_vault
v17Added image_model to history
v16Added scope to memory_vault; UPDATE memory_vault SET scope = 'private' WHERE scope IS NULL OR scope = '';
v15DROP TABLE IF EXISTS memories;; Added memory_vault table
v14Added feedback to history
v13Added parent_message_id to history
v12Added chunks to history
v11Added media table; Added file_ids to history
v10Added projects table; Added project_id to conversations
v9Added thinking to history
v8DELETE FROM history;; DELETE FROM conversations;; DELETE FROM memories;
v7Added userPreferences table
v6Added thought_process to history
v5Added error to history
v4Added modelPreferences table
v3Added was_stopped to history
v2Baseline — history, conversations, and memories tables
Last updated on