# naveen112004/employee_attrition_project architecture

> Architecture diagram of the GitHub repository naveen112004/employee_attrition_project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/naveen112004/employee_attrition_project
- Repository: https://github.com/naveen112004/employee_attrition_project

## Overview

This is a small SQL-based employee-attrition analysis project, not an application with its own runtime service. The documented workflow is to create tables, load the synthetic data, run analysis queries, and review the sample findings. The README documents these steps but no SQL excerpts were provided, so the graph shows only those documented relationships; it does not infer query internals or a direct link from query results to the report.

Main entry points: [`schema.sql`](https://github.com/naveen112004/employee_attrition_project/blob/main/schema.sql) (Table schema), [`queries.sql`](https://github.com/naveen112004/employee_attrition_project/blob/main/queries.sql) (Analysis queries), [`seed_data.csv`](https://github.com/naveen112004/employee_attrition_project/blob/main/seed_data.csv) (Sample dataset), [`seed_inserts.sql`](https://github.com/naveen112004/employee_attrition_project/blob/main/seed_inserts.sql) (Seed inserts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data setup"]
  node_schema["Table schema<br/>[schema.sql]"]
  node_csv["Sample dataset<br/>[seed_data.csv]"]
  node_inserts["Seed inserts<br/>[seed_inserts.sql]"]
  node_database[("SQL database")]
end

subgraph group_analysis["Analysis"]
  node_queries["Analysis queries<br/>[queries.sql]"]
  node_report["Sample findings<br/>[analysis_report.md]"]
end

node_user(("Project user"))

node_user -->|"runs schema"| node_schema
node_schema -->|"creates tables"| node_database
node_user -->|"loads dataset"| node_csv
node_user -->|"runs inserts"| node_inserts
node_user -->|"loads data"| node_database
node_user -->|"executes queries"| node_queries
node_queries -->|"analyzes data"| node_database
node_user -->|"reads findings"| node_report

click node_schema "https://github.com/naveen112004/employee_attrition_project/blob/main/schema.sql"
click node_csv "https://github.com/naveen112004/employee_attrition_project/blob/main/seed_data.csv"
click node_inserts "https://github.com/naveen112004/employee_attrition_project/blob/main/seed_inserts.sql"
click node_queries "https://github.com/naveen112004/employee_attrition_project/blob/main/queries.sql"
click node_report "https://github.com/naveen112004/employee_attrition_project/blob/main/analysis_report.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_schema,node_csv,node_inserts,node_database,node_user toneBlue
class node_queries,node_report toneAmber
```

## Components

### Data setup

- [Table schema](https://github.com/naveen112004/employee_attrition_project/blob/main/schema.sql): `schema.sql`
- [Sample dataset](https://github.com/naveen112004/employee_attrition_project/blob/main/seed_data.csv): `seed_data.csv`
- [Seed inserts](https://github.com/naveen112004/employee_attrition_project/blob/main/seed_inserts.sql): `seed_inserts.sql`
- **SQL database**

### Analysis

- [Analysis queries](https://github.com/naveen112004/employee_attrition_project/blob/main/queries.sql): `queries.sql`
- [Sample findings](https://github.com/naveen112004/employee_attrition_project/blob/main/analysis_report.md): `analysis_report.md`

### Other components

- **Project user**

## Connections

- Project user → Table schema: runs schema (evidence: `README.md`)
- Table schema → SQL database: creates tables (evidence: `README.md`)
- Project user → Sample dataset: loads dataset (evidence: `README.md`)
- Project user → Seed inserts: runs inserts (evidence: `README.md`)
- Project user → SQL database: loads data (evidence: `README.md`)
- Project user → Analysis queries: executes queries (evidence: `README.md`)
- Analysis queries → SQL database: analyzes data (evidence: `README.md`)
- Project user → Sample findings: reads findings (evidence: `README.md`)
