Skip to content

Database

Database design

Before designing the database, I created an ERD to see what columns I needed for my project. For this project, the ERD is quite simple because I am working with one schema consisting of four columns. Below you can see the structure of my database schematically in the ERD.

ERD of the database

Workbench

With the ERD as a base, the database can be set up in MySQL. That looks like this:

Database design in MySQL

Image of working database

The data measured by the sensors is stored in the database. Here you can see what the working database looks like:

Screenshot of the working database


Last update: November 7, 2022