# actronix09/bd-sistema-de-comandas architecture

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

- Interactive diagram: https://gitdiagram.com/actronix09/bd-sistema-de-comandas
- Repository: https://github.com/actronix09/bd-sistema-de-comandas

## Overview

This is a database-coursework repository documenting and implementing a restaurant ordering-system database, with a static project site and a separate assigned seismic-visualization project. The visible operational workflow is limited to generating synthetic CSV data from the salon catalog. The SQL schema, loading, migration, and validation areas are represented from the tree; their internal connections are not asserted because their source was not sampled.

Main entry points: [`sql/carga/generar_datos.py`](https://github.com/actronix09/bd-sistema-de-comandas/blob/main/sql/carga/generar_datos.py) (Synthetic data generator), [`sql/datos/salon`](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/datos/salon) (Salon catalog), [`sql/datos/generados`](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/datos/generados) (Generated CSV data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_catalog[("Salon catalog")]
  node_generator["Synthetic data generator<br/>[generar_datos.py]"]
  node_generated[("Generated CSV data")]
end

subgraph group_database["Database work"]
  node_schema[("Database schema<br/>[esquema.sql]")]
  node_migrations["Domain migrations"]
  node_loading["Database loading"]
  node_validation["Data validation"]
end

subgraph group_project["Project materials"]
  node_coursework["Practice documentation"]
  node_seismic["Seismic assignment"]
  node_website["Project website<br/>[index.html]"]
  node_diagram_viewer["Diagram viewer<br/>[script.js]"]
end

node_student(("Course participants"))

node_generator -->|"reads catalog"| node_catalog
node_generator -->|"writes CSVs"| node_generated

click node_catalog "https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/datos/salon"
click node_generator "https://github.com/actronix09/bd-sistema-de-comandas/blob/main/sql/carga/generar_datos.py"
click node_generated "https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/datos/generados"
click node_schema "https://github.com/actronix09/bd-sistema-de-comandas/blob/main/sql/esquema.sql"
click node_migrations "https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/migraciones"
click node_loading "https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/carga"
click node_validation "https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql"
click node_coursework "https://github.com/actronix09/bd-sistema-de-comandas/tree/main/docs"
click node_seismic "https://github.com/actronix09/bd-sistema-de-comandas/tree/main/docs/practica2"
click node_website "https://github.com/actronix09/bd-sistema-de-comandas/blob/main/web/index.html"
click node_diagram_viewer "https://github.com/actronix09/bd-sistema-de-comandas/blob/main/web/script.js"

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_catalog,node_generator,node_generated toneBlue
class node_schema,node_migrations,node_loading,node_validation toneAmber
class node_coursework,node_seismic,node_website,node_diagram_viewer toneMint
class node_student toneIndigo
```

## Components

### Data preparation

- [Salon catalog](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/datos/salon): `sql/datos/salon`
- [Synthetic data generator](https://github.com/actronix09/bd-sistema-de-comandas/blob/main/sql/carga/generar_datos.py): `sql/carga/generar_datos.py`
- [Generated CSV data](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/datos/generados): `sql/datos/generados`

### Database work

- [Database schema](https://github.com/actronix09/bd-sistema-de-comandas/blob/main/sql/esquema.sql): `sql/esquema.sql`
- [Domain migrations](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/migraciones): `sql/migraciones`
- [Database loading](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql/carga): `sql/carga`
- [Data validation](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/sql): `sql`

### Project materials

- [Practice documentation](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/docs): `docs`
- [Seismic assignment](https://github.com/actronix09/bd-sistema-de-comandas/tree/main/docs/practica2): `docs/practica2`
- [Project website](https://github.com/actronix09/bd-sistema-de-comandas/blob/main/web/index.html): `web/index.html`
- [Diagram viewer](https://github.com/actronix09/bd-sistema-de-comandas/blob/main/web/script.js): `web/script.js`

### Other components

- **Course participants**

## Connections

- Synthetic data generator → Salon catalog: reads catalog (evidence: `sql/carga/generar_datos.py`)
- Synthetic data generator → Generated CSV data: writes CSVs (evidence: `sql/carga/generar_datos.py`)
