# Diagrams

This document collects all diagrams associated with Mapswipe.

In the next MapSwipe version release (MapSwipe for Compare Analysis) those diagrams should be showing only the currently implemented structure and integrated with the docs in the appropriate places.

The Diagrams are drawn using [draw.io](https://.wwww.draw.io). You can download the `diagram.xml` file in the GitHub repository (docs/\_static/img/) and upload it to draw.io if you want to edit it. The JSON based data structure diagrams of the Firebase Realtime Database are drwan using sample_data.json, which also can be found in the GitHub repository (docs/\_static/img/) files and this tool: https://vanya.jp.net/vtree/

---

**Deployment Diagram:**
![Deployment Diagram](/_static/img/deployment_diagram.png)

---

**Proposed Data Structure Project Type 1 - Firebase:**
![Data Structure - Firebase](/_static/img/data_structure-firebase-1.svg)

---

**Proposed Data Structure Project Type 2 - Firebase:**
![Data Structure - Firebase](/_static/img/data_structure-firebase-2.svg)

---

**Database Scheme - Postgres:**
![Database Schema - Postgres](/_static/img/database_schema-postgres.png)

---

**Entity Relationship Diagram - Postgres:**
![Entity Relationship Diagram- Postgres](/_static/img/entity_relationship_diagram-postgres.png)

---

**Database Schema - Analytics:**
![Database Schema - Analytics](/_static/img/database_schema-analytics.png)
