# boldmnx/diplom2026 architecture

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

- Interactive diagram: https://gitdiagram.com/boldmnx/diplom2026
- Repository: https://github.com/boldmnx/diplom2026

## Overview

This is a timetable-management application: users register or sign in, maintain teachers, rooms, class groups and courses, then generate schedules and retrieve them as timetable data or PDF/Excel exports. The backend is Django with SQLite persistence; the listed Next.js pages provide authentication, schedule and data-entry interfaces. Backend URL dispatch and the sampled handler-to-model relationships are visible. Frontend-to-backend wiring is not shown in the source index, so those connections are omitted.

Main entry points: [`timeback/timeapp/views.py`](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/views.py) (Schedule generation), [`timeback/timeapp/viewsForm.py`](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/viewsForm.py) (Catalog service), [`timeback/accounts/views.py`](https://github.com/boldmnx/diplom2026/blob/master/timeback/accounts/views.py) (Account endpoints), [`timeback/timeback/urls.py`](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeback/urls.py) (HTTP routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Accounts"]
  node_account_api["Account endpoints<br/>[views.py]"]
  node_account_forms["Account validation<br/>[forms.py]"]
  node_account_model[("Account records<br/>[models.py]")]
end

subgraph group_catalog["Scheduling data"]
  node_form_api["Catalog service<br/>[viewsForm.py]"]
  node_teachers[("Teacher records<br/>[models.py]")]
  node_rooms[("Room records<br/>[models.py]")]
  node_groups[("Class-group records<br/>[models.py]")]
  node_courses[("Course records<br/>[models.py]")]
end

subgraph group_schedule["Timetable generation"]
  node_schedule_api["Schedule generation<br/>[views.py]"]
  node_schedule_model[("Schedule records<br/>[models.py]")]
  node_exports["PDF and Excel exports<br/>[views.py]"]
end

subgraph group_client["Web interface"]
  node_auth_pages["Auth pages<br/>[page.jsx]"]
  node_register_page["Registration page<br/>[page.jsx]"]
  node_logout_page["Logout page<br/>[page.jsx]"]
  node_catalog_pages["Catalog forms<br/>[page.jsx]"]
  node_room_page["Room form<br/>[page.jsx]"]
  node_group_page["Class form<br/>[page.tsx]"]
  node_course_page["Course form<br/>[page.tsx]"]
  node_schedule_page["Schedule view<br/>[page.jsx]"]
  node_timetable["Timetable display<br/>[Timetable.jsx]"]
  node_teacher_table["Teacher schedule"]
  node_home["Home page<br/>[page.tsx]"]
end

node_user(("User"))
node_routing["HTTP routing<br/>[urls.py]"]
node_sqlite[("SQLite database<br/>[settings.py]")]

node_user -->|"uses"| node_auth_pages
node_user -->|"registers"| node_register_page
node_user -->|"logs out"| node_logout_page
node_account_api -->|"validates"| node_account_forms
node_account_api -->|"reads and writes"| node_account_model
node_routing -->|"routes"| node_account_api
node_routing -->|"routes"| node_form_api
node_routing -->|"routes"| node_schedule_api
node_form_api -->|"manages"| node_teachers
node_form_api -->|"manages"| node_rooms
node_form_api -->|"manages"| node_groups
node_form_api -->|"manages"| node_courses
node_schedule_api -->|"reads"| node_teachers
node_schedule_api -->|"reads"| node_rooms
node_schedule_api -->|"reads"| node_courses
node_schedule_api -->|"uses model"| node_schedule_model
node_schedule_api -->|"serves exports"| node_exports
node_form_api -.->|"persists via ORM"| node_sqlite
node_account_api -.->|"persists via ORM"| node_sqlite
node_schedule_api -.->|"uses ORM"| node_sqlite
node_user -->|"enters data"| node_catalog_pages
node_user -->|"enters rooms"| node_room_page
node_user -->|"enters groups"| node_group_page
node_user -->|"enters courses"| node_course_page
node_user -->|"views schedule"| node_schedule_page
node_user -->|"opens"| node_home

click node_auth_pages "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/auth/signin/page.jsx"
click node_register_page "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/auth/register/page.jsx"
click node_logout_page "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/auth/logout/page.jsx"
click node_account_api "https://github.com/boldmnx/diplom2026/blob/master/timeback/accounts/views.py"
click node_account_forms "https://github.com/boldmnx/diplom2026/blob/master/timeback/accounts/forms.py"
click node_account_model "https://github.com/boldmnx/diplom2026/blob/master/timeback/accounts/models.py"
click node_form_api "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/viewsForm.py"
click node_teachers "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py"
click node_rooms "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py"
click node_groups "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py"
click node_courses "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py"
click node_catalog_pages "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/form/bagsh/page.jsx"
click node_room_page "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/form/room/page.jsx"
click node_group_page "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/form/angi/page.tsx"
click node_course_page "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/form/hicheel/page.tsx"
click node_schedule_api "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/views.py"
click node_schedule_model "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py"
click node_schedule_page "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/huviar/page.jsx"
click node_timetable "https://github.com/boldmnx/diplom2026/blob/master/timefront/components/Timetable.jsx"
click node_teacher_table "https://github.com/boldmnx/diplom2026/blob/master/timefront/components/TeacherScheduleTable.jsx"
click node_exports "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/views.py"
click node_routing "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeback/urls.py"
click node_sqlite "https://github.com/boldmnx/diplom2026/blob/master/timeback/timeback/settings.py"
click node_home "https://github.com/boldmnx/diplom2026/blob/master/timefront/app/page.tsx"

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_account_api,node_account_forms,node_account_model,node_user toneBlue
class node_form_api,node_teachers,node_rooms,node_groups,node_courses,node_sqlite toneAmber
class node_schedule_api,node_schedule_model,node_exports toneMint
class node_auth_pages,node_register_page,node_logout_page,node_catalog_pages,node_room_page,node_group_page,node_course_page,node_schedule_page,node_timetable,node_teacher_table,node_home toneRose
class node_routing toneTeal
```

## Components

### Accounts

- [Account endpoints](https://github.com/boldmnx/diplom2026/blob/master/timeback/accounts/views.py): `timeback/accounts/views.py`
- [Account validation](https://github.com/boldmnx/diplom2026/blob/master/timeback/accounts/forms.py): `timeback/accounts/forms.py`
- [Account records](https://github.com/boldmnx/diplom2026/blob/master/timeback/accounts/models.py): `timeback/accounts/models.py`

### Scheduling data

- [Catalog service](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/viewsForm.py): `timeback/timeapp/viewsForm.py`
- [Teacher records](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py): `timeback/timeapp/models.py`
- [Room records](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py): `timeback/timeapp/models.py`
- [Class-group records](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py): `timeback/timeapp/models.py`
- [Course records](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py): `timeback/timeapp/models.py`

### Timetable generation

- [Schedule generation](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/views.py): `timeback/timeapp/views.py`
- [Schedule records](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/models.py): `timeback/timeapp/models.py`
- [PDF and Excel exports](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeapp/views.py): `timeback/timeapp/views.py`

### Web interface

- [Auth pages](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/auth/signin/page.jsx): `timefront/app/auth/signin/page.jsx`
- [Registration page](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/auth/register/page.jsx): `timefront/app/auth/register/page.jsx`
- [Logout page](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/auth/logout/page.jsx): `timefront/app/auth/logout/page.jsx`
- [Catalog forms](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/form/bagsh/page.jsx): `timefront/app/form/bagsh/page.jsx`
- [Room form](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/form/room/page.jsx): `timefront/app/form/room/page.jsx`
- [Class form](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/form/angi/page.tsx): `timefront/app/form/angi/page.tsx`
- [Course form](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/form/hicheel/page.tsx): `timefront/app/form/hicheel/page.tsx`
- [Schedule view](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/huviar/page.jsx): `timefront/app/huviar/page.jsx`
- [Timetable display](https://github.com/boldmnx/diplom2026/blob/master/timefront/components/Timetable.jsx): `timefront/components/Timetable.jsx`
- [Teacher schedule](https://github.com/boldmnx/diplom2026/blob/master/timefront/components/TeacherScheduleTable.jsx): `timefront/components/TeacherScheduleTable.jsx`
- [Home page](https://github.com/boldmnx/diplom2026/blob/master/timefront/app/page.tsx): `timefront/app/page.tsx`

### Other components

- **User**
- [HTTP routing](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeback/urls.py): `timeback/timeback/urls.py`
- [SQLite database](https://github.com/boldmnx/diplom2026/blob/master/timeback/timeback/settings.py): `timeback/timeback/settings.py`

## Connections

- User → Auth pages: uses
- User → Registration page: registers
- User → Logout page: logs out
- Account endpoints → Account validation: validates (evidence: `timeback/accounts/views.py`)
- Account endpoints → Account records: reads and writes (evidence: `timeback/accounts/views.py`)
- HTTP routing → Account endpoints: routes (evidence: `timeback/timeback/urls.py`)
- HTTP routing → Catalog service: routes (evidence: `timeback/timeback/urls.py`)
- HTTP routing → Schedule generation: routes (evidence: `timeback/timeback/urls.py`)
- Catalog service → Teacher records: manages (evidence: `timeback/timeapp/viewsForm.py`)
- Catalog service → Room records: manages (evidence: `timeback/timeapp/viewsForm.py`)
- Catalog service → Class-group records: manages (evidence: `timeback/timeapp/viewsForm.py`)
- Catalog service → Course records: manages (evidence: `timeback/timeapp/viewsForm.py`)
- Schedule generation → Teacher records: reads (evidence: `timeback/timeapp/views.py`)
- Schedule generation → Room records: reads (evidence: `timeback/timeapp/views.py`)
- Schedule generation → Course records: reads (evidence: `timeback/timeapp/views.py`)
- Schedule generation → Schedule records: uses model (evidence: `timeback/timeapp/views.py`)
- Schedule generation → PDF and Excel exports: serves exports (evidence: `timeback/timeback/urls.py`)
- Catalog service → SQLite database: persists via ORM (evidence: `timeback/timeapp/viewsForm.py`)
- Account endpoints → SQLite database: persists via ORM
- Schedule generation → SQLite database: uses ORM
- User → Catalog forms: enters data
- User → Room form: enters rooms
- User → Class form: enters groups
- User → Course form: enters courses
- User → Schedule view: views schedule
- User → Home page: opens
