# Database


## v1
This was our first version of the database. It isnt normalized and not optimized for performance. It was a starting point to see what we needed. We where still missing some colums.

 
![Databasev1](../assets/Database/IMG_0909.jpg)

## v2
This is our second version of the database. We added some columns and normalized the database based on feedback within the group.

![Databasev2](../assets/Database/IMG_0908.jpg)

## v3
Based on feedback from Mats we finished the database.
```
Note niet direct praten met de db, maar dan via de website via een api.
Niet alle data in 1 tabel gaan versamelen, maar in meerdere tabellen en dan per meting een tabel.
indentiviceren van de comunicatie methodes (rode lijntjes)
afbeelding met beschreiving in markdown

tabel: node
info: Id, Naam, Locatie.

Tabel: meting
info: id, node-Id, type sensor, waarde.
```
We added extra tables for identifying and naming nodes. We also changed the Measurements table so we dont have to send all data at once. This will make it easier to add new nodes that are missing some sensors.
![Databasev3](../assets/Database/Screenshot%202024-02-09%20130735.png)
