docs: Add schema design documentation#66
Conversation
Code ReviewSummaryThis PR adds comprehensive database schema documentation in Issues FoundCriticalNone ImportantNone Suggestions
-- ingestion_state (from storage.py:571-577)
CREATE TABLE ingestion_state (
file_path TEXT PRIMARY KEY,
file_size INTEGER,
last_modified TIMESTAMP,
entries_processed INTEGER,
last_processed TIMESTAMP
)
-- patterns (from storage.py:582-591)
CREATE TABLE patterns (
id INTEGER PRIMARY KEY,
pattern_type TEXT NOT NULL,
pattern_key TEXT NOT NULL,
count INTEGER DEFAULT 0,
last_seen TIMESTAMP,
metadata_json TEXT,
computed_at TIMESTAMP,
UNIQUE(pattern_type, pattern_key)
)
VerdictREQUEST_CHANGES - The schema documentation is accurate and well-organized, but two tables mentioned in the overview ( Automated review by Claude Code |
c0fe146 to
8ff1270
Compare
Code ReviewSummaryThis PR adds comprehensive database schema documentation in Issues FoundCriticalNone ImportantNone Suggestions
VerdictREQUEST_CHANGES - The schema documentation is well-organized and thorough. The two suggestions above are minor accuracy improvements to ensure the documented schemas match the actual implementation. Automated review by Claude Code |
- Create docs/SCHEMA.md with table definitions, indexes, and migration history - Link from CLAUDE.md and README.md - Documents design principles: don't over-distill, aggregate→drill-down - Includes all indexes across all tables 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8ff1270 to
2420e7c
Compare
Code ReviewSummaryThis PR adds comprehensive database schema documentation in Issues FoundCriticalNone ImportantNone Suggestions
VerdictREQUEST_CHANGES - The schema documentation is well-organized and thorough. The two suggestions are minor accuracy improvements to ensure the documented schemas fully match the implementation. Automated review by Claude Code |
Summary
docs/SCHEMA.mdwith comprehensive database schema documentationContents
The schema docs cover:
Re-created after PR #65 was auto-closed when its base branch was deleted.
🤖 Generated with Claude Code