# yeasinrabby2001/cse370-database-system-project architecture

> Architecture diagram of the GitHub repository yeasinrabby2001/cse370-database-system-project, 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/yeasinrabby2001/cse370-database-system-project
- Repository: https://github.com/yeasinrabby2001/cse370-database-system-project

## Overview

GarmentOS is a Django/MySQL garment-factory management app, but the sampled runtime currently implements only Authority login, session-protected dashboard access, and logout. README-listed staff, finance, attendance, and production features are described as in progress; their implementations are not present in the supplied tree. The graph follows the evidenced request flow and records those documented product branches without asserting unseen connections.

Main entry points: [`mainapp/views.py`](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/views.py) (Page and auth views), [`config/urls.py`](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/config/urls.py) (Project routing), [`mainapp/urls.py`](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/urls.py) (App routes), [`mainapp/models.py`](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/models.py) (Authority records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_django_routes["Project routing<br/>[urls.py]"]
  node_app_routes["App routes<br/>[urls.py]"]
  node_views["Page and auth views<br/>[views.py]"]
  node_login_page["Login page<br/>[login.html]"]
  node_home_page["Home page<br/>[index.html]"]
  node_dashboard_page["Authority dashboard"]
end

subgraph group_identity["Authority access"]
  node_staff_management["Staff and employee management"]
  node_finance_requests["Finance approvals"]
  node_attendance["Attendance tracking"]
  node_production["Production tracking"]
end

subgraph group_data["Persistence"]
  node_authority_model["Authority records<br/>[models.py]"]
  node_mysql[("MySQL database")]
end

node_authority_user(("Authority user"))

node_authority_user -->|"sends requests"| node_django_routes
node_django_routes -->|"includes routes"| node_app_routes
node_app_routes -->|"dispatches views"| node_views
node_views -->|"checks credentials"| node_authority_model
node_authority_model -.->|"persists records"| node_mysql
node_views -->|"renders login"| node_login_page
node_views -->|"renders home"| node_home_page
node_views -->|"renders dashboard"| node_dashboard_page
node_authority_user -.->|"manages staff"| node_staff_management
node_authority_user -.->|"approves requests"| node_finance_requests
node_authority_user -.->|"tracks attendance"| node_attendance
node_authority_user -.->|"tracks production"| node_production

click node_django_routes "https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/config/urls.py"
click node_app_routes "https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/urls.py"
click node_views "https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/views.py"
click node_login_page "https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/templates/login.html"
click node_home_page "https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/templates/index.html"
click node_dashboard_page "https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/templates/authoritydashboard.html"
click node_authority_model "https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/models.py"
click node_staff_management "https://github.com/yeasinrabby2001/cse370-database-system-project/tree/main/mainapp"
click node_finance_requests "https://github.com/yeasinrabby2001/cse370-database-system-project/tree/main/mainapp"
click node_attendance "https://github.com/yeasinrabby2001/cse370-database-system-project/tree/main/mainapp"
click node_production "https://github.com/yeasinrabby2001/cse370-database-system-project/tree/main/mainapp"

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_django_routes,node_app_routes,node_views,node_login_page,node_home_page,node_dashboard_page,node_authority_user toneBlue
class node_staff_management,node_finance_requests,node_attendance,node_production toneAmber
class node_authority_model,node_mysql toneMint
```

## Components

### Web interface

- [Project routing](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/config/urls.py): `config/urls.py`
- [App routes](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/urls.py): `mainapp/urls.py`
- [Page and auth views](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/views.py): `mainapp/views.py`
- [Login page](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/templates/login.html): `templates/login.html`
- [Home page](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/templates/index.html): `templates/index.html`
- [Authority dashboard](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/templates/authoritydashboard.html): `templates/authoritydashboard.html`

### Authority access

- [Staff and employee management](https://github.com/yeasinrabby2001/cse370-database-system-project/tree/main/mainapp): `mainapp`
- [Finance approvals](https://github.com/yeasinrabby2001/cse370-database-system-project/tree/main/mainapp): `mainapp`
- [Attendance tracking](https://github.com/yeasinrabby2001/cse370-database-system-project/tree/main/mainapp): `mainapp`
- [Production tracking](https://github.com/yeasinrabby2001/cse370-database-system-project/tree/main/mainapp): `mainapp`

### Persistence

- [Authority records](https://github.com/yeasinrabby2001/cse370-database-system-project/blob/main/mainapp/models.py): `mainapp/models.py`
- **MySQL database**

### Other components

- **Authority user**

## Connections

- Authority user → Project routing: sends requests (evidence: `config/urls.py`)
- Project routing → App routes: includes routes (evidence: `config/urls.py`)
- App routes → Page and auth views: dispatches views (evidence: `mainapp/urls.py`)
- Page and auth views → Authority records: checks credentials (evidence: `mainapp/views.py`)
- Authority records → MySQL database: persists records
- Page and auth views → Login page: renders login (evidence: `mainapp/views.py`)
- Page and auth views → Home page: renders home (evidence: `mainapp/views.py`)
- Page and auth views → Authority dashboard: renders dashboard (evidence: `mainapp/views.py`)
- Authority user → Staff and employee management: manages staff (evidence: `README.md`)
- Authority user → Finance approvals: approves requests (evidence: `README.md`)
- Authority user → Attendance tracking: tracks attendance (evidence: `README.md`)
- Authority user → Production tracking: tracks production (evidence: `README.md`)
