# tijartaufikrahman/employee-shift-scheduling-ga-web architecture

> Architecture diagram of the GitHub repository tijartaufikrahman/employee-shift-scheduling-ga-web, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tijartaufikrahman/employee-shift-scheduling-ga-web
- Repository: https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web

## Overview

SisJad is an ASP.NET Core MVC employee-shift scheduling application. Employees submit leave requests and view schedules; administrators manage staff, shifts, approvals, announcements, and schedule generation. The documented scheduling workflow applies leave and operational constraints in a genetic-algorithm service, persists schedules, and supports PDF export and public QR verification. The graph combines related domain entities and repository implementations; unsampled controller behavior is represented only where the README documents it. Edges are limited to relationships visible in indexed source or explicitly described in the README.

Main entry points: [`SistemPenjadwalanShiftGA/Repositories`](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/tree/main/SistemPenjadwalanShiftGA/Repositories) (Operational repositories), [`SistemPenjadwalanShiftGA/Controllers/ScheduleController.cs`](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/ScheduleController.cs) (Schedule workflow), [`SistemPenjadwalanShiftGA/Repositories/ScheduleRepository.cs`](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Repositories/ScheduleRepository.cs) (Schedule repository), [`SistemPenjadwalanShiftGA/Services/AuthService.cs`](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/AuthService.cs) (Authentication service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflows"]
  node_account["Account access"]
  node_auth["Authentication service<br/>[AuthService.cs]"]
  node_employee_views["Employee portal<br/>[HomeController.cs]"]
  node_leave["Leave requests"]
end

subgraph group_scheduling["Scheduling"]
  node_schedule_ui["Schedule workflow"]
  node_ga["Genetic optimizer<br/>[ScheduleService.cs]"]
  node_schedule_store["Schedule repository"]
  node_pdf["PDF export"]
  node_verify["QR verification"]
end

subgraph group_operations["Operations"]
  node_admin_ops["Admin operations<br/>[AdminController.cs]"]
  node_announcements["Announcements"]
  node_employee_admin["Employee management"]
  node_shift_admin["Shift configuration"]
  node_email["Email service<br/>[EmailService.cs]"]
end

subgraph group_data["Domain and persistence"]
  node_domain["Scheduling and workforce entities"]
  node_db[("EF Core context<br/>[AppDbContext.cs]")]
  node_repositories["Operational repositories"]
end

node_employee(("Employee"))
node_admin(("Admin or manager"))
node_visitor(("Public visitor"))

node_employee -->|"signs in"| node_account
node_account -->|"authenticates"| node_auth
node_auth -->|"looks up users"| node_repositories
node_auth -->|"sends reset email"| node_email
node_employee -->|"views portal"| node_employee_views
node_employee_views -->|"loads portal data"| node_repositories
node_employee -->|"submits request"| node_leave
node_admin -->|"reviews request"| node_leave
node_leave -->|"stores requests"| node_repositories
node_admin -->|"manages operations"| node_admin_ops
node_admin_ops -->|"manages records"| node_repositories
node_admin -->|"publishes notices"| node_announcements
node_employee -->|"reads notices"| node_announcements
node_admin -->|"manages staff"| node_employee_admin
node_admin -->|"configures shifts"| node_shift_admin
node_admin -->|"generates schedule"| node_schedule_ui
node_employee -->|"views schedule"| node_schedule_ui
node_schedule_ui -->|"requests generation"| node_ga
node_schedule_ui -->|"reads and saves"| node_schedule_store
node_schedule_ui -->|"exports schedule"| node_pdf
node_ga -->|"loads staff, shifts, leave"| node_repositories
node_ga -->|"persists generated schedule"| node_schedule_store
node_pdf -->|"loads schedule data"| node_schedule_store
node_pdf -->|"links QR to portal"| node_verify
node_visitor -->|"checks QR code"| node_verify
node_repositories -->|"queries and updates"| node_db
node_schedule_store -->|"queries and updates"| node_db
node_db -->|"maps entities"| node_domain

click node_account "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/AccountController.cs"
click node_auth "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/AuthService.cs"
click node_employee_views "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/HomeController.cs"
click node_leave "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/LeaveRequestController.cs"
click node_admin_ops "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/AdminController.cs"
click node_announcements "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/AnnouncementController.cs"
click node_employee_admin "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/EmployeeController.cs"
click node_shift_admin "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/ShiftTypeController.cs"
click node_schedule_ui "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/ScheduleController.cs"
click node_ga "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/ScheduleService.cs"
click node_schedule_store "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Repositories/ScheduleRepository.cs"
click node_pdf "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/PdfExportService.cs"
click node_verify "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/VerifyController.cs"
click node_domain "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/tree/main/SistemPenjadwalanShiftGA/Models/Entities"
click node_db "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Data/AppDbContext.cs"
click node_repositories "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/tree/main/SistemPenjadwalanShiftGA/Repositories"
click node_email "https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/EmailService.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_account,node_auth,node_employee_views,node_leave toneBlue
class node_schedule_ui,node_ga,node_schedule_store,node_pdf,node_verify toneAmber
class node_admin_ops,node_announcements,node_employee_admin,node_shift_admin,node_email toneMint
class node_domain,node_db,node_repositories toneRose
class node_employee,node_admin,node_visitor toneIndigo
```

## Components

### Web workflows

- [Account access](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/AccountController.cs): `SistemPenjadwalanShiftGA/Controllers/AccountController.cs`
- [Authentication service](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/AuthService.cs): `SistemPenjadwalanShiftGA/Services/AuthService.cs`
- [Employee portal](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/HomeController.cs): `SistemPenjadwalanShiftGA/Controllers/HomeController.cs`
- [Leave requests](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/LeaveRequestController.cs): `SistemPenjadwalanShiftGA/Controllers/LeaveRequestController.cs`

### Scheduling

- [Schedule workflow](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/ScheduleController.cs): `SistemPenjadwalanShiftGA/Controllers/ScheduleController.cs`
- [Genetic optimizer](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/ScheduleService.cs): `SistemPenjadwalanShiftGA/Services/ScheduleService.cs`
- [Schedule repository](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Repositories/ScheduleRepository.cs): `SistemPenjadwalanShiftGA/Repositories/ScheduleRepository.cs`
- [PDF export](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/PdfExportService.cs): `SistemPenjadwalanShiftGA/Services/PdfExportService.cs`
- [QR verification](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/VerifyController.cs): `SistemPenjadwalanShiftGA/Controllers/VerifyController.cs`

### Operations

- [Admin operations](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/AdminController.cs): `SistemPenjadwalanShiftGA/Controllers/AdminController.cs`
- [Announcements](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/AnnouncementController.cs): `SistemPenjadwalanShiftGA/Controllers/AnnouncementController.cs`
- [Employee management](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/EmployeeController.cs): `SistemPenjadwalanShiftGA/Controllers/EmployeeController.cs`
- [Shift configuration](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Controllers/ShiftTypeController.cs): `SistemPenjadwalanShiftGA/Controllers/ShiftTypeController.cs`
- [Email service](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Services/EmailService.cs): `SistemPenjadwalanShiftGA/Services/EmailService.cs`

### Domain and persistence

- [Scheduling and workforce entities](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/tree/main/SistemPenjadwalanShiftGA/Models/Entities): `SistemPenjadwalanShiftGA/Models/Entities`
- [EF Core context](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/blob/main/SistemPenjadwalanShiftGA/Data/AppDbContext.cs): `SistemPenjadwalanShiftGA/Data/AppDbContext.cs`
- [Operational repositories](https://github.com/tijartaufikrahman/employee-shift-scheduling-ga-web/tree/main/SistemPenjadwalanShiftGA/Repositories): `SistemPenjadwalanShiftGA/Repositories`

### Other components

- **Employee**
- **Admin or manager**
- **Public visitor**

## Connections

- Employee → Account access: signs in
- Account access → Authentication service: authenticates (evidence: `SistemPenjadwalanShiftGA/Controllers/AccountController.cs`)
- Authentication service → Operational repositories: looks up users (evidence: `SistemPenjadwalanShiftGA/Services/AuthService.cs`)
- Authentication service → Email service: sends reset email (evidence: `SistemPenjadwalanShiftGA/Services/AuthService.cs`)
- Employee → Employee portal: views portal
- Employee portal → Operational repositories: loads portal data (evidence: `SistemPenjadwalanShiftGA/Controllers/HomeController.cs`)
- Employee → Leave requests: submits request
- Admin or manager → Leave requests: reviews request
- Leave requests → Operational repositories: stores requests (evidence: `SistemPenjadwalanShiftGA/Controllers/LeaveRequestController.cs`)
- Admin or manager → Admin operations: manages operations
- Admin operations → Operational repositories: manages records (evidence: `SistemPenjadwalanShiftGA/Controllers/AdminController.cs`)
- Admin or manager → Announcements: publishes notices
- Employee → Announcements: reads notices
- Admin or manager → Employee management: manages staff
- Admin or manager → Shift configuration: configures shifts
- Admin or manager → Schedule workflow: generates schedule
- Employee → Schedule workflow: views schedule
- Schedule workflow → Genetic optimizer: requests generation (evidence: `SistemPenjadwalanShiftGA/Controllers/ScheduleController.cs`)
- Schedule workflow → Schedule repository: reads and saves (evidence: `SistemPenjadwalanShiftGA/Controllers/ScheduleController.cs`)
- Schedule workflow → PDF export: exports schedule (evidence: `SistemPenjadwalanShiftGA/Controllers/ScheduleController.cs`)
- Genetic optimizer → Operational repositories: loads staff, shifts, leave (evidence: `SistemPenjadwalanShiftGA/Services/ScheduleService.cs`)
- Genetic optimizer → Schedule repository: persists generated schedule (evidence: `SistemPenjadwalanShiftGA/Services/ScheduleService.cs`)
- PDF export → Schedule repository: loads schedule data (evidence: `SistemPenjadwalanShiftGA/Services/PdfExportService.cs`)
- PDF export → QR verification: links QR to portal
- Public visitor → QR verification: checks QR code
- Operational repositories → EF Core context: queries and updates (evidence: `SistemPenjadwalanShiftGA/Repositories/LeaveRequestRepository.cs`)
- Schedule repository → EF Core context: queries and updates (evidence: `SistemPenjadwalanShiftGA/Repositories/ScheduleRepository.cs`)
- EF Core context → Scheduling and workforce entities: maps entities (evidence: `SistemPenjadwalanShiftGA/Data/AppDbContext.cs`)
