# ayymenlmaooo/velos architecture

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

- Interactive diagram: https://gitdiagram.com/ayymenlmaooo/velos
- Repository: https://github.com/ayymenlmaooo/velos

## Overview

Velos is a minimal Django project whose main product content is a domain model for production, locations, transport, sales, and suppliers. The models describe relationships, but the sampled views are empty, the only URL serves Django admin, and no models are registered in the sampled admin module; therefore there is no implemented user-to-business-result workflow to map. Settings configure SQLite. The separate `tp_coo` package only prints a greeting and is not wired to the Velos project. The graph shows defined model relationships and configured runtime entry points, not an operational business workflow.

Main entry points: [`Velos/high_level/models.py`](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py) (Operation), [`Velos/Velos/urls.py`](https://github.com/ayymenlmaooo/velos/blob/main/Velos/Velos/urls.py) (URL routing), [`Velos/Velos/settings.py`](https://github.com/ayymenlmaooo/velos/blob/main/Velos/Velos/settings.py) (Project settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Web runtime"]
  node_routes["URL routing<br/>[urls.py]"]
  node_admin["Django admin<br/>[urls.py]"]
  node_settings["Project settings<br/>[settings.py]"]
  node_sqlite[("SQLite database")]
end

subgraph group_production["Production model"]
  node_machine["Machine<br/>[models.py]"]
  node_machineqty["QuantiteMachine<br/>[models.py]"]
  node_operation["Operation<br/>[models.py]"]
  node_produit["Produit<br/>[models.py]"]
end

subgraph group_commerce["Commerce model"]
  node_productqty["QuantiteProduit<br/>[models.py]"]
  node_stock["Stock<br/>[models.py]"]
  node_pointvente["PointDeVente<br/>[models.py]"]
  node_facture["Facture<br/>[models.py]"]
  node_prixproduit["PrixProduit<br/>[models.py]"]
  node_fournisseur["Fournisseur<br/>[models.py]"]
end

subgraph group_geography["Location model"]
  node_pays["Pays<br/>[models.py]"]
  node_ville["Ville<br/>[models.py]"]
  node_lieu["Lieu<br/>[models.py]"]
  node_transport["Transport<br/>[models.py]"]
end

node_visitor(("HTTP user"))

node_visitor -->|"requests"| node_routes
node_routes -->|"routes admin"| node_admin
node_settings -->|"configures"| node_sqlite
node_ville -->|"references"| node_pays
node_lieu -->|"references"| node_ville
node_machineqty -->|"references"| node_machine
node_lieu -->|"lists quantities"| node_machineqty
node_operation -->|"uses machine"| node_machine
node_operation -->|"next operation"| node_operation
node_produit -->|"has operations"| node_operation
node_productqty -->|"references"| node_produit
node_stock -->|"lists quantities"| node_productqty
node_pointvente -->|"located at"| node_lieu
node_pointvente -->|"references"| node_stock
node_facture -->|"references"| node_pointvente
node_facture -->|"lists quantities"| node_productqty
node_transport -->|"connects places"| node_lieu
node_prixproduit -->|"references"| node_produit
node_fournisseur -->|"offers prices"| node_prixproduit

click node_routes "https://github.com/ayymenlmaooo/velos/blob/main/Velos/Velos/urls.py"
click node_admin "https://github.com/ayymenlmaooo/velos/blob/main/Velos/Velos/urls.py"
click node_settings "https://github.com/ayymenlmaooo/velos/blob/main/Velos/Velos/settings.py"
click node_pays "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_ville "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_lieu "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_machine "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_machineqty "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_operation "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_produit "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_productqty "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_stock "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_pointvente "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_facture "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_transport "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_prixproduit "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"
click node_fournisseur "https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py"

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_routes,node_admin,node_settings,node_sqlite,node_visitor toneBlue
class node_machine,node_machineqty,node_operation,node_produit toneAmber
class node_productqty,node_stock,node_pointvente,node_facture,node_prixproduit,node_fournisseur toneMint
class node_pays,node_ville,node_lieu,node_transport toneRose
```

## Components

### Web runtime

- [URL routing](https://github.com/ayymenlmaooo/velos/blob/main/Velos/Velos/urls.py): `Velos/Velos/urls.py`
- [Django admin](https://github.com/ayymenlmaooo/velos/blob/main/Velos/Velos/urls.py): `Velos/Velos/urls.py`
- [Project settings](https://github.com/ayymenlmaooo/velos/blob/main/Velos/Velos/settings.py): `Velos/Velos/settings.py`
- **SQLite database**

### Production model

- [Machine](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [QuantiteMachine](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [Operation](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [Produit](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`

### Commerce model

- [QuantiteProduit](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [Stock](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [PointDeVente](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [Facture](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [PrixProduit](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [Fournisseur](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`

### Location model

- [Pays](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [Ville](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [Lieu](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`
- [Transport](https://github.com/ayymenlmaooo/velos/blob/main/Velos/high_level/models.py): `Velos/high_level/models.py`

### Other components

- **HTTP user**

## Connections

- HTTP user → URL routing: requests
- URL routing → Django admin: routes admin
- Project settings → SQLite database: configures
- Ville → Pays: references
- Lieu → Ville: references
- QuantiteMachine → Machine: references
- Lieu → QuantiteMachine: lists quantities
- Operation → Machine: uses machine
- Operation → Operation: next operation
- Produit → Operation: has operations
- QuantiteProduit → Produit: references
- Stock → QuantiteProduit: lists quantities
- PointDeVente → Lieu: located at
- PointDeVente → Stock: references
- Facture → PointDeVente: references
- Facture → QuantiteProduit: lists quantities
- Transport → Lieu: connects places
- PrixProduit → Produit: references
- Fournisseur → PrixProduit: offers prices
