# sankari-4015/edunet_aicte_secure_employee_system architecture

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

- Interactive diagram: https://gitdiagram.com/sankari-4015/edunet_aicte_secure_employee_system
- Repository: https://github.com/sankari-4015/edunet_aicte_secure_employee_system

## Overview

This is a Flask employee-management application for employee and admin accounts, attendance, leave, and login monitoring. Employees register or sign in, record check-in/out, and submit leave requests; admins review users, attendance, and leave, and can approve leave or unlock accounts. The runtime is concentrated in app.py, which owns routing, authentication, domain actions, and persistence through SQLAlchemy. Templates provide the corresponding screens. The README is empty, and the excerpt omits several routes and template-rendering calls, so those links are not asserted.

Main entry points: [`app.py`](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py) (Flask application), [`templates/admin_dashboard.html`](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/templates/admin_dashboard.html) (Admin dashboard), [`instance/database.db`](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/instance/database.db) (SQLite database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Accounts and access"]
  node_flask_app["Flask application<br/>[app.py]"]
  node_registration["Registration<br/>[app.py]"]
  node_login["Role login<br/>[app.py]"]
  node_login_history["Login attempts<br/>[app.py]"]
end

subgraph group_workforce["Workforce operations"]
  node_attendance["Attendance<br/>[app.py]"]
  node_leave["Leave requests<br/>[app.py]"]
  node_admin_view["Admin dashboard"]
  node_employee_view["Employee screens"]
end

subgraph group_persistence["Persistence"]
  node_data_models["SQLAlchemy models<br/>[app.py]"]
  node_sqlite[("SQLite database<br/>[database.db]")]
end

node_employee(("Employee"))
node_admin(("Admin"))

node_employee -.->|"uses"| node_flask_app
node_admin -.->|"uses"| node_flask_app
node_flask_app -.->|"dispatches"| node_login
node_flask_app -.->|"dispatches"| node_registration
node_flask_app -.->|"dispatches"| node_attendance
node_flask_app -.->|"dispatches"| node_leave
node_flask_app -.->|"dispatches"| node_login_history
node_flask_app -->|"renders"| node_admin_view
node_flask_app -->|"queries"| node_data_models
node_registration -->|"creates user"| node_data_models
node_login -->|"checks credentials"| node_data_models
node_login -->|"records result"| node_login_history
node_attendance -->|"reads and writes"| node_data_models
node_leave -->|"reads and writes"| node_data_models
node_data_models -->|"persists"| node_sqlite

click node_flask_app "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py"
click node_registration "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py"
click node_login "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py"
click node_login_history "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py"
click node_attendance "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py"
click node_leave "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py"
click node_admin_view "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/templates/admin_dashboard.html"
click node_employee_view "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/templates/employee_dashboard.html"
click node_data_models "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py"
click node_sqlite "https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/instance/database.db"

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_flask_app,node_registration,node_login,node_login_history toneBlue
class node_attendance,node_leave,node_admin_view,node_employee_view toneAmber
class node_data_models,node_sqlite toneMint
class node_employee,node_admin toneIndigo
```

## Components

### Accounts and access

- [Flask application](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py): `app.py`
- [Registration](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py): `app.py`
- [Role login](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py): `app.py`
- [Login attempts](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py): `app.py`

### Workforce operations

- [Attendance](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py): `app.py`
- [Leave requests](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py): `app.py`
- [Admin dashboard](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/templates/admin_dashboard.html): `templates/admin_dashboard.html`
- [Employee screens](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/templates/employee_dashboard.html): `templates/employee_dashboard.html`

### Persistence

- [SQLAlchemy models](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/app.py): `app.py`
- [SQLite database](https://github.com/sankari-4015/edunet_aicte_secure_employee_system/blob/main/instance/database.db): `instance/database.db`

### Other components

- **Employee**
- **Admin**

## Connections

- Employee → Flask application: uses
- Admin → Flask application: uses
- Flask application → Role login: dispatches (evidence: `app.py`)
- Flask application → Registration: dispatches (evidence: `app.py`)
- Flask application → Attendance: dispatches (evidence: `app.py`)
- Flask application → Leave requests: dispatches (evidence: `app.py`)
- Flask application → Login attempts: dispatches (evidence: `app.py`)
- Flask application → Admin dashboard: renders (evidence: `app.py`)
- Flask application → SQLAlchemy models: queries (evidence: `app.py`)
- Registration → SQLAlchemy models: creates user (evidence: `app.py`)
- Role login → SQLAlchemy models: checks credentials (evidence: `app.py`)
- Role login → Login attempts: records result (evidence: `app.py`)
- Attendance → SQLAlchemy models: reads and writes (evidence: `app.py`)
- Leave requests → SQLAlchemy models: reads and writes (evidence: `app.py`)
- SQLAlchemy models → SQLite database: persists (evidence: `app.py`)
