# girishchinchpure/dbms-mini-project architecture

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

- Interactive diagram: https://gitdiagram.com/girishchinchpure/dbms-mini-project
- Repository: https://github.com/girishchinchpure/dbms-mini-project

## Overview

SAMS is a Flask/MySQL student academic-records application. Users browse a dashboard, search or add students, and view student profiles alongside course, attendance, and examination results. Route handlers issue SQL through a shared database helper; MySQL stores the records and applies documented attendance and grade logic. The README also describes SQL practice/report queries. Database scripts and templates are represented at their listed directory paths because their individual files were not included in the tree or excerpts.

Main entry points: [`app/routes.py`](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py) (Web routes), [`app/db.py`](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/db.py) (Database access), [`app/templates`](https://github.com/girishchinchpure/dbms-mini-project/tree/main/app/templates) (Page templates), [`app/__init__.py`](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/__init__.py) (App setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_startup["App setup<br/>[__init__.py]"]
  node_routes["Web routes<br/>[routes.py]"]
  node_templates["Page templates"]
end

subgraph group_students["Student records"]
  node_dashboard["Dashboard<br/>[routes.py]"]
  node_student_records["Student records<br/>[routes.py]"]
  node_student_profile["Academic profile<br/>[routes.py]"]
end

subgraph group_academics["Academic records"]
  node_course_management["Course management<br/>[routes.py]"]
  node_attendance["Attendance tracking<br/>[routes.py]"]
  node_exam_results["Exams and results<br/>[routes.py]"]
  node_report_queries["SQL reports"]
end

subgraph group_persistence["Persistence"]
  node_db_access["Database access<br/>[db.py]"]
  node_db_design["Schema and triggers"]
  node_mysql[("MySQL database")]
end

node_user(("User"))

node_user -->|"requests pages"| node_routes
node_startup -->|"registers routes"| node_routes
node_routes -->|"dispatches"| node_dashboard
node_routes -->|"dispatches"| node_student_records
node_routes -->|"dispatches"| node_student_profile
node_routes -->|"dispatches"| node_course_management
node_routes -->|"dispatches"| node_attendance
node_routes -->|"dispatches"| node_exam_results
node_dashboard -->|"queries counts"| node_db_access
node_student_records -->|"reads and writes"| node_db_access
node_student_profile -->|"queries academics"| node_db_access
node_course_management -->|"queries courses"| node_db_access
node_attendance -->|"queries attendance"| node_db_access
node_exam_results -->|"queries results"| node_db_access
node_dashboard -->|"renders"| node_templates
node_student_records -->|"renders"| node_templates
node_student_profile -->|"renders"| node_templates
node_course_management -->|"renders"| node_templates
node_attendance -->|"renders"| node_templates
node_exam_results -->|"renders"| node_templates
node_db_access -->|"reads and writes"| node_mysql
node_db_design -.->|"defines schema logic"| node_mysql
node_report_queries -.->|"queries reports"| node_mysql

click node_startup "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/__init__.py"
click node_routes "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py"
click node_templates "https://github.com/girishchinchpure/dbms-mini-project/tree/main/app/templates"
click node_dashboard "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py"
click node_student_records "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py"
click node_student_profile "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py"
click node_course_management "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py"
click node_attendance "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py"
click node_exam_results "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py"
click node_report_queries "https://github.com/girishchinchpure/dbms-mini-project/tree/main/database"
click node_db_access "https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/db.py"
click node_db_design "https://github.com/girishchinchpure/dbms-mini-project/tree/main/database"

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_startup,node_routes,node_templates,node_user toneBlue
class node_dashboard,node_student_records,node_student_profile toneAmber
class node_course_management,node_attendance,node_exam_results,node_report_queries toneMint
class node_db_access,node_db_design,node_mysql toneRose
```

## Components

### Web application

- [App setup](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/__init__.py): `app/__init__.py`
- [Web routes](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py): `app/routes.py`
- [Page templates](https://github.com/girishchinchpure/dbms-mini-project/tree/main/app/templates): `app/templates`

### Student records

- [Dashboard](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py): `app/routes.py`
- [Student records](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py): `app/routes.py`
- [Academic profile](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py): `app/routes.py`

### Academic records

- [Course management](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py): `app/routes.py`
- [Attendance tracking](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py): `app/routes.py`
- [Exams and results](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/routes.py): `app/routes.py`
- [SQL reports](https://github.com/girishchinchpure/dbms-mini-project/tree/main/database): `database`

### Persistence

- [Database access](https://github.com/girishchinchpure/dbms-mini-project/blob/main/app/db.py): `app/db.py`
- [Schema and triggers](https://github.com/girishchinchpure/dbms-mini-project/tree/main/database): `database`
- **MySQL database**

### Other components

- **User**

## Connections

- User → Web routes: requests pages (evidence: `app/routes.py`)
- App setup → Web routes: registers routes (evidence: `app/__init__.py`)
- Web routes → Dashboard: dispatches (evidence: `app/routes.py`)
- Web routes → Student records: dispatches (evidence: `app/routes.py`)
- Web routes → Academic profile: dispatches (evidence: `app/routes.py`)
- Web routes → Course management: dispatches (evidence: `app/routes.py`)
- Web routes → Attendance tracking: dispatches (evidence: `app/routes.py`)
- Web routes → Exams and results: dispatches (evidence: `app/routes.py`)
- Dashboard → Database access: queries counts (evidence: `app/routes.py`)
- Student records → Database access: reads and writes (evidence: `app/routes.py`)
- Academic profile → Database access: queries academics (evidence: `app/routes.py`)
- Course management → Database access: queries courses (evidence: `app/routes.py`)
- Attendance tracking → Database access: queries attendance (evidence: `app/routes.py`)
- Exams and results → Database access: queries results (evidence: `app/routes.py`)
- Dashboard → Page templates: renders (evidence: `app/routes.py`)
- Student records → Page templates: renders (evidence: `app/routes.py`)
- Academic profile → Page templates: renders (evidence: `app/routes.py`)
- Course management → Page templates: renders (evidence: `app/routes.py`)
- Attendance tracking → Page templates: renders (evidence: `app/routes.py`)
- Exams and results → Page templates: renders (evidence: `app/routes.py`)
- Database access → MySQL database: reads and writes (evidence: `app/db.py`)
- Schema and triggers → MySQL database: defines schema logic (evidence: `README.md`)
- SQL reports → MySQL database: queries reports (evidence: `README.md`)
