# shivad2025lcse-bit/time_table architecture

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

- Interactive diagram: https://gitdiagram.com/shivad2025lcse-bit/time_table
- Repository: https://github.com/shivad2025lcse-bit/time_table

## Overview

Smart Classroom & Timetable Scheduler is a role-based college logistics application. Users enter through a React dashboard; authenticated workflows manage institutional records, build and operate timetables, handle temporary changes and substitutions, and present role-specific schedule information. The README also describes student allocation, advisor views, notifications, and access control. The graph reflects documented capabilities and sampled controller/service references; unsampled subsystems are included without guessed internal call chains. Several controller and service excerpts are partial, so links are limited to evidenced references and explicit README statements.

Main entry points: [`src/main/java/com/smarttimetable/controller`](https://github.com/shivad2025lcse-bit/time_table/tree/main/src/main/java/com/smarttimetable/controller) (REST endpoints), [`src/main/java/com/smarttimetable/service/AuthService.java`](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/AuthService.java) (Authentication), [`src/main/java/com/smarttimetable/controller/TimetableController.java`](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/TimetableController.java) (Timetable management), [`src/main/java/com/smarttimetable/controller/TimetableOperationsController.java`](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/TimetableOperationsController.java) (Substitution operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Web interface"]
  node_dashboard["Role dashboards"]
  node_router["Route selection<br/>[App.jsx]"]
  node_api["REST endpoints"]
end

subgraph group_access["Identity and access"]
  node_auth["Authentication<br/>[AuthService.java]"]
  node_userlookup["User lookup"]
  node_security["JWT and role security"]
end

subgraph group_records["Institution records"]
  node_studentmgmt["Student allocation"]
  node_classrecords["Class and staff records"]
  node_database[("Persistent domain data")]
end

subgraph group_scheduling["Scheduling operations"]
  node_scheduleapi["Timetable management"]
  node_generator["Schedule generation"]
  node_conflicts["Conflict checking"]
  node_tempchanges["Temporary schedules"]
  node_ops["Substitution operations"]
  node_studentview["Student schedule view"]
  node_timetableparser["Timetable import parsing"]
end

subgraph group_learning["Learning and messaging"]
  node_quiz["Quiz management"]
  node_quizgen["AI quiz generation"]
  node_notifications["Email notifications"]
end

node_user(("Admin, faculty, student"))

node_user -->|"opens"| node_router
node_router -->|"routes to"| node_dashboard
node_dashboard -.->|"uses"| node_api
node_api -.->|"authenticates with"| node_auth
node_auth -->|"looks up users"| node_userlookup
node_userlookup -->|"queries"| node_database
node_auth -->|"issues token"| node_security
node_api -.->|"exposes"| node_studentmgmt
node_api -.->|"exposes"| node_classrecords
node_scheduleapi -->|"generates with"| node_generator
node_scheduleapi -->|"checks conflicts"| node_conflicts
node_ops -->|"manages changes"| node_tempchanges
node_studentview -->|"reads effective schedule"| node_tempchanges
node_ops -->|"dispatches email"| node_notifications
node_quiz -.->|"generates questions"| node_quizgen
node_user -->|"allocates students"| node_studentmgmt
node_user -->|"requests substitution"| node_ops
node_timetableparser -.->|"supports timetable import"| node_scheduleapi

click node_dashboard "https://github.com/shivad2025lcse-bit/time_table/blob/main/frontend/src/DashboardLayout.jsx"
click node_router "https://github.com/shivad2025lcse-bit/time_table/blob/main/frontend/src/App.jsx"
click node_api "https://github.com/shivad2025lcse-bit/time_table/tree/main/src/main/java/com/smarttimetable/controller"
click node_auth "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/AuthService.java"
click node_userlookup "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/security/CustomUserDetailsService.java"
click node_security "https://github.com/shivad2025lcse-bit/time_table/tree/main/src/main/java/com/smarttimetable/security"
click node_studentmgmt "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/StudentController.java"
click node_classrecords "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/SectionController.java"
click node_scheduleapi "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/TimetableController.java"
click node_generator "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/TimetableGeneratorService.java"
click node_conflicts "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/ConflictService.java"
click node_tempchanges "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/TemporaryTimetableService.java"
click node_ops "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/TimetableOperationsController.java"
click node_studentview "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/StudentDashboardController.java"
click node_quiz "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/QuizController.java"
click node_quizgen "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/AiQuizGeneratorService.java"
click node_notifications "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/EmailNotificationService.java"
click node_timetableparser "https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/AiTimetableParserService.java"
click node_database "https://github.com/shivad2025lcse-bit/time_table/tree/main/src/main/java/com/smarttimetable/repository"

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_dashboard,node_router,node_api toneBlue
class node_auth,node_userlookup,node_security toneAmber
class node_studentmgmt,node_classrecords,node_database toneMint
class node_scheduleapi,node_generator,node_conflicts,node_tempchanges,node_ops,node_studentview,node_timetableparser toneRose
class node_quiz,node_quizgen,node_notifications,node_user toneIndigo
```

## Components

### Web interface

- [Role dashboards](https://github.com/shivad2025lcse-bit/time_table/blob/main/frontend/src/DashboardLayout.jsx): `frontend/src/DashboardLayout.jsx`
- [Route selection](https://github.com/shivad2025lcse-bit/time_table/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [REST endpoints](https://github.com/shivad2025lcse-bit/time_table/tree/main/src/main/java/com/smarttimetable/controller): `src/main/java/com/smarttimetable/controller`

### Identity and access

- [Authentication](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/AuthService.java): `src/main/java/com/smarttimetable/service/AuthService.java`
- [User lookup](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/security/CustomUserDetailsService.java): `src/main/java/com/smarttimetable/security/CustomUserDetailsService.java`
- [JWT and role security](https://github.com/shivad2025lcse-bit/time_table/tree/main/src/main/java/com/smarttimetable/security): `src/main/java/com/smarttimetable/security`

### Institution records

- [Student allocation](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/StudentController.java): `src/main/java/com/smarttimetable/controller/StudentController.java`
- [Class and staff records](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/SectionController.java): `src/main/java/com/smarttimetable/controller/SectionController.java`
- [Persistent domain data](https://github.com/shivad2025lcse-bit/time_table/tree/main/src/main/java/com/smarttimetable/repository): `src/main/java/com/smarttimetable/repository`

### Scheduling operations

- [Timetable management](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/TimetableController.java): `src/main/java/com/smarttimetable/controller/TimetableController.java`
- [Schedule generation](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/TimetableGeneratorService.java): `src/main/java/com/smarttimetable/service/TimetableGeneratorService.java`
- [Conflict checking](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/ConflictService.java): `src/main/java/com/smarttimetable/service/ConflictService.java`
- [Temporary schedules](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/TemporaryTimetableService.java): `src/main/java/com/smarttimetable/service/TemporaryTimetableService.java`
- [Substitution operations](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/TimetableOperationsController.java): `src/main/java/com/smarttimetable/controller/TimetableOperationsController.java`
- [Student schedule view](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/StudentDashboardController.java): `src/main/java/com/smarttimetable/controller/StudentDashboardController.java`
- [Timetable import parsing](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/AiTimetableParserService.java): `src/main/java/com/smarttimetable/service/AiTimetableParserService.java`

### Learning and messaging

- [Quiz management](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/controller/QuizController.java): `src/main/java/com/smarttimetable/controller/QuizController.java`
- [AI quiz generation](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/AiQuizGeneratorService.java): `src/main/java/com/smarttimetable/service/AiQuizGeneratorService.java`
- [Email notifications](https://github.com/shivad2025lcse-bit/time_table/blob/main/src/main/java/com/smarttimetable/service/EmailNotificationService.java): `src/main/java/com/smarttimetable/service/EmailNotificationService.java`

### Other components

- **Admin, faculty, student**

## Connections

- Admin, faculty, student → Route selection: opens
- Route selection → Role dashboards: routes to (evidence: `frontend/src/App.jsx`)
- Role dashboards → REST endpoints: uses
- REST endpoints → Authentication: authenticates with
- Authentication → User lookup: looks up users (evidence: `src/main/java/com/smarttimetable/service/AuthService.java`)
- User lookup → Persistent domain data: queries (evidence: `src/main/java/com/smarttimetable/security/CustomUserDetailsService.java`)
- Authentication → JWT and role security: issues token (evidence: `src/main/java/com/smarttimetable/service/AuthService.java`)
- REST endpoints → Student allocation: exposes
- REST endpoints → Class and staff records: exposes
- Timetable management → Schedule generation: generates with (evidence: `src/main/java/com/smarttimetable/controller/TimetableController.java`)
- Timetable management → Conflict checking: checks conflicts (evidence: `src/main/java/com/smarttimetable/controller/TimetableController.java`)
- Substitution operations → Temporary schedules: manages changes (evidence: `src/main/java/com/smarttimetable/controller/TimetableOperationsController.java`)
- Student schedule view → Temporary schedules: reads effective schedule (evidence: `src/main/java/com/smarttimetable/controller/StudentDashboardController.java`)
- Substitution operations → Email notifications: dispatches email (evidence: `src/main/java/com/smarttimetable/controller/TimetableOperationsController.java`)
- Quiz management → AI quiz generation: generates questions
- Admin, faculty, student → Student allocation: allocates students
- Admin, faculty, student → Substitution operations: requests substitution
- Timetable import parsing → Timetable management: supports timetable import (evidence: `src/main/java/com/smarttimetable/controller/TimetableController.java`)
