# mdnazrulislambd/sms_db architecture

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

- Interactive diagram: https://gitdiagram.com/mdnazrulislambd/sms_db
- Repository: https://github.com/mdnazrulislambd/sms_db

## Overview

This repository is a small SQL Server database project for school-related data. Its documented workflow is to create the tables, insert operational or sample data, then run retrieval and class/teacher/subject reporting queries. The README describes these scripts and their order, but no SQL source excerpts were provided, so relationships below reflect documentation rather than inspected query details.

Main entry points: [`Table_Create_Query.sql`](https://github.com/mdnazrulislambd/sms_db/blob/master/Table_Create_Query.sql) (Create tables), [`Data_Add_Query.sql`](https://github.com/mdnazrulislambd/sms_db/blob/master/Data_Add_Query.sql) (Insert data), [`DataBase_Test_Data_add.sql`](https://github.com/mdnazrulislambd/sms_db/blob/master/DataBase_Test_Data_add.sql) (Add sample data), [`Select_Query.sql`](https://github.com/mdnazrulislambd/sms_db/blob/master/Select_Query.sql) (Retrieve data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_schema["Schema"]
  node_table_creation["Create tables"]
end

subgraph group_data["Data"]
  node_data_insertion["Insert data<br/>[Data_Add_Query.sql]"]
  node_sample_data["Add sample data"]
end

subgraph group_queries["Queries"]
  node_retrieval["Retrieve data<br/>[Select_Query.sql]"]
  node_reports["Class/teacher reports"]
end

node_operator(("Database operator"))
node_sqlserver[("SQL Server")]

node_operator -->|"connects to"| node_sqlserver
node_operator -->|"runs"| node_table_creation
node_table_creation -->|"creates tables in"| node_sqlserver
node_operator -->|"runs"| node_data_insertion
node_data_insertion -->|"inserts data into"| node_sqlserver
node_operator -.->|"optionally runs"| node_sample_data
node_sample_data -.->|"adds sample data to"| node_sqlserver
node_operator -->|"runs"| node_retrieval
node_retrieval -->|"retrieves data from"| node_sqlserver
node_operator -->|"runs"| node_reports
node_reports -->|"queries for reports"| node_sqlserver

click node_table_creation "https://github.com/mdnazrulislambd/sms_db/blob/master/Table_Create_Query.sql"
click node_data_insertion "https://github.com/mdnazrulislambd/sms_db/blob/master/Data_Add_Query.sql"
click node_sample_data "https://github.com/mdnazrulislambd/sms_db/blob/master/DataBase_Test_Data_add.sql"
click node_retrieval "https://github.com/mdnazrulislambd/sms_db/blob/master/Select_Query.sql"
click node_reports "https://github.com/mdnazrulislambd/sms_db/blob/master/Class_Techer_Subject_Report.sql"

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_table_creation toneBlue
class node_data_insertion,node_sample_data,node_operator,node_sqlserver toneAmber
class node_retrieval,node_reports toneMint
```

## Components

### Schema

- [Create tables](https://github.com/mdnazrulislambd/sms_db/blob/master/Table_Create_Query.sql): `Table_Create_Query.sql`

### Data

- [Insert data](https://github.com/mdnazrulislambd/sms_db/blob/master/Data_Add_Query.sql): `Data_Add_Query.sql`
- [Add sample data](https://github.com/mdnazrulislambd/sms_db/blob/master/DataBase_Test_Data_add.sql): `DataBase_Test_Data_add.sql`

### Queries

- [Retrieve data](https://github.com/mdnazrulislambd/sms_db/blob/master/Select_Query.sql): `Select_Query.sql`
- [Class/teacher reports](https://github.com/mdnazrulislambd/sms_db/blob/master/Class_Techer_Subject_Report.sql): `Class_Techer_Subject_Report.sql`

### Other components

- **Database operator**
- **SQL Server**

## Connections

- Database operator → SQL Server: connects to (evidence: `README.md`)
- Database operator → Create tables: runs (evidence: `README.md`)
- Create tables → SQL Server: creates tables in (evidence: `README.md`)
- Database operator → Insert data: runs (evidence: `README.md`)
- Insert data → SQL Server: inserts data into (evidence: `README.md`)
- Database operator → Add sample data: optionally runs (evidence: `README.md`)
- Add sample data → SQL Server: adds sample data to (evidence: `README.md`)
- Database operator → Retrieve data: runs (evidence: `README.md`)
- Retrieve data → SQL Server: retrieves data from (evidence: `README.md`)
- Database operator → Class/teacher reports: runs (evidence: `README.md`)
- Class/teacher reports → SQL Server: queries for reports (evidence: `README.md`)
