# shahrukh-ansari1/telecom-vendor-rebate-analytics architecture

> Architecture diagram of the GitHub repository shahrukh-ansari1/telecom-vendor-rebate-analytics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shahrukh-ansari1/telecom-vendor-rebate-analytics
- Repository: https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics

## Overview

This is an end-to-end synthetic telecom rebate and procurement analytics case study. Its main workflow generates installation-to-payment records, loads them into MySQL, then applies data-quality checks, financial reconciliation and operational KPIs for analysis and reporting across Python, Excel and Power BI. Major documented capabilities include defect-answer-key generation, profiling, SLA analysis, sensitivity analysis and cross-tool validation. The graph reflects the README’s documented workflow and the sampled generator and loader; SQL, notebooks and BI internals were not sampled, so their detailed calls are not inferred.

Main entry points: [`data/raw`](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/data/raw) (Raw business records), [`data/exports`](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/data/exports) (SQL result exports), [`notebooks/02_analysis.ipynb`](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/notebooks/02_analysis.ipynb) (Cross-tool analysis), [`src/generate_data.py`](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/src/generate_data.py) (Synthetic data generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Data generation"]
  node_settings["Rules and settings<br/>[settings.py]"]
  node_generator["Synthetic data generator<br/>[generate_data.py]"]
  node_raw[("Raw business records")]
  node_loader["MySQL data loader<br/>[load_to_mysql.py]"]
end

subgraph group_database["SQL analytics"]
  node_mysql[("MySQL database")]
  node_schema["Relational schema"]
  node_quality["Data quality checks"]
  node_reconciliation["Financial reconciliation"]
  node_kpis["Vendor and SLA KPIs"]
  node_sensitivity["SLA sensitivity analysis"]
  node_exports[("SQL result exports")]
end

subgraph group_python["Python analysis"]
  node_profiling["Data profiling<br/>[01_profiling.ipynb]"]
  node_analysis["Cross-tool analysis<br/>[02_analysis.ipynb]"]
  node_processed[("Profiling results")]
end

subgraph group_reporting["Business reporting"]
  node_excel["Excel reconciliation"]
  node_dashboard["Power BI dashboard"]
  node_findings["Findings and summary"]
end

node_generator -->|"reads rules"| node_settings
node_generator -->|"writes CSVs"| node_raw
node_loader -->|"reads CSVs"| node_raw
node_loader -->|"loads records"| node_mysql
node_schema -->|"creates tables"| node_mysql
node_quality -->|"checks records"| node_mysql
node_reconciliation -->|"reconciles records"| node_mysql
node_kpis -->|"calculates KPIs"| node_mysql
node_sensitivity -->|"tests thresholds"| node_mysql
node_profiling -->|"profiles data"| node_raw
node_profiling -->|"exports summary"| node_processed
node_analysis -->|"compares totals"| node_mysql
node_analysis -->|"recalculates measures"| node_raw
node_reconciliation -->|"exports results"| node_exports
node_kpis -->|"exports results"| node_exports
node_raw -->|"loads source data"| node_excel
node_exports -->|"compares totals"| node_excel
node_exports -->|"feeds SQL views"| node_dashboard
node_analysis -.->|"supports findings"| node_findings
node_dashboard -.->|"presents results"| node_findings

click node_settings "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/config/settings.py"
click node_generator "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/src/generate_data.py"
click node_raw "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/data/raw"
click node_loader "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/src/load_to_mysql.py"
click node_schema "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/01_schema"
click node_quality "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/03_quality_checks"
click node_reconciliation "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/04_reconciliation"
click node_kpis "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/05_kpis"
click node_sensitivity "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/06_analysis"
click node_exports "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/data/exports"
click node_profiling "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/notebooks/01_profiling.ipynb"
click node_analysis "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/notebooks/02_analysis.ipynb"
click node_processed "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/data/processed"
click node_excel "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/excel/telecom_reconciliation.xlsx"
click node_dashboard "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/powerbi/telecom_rebate_dashboard.pbix"
click node_findings "https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/reports"

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_settings,node_generator,node_raw,node_loader toneBlue
class node_mysql,node_schema,node_quality,node_reconciliation,node_kpis,node_sensitivity,node_exports toneAmber
class node_profiling,node_analysis,node_processed toneMint
class node_excel,node_dashboard,node_findings toneRose
```

## Components

### Data generation

- [Rules and settings](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/config/settings.py): `config/settings.py`
- [Synthetic data generator](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/src/generate_data.py): `src/generate_data.py`
- [Raw business records](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/data/raw): `data/raw`
- [MySQL data loader](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/src/load_to_mysql.py): `src/load_to_mysql.py`

### SQL analytics

- **MySQL database**
- [Relational schema](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/01_schema): `sql/01_schema`
- [Data quality checks](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/03_quality_checks): `sql/03_quality_checks`
- [Financial reconciliation](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/04_reconciliation): `sql/04_reconciliation`
- [Vendor and SLA KPIs](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/05_kpis): `sql/05_kpis`
- [SLA sensitivity analysis](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/sql/06_analysis): `sql/06_analysis`
- [SQL result exports](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/data/exports): `data/exports`

### Python analysis

- [Data profiling](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/notebooks/01_profiling.ipynb): `notebooks/01_profiling.ipynb`
- [Cross-tool analysis](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/notebooks/02_analysis.ipynb): `notebooks/02_analysis.ipynb`
- [Profiling results](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/data/processed): `data/processed`

### Business reporting

- [Excel reconciliation](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/excel/telecom_reconciliation.xlsx): `excel/telecom_reconciliation.xlsx`
- [Power BI dashboard](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/blob/main/powerbi/telecom_rebate_dashboard.pbix): `powerbi/telecom_rebate_dashboard.pbix`
- [Findings and summary](https://github.com/shahrukh-ansari1/telecom-vendor-rebate-analytics/tree/main/reports): `reports`

## Connections

- Synthetic data generator → Rules and settings: reads rules (evidence: `src/generate_data.py`)
- Synthetic data generator → Raw business records: writes CSVs (evidence: `README.md`)
- MySQL data loader → Raw business records: reads CSVs (evidence: `src/load_to_mysql.py`)
- MySQL data loader → MySQL database: loads records (evidence: `README.md`)
- Relational schema → MySQL database: creates tables (evidence: `README.md`)
- Data quality checks → MySQL database: checks records (evidence: `README.md`)
- Financial reconciliation → MySQL database: reconciles records (evidence: `README.md`)
- Vendor and SLA KPIs → MySQL database: calculates KPIs (evidence: `README.md`)
- SLA sensitivity analysis → MySQL database: tests thresholds (evidence: `README.md`)
- Data profiling → Raw business records: profiles data (evidence: `README.md`)
- Data profiling → Profiling results: exports summary (evidence: `README.md`)
- Cross-tool analysis → MySQL database: compares totals (evidence: `README.md`)
- Cross-tool analysis → Raw business records: recalculates measures (evidence: `README.md`)
- Financial reconciliation → SQL result exports: exports results (evidence: `README.md`)
- Vendor and SLA KPIs → SQL result exports: exports results (evidence: `README.md`)
- Raw business records → Excel reconciliation: loads source data (evidence: `README.md`)
- SQL result exports → Excel reconciliation: compares totals (evidence: `README.md`)
- SQL result exports → Power BI dashboard: feeds SQL views (evidence: `README.md`)
- Cross-tool analysis → Findings and summary: supports findings
- Power BI dashboard → Findings and summary: presents results
