# bogdaniuni/advanced-databases architecture

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

- Interactive diagram: https://gitdiagram.com/bogdaniuni/advanced-databases
- Repository: https://github.com/bogdaniuni/advanced-databases

## Overview

This tree is a collection of small database coursework projects, not one integrated product: a mobile-shop sales app, a student-management app, and two standalone SQLite-to-XML exercises. The main user workflows are signing in and managing records in either GUI; the exercises query login or customer data and write XML. The graph preserves these separate branches. Some source excerpts are partial, so uncertain links—especially mobile-sale XML handling—are omitted rather than inferred.

Main entry points: [`Sample Projects/sample project/main.py`](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/main.py) (Student app), [`Sample Projects/sample project/database.py`](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/database.py) (Student data layer), [`Week 6/SQL_TO_XML.PY`](https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/SQL_TO_XML.PY) (Login XML export), [`Sample Projects/sample Project 1/main.py`](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20Project%201/main.py) (Shop GUI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Mobile Shop"]
  node_shop_gui["Shop GUI<br/>[main.py]"]
  node_shop_data["Shop data layer<br/>[db.py]"]
  node_shop_xml["Sale XML utilities<br/>[xml_utils.py]"]
end

subgraph group_student["Student Management"]
  node_student_app["Student app<br/>[main.py]"]
  node_student_login["Login window<br/>[login.py]"]
  node_student_db["Student data layer<br/>[database.py]"]
  node_student_store[("Student database")]
end

subgraph group_week6["XML Exercises"]
  node_login_export["Login XML export<br/>[SQL_TO_XML.PY]"]
  node_customer_export["Customer XML export<br/>[Task 1.py]"]
end

node_shop_user(("Shop operator"))
node_student_user(("Student staff"))
node_login_source[("Login source DB")]
node_customer_xml["Customer XML file<br/>[Task1.xml]"]
node_login_xml["Login XML file<br/>[login_details.xml]"]

node_shop_user -->|"uses"| node_shop_gui
node_shop_gui -->|"queries and updates"| node_shop_data
node_student_user -->|"uses"| node_student_app
node_student_app -->|"opens login"| node_student_login
node_student_login -->|"checks credentials"| node_student_db
node_student_app -->|"queries and updates"| node_student_db
node_student_db -->|"reads and writes"| node_student_store
node_login_export -->|"queries"| node_login_source
node_login_export -->|"writes"| node_login_xml
node_customer_export -->|"writes and parses"| node_customer_xml

click node_shop_gui "https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20Project%201/main.py"
click node_shop_data "https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20Project%201/db.py"
click node_shop_xml "https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20Project%201/xml_utils.py"
click node_student_app "https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/main.py"
click node_student_login "https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/login.py"
click node_student_db "https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/database.py"
click node_student_store "https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/student_management.db"
click node_login_export "https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/SQL_TO_XML.PY"
click node_customer_export "https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/Task%201.py"
click node_customer_xml "https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/Task1.xml"
click node_login_xml "https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/login_details.xml"

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_shop_gui,node_shop_data,node_shop_xml toneBlue
class node_student_app,node_student_login,node_student_db,node_student_store,node_login_source toneAmber
class node_login_export,node_customer_export toneMint
class node_shop_user,node_student_user toneIndigo
class node_customer_xml,node_login_xml toneTeal
```

## Components

### Mobile Shop

- [Shop GUI](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20Project%201/main.py): `Sample Projects/sample Project 1/main.py`
- [Shop data layer](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20Project%201/db.py): `Sample Projects/sample Project 1/db.py`
- [Sale XML utilities](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20Project%201/xml_utils.py): `Sample Projects/sample Project 1/xml_utils.py`

### Student Management

- [Student app](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/main.py): `Sample Projects/sample project/main.py`
- [Login window](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/login.py): `Sample Projects/sample project/login.py`
- [Student data layer](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/database.py): `Sample Projects/sample project/database.py`
- [Student database](https://github.com/bogdaniuni/advanced-databases/blob/main/Sample%20Projects/sample%20project/student_management.db): `Sample Projects/sample project/student_management.db`

### XML Exercises

- [Login XML export](https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/SQL_TO_XML.PY): `Week 6/SQL_TO_XML.PY`
- [Customer XML export](https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/Task%201.py): `Week 6/Task 1.py`

### Other components

- **Shop operator**
- **Student staff**
- **Login source DB**
- [Customer XML file](https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/Task1.xml): `Week 6/Task1.xml`
- [Login XML file](https://github.com/bogdaniuni/advanced-databases/blob/main/Week%206/login_details.xml): `Week 6/login_details.xml`

## Connections

- Shop operator → Shop GUI: uses (evidence: `Sample Projects/sample Project 1/main.py`)
- Shop GUI → Shop data layer: queries and updates (evidence: `Sample Projects/sample Project 1/main.py`)
- Student staff → Student app: uses (evidence: `Sample Projects/sample project/main.py`)
- Student app → Login window: opens login (evidence: `Sample Projects/sample project/main.py`)
- Login window → Student data layer: checks credentials (evidence: `Sample Projects/sample project/login.py`)
- Student app → Student data layer: queries and updates (evidence: `Sample Projects/sample project/main.py`)
- Student data layer → Student database: reads and writes (evidence: `Sample Projects/sample project/database.py`)
- Login XML export → Login source DB: queries (evidence: `Week 6/SQL_TO_XML.PY`)
- Login XML export → Login XML file: writes (evidence: `Week 6/SQL_TO_XML.PY`)
- Customer XML export → Customer XML file: writes and parses (evidence: `Week 6/Task 1.py`)
