feat(db): implement SQLite database layer with Drizzle ORM
Add database schema and infrastructure for storing tasks, brain dumps, and subtasks. Uses bun:sqlite for optimal Bun runtime integration and Drizzle ORM for type-safe queries.
Key additions:
- src/db/schema.ts: Items table with hierarchical task support
- src/db/index.ts: Database initialization with auto-migration
- src/db/migrations/: Initial migration and metadata
- src/db/schema.test.ts: Comprehensive database tests
- drizzle.config.ts: Drizzle Kit configuration
- .gitignore: Exclude database files, keep .gitkeep
The items table supports:
- Multiple item types (brain_dump, task, subtask)
- Status tracking (open, in_progress, done, archived)
- Priority levels (0-4, aligned with beads)
- Hierarchical relationships via parentId
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This is a binary file and will not be displayed.