# DEB-344: Core: Knowledge Base Setup and CRUD operations on Knowledge Base for Org Snapshot & Knowledge Graph

> **Jira:** [DEB-344](https://divami.atlassian.net/browse/DEB-344)  
> **Source Report:** [20260315.md](../../reports/jira/20260315.md)

- **Status:** Start
- **Assignee:** Phawhan Saii Gajjalakonda
- **Priority:** Medium
- **Created:** 2026-03-13T15:45:15.266+0530
- **Updated:** 2026-03-13T16:36:37.881+0530

**Description:**

DB Setup and Tables creation for Org Snapshot

Knowledge Base and Data Source Agents Data will be in the same database, with a schema separable grouped tables.

**Architecture Diagram:**

```mermaid
flowchart TD
    subgraph KnowledgeBase[Core Agent Knowledge Base DB]
        subgraph OrgSnapshot[Org Snapshot Schema]
            A[org_snapshot table<br/>current state per datasource]
            B[knowledge_graph table<br/>entities & relationships]
            C[snapshot_versions<br/>historical snapshots]
        end
        subgraph OrgInfo[Org Info Schema]
            D[org_info table]
            E[world_model table]
            F[skills table]
        end
        subgraph UserInfo[User Info Schema]
            G[user_preferences]
            H[user_roles]
        end
    end
    RT[RT Decision Agent] -->|Read / Write| OrgSnapshot
    DSA[Data Source Agents] -->|Write on Refresh| OrgSnapshot
    RT -->|Read| OrgInfo
    RT -->|Read| UserInfo
```
