# levilucena/gestao-de-inventario-de-ti architecture

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

- Interactive diagram: https://gitdiagram.com/levilucena/gestao-de-inventario-de-ti
- Repository: https://github.com/levilucena/gestao-de-inventario-de-ti

## Overview

This PHP/MySQL application tracks IT equipment inventory across eight equipment categories. Users select a category, register incoming stock, view entry and exit tables, and manage transfers between available and issued stock; the README also describes editing and deleting records. Category pages contain inventory views and some transfer UI, while insertion and transfer have separate PHP endpoints. The excerpts show transfer SQL and individual category behavior, but do not establish all page-to-endpoint wiring, so some documented relationships cite the README. Database schema is represented by the provided SQL file.

Main entry points: [`Inventário/inventario.sql`](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/inventario.sql) (MySQL inventory), [`Inventário/inserir.php`](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/inserir.php) (Stock registration), [`Inventário/index.php`](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/index.php) (Category menu), [`Inventário/monitor.php`](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/monitor.php) (Monitors and printers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Equipment catalog"]
  node_home["Category menu<br/>[index.php]"]
  node_computers["CPU and notebook<br/>[cpu.php]"]
  node_peripherals["Monitors and printers<br/>[monitor.php]"]
  node_accessories["Input devices<br/>[teclado.php]"]
  node_parts["Disks and components<br/>[componentes.php]"]
end

subgraph group_operations["Stock operations"]
  node_registration["Stock registration<br/>[inserir.php]"]
  node_transfer["Entry and exit transfer<br/>[transferir.php]"]
  node_record_edit["Record editing<br/>[editar.php]"]
  node_other_edits["Category editing"]
end

subgraph group_oversight["Inventory oversight"]
  node_management["Stock management<br/>[gestao.php]"]
  node_charts["Inventory charts<br/>[grafico.php]"]
end

subgraph group_persistence["Data persistence"]
  node_mysql[("MySQL inventory<br/>[inventario.sql]")]
end

node_user(("Inventory user"))

node_user -->|"opens"| node_home
node_home -->|"selects category"| node_computers
node_home -->|"selects category"| node_peripherals
node_home -->|"selects category"| node_accessories
node_home -->|"selects category"| node_parts
node_user -->|"registers stock"| node_registration
node_user -->|"moves stock"| node_transfer
node_user -->|"edits records"| node_record_edit
node_user -.->|"edits records"| node_other_edits
node_computers -.->|"submits inventory"| node_registration
node_peripherals -.->|"submits inventory"| node_registration
node_accessories -.->|"submits inventory"| node_registration
node_parts -.->|"submits inventory"| node_registration
node_peripherals -->|"posts transfer"| node_transfer
node_parts -->|"posts transfer"| node_transfer
node_computers -.->|"stores inventory"| node_mysql
node_peripherals -.->|"stores inventory"| node_mysql
node_accessories -.->|"stores inventory"| node_mysql
node_parts -.->|"stores inventory"| node_mysql
node_registration -->|"inserts records"| node_mysql
node_transfer -->|"updates stock"| node_mysql
node_management -.->|"manages inventory"| node_mysql
node_charts -.->|"summarizes stock"| node_mysql

click node_home "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/index.php"
click node_computers "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/cpu.php"
click node_peripherals "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/monitor.php"
click node_accessories "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/teclado.php"
click node_parts "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/componentes.php"
click node_registration "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/inserir.php"
click node_transfer "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/transferir.php"
click node_record_edit "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/editar.php"
click node_other_edits "https://github.com/levilucena/gestao-de-inventario-de-ti/tree/main/Invent%C3%A1rio"
click node_management "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/gestao.php"
click node_charts "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/grafico.php"
click node_mysql "https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/inventario.sql"

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_home,node_computers,node_peripherals,node_accessories,node_parts,node_user toneBlue
class node_registration,node_transfer,node_record_edit,node_other_edits toneAmber
class node_management,node_charts toneMint
class node_mysql toneRose
```

## Components

### Equipment catalog

- [Category menu](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/index.php): `Inventário/index.php`
- [CPU and notebook](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/cpu.php): `Inventário/cpu.php`
- [Monitors and printers](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/monitor.php): `Inventário/monitor.php`
- [Input devices](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/teclado.php): `Inventário/teclado.php`
- [Disks and components](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/componentes.php): `Inventário/componentes.php`

### Stock operations

- [Stock registration](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/inserir.php): `Inventário/inserir.php`
- [Entry and exit transfer](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/transferir.php): `Inventário/transferir.php`
- [Record editing](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/editar.php): `Inventário/editar.php`
- [Category editing](https://github.com/levilucena/gestao-de-inventario-de-ti/tree/main/Invent%C3%A1rio): `Inventário`

### Inventory oversight

- [Stock management](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/gestao.php): `Inventário/gestao.php`
- [Inventory charts](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/grafico.php): `Inventário/grafico.php`

### Data persistence

- [MySQL inventory](https://github.com/levilucena/gestao-de-inventario-de-ti/blob/main/Invent%C3%A1rio/inventario.sql): `Inventário/inventario.sql`

### Other components

- **Inventory user**

## Connections

- Inventory user → Category menu: opens (evidence: `Inventário/index.php`)
- Category menu → CPU and notebook: selects category (evidence: `Inventário/index.php`)
- Category menu → Monitors and printers: selects category (evidence: `Inventário/index.php`)
- Category menu → Input devices: selects category (evidence: `Inventário/index.php`)
- Category menu → Disks and components: selects category (evidence: `Inventário/index.php`)
- Inventory user → Stock registration: registers stock (evidence: `README.md`)
- Inventory user → Entry and exit transfer: moves stock (evidence: `README.md`)
- Inventory user → Record editing: edits records (evidence: `README.md`)
- Inventory user → Category editing: edits records
- CPU and notebook → Stock registration: submits inventory
- Monitors and printers → Stock registration: submits inventory
- Input devices → Stock registration: submits inventory
- Disks and components → Stock registration: submits inventory
- Monitors and printers → Entry and exit transfer: posts transfer
- Disks and components → Entry and exit transfer: posts transfer
- CPU and notebook → MySQL inventory: stores inventory
- Monitors and printers → MySQL inventory: stores inventory
- Input devices → MySQL inventory: stores inventory
- Disks and components → MySQL inventory: stores inventory
- Stock registration → MySQL inventory: inserts records (evidence: `Inventário/inserir.php`)
- Entry and exit transfer → MySQL inventory: updates stock (evidence: `Inventário/transferir.php`)
- Stock management → MySQL inventory: manages inventory
- Inventory charts → MySQL inventory: summarizes stock
