This repository contains the first draft of the database design for a distributed cardiovascular monitoring system based on photoplethysmography (PPG) signals.
The objective of this project is to design, implement, assess a data architecture capable of supporting the storage, consistency, and scalability of time-series physiological data generated by wearable devices.
ppg-database-design/
├── README.md
├── sql/
│ ├── 1. db_creation_script.sql
│ ├── 2. enable_TimescaleDB.sql
│ └── 3. test_inserts.sql
└── models/
├── logical/
└── physical/
sql/: Contains scripts for database setup, schema creation, and sample data insertion.
models/: Includes the logical and physical data models.
- PostgreSQL
- TimescaleDB
- PowerDesigner
- DBeaver
To initialize the database, execute the scripts in the following order:
- db_creation_script.sql
- enable_TimescaleDB.sql
- test_inserts.sql
⚠️ Note: TimescaleDB must be properly installed and configured in your PostgreSQL instance before running the scripts.
This project requires TimescaleDB as a PostgreSQL extension for handling time-series data.
You can download and install TimescaleDB from the official website:
Official installation guide: 👉 https://www.tigerdata.com/docs/get-started/choose-your-path/install-timescaledb
- Install PostgreSQL (if not already installed)
- Install TimescaleDB following the official guide for your OS
- Enable the extension in your database by running: