# johnbrentcuario/dams architecture

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

- Interactive diagram: https://gitdiagram.com/johnbrentcuario/dams
- Repository: https://github.com/johnbrentcuario/dams

## Overview

DAMS is an internal digital records and archive management system. An administrator creates accounts; staff manage archive folders, required-document lists, physical storage locations, attachments, and separation details, then search records or export reports. Laravel routes dispatch requests to controllers, which query domain models and return Inertia pages or downloads. The graph retains the documented administration, audit, dashboard, and settings capabilities. Edges reflect shown route declarations, controller calls, and model references; unsampled UI and controller behavior limits some frontend links.

Main entry points: [`routes/web.php`](https://github.com/johnbrentcuario/dams/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/ReportsController.php`](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/ReportsController.php) (Report exports), [`app/Http/Controllers/FileController.php`](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/FileController.php) (Archive folders), [`app/Models/File.php`](https://github.com/johnbrentcuario/dams/blob/main/app/Models/File.php) (Folder records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_archive["Archive management"]
  node_files["Archive folders<br/>[FileController.php]"]
  node_filedata[("Folder records<br/>[File.php]")]
  node_lists["Employment types<br/>[ListController.php]"]
  node_listdata[("Type requirements<br/>[FileList.php]")]
  node_locations["Storage locations"]
  node_locationdata[("Location records")]
  node_separation["Separation modes"]
  node_separationdata[("Mode records<br/>[SeparationMode.php]")]
  node_filespage["Folder interface<br/>[index.vue]"]
end

subgraph group_oversight["Search and oversight"]
  node_search["Global search"]
  node_dashboard["Dashboard"]
  node_reports["Report exports"]
  node_activity["Activity log"]
  node_logger["Activity logger<br/>[ActivityLogger.php]"]
  node_logdata[("Audit records<br/>[ActivityLog.php]")]
  node_reportpage["Reports interface<br/>[Index.vue]"]
end

subgraph group_identity["Users and settings"]
  node_users["User administration"]
  node_userdata[("User accounts<br/>[User.php]")]
  node_profile["Profile settings"]
  node_twofactor["Two-factor settings"]
end

subgraph group_platform["Application delivery"]
  node_routes["Web routes<br/>[web.php]"]
  node_inertia["Inertia frontend<br/>[app.ts]"]
  node_mysql[("MySQL")]
end

node_staff(("Staff / admin"))

node_staff -->|"requests"| node_routes
node_routes -->|"dispatches"| node_files
node_routes -->|"dispatches"| node_lists
node_routes -->|"dispatches"| node_locations
node_routes -->|"dispatches"| node_separation
node_routes -->|"dispatches"| node_search
node_routes -->|"dispatches"| node_dashboard
node_routes -->|"dispatches"| node_reports
node_routes -->|"dispatches"| node_activity
node_routes -->|"dispatches"| node_users
node_routes -->|"dispatches"| node_profile
node_routes -->|"dispatches"| node_twofactor
node_files -->|"queries"| node_filedata
node_files -->|"queries"| node_listdata
node_files -->|"queries"| node_locationdata
node_files -->|"queries"| node_separationdata
node_lists -->|"checks completion"| node_filedata
node_lists -->|"manages"| node_listdata
node_locations -->|"manages"| node_locationdata
node_separation -->|"manages"| node_separationdata
node_search -->|"searches"| node_filedata
node_search -->|"searches"| node_locationdata
node_search -->|"searches"| node_separationdata
node_search -->|"searches"| node_userdata
node_dashboard -->|"summarizes"| node_filedata
node_dashboard -->|"summarizes"| node_listdata
node_dashboard -->|"summarizes"| node_locationdata
node_dashboard -->|"summarizes"| node_separationdata
node_reports -->|"queries"| node_filedata
node_reports -->|"queries"| node_listdata
node_reports -->|"queries"| node_locationdata
node_reports -->|"queries"| node_separationdata
node_reports -->|"queries"| node_logdata
node_reports -->|"queries"| node_userdata
node_activity -->|"reads"| node_logdata
node_files -->|"records changes"| node_logger
node_logger -->|"writes"| node_logdata
node_users -->|"manages"| node_userdata
node_profile -->|"records changes"| node_logger
node_profile -->|"updates"| node_userdata
node_twofactor -->|"configures"| node_userdata
node_files -->|"renders"| node_filespage
node_reports -->|"renders"| node_reportpage
node_inertia -.->|"displays"| node_filespage
node_filedata -.->|"persists in"| node_mysql
node_listdata -.->|"persists in"| node_mysql
node_locationdata -.->|"persists in"| node_mysql
node_separationdata -.->|"persists in"| node_mysql

click node_routes "https://github.com/johnbrentcuario/dams/blob/main/routes/web.php"
click node_files "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/FileController.php"
click node_filedata "https://github.com/johnbrentcuario/dams/blob/main/app/Models/File.php"
click node_lists "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/ListController.php"
click node_listdata "https://github.com/johnbrentcuario/dams/blob/main/app/Models/FileList.php"
click node_locations "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/PhysicalLocationController.php"
click node_locationdata "https://github.com/johnbrentcuario/dams/blob/main/app/Models/PhysicalLocation.php"
click node_separation "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/SeparationModesController.php"
click node_separationdata "https://github.com/johnbrentcuario/dams/blob/main/app/Models/SeparationMode.php"
click node_search "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/GlobalSearchController.php"
click node_dashboard "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/DashboardController.php"
click node_reports "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/ReportsController.php"
click node_activity "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/ActivityLogController.php"
click node_logger "https://github.com/johnbrentcuario/dams/blob/main/app/Services/ActivityLogger.php"
click node_logdata "https://github.com/johnbrentcuario/dams/blob/main/app/Models/ActivityLog.php"
click node_users "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/UsersController.php"
click node_userdata "https://github.com/johnbrentcuario/dams/blob/main/app/Models/User.php"
click node_profile "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/Settings/ProfileController.php"
click node_twofactor "https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/Settings/TwoFactorAuthenticationController.php"
click node_inertia "https://github.com/johnbrentcuario/dams/blob/main/resources/js/app.ts"
click node_filespage "https://github.com/johnbrentcuario/dams/blob/main/resources/js/pages/files/index.vue"
click node_reportpage "https://github.com/johnbrentcuario/dams/blob/main/resources/js/pages/Reports/Index.vue"

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_files,node_filedata,node_lists,node_listdata,node_locations,node_locationdata,node_separation,node_separationdata,node_filespage toneBlue
class node_search,node_dashboard,node_reports,node_activity,node_logger,node_logdata,node_reportpage toneAmber
class node_users,node_userdata,node_profile,node_twofactor toneMint
class node_routes,node_inertia,node_mysql toneRose
class node_staff toneIndigo
```

## Components

### Archive management

- [Archive folders](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/FileController.php): `app/Http/Controllers/FileController.php`
- [Folder records](https://github.com/johnbrentcuario/dams/blob/main/app/Models/File.php): `app/Models/File.php`
- [Employment types](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/ListController.php): `app/Http/Controllers/ListController.php`
- [Type requirements](https://github.com/johnbrentcuario/dams/blob/main/app/Models/FileList.php): `app/Models/FileList.php`
- [Storage locations](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/PhysicalLocationController.php): `app/Http/Controllers/PhysicalLocationController.php`
- [Location records](https://github.com/johnbrentcuario/dams/blob/main/app/Models/PhysicalLocation.php): `app/Models/PhysicalLocation.php`
- [Separation modes](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/SeparationModesController.php): `app/Http/Controllers/SeparationModesController.php`
- [Mode records](https://github.com/johnbrentcuario/dams/blob/main/app/Models/SeparationMode.php): `app/Models/SeparationMode.php`
- [Folder interface](https://github.com/johnbrentcuario/dams/blob/main/resources/js/pages/files/index.vue): `resources/js/pages/files/index.vue`

### Search and oversight

- [Global search](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/GlobalSearchController.php): `app/Http/Controllers/GlobalSearchController.php`
- [Dashboard](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Report exports](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/ReportsController.php): `app/Http/Controllers/ReportsController.php`
- [Activity log](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/ActivityLogController.php): `app/Http/Controllers/ActivityLogController.php`
- [Activity logger](https://github.com/johnbrentcuario/dams/blob/main/app/Services/ActivityLogger.php): `app/Services/ActivityLogger.php`
- [Audit records](https://github.com/johnbrentcuario/dams/blob/main/app/Models/ActivityLog.php): `app/Models/ActivityLog.php`
- [Reports interface](https://github.com/johnbrentcuario/dams/blob/main/resources/js/pages/Reports/Index.vue): `resources/js/pages/Reports/Index.vue`

### Users and settings

- [User administration](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/UsersController.php): `app/Http/Controllers/UsersController.php`
- [User accounts](https://github.com/johnbrentcuario/dams/blob/main/app/Models/User.php): `app/Models/User.php`
- [Profile settings](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/Settings/ProfileController.php): `app/Http/Controllers/Settings/ProfileController.php`
- [Two-factor settings](https://github.com/johnbrentcuario/dams/blob/main/app/Http/Controllers/Settings/TwoFactorAuthenticationController.php): `app/Http/Controllers/Settings/TwoFactorAuthenticationController.php`

### Application delivery

- [Web routes](https://github.com/johnbrentcuario/dams/blob/main/routes/web.php): `routes/web.php`
- [Inertia frontend](https://github.com/johnbrentcuario/dams/blob/main/resources/js/app.ts): `resources/js/app.ts`
- **MySQL**

### Other components

- **Staff / admin**

## Connections

- Staff / admin → Web routes: requests (evidence: `routes/web.php`)
- Web routes → Archive folders: dispatches (evidence: `routes/web.php`)
- Web routes → Employment types: dispatches (evidence: `routes/web.php`)
- Web routes → Storage locations: dispatches (evidence: `routes/web.php`)
- Web routes → Separation modes: dispatches (evidence: `routes/web.php`)
- Web routes → Global search: dispatches (evidence: `routes/web.php`)
- Web routes → Dashboard: dispatches (evidence: `routes/web.php`)
- Web routes → Report exports: dispatches (evidence: `routes/web.php`)
- Web routes → Activity log: dispatches (evidence: `routes/web.php`)
- Web routes → User administration: dispatches (evidence: `routes/web.php`)
- Web routes → Profile settings: dispatches
- Web routes → Two-factor settings: dispatches
- Archive folders → Folder records: queries (evidence: `app/Http/Controllers/FileController.php`)
- Archive folders → Type requirements: queries (evidence: `app/Http/Controllers/FileController.php`)
- Archive folders → Location records: queries (evidence: `app/Http/Controllers/FileController.php`)
- Archive folders → Mode records: queries (evidence: `app/Http/Controllers/FileController.php`)
- Employment types → Folder records: checks completion (evidence: `app/Http/Controllers/ListController.php`)
- Employment types → Type requirements: manages (evidence: `app/Http/Controllers/ListController.php`)
- Storage locations → Location records: manages (evidence: `app/Http/Controllers/PhysicalLocationController.php`)
- Separation modes → Mode records: manages (evidence: `app/Http/Controllers/SeparationModesController.php`)
- Global search → Folder records: searches (evidence: `app/Http/Controllers/GlobalSearchController.php`)
- Global search → Location records: searches (evidence: `app/Http/Controllers/GlobalSearchController.php`)
- Global search → Mode records: searches (evidence: `app/Http/Controllers/GlobalSearchController.php`)
- Global search → User accounts: searches (evidence: `app/Http/Controllers/GlobalSearchController.php`)
- Dashboard → Folder records: summarizes (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard → Type requirements: summarizes (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard → Location records: summarizes (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard → Mode records: summarizes (evidence: `app/Http/Controllers/DashboardController.php`)
- Report exports → Folder records: queries (evidence: `app/Http/Controllers/ReportsController.php`)
- Report exports → Type requirements: queries (evidence: `app/Http/Controllers/ReportsController.php`)
- Report exports → Location records: queries (evidence: `app/Http/Controllers/ReportsController.php`)
- Report exports → Mode records: queries (evidence: `app/Http/Controllers/ReportsController.php`)
- Report exports → Audit records: queries (evidence: `app/Http/Controllers/ReportsController.php`)
- Report exports → User accounts: queries (evidence: `app/Http/Controllers/ReportsController.php`)
- Activity log → Audit records: reads (evidence: `app/Http/Controllers/ActivityLogController.php`)
- Archive folders → Activity logger: records changes (evidence: `app/Http/Controllers/FileController.php`)
- Activity logger → Audit records: writes (evidence: `app/Services/ActivityLogger.php`)
- User administration → User accounts: manages (evidence: `app/Http/Controllers/UsersController.php`)
- Profile settings → Activity logger: records changes (evidence: `app/Http/Controllers/Settings/ProfileController.php`)
- Profile settings → User accounts: updates (evidence: `app/Http/Controllers/Settings/ProfileController.php`)
- Two-factor settings → User accounts: configures (evidence: `app/Http/Controllers/Settings/TwoFactorAuthenticationController.php`)
- Archive folders → Folder interface: renders (evidence: `app/Http/Controllers/FileController.php`)
- Report exports → Reports interface: renders (evidence: `app/Http/Controllers/ReportsController.php`)
- Inertia frontend → Folder interface: displays
- Folder records → MySQL: persists in
- Type requirements → MySQL: persists in
- Location records → MySQL: persists in
- Mode records → MySQL: persists in
