# patrick-hoff/projeto_impacta architecture

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

- Interactive diagram: https://gitdiagram.com/patrick-hoff/projeto_impacta
- Repository: https://github.com/patrick-hoff/projeto_impacta

## Overview

Auto Dealer is an internal used-car inventory management web app. In the implemented vehicle workflow, staff open the vehicle list, where filtering and pagination are handled by the vehicle model; they can open an edit form, which loads a selected vehicle and submits updates through that model to MySQL. Shared templates render navigation and flash messages. The dashboard currently uses mock data. The README also describes client, interest, sales, and sales-history features, but the tree has no dedicated implementation files for them; those branches are documented scope, not verified runtime flows.

Main entry points: [`models/veiculo.php`](https://github.com/patrick-hoff/projeto_impacta/blob/main/models/veiculo.php) (Vehicle model), [`src/editar-veiculo.php`](https://github.com/patrick-hoff/projeto_impacta/blob/main/src/editar-veiculo.php) (Vehicle edit form), [`src/veiculos.php`](https://github.com/patrick-hoff/projeto_impacta/blob/main/src/veiculos.php) (Vehicle list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_vehicle_screens["Vehicle screens"]
  node_vehicle_list["Vehicle list<br/>[veiculos.php]"]
  node_vehicle_edit["Vehicle edit form<br/>[editar-veiculo.php]"]
end

subgraph group_vehicle_data["Vehicle data"]
  node_vehicle_model["Vehicle model<br/>[veiculo.php]"]
  node_mysql[("MySQL<br/>database")]
end

node_staff(("Store staff<br/>actor"))

node_staff -->|"opens"| node_vehicle_list
node_staff -->|"opens"| node_vehicle_edit
node_vehicle_list -->|"requests vehicles"| node_vehicle_model
node_vehicle_edit -->|"loads vehicle"| node_vehicle_model
node_vehicle_edit -->|"submits updates"| node_vehicle_model
node_vehicle_model -->|"reads and writes"| node_mysql

click node_vehicle_list "https://github.com/patrick-hoff/projeto_impacta/blob/main/src/veiculos.php"
click node_vehicle_edit "https://github.com/patrick-hoff/projeto_impacta/blob/main/src/editar-veiculo.php"
click node_vehicle_model "https://github.com/patrick-hoff/projeto_impacta/blob/main/models/veiculo.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_vehicle_list,node_vehicle_edit toneBlue
class node_vehicle_model,node_mysql toneAmber
class node_staff toneIndigo
```

## Components

### Vehicle screens

- [Vehicle list](https://github.com/patrick-hoff/projeto_impacta/blob/main/src/veiculos.php): `src/veiculos.php`
- [Vehicle edit form](https://github.com/patrick-hoff/projeto_impacta/blob/main/src/editar-veiculo.php): `src/editar-veiculo.php`

### Vehicle data

- [Vehicle model](https://github.com/patrick-hoff/projeto_impacta/blob/main/models/veiculo.php): `models/veiculo.php`
- **MySQL**: database

### Other components

- **Store staff**: actor

## Connections

- Store staff → Vehicle list: opens
- Store staff → Vehicle edit form: opens
- Vehicle list → Vehicle model: requests vehicles (evidence: `src/veiculos.php`)
- Vehicle edit form → Vehicle model: loads vehicle (evidence: `src/editar-veiculo.php`)
- Vehicle edit form → Vehicle model: submits updates (evidence: `src/editar-veiculo.php`)
- Vehicle model → MySQL: reads and writes
