# wuwalove13-eng/enrollease architecture

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

- Interactive diagram: https://gitdiagram.com/wuwalove13-eng/enrollease
- Repository: https://github.com/wuwalove13-eng/enrollease

## Overview

EnrollEase is a Flask enrollment and student-service request system. A student submits a request through the browser; the application records it, schedules pickup, and tracks documents and payment. Staff then manage follow-up, verification, queue handling, and claiming, while directory and reporting views support administration. The app also provides account sign-in and email alerts. The README contains only the product name, so capabilities and relationships here are grounded in the shown source excerpts and SOURCE INDEX; unsampled routes and templates are not inferred.

Main entry points: [`database.py`](https://github.com/wuwalove13-eng/enrollease/blob/main/database.py) (SQLite persistence), [`app.py`](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py) (Request intake), [`static/app.js`](https://github.com/wuwalove13-eng/enrollease/blob/main/static/app.js) (Web interface), [`dsa_core.py`](https://github.com/wuwalove13-eng/enrollease/blob/main/dsa_core.py) (Queue handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_browser["Web interface<br/>[app.js]"]
end

subgraph group_operations["Enrollment operations"]
  node_request["Request intake<br/>[app.py]"]
  node_records["Enrollment records<br/>[app.py]"]
  node_documents["Document follow-up<br/>[app.py]"]
  node_payments["Cashier verification<br/>[app.py]"]
  node_pickup["Pickup scheduling<br/>[app.py]"]
  node_queue["Queue handling<br/>[dsa_core.py]"]
  node_directory["Staff directory<br/>[app.py]"]
  node_reports["Sorting and export<br/>[app.py]"]
end

subgraph group_runtime["Application runtime"]
  node_auth["Accounts and roles<br/>[app.py]"]
  node_storage[("SQLite persistence<br/>[database.py]")]
  node_structures["Search and priority structures<br/>[dsa_core.py]"]
end

subgraph group_integrations["External services"]
  node_email["Email alerts<br/>[app.py]"]
  node_google["Google sign-in"]
  node_mail_services["Gmail webhook or SMTP"]
end

node_student(("Student"))
node_staff(("Registrar and admin"))

node_student -->|"uses"| node_browser
node_staff -->|"uses"| node_browser
node_browser -->|"submits requests"| node_request
node_browser -->|"searches directory"| node_directory
node_request -->|"creates records"| node_records
node_request -->|"assigns schedule"| node_pickup
node_request -->|"sets follow-up"| node_documents
node_records -->|"persists records"| node_storage
node_documents -->|"updates records"| node_storage
node_payments -->|"updates records"| node_storage
node_pickup -->|"updates schedule"| node_storage
node_queue -->|"uses data structures"| node_structures
node_records -.->|"uses queue structures"| node_queue
node_directory -.->|"reads records"| node_storage
node_reports -.->|"reads records"| node_storage
node_auth -.->|"reads and updates users"| node_storage
node_auth -->|"configures sign-in"| node_google
node_documents -.->|"sends alerts"| node_email
node_email -->|"delivers email"| node_mail_services

click node_browser "https://github.com/wuwalove13-eng/enrollease/blob/main/static/app.js"
click node_request "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"
click node_records "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"
click node_documents "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"
click node_payments "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"
click node_pickup "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"
click node_queue "https://github.com/wuwalove13-eng/enrollease/blob/main/dsa_core.py"
click node_directory "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"
click node_reports "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"
click node_auth "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"
click node_storage "https://github.com/wuwalove13-eng/enrollease/blob/main/database.py"
click node_structures "https://github.com/wuwalove13-eng/enrollease/blob/main/dsa_core.py"
click node_email "https://github.com/wuwalove13-eng/enrollease/blob/main/app.py"

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_browser toneBlue
class node_request,node_records,node_documents,node_payments,node_pickup,node_queue,node_directory,node_reports toneAmber
class node_auth,node_storage,node_structures toneMint
class node_email,node_google,node_mail_services toneRose
class node_student,node_staff toneIndigo
```

## Components

### User experience

- [Web interface](https://github.com/wuwalove13-eng/enrollease/blob/main/static/app.js): `static/app.js`

### Enrollment operations

- [Request intake](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`
- [Enrollment records](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`
- [Document follow-up](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`
- [Cashier verification](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`
- [Pickup scheduling](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`
- [Queue handling](https://github.com/wuwalove13-eng/enrollease/blob/main/dsa_core.py): `dsa_core.py`
- [Staff directory](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`
- [Sorting and export](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`

### Application runtime

- [Accounts and roles](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`
- [SQLite persistence](https://github.com/wuwalove13-eng/enrollease/blob/main/database.py): `database.py`
- [Search and priority structures](https://github.com/wuwalove13-eng/enrollease/blob/main/dsa_core.py): `dsa_core.py`

### External services

- [Email alerts](https://github.com/wuwalove13-eng/enrollease/blob/main/app.py): `app.py`
- **Google sign-in**
- **Gmail webhook or SMTP**

### Other components

- **Student**
- **Registrar and admin**

## Connections

- Student → Web interface: uses (evidence: `static/app.js`)
- Registrar and admin → Web interface: uses (evidence: `static/app.js`)
- Web interface → Request intake: submits requests (evidence: `static/app.js`)
- Web interface → Staff directory: searches directory (evidence: `static/app.js`)
- Request intake → Enrollment records: creates records (evidence: `app.py`)
- Request intake → Pickup scheduling: assigns schedule (evidence: `app.py`)
- Request intake → Document follow-up: sets follow-up (evidence: `app.py`)
- Enrollment records → SQLite persistence: persists records (evidence: `app.py`)
- Document follow-up → SQLite persistence: updates records (evidence: `app.py`)
- Cashier verification → SQLite persistence: updates records (evidence: `app.py`)
- Pickup scheduling → SQLite persistence: updates schedule (evidence: `app.py`)
- Queue handling → Search and priority structures: uses data structures (evidence: `dsa_core.py`)
- Enrollment records → Queue handling: uses queue structures (evidence: `app.py`)
- Staff directory → SQLite persistence: reads records (evidence: `app.py`)
- Sorting and export → SQLite persistence: reads records (evidence: `app.py`)
- Accounts and roles → SQLite persistence: reads and updates users (evidence: `app.py`)
- Accounts and roles → Google sign-in: configures sign-in (evidence: `app.py`)
- Document follow-up → Email alerts: sends alerts (evidence: `app.py`)
- Email alerts → Gmail webhook or SMTP: delivers email (evidence: `app.py`)
