--- # claudbg-umrv title: 'Normalized DB schema: sessions, messages, tool_uses tables' status: todo type: task created_at: 2026-03-27T19:39:32Z updated_at: 2026-03-27T19:39:32Z parent: claudbg-6wkk --- Create tables: sessions (session_id, project_path, file_path, first_message_at, last_message_at, model, message_count, file_mtime, file_size), messages (id, session_id, uuid, timestamp, type, role, content_json), tool_uses (id, session_id, message_uuid, tool_name, input_json, result_json). Include indexes on session_id and timestamp.