# artem56x/schedulesystem architecture

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

- Interactive diagram: https://gitdiagram.com/artem56x/schedulesystem
- Repository: https://github.com/artem56x/schedulesystem

## Overview

ScheduleSystem is an ASP.NET Core MVC college timetable application. Users manage academic resources, create and filter lessons, validate conflicts and classroom suitability, generate schedules for review, and export timetables. The graph emphasizes the documented product capabilities and the sampled controller/service ownership; several management and analytics controllers are present in the tree but were not sampled, so their internal behavior is not inferred.

Main entry points: [`Data/ApplicationDbContext.cs`](https://github.com/artem56x/schedulesystem/blob/main/Data/ApplicationDbContext.cs) (Application data), [`Controllers/SchedulesController.cs`](https://github.com/artem56x/schedulesystem/blob/main/Controllers/SchedulesController.cs) (Schedule management), [`Controllers/ScheduleGeneratorController.cs`](https://github.com/artem56x/schedulesystem/blob/main/Controllers/ScheduleGeneratorController.cs) (Generation workflow), [`Models/Schedule.cs`](https://github.com/artem56x/schedulesystem/blob/main/Models/Schedule.cs) (Timetable lessons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflows"]
  node_schedule_ui["Schedule management"]
  node_generator_ui["Generation workflow"]
  node_classroom_ui["Classroom management"]
  node_teacher_ui["Teacher management"]
  node_subject_ui["Subject management"]
  node_group_ui["Group management"]
  node_group_subject_ui["Group subjects"]
end

subgraph group_planning["Schedule planning"]
  node_validation["Conflict validation"]
  node_classroom_recs["Room recommendations"]
  node_teacher_recs["Teacher recommendations"]
  node_generator["Schedule generator"]
  node_export["Schedule export"]
end

subgraph group_domain["Academic domain"]
  node_teachers["Teachers<br/>[Teacher.cs]"]
  node_groups["Student groups<br/>[Group.cs]"]
  node_subjects["Subjects and requirements<br/>[Subject.cs]"]
  node_rooms["Classrooms and categories<br/>[Classroom.cs]"]
  node_schedules["Timetable lessons<br/>[Schedule.cs]"]
end

subgraph group_persistence["Persistence and identity"]
  node_db[("Application data")]
end

subgraph group_insights["User insights"]
  node_analytics["Schedule analytics"]
  node_notifications["Notifications"]
  node_audit["Audit logs"]
end

node_user(("College staff"))

node_user -->|"manages schedules"| node_schedule_ui
node_user -->|"generates schedules"| node_generator_ui
node_schedule_ui -->|"validates lessons"| node_validation
node_schedule_ui -->|"requests rooms"| node_classroom_recs
node_schedule_ui -->|"requests teachers"| node_teacher_recs
node_schedule_ui -->|"creates exports"| node_export
node_generator_ui -->|"generates preview"| node_generator
node_schedule_ui -->|"reads and writes"| node_db
node_generator_ui -->|"loads schedule data"| node_db
node_classroom_ui -->|"manages classrooms"| node_db
node_teacher_ui -->|"manages teachers"| node_db
node_subject_ui -->|"manages subjects"| node_db
node_schedule_ui -->|"reads and saves"| node_schedules
node_validation -->|"checks conflicts"| node_db
node_classroom_recs -->|"checks room fit"| node_db
node_generator -->|"loads constraints"| node_db
node_export -->|"formats lessons"| node_schedules
node_db -->|"stores"| node_teachers
node_db -->|"stores"| node_groups
node_db -->|"stores"| node_subjects
node_db -->|"stores"| node_rooms
node_db -->|"stores"| node_schedules
node_user -->|"manages classrooms"| node_classroom_ui
node_user -->|"manages teachers"| node_teacher_ui
node_user -->|"manages groups"| node_group_ui
node_user -->|"assigns subjects"| node_group_subject_ui
node_user -->|"manages subjects"| node_subject_ui

click node_schedule_ui "https://github.com/artem56x/schedulesystem/blob/main/Controllers/SchedulesController.cs"
click node_generator_ui "https://github.com/artem56x/schedulesystem/blob/main/Controllers/ScheduleGeneratorController.cs"
click node_classroom_ui "https://github.com/artem56x/schedulesystem/blob/main/Controllers/ClassroomsController.cs"
click node_teacher_ui "https://github.com/artem56x/schedulesystem/blob/main/Controllers/TeachersController.cs"
click node_subject_ui "https://github.com/artem56x/schedulesystem/blob/main/Controllers/SubjectsController.cs"
click node_group_ui "https://github.com/artem56x/schedulesystem/blob/main/Controllers/GroupsController.cs"
click node_group_subject_ui "https://github.com/artem56x/schedulesystem/blob/main/Controllers/GroupSubjectsController.cs"
click node_validation "https://github.com/artem56x/schedulesystem/blob/main/Services/ScheduleValidationService.cs"
click node_classroom_recs "https://github.com/artem56x/schedulesystem/blob/main/Services/ClassroomRecommendationService.cs"
click node_teacher_recs "https://github.com/artem56x/schedulesystem/blob/main/Services/TeacherRecommendationService.cs"
click node_generator "https://github.com/artem56x/schedulesystem/blob/main/Services/ScheduleGeneratorService.cs"
click node_export "https://github.com/artem56x/schedulesystem/blob/main/Services/ScheduleExportService.cs"
click node_teachers "https://github.com/artem56x/schedulesystem/blob/main/Models/Teacher.cs"
click node_groups "https://github.com/artem56x/schedulesystem/blob/main/Models/Group.cs"
click node_subjects "https://github.com/artem56x/schedulesystem/blob/main/Models/Subject.cs"
click node_rooms "https://github.com/artem56x/schedulesystem/blob/main/Models/Classroom.cs"
click node_schedules "https://github.com/artem56x/schedulesystem/blob/main/Models/Schedule.cs"
click node_db "https://github.com/artem56x/schedulesystem/blob/main/Data/ApplicationDbContext.cs"
click node_analytics "https://github.com/artem56x/schedulesystem/blob/main/Controllers/AnalyticsController.cs"
click node_notifications "https://github.com/artem56x/schedulesystem/blob/main/Controllers/NotificationsController.cs"
click node_audit "https://github.com/artem56x/schedulesystem/blob/main/Controllers/AuditLogsController.cs"

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_schedule_ui,node_generator_ui,node_classroom_ui,node_teacher_ui,node_subject_ui,node_group_ui,node_group_subject_ui toneBlue
class node_validation,node_classroom_recs,node_teacher_recs,node_generator,node_export toneAmber
class node_teachers,node_groups,node_subjects,node_rooms,node_schedules toneMint
class node_db toneRose
class node_analytics,node_notifications,node_audit,node_user toneIndigo
```

## Components

### Web workflows

- [Schedule management](https://github.com/artem56x/schedulesystem/blob/main/Controllers/SchedulesController.cs): `Controllers/SchedulesController.cs`
- [Generation workflow](https://github.com/artem56x/schedulesystem/blob/main/Controllers/ScheduleGeneratorController.cs): `Controllers/ScheduleGeneratorController.cs`
- [Classroom management](https://github.com/artem56x/schedulesystem/blob/main/Controllers/ClassroomsController.cs): `Controllers/ClassroomsController.cs`
- [Teacher management](https://github.com/artem56x/schedulesystem/blob/main/Controllers/TeachersController.cs): `Controllers/TeachersController.cs`
- [Subject management](https://github.com/artem56x/schedulesystem/blob/main/Controllers/SubjectsController.cs): `Controllers/SubjectsController.cs`
- [Group management](https://github.com/artem56x/schedulesystem/blob/main/Controllers/GroupsController.cs): `Controllers/GroupsController.cs`
- [Group subjects](https://github.com/artem56x/schedulesystem/blob/main/Controllers/GroupSubjectsController.cs): `Controllers/GroupSubjectsController.cs`

### Schedule planning

- [Conflict validation](https://github.com/artem56x/schedulesystem/blob/main/Services/ScheduleValidationService.cs): `Services/ScheduleValidationService.cs`
- [Room recommendations](https://github.com/artem56x/schedulesystem/blob/main/Services/ClassroomRecommendationService.cs): `Services/ClassroomRecommendationService.cs`
- [Teacher recommendations](https://github.com/artem56x/schedulesystem/blob/main/Services/TeacherRecommendationService.cs): `Services/TeacherRecommendationService.cs`
- [Schedule generator](https://github.com/artem56x/schedulesystem/blob/main/Services/ScheduleGeneratorService.cs): `Services/ScheduleGeneratorService.cs`
- [Schedule export](https://github.com/artem56x/schedulesystem/blob/main/Services/ScheduleExportService.cs): `Services/ScheduleExportService.cs`

### Academic domain

- [Teachers](https://github.com/artem56x/schedulesystem/blob/main/Models/Teacher.cs): `Models/Teacher.cs`
- [Student groups](https://github.com/artem56x/schedulesystem/blob/main/Models/Group.cs): `Models/Group.cs`
- [Subjects and requirements](https://github.com/artem56x/schedulesystem/blob/main/Models/Subject.cs): `Models/Subject.cs`
- [Classrooms and categories](https://github.com/artem56x/schedulesystem/blob/main/Models/Classroom.cs): `Models/Classroom.cs`
- [Timetable lessons](https://github.com/artem56x/schedulesystem/blob/main/Models/Schedule.cs): `Models/Schedule.cs`

### Persistence and identity

- [Application data](https://github.com/artem56x/schedulesystem/blob/main/Data/ApplicationDbContext.cs): `Data/ApplicationDbContext.cs`

### User insights

- [Schedule analytics](https://github.com/artem56x/schedulesystem/blob/main/Controllers/AnalyticsController.cs): `Controllers/AnalyticsController.cs`
- [Notifications](https://github.com/artem56x/schedulesystem/blob/main/Controllers/NotificationsController.cs): `Controllers/NotificationsController.cs`
- [Audit logs](https://github.com/artem56x/schedulesystem/blob/main/Controllers/AuditLogsController.cs): `Controllers/AuditLogsController.cs`

### Other components

- **College staff**

## Connections

- College staff → Schedule management: manages schedules (evidence: `README.md`)
- College staff → Generation workflow: generates schedules (evidence: `README.md`)
- Schedule management → Conflict validation: validates lessons (evidence: `Controllers/SchedulesController.cs`)
- Schedule management → Room recommendations: requests rooms (evidence: `Controllers/SchedulesController.cs`)
- Schedule management → Teacher recommendations: requests teachers (evidence: `Controllers/SchedulesController.cs`)
- Schedule management → Schedule export: creates exports (evidence: `Controllers/SchedulesController.cs`)
- Generation workflow → Schedule generator: generates preview (evidence: `Controllers/ScheduleGeneratorController.cs`)
- Schedule management → Application data: reads and writes (evidence: `Controllers/SchedulesController.cs`)
- Generation workflow → Application data: loads schedule data (evidence: `Controllers/ScheduleGeneratorController.cs`)
- Classroom management → Application data: manages classrooms (evidence: `Controllers/ClassroomsController.cs`)
- Teacher management → Application data: manages teachers (evidence: `Controllers/TeachersController.cs`)
- Subject management → Application data: manages subjects (evidence: `Controllers/SubjectsController.cs`)
- Schedule management → Timetable lessons: reads and saves (evidence: `Controllers/SchedulesController.cs`)
- Conflict validation → Application data: checks conflicts (evidence: `Services/ScheduleValidationService.cs`)
- Room recommendations → Application data: checks room fit (evidence: `Services/ClassroomRecommendationService.cs`)
- Schedule generator → Application data: loads constraints (evidence: `Services/ScheduleGeneratorService.cs`)
- Schedule export → Timetable lessons: formats lessons (evidence: `Services/ScheduleExportService.cs`)
- Application data → Teachers: stores (evidence: `Data/ApplicationDbContext.cs`)
- Application data → Student groups: stores (evidence: `Data/ApplicationDbContext.cs`)
- Application data → Subjects and requirements: stores (evidence: `Data/ApplicationDbContext.cs`)
- Application data → Classrooms and categories: stores (evidence: `Data/ApplicationDbContext.cs`)
- Application data → Timetable lessons: stores (evidence: `Data/ApplicationDbContext.cs`)
- College staff → Classroom management: manages classrooms (evidence: `README.md`)
- College staff → Teacher management: manages teachers (evidence: `README.md`)
- College staff → Group management: manages groups (evidence: `README.md`)
- College staff → Group subjects: assigns subjects (evidence: `README.md`)
- College staff → Subject management: manages subjects (evidence: `README.md`)
