사물인터넷 기말 프로젝트
테이블 (3)
1시간 평균 센서 데이터 (SensorDataSummaryHourly)
- 아이디 (id) — BigInt — 기본 키 — NOT NULL
- 센서 타입 (sensor_type) — enum('temperature' | 'humidity' | 'pm25') — NOT NULL
- 평균값 (avg_value) — Decimal — NOT NULL
- 생성시간 (created_at) — DateTime — NOT NULL
센서 데이터 (SensorData)
- 아이디 (id) — BigInt — 기본 키 — NOT NULL
- 센서 타입 (sensor_type) — enum('temperature' | 'humidity' | 'pm25') — NOT NULL
- 값 (value) — Decimal — NOT NULL
- 생성시간 (created_at) — DateTime — NOT NULL
제어 기록 (ControlLog)
- 아이디 (id) — BigInt — 기본 키 — NOT NULL
- 센서 (target) — enum('led', 'fan', 'auto_fan') — NOT NULL
- 액션 (action) — enum('on', 'off', 'enabled', 'disabled') — NOT NULL
- 제어자 (source) — enum('user', 'auto') — NOT NULL