Skip to content

[DATABASE] Design and commit SQLite schema #23

Closed
ezehf2 opened this issue Mar 11, 2026 · 0 comments
Closed

[DATABASE] Design and commit SQLite schema #23

ezehf2 opened this issue Mar 11, 2026 · 0 comments
Assignees

Comments

@ezehf2
Copy link
Owner

ezehf2 commented Mar 11, 2026

Create schema.sql in the database/ folder containing the full SQLite database schema. Must include four tables — Rooms (room_id, room_name, capacity), Sensors (sensor_id, room_id, sensor_type, foreign key to Rooms), Sensor_Readings (reading_id, sensor_id, value, unit, timestamp), Alerts (alert_id, room_id, sensor_type, value, threshold, timestamp, resolved). All column names must be lowercase. This file must be committed before database.py so the team can see the structure. Commit with message [DATABASE] Add SQLite schema and reference this issue.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
Development

No branches or pull requests

2 participants