# vghjkvcjh/trabalho_poo architecture

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

- Interactive diagram: https://gitdiagram.com/vghjkvcjh/trabalho_poo
- Repository: https://github.com/vghjkvcjh/trabalho_poo

## Overview

This is a Python terminal application for managing event accounts, events, and ticket sales. The main workflow starts in the terminal menu: users log in or create accounts, organizers create and manage events, and clients enroll in events to receive tickets. The domain also includes event-specific access and pricing rules, event listings and reports, and sample data. The map follows shown calls and documented capabilities; menu and sample-data excerpts are partial, so unsampled connections are not inferred.

Main entry points: [`src/menu.py`](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/menu.py) (Interactive menu), [`src/modelos/sistema.py`](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/sistema.py) (Account and event registry), [`src/dados_exemplo.py`](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/dados_exemplo.py) (Sample data), [`src/modelos/cliente.py`](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/cliente.py) (Client accounts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application flow"]
  node_main["Application entry<br/>[main.py]"]
  node_sample["Sample data<br/>[dados_exemplo.py]"]
  node_menu["Interactive menu<br/>[menu.py]"]
end

subgraph group_accounts["Accounts"]
  node_system["Account and event registry<br/>[sistema.py]"]
  node_person["Person and validation<br/>[pessoa.py]"]
  node_client["Client accounts<br/>[cliente.py]"]
  node_organizer["Organizer accounts<br/>[organizador.py]"]
end

subgraph group_events["Events"]
  node_event["Event rules and types<br/>[evento.py]"]
end

subgraph group_tickets["Tickets"]
  node_ticket["Ticket records<br/>[ingresso.py]"]
end

node_user(("Terminal user"))

node_user -->|"interacts with"| node_menu
node_main -->|"creates"| node_system
node_main -->|"loads"| node_sample
node_main -->|"starts"| node_menu
node_sample -->|"creates sample accounts"| node_system
node_sample -->|"creates events through"| node_organizer
node_sample -->|"enrolls"| node_client
node_menu -->|"authenticates and registers"| node_system
node_menu -->|"manages events through"| node_organizer
node_menu -->|"enrolls clients"| node_client
node_menu -->|"selects event types"| node_event
node_system -->|"stores accounts as"| node_person
node_system -->|"creates"| node_client
node_system -->|"creates"| node_organizer
node_client -->|"requests enrollment"| node_event
node_event -->|"creates on sale"| node_ticket
node_organizer -->|"creates and manages"| node_event

click node_main "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/main.py"
click node_sample "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/dados_exemplo.py"
click node_menu "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/menu.py"
click node_system "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/sistema.py"
click node_person "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/pessoa.py"
click node_client "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/cliente.py"
click node_organizer "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/organizador.py"
click node_event "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/evento.py"
click node_ticket "https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/ingresso.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_main,node_sample,node_menu,node_user toneBlue
class node_system,node_person,node_client,node_organizer toneAmber
class node_event toneMint
class node_ticket toneRose
```

## Components

### Application flow

- [Application entry](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/main.py): `src/main.py`
- [Sample data](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/dados_exemplo.py): `src/dados_exemplo.py`
- [Interactive menu](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/menu.py): `src/menu.py`

### Accounts

- [Account and event registry](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/sistema.py): `src/modelos/sistema.py`
- [Person and validation](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/pessoa.py): `src/modelos/pessoa.py`
- [Client accounts](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/cliente.py): `src/modelos/cliente.py`
- [Organizer accounts](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/organizador.py): `src/modelos/organizador.py`

### Events

- [Event rules and types](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/evento.py): `src/modelos/evento.py`

### Tickets

- [Ticket records](https://github.com/vghjkvcjh/trabalho_poo/blob/main/src/modelos/ingresso.py): `src/modelos/ingresso.py`

### Other components

- **Terminal user**

## Connections

- Terminal user → Interactive menu: interacts with (evidence: `README.md`)
- Application entry → Account and event registry: creates (evidence: `src/main.py`)
- Application entry → Sample data: loads (evidence: `src/main.py`)
- Application entry → Interactive menu: starts (evidence: `src/main.py`)
- Sample data → Account and event registry: creates sample accounts (evidence: `src/dados_exemplo.py`)
- Sample data → Organizer accounts: creates events through (evidence: `src/dados_exemplo.py`)
- Sample data → Client accounts: enrolls (evidence: `src/dados_exemplo.py`)
- Interactive menu → Account and event registry: authenticates and registers (evidence: `src/menu.py`)
- Interactive menu → Organizer accounts: manages events through (evidence: `src/menu.py`)
- Interactive menu → Client accounts: enrolls clients (evidence: `src/menu.py`)
- Interactive menu → Event rules and types: selects event types (evidence: `src/menu.py`)
- Account and event registry → Person and validation: stores accounts as (evidence: `src/modelos/sistema.py`)
- Account and event registry → Client accounts: creates (evidence: `src/modelos/sistema.py`)
- Account and event registry → Organizer accounts: creates (evidence: `src/modelos/sistema.py`)
- Client accounts → Event rules and types: requests enrollment (evidence: `src/modelos/cliente.py`)
- Event rules and types → Ticket records: creates on sale (evidence: `src/modelos/evento.py`)
- Organizer accounts → Event rules and types: creates and manages (evidence: `src/modelos/organizador.py`)
