# Phase 6 Knowledge Base Structure

## Core Tables
- `knowledge_articles`: stores documentation entries (auto docs, module notes, API notes, bug KB, deployment notes, developer notes).
- `knowledge_tags`: reusable tags for categorization.
- `knowledge_article_tag`: pivot for many-to-many article tagging.
- `architecture_logs`: architectural decisions and impact records.

## Entity Relationships
- KnowledgeArticle belongs to Project, Module, Bug, and Author(User) optionally.
- KnowledgeArticle belongsToMany KnowledgeTag.
- ArchitectureLog belongs to Author(User).

## Content Types
- `auto_doc`
- `module_note`
- `api_note`
- `bug_kb`
- `deployment_note`
- `developer_note`
