# resitasrav/booklab-system architecture

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

- Interactive diagram: https://gitdiagram.com/resitasrav/booklab-system
- Repository: https://github.com/resitasrav/booklab-system

## Overview

BookLab is a Django laboratory reservation and administration system. Users register and verify their email, browse laboratories and devices, create or manage reservations, and view schedules; staff administer accounts, bookings, equipment faults, and announcements. The graph separates these domain areas from shared forms, models, and helpers. README capabilities include calendar views, PDF reports, bulk booking and CSV export. Source excerpts are partial, so unsampled subsystems are included where documented, but only evidenced relationships are drawn.

Main entry points: [`rezervasyon/views.py`](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views.py) (View gateway), [`rezervasyon/models.py`](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/models.py) (Booking domain), [`rezervasyon/views_auth.py`](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_auth.py) (Authentication), [`rezervasyon/views_randevu.py`](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_randevu.py) (Booking and reports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and discovery"]
  node_routes["URL routing<br/>[urls.py]"]
  node_view_gateway["View gateway<br/>[views.py]"]
  node_authentication["Authentication<br/>[views_auth.py]"]
  node_public_pages["Lab discovery<br/>[views_public.py]"]
end

subgraph group_reservations["Reservations and calendars"]
  node_booking["Booking and reports<br/>[views_randevu.py]"]
  node_calendar["Calendar views<br/>[views_calendar.py]"]
  node_profile["Profile management<br/>[views_profile.py]"]
end

subgraph group_operations["Management operations"]
  node_management["Staff operations"]
  node_attendance_task["Auto attendance<br/>[otomatik_geldi.py]"]
end

subgraph group_administration["Admin workspace"]
  node_admin_users["User administration<br/>[admin_kullanici.py]"]
  node_admin_labs["Lab administration"]
  node_admin_bookings["Booking administration<br/>[admin_randevu.py]"]
  node_admin_faults["Faults and notices"]
  node_admin_helpers["Admin actions<br/>[admin_helpers.py]"]
end

subgraph group_domain["Shared domain layer"]
  node_forms["Validation forms<br/>[forms.py]"]
  node_models[("Booking domain<br/>[models.py]")]
  node_view_helpers["Booking helpers<br/>[view_helpers.py]"]
  node_pdf["PDF rendering<br/>[utils.py]"]
end

node_user(("User"))

node_user -->|"opens pages"| node_routes
node_routes -->|"routes requests"| node_view_gateway
node_view_gateway -->|"re-exports"| node_authentication
node_view_gateway -->|"re-exports"| node_public_pages
node_view_gateway -->|"re-exports"| node_booking
node_view_gateway -->|"re-exports"| node_calendar
node_view_gateway -->|"re-exports"| node_profile
node_view_gateway -->|"re-exports"| node_management
node_authentication -->|"uses forms"| node_forms
node_authentication -->|"uses helpers"| node_view_helpers
node_authentication -->|"creates profiles"| node_models
node_public_pages -->|"reads records"| node_models
node_booking -->|"creates bookings"| node_models
node_booking -->|"rounds time"| node_view_helpers
node_booking -->|"renders report"| node_pdf
node_calendar -->|"reads events"| node_models
node_profile -->|"uses forms"| node_forms
node_profile -->|"updates profile"| node_models
node_management -->|"manages records"| node_models
node_management -->|"uses forms"| node_forms
node_attendance_task -->|"runs attendance"| node_view_helpers
node_admin_users -->|"uses actions"| node_admin_helpers
node_admin_labs -->|"uses actions"| node_admin_helpers
node_admin_bookings -->|"uses actions"| node_admin_helpers
node_admin_faults -->|"uses actions"| node_admin_helpers
node_forms -->|"validates models"| node_models
node_view_helpers -->|"checks overlap"| node_models

click node_routes "https://github.com/resitasrav/booklab-system/blob/main/lab_sistemi/urls.py"
click node_view_gateway "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views.py"
click node_authentication "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_auth.py"
click node_public_pages "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_public.py"
click node_booking "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_randevu.py"
click node_calendar "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_calendar.py"
click node_profile "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_profile.py"
click node_management "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_management.py"
click node_attendance_task "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/management/commands/otomatik_geldi.py"
click node_admin_users "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_kullanici.py"
click node_admin_labs "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_laboratuvar.py"
click node_admin_bookings "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_randevu.py"
click node_admin_faults "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_ariza_duyuru.py"
click node_admin_helpers "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_helpers.py"
click node_forms "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/forms.py"
click node_models "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/models.py"
click node_view_helpers "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/view_helpers.py"
click node_pdf "https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/utils.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_routes,node_view_gateway,node_authentication,node_public_pages,node_user toneBlue
class node_booking,node_calendar,node_profile toneAmber
class node_management,node_attendance_task toneMint
class node_admin_users,node_admin_labs,node_admin_bookings,node_admin_faults,node_admin_helpers toneRose
class node_forms,node_models,node_view_helpers,node_pdf toneIndigo
```

## Components

### Access and discovery

- [URL routing](https://github.com/resitasrav/booklab-system/blob/main/lab_sistemi/urls.py): `lab_sistemi/urls.py`
- [View gateway](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views.py): `rezervasyon/views.py`
- [Authentication](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_auth.py): `rezervasyon/views_auth.py`
- [Lab discovery](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_public.py): `rezervasyon/views_public.py`

### Reservations and calendars

- [Booking and reports](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_randevu.py): `rezervasyon/views_randevu.py`
- [Calendar views](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_calendar.py): `rezervasyon/views_calendar.py`
- [Profile management](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_profile.py): `rezervasyon/views_profile.py`

### Management operations

- [Staff operations](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/views_management.py): `rezervasyon/views_management.py`
- [Auto attendance](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/management/commands/otomatik_geldi.py): `rezervasyon/management/commands/otomatik_geldi.py`

### Admin workspace

- [User administration](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_kullanici.py): `rezervasyon/admin_kullanici.py`
- [Lab administration](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_laboratuvar.py): `rezervasyon/admin_laboratuvar.py`
- [Booking administration](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_randevu.py): `rezervasyon/admin_randevu.py`
- [Faults and notices](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_ariza_duyuru.py): `rezervasyon/admin_ariza_duyuru.py`
- [Admin actions](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/admin_helpers.py): `rezervasyon/admin_helpers.py`

### Shared domain layer

- [Validation forms](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/forms.py): `rezervasyon/forms.py`
- [Booking domain](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/models.py): `rezervasyon/models.py`
- [Booking helpers](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/view_helpers.py): `rezervasyon/view_helpers.py`
- [PDF rendering](https://github.com/resitasrav/booklab-system/blob/main/rezervasyon/utils.py): `rezervasyon/utils.py`

### Other components

- **User**

## Connections

- User → URL routing: opens pages (evidence: `README.md`)
- URL routing → View gateway: routes requests (evidence: `lab_sistemi/urls.py`)
- View gateway → Authentication: re-exports (evidence: `rezervasyon/views.py`)
- View gateway → Lab discovery: re-exports (evidence: `rezervasyon/views.py`)
- View gateway → Booking and reports: re-exports (evidence: `rezervasyon/views.py`)
- View gateway → Calendar views: re-exports (evidence: `rezervasyon/views.py`)
- View gateway → Profile management: re-exports (evidence: `rezervasyon/views.py`)
- View gateway → Staff operations: re-exports (evidence: `rezervasyon/views.py`)
- Authentication → Validation forms: uses forms (evidence: `rezervasyon/views_auth.py`)
- Authentication → Booking helpers: uses helpers (evidence: `rezervasyon/views_auth.py`)
- Authentication → Booking domain: creates profiles (evidence: `rezervasyon/views_auth.py`)
- Lab discovery → Booking domain: reads records (evidence: `rezervasyon/views_public.py`)
- Booking and reports → Booking domain: creates bookings (evidence: `rezervasyon/views_randevu.py`)
- Booking and reports → Booking helpers: rounds time (evidence: `rezervasyon/views_randevu.py`)
- Booking and reports → PDF rendering: renders report (evidence: `rezervasyon/views_randevu.py`)
- Calendar views → Booking domain: reads events (evidence: `rezervasyon/views_calendar.py`)
- Profile management → Validation forms: uses forms (evidence: `rezervasyon/views_profile.py`)
- Profile management → Booking domain: updates profile (evidence: `rezervasyon/views_profile.py`)
- Staff operations → Booking domain: manages records (evidence: `rezervasyon/views_management.py`)
- Staff operations → Validation forms: uses forms (evidence: `rezervasyon/views_management.py`)
- Auto attendance → Booking helpers: runs attendance (evidence: `rezervasyon/management/commands/otomatik_geldi.py`)
- User administration → Admin actions: uses actions (evidence: `rezervasyon/admin_kullanici.py`)
- Lab administration → Admin actions: uses actions (evidence: `rezervasyon/admin_laboratuvar.py`)
- Booking administration → Admin actions: uses actions (evidence: `rezervasyon/admin_randevu.py`)
- Faults and notices → Admin actions: uses actions (evidence: `rezervasyon/admin_ariza_duyuru.py`)
- Validation forms → Booking domain: validates models (evidence: `rezervasyon/forms.py`)
- Booking helpers → Booking domain: checks overlap (evidence: `rezervasyon/view_helpers.py`)
