# projetointegradorgrupo-1/projetointegrador architecture

> Architecture diagram of the GitHub repository projetointegradorgrupo-1/projetointegrador, 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/projetointegradorgrupo-1/projetointegrador
- Repository: https://github.com/projetointegradorgrupo-1/projetointegrador

## Overview

Axion is a web-based vehicle checklist manager. The visible workflow is login, choose an operation, then create a checklist or register a vehicle; the sampled PHP handlers persist users, vehicles, and checklist headers in MySQL. The README also describes inspection responses, evidence, and history, but the tree contains no apparent fill-checklist handler or persistence module, so those capabilities are shown only as documented and their runtime links remain unverified.

Main entry points: [`conexao.php`](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/conexao.php) (Axion MySQL), [`processar_opcao.php`](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_opcao.php) (Option router), [`processar_login.php`](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_login.php) (Authenticate), [`oqfazer.php`](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/oqfazer.php) (Action menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and navigation"]
  node_login_ui["Login form<br/>[index.html]"]
  node_login["Authenticate"]
  node_menu["Action menu<br/>[oqfazer.php]"]
  node_dispatch["Option router"]
  node_logout["End session<br/>[logout.php]"]
  node_recovery_form["Recovery form<br/>[esqueciSenha.html]"]
  node_recovery["Recover account"]
end

subgraph group_fleet["Fleet and checklist management"]
  node_user_forms["User forms<br/>[caduser.html]"]
  node_user_create["Create user"]
  node_role_user_create["Role registrations"]
  node_driver_create["Register driver"]
  node_supervisor_create["Register supervisor"]
  node_vehicle_form["Vehicle form<br/>[cadcar.html]"]
  node_vehicle_create["Register vehicle"]
  node_checklist_form["Checklist form"]
  node_checklist_create["Create checklist"]
  node_inspection["Perform inspection"]
end

subgraph group_storage["Persistence"]
  node_database[("Axion MySQL<br/>[conexao.php]")]
end

node_operator(("User"))

node_operator -->|"opens"| node_login_ui
node_login_ui -.->|"submits"| node_login
node_login -->|"queries users"| node_database
node_login -->|"redirects"| node_menu
node_menu -->|"submits choice"| node_dispatch
node_dispatch -->|"routes"| node_user_forms
node_dispatch -->|"routes"| node_vehicle_form
node_dispatch -->|"routes"| node_checklist_form
node_dispatch -.->|"routes"| node_inspection
node_menu -->|"links"| node_logout
node_user_forms -.->|"submits"| node_user_create
node_user_create -->|"inserts user"| node_database
node_role_user_create -->|"inserts user"| node_database
node_driver_create -->|"inserts user"| node_database
node_supervisor_create -->|"inserts user"| node_database
node_vehicle_form -.->|"submits"| node_vehicle_create
node_vehicle_create -->|"inserts vehicle"| node_database
node_checklist_form -.->|"submits"| node_checklist_create
node_checklist_create -->|"inserts header"| node_database
node_recovery_form -.->|"submits"| node_recovery
node_recovery -->|"looks up user"| node_database
node_inspection -.->|"stores results"| node_database

click node_login_ui "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/index.html"
click node_login "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_login.php"
click node_menu "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/oqfazer.php"
click node_dispatch "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_opcao.php"
click node_logout "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/logout.php"
click node_user_forms "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/caduser.html"
click node_user_create "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro.php"
click node_role_user_create "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro_cliente.php"
click node_driver_create "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro_motorista.php"
click node_supervisor_create "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro_supervisor.php"
click node_vehicle_form "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/cadcar.html"
click node_vehicle_create "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro_veiculo.php"
click node_checklist_form "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/criarChecklist.html"
click node_checklist_create "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/criar_checklist_dinamico.php"
click node_inspection "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/detalhesNaoConformidade.html"
click node_recovery_form "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/esqueciSenha.html"
click node_recovery "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_recuperacao.php"
click node_database "https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/conexao.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_login_ui,node_login,node_menu,node_dispatch,node_logout,node_recovery_form,node_recovery,node_operator toneBlue
class node_user_forms,node_user_create,node_role_user_create,node_driver_create,node_supervisor_create,node_vehicle_form,node_vehicle_create,node_checklist_form,node_checklist_create,node_inspection toneAmber
class node_database toneMint
```

## Components

### Access and navigation

- [Login form](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/index.html): `index.html`
- [Authenticate](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_login.php): `processar_login.php`
- [Action menu](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/oqfazer.php): `oqfazer.php`
- [Option router](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_opcao.php): `processar_opcao.php`
- [End session](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/logout.php): `logout.php`
- [Recovery form](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/esqueciSenha.html): `esqueciSenha.html`
- [Recover account](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_recuperacao.php): `processar_recuperacao.php`

### Fleet and checklist management

- [User forms](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/caduser.html): `caduser.html`
- [Create user](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro.php): `processar_cadastro.php`
- [Role registrations](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro_cliente.php): `processar_cadastro_cliente.php`
- [Register driver](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro_motorista.php): `processar_cadastro_motorista.php`
- [Register supervisor](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro_supervisor.php): `processar_cadastro_supervisor.php`
- [Vehicle form](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/cadcar.html): `cadcar.html`
- [Register vehicle](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/processar_cadastro_veiculo.php): `processar_cadastro_veiculo.php`
- [Checklist form](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/criarChecklist.html): `criarChecklist.html`
- [Create checklist](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/criar_checklist_dinamico.php): `criar_checklist_dinamico.php`
- [Perform inspection](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/detalhesNaoConformidade.html): `detalhesNaoConformidade.html`

### Persistence

- [Axion MySQL](https://github.com/projetointegradorgrupo-1/projetointegrador/blob/main/conexao.php): `conexao.php`

### Other components

- **User**

## Connections

- User → Login form: opens (evidence: `README.md`)
- Login form → Authenticate: submits
- Authenticate → Axion MySQL: queries users (evidence: `processar_login.php`)
- Authenticate → Action menu: redirects (evidence: `processar_login.php`)
- Action menu → Option router: submits choice (evidence: `oqfazer.php`)
- Option router → User forms: routes (evidence: `processar_opcao.php`)
- Option router → Vehicle form: routes (evidence: `processar_opcao.php`)
- Option router → Checklist form: routes (evidence: `processar_opcao.php`)
- Option router → Perform inspection: routes
- Action menu → End session: links (evidence: `oqfazer.php`)
- User forms → Create user: submits
- Create user → Axion MySQL: inserts user (evidence: `processar_cadastro.php`)
- Role registrations → Axion MySQL: inserts user (evidence: `processar_cadastro_cliente.php`)
- Register driver → Axion MySQL: inserts user (evidence: `processar_cadastro_motorista.php`)
- Register supervisor → Axion MySQL: inserts user (evidence: `processar_cadastro_supervisor.php`)
- Vehicle form → Register vehicle: submits
- Register vehicle → Axion MySQL: inserts vehicle (evidence: `processar_cadastro_veiculo.php`)
- Checklist form → Create checklist: submits
- Create checklist → Axion MySQL: inserts header (evidence: `criar_checklist_dinamico.php`)
- Recovery form → Recover account: submits
- Recover account → Axion MySQL: looks up user (evidence: `processar_recuperacao.php`)
- Perform inspection → Axion MySQL: stores results
