# gf-elite/catatan_masuk_kerja architecture

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

- Interactive diagram: https://gitdiagram.com/gf-elite/catatan_masuk_kerja
- Repository: https://github.com/gf-elite/catatan_masuk_kerja

## Overview

KerjaKu is a small PHP workday-tracking app. Users add or edit a dated shift record, save it to MySQL, review monthly attendance and hours, and export that month as an Excel workbook. The graph follows the handlers that own each database operation; shared configuration supplies the database connection and session/security helpers. The README is empty, so capabilities and relationships are based on the shown PHP source; the schema details were not sampled.

Main entry points: [`database.sql`](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/database.sql) (Work records), [`config.php`](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/config.php) (DB and session helpers), [`Index.php`](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/Index.php) (Monthly history and totals), [`form.php`](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/form.php) (Entry form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflows["Workday tracking"]
  node_monthly["Monthly history and totals<br/>[Index.php]"]
  node_entry["Entry form<br/>[form.php]"]
  node_save["Validate and save<br/>[save.php]"]
  node_delete["Delete record<br/>[delete.php]"]
end

subgraph group_shared["Shared services"]
  node_records[("Work records<br/>[database.sql]")]
  node_config["DB and session helpers<br/>[config.php]"]
end

subgraph group_exports["Excel export"]
  node_export["Excel workbook download<br/>[export.php]"]
end

node_worker(("Worker"))

node_worker -->|"views month"| node_monthly
node_monthly -->|"queries month"| node_records
node_worker -->|"enters record"| node_entry
node_entry -->|"loads edit"| node_records
node_entry -->|"submits form"| node_save
node_save -->|"inserts or updates"| node_records
node_monthly -->|"posts deletion"| node_delete
node_delete -->|"deletes record"| node_records
node_worker -->|"requests export"| node_export
node_export -->|"queries month"| node_records
node_export -->|"downloads XLSX"| node_worker
node_monthly -->|"uses helpers"| node_config
node_entry -->|"uses helpers"| node_config
node_save -->|"uses helpers"| node_config
node_delete -->|"uses helpers"| node_config
node_export -->|"uses database"| node_config

click node_monthly "https://github.com/gf-elite/catatan_masuk_kerja/blob/main/Index.php"
click node_entry "https://github.com/gf-elite/catatan_masuk_kerja/blob/main/form.php"
click node_save "https://github.com/gf-elite/catatan_masuk_kerja/blob/main/save.php"
click node_delete "https://github.com/gf-elite/catatan_masuk_kerja/blob/main/delete.php"
click node_records "https://github.com/gf-elite/catatan_masuk_kerja/blob/main/database.sql"
click node_config "https://github.com/gf-elite/catatan_masuk_kerja/blob/main/config.php"
click node_export "https://github.com/gf-elite/catatan_masuk_kerja/blob/main/export.php"

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_monthly,node_entry,node_save,node_delete toneBlue
class node_records,node_config toneAmber
class node_export toneMint
class node_worker toneRose
```

## Components

### Workday tracking

- [Monthly history and totals](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/Index.php): `Index.php`
- [Entry form](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/form.php): `form.php`
- [Validate and save](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/save.php): `save.php`
- [Delete record](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/delete.php): `delete.php`

### Shared services

- [Work records](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/database.sql): `database.sql`
- [DB and session helpers](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/config.php): `config.php`

### Excel export

- [Excel workbook download](https://github.com/gf-elite/catatan_masuk_kerja/blob/main/export.php): `export.php`

### Other components

- **Worker**

## Connections

- Worker → Monthly history and totals: views month (evidence: `Index.php`)
- Monthly history and totals → Work records: queries month (evidence: `Index.php`)
- Worker → Entry form: enters record
- Entry form → Work records: loads edit (evidence: `form.php`)
- Entry form → Validate and save: submits form (evidence: `form.php`)
- Validate and save → Work records: inserts or updates (evidence: `save.php`)
- Monthly history and totals → Delete record: posts deletion (evidence: `Index.php`)
- Delete record → Work records: deletes record (evidence: `delete.php`)
- Worker → Excel workbook download: requests export
- Excel workbook download → Work records: queries month (evidence: `export.php`)
- Excel workbook download → Worker: downloads XLSX (evidence: `export.php`)
- Monthly history and totals → DB and session helpers: uses helpers (evidence: `Index.php`)
- Entry form → DB and session helpers: uses helpers (evidence: `form.php`)
- Validate and save → DB and session helpers: uses helpers (evidence: `save.php`)
- Delete record → DB and session helpers: uses helpers (evidence: `delete.php`)
- Excel workbook download → DB and session helpers: uses database (evidence: `export.php`)
