똑.집
테이블 (9)
AlertManager (Untitled9)
- AlertId (알림식별자) — NotNull — 기본 키 — NOT NULL
- DeviceId (기기 식별자) — NotNull — 외래 키 → Device.DeviceId — NOT NULL
- HouseId (유저 식별자) — NotNull — 외래 키 → Device.HouseId — NOT NULL
- AlertType (알림 종류) — NotNull
- TimeStamp (알림 발생 시간) — NotNull
Device (Untitled2)
- DeviceId (기기 식별자) — NotNull — 기본 키 — NOT NULL
- HouseId (유저 식별자) — NotNull — 외래 키 → Home.HouseId — NOT NULL
- DeviceName (기기 이름) — NotNull
- DeviceType (기기 종류) — NotNull
- DeviceLocation (기기 위치) — NotNull
- DeviceStatus (기기 상태) — NotNull
- Favorite (즐겨찾기) — NotNull
DeviceData (Untitled6)
- DataId (데이터 식별자) — NotNull — 기본 키 — NOT NULL
- DeviceId (기기 식별자) — NotNull — 외래 키 → Device.DeviceId — NOT NULL
- HouseId (유저 식별자) — NotNull — 외래 키 → Device.HouseId — NOT NULL
- DataType (데이터 종류) — NotNull
- TimeStamp (측정 시간) — NotNull
- DataValue (데이터값) — NotNull
Device_Setting (Untitled3)
- SettingId (셋팅 식별자) — NotNull — 기본 키 — NOT NULL
- DeviceId (기기 식별자) — NotNull — 외래 키 → Device.DeviceId — NOT NULL
- setting_key (설정 항목) — NotNull
- setting_value (설정 값) — NotNull
Energy (Untitled7)
- energyId (전력 식별자) — NotNull — 기본 키 — NOT NULL
- DeviceId (기기 식별자) — NotNull — 외래 키 → Device.DeviceId — NOT NULL
- HouseId (유저 식별자) — NotNull — 외래 키 → Device.HouseId — NOT NULL
- energy_consumed (소비 전력) — NotNull
Home (Untitled)
- HouseId (집 식별자) — NotNull — 기본 키 — NOT NULL
- Building (동수) — NotNull
- HouseName (집 이름) — NotNull
- UnitNumber (호수) — NotNull
Mode (Untitled4)
- ModeId (모드 식별자) — NotNull — 기본 키 — NOT NULL
- HouseId (식별자) — NotNull — 외래 키 → Home.HouseId — NOT NULL
- Field (모드이름) — NotNull
ModeSetting (Untitled5)
- ModeSettingId (모드세팅식별자) — NotNull — 기본 키 — NOT NULL
- ModeId (모드 식별자) — NotNull — 외래 키 → Mode.ModeId — NOT NULL
- DeviceId (기기 식별자) — NotNull — 외래 키 → Device.DeviceId — NOT NULL
- Status (기기 상태) — NotNull
User (Untitled8)
- UserId (유저 식별자) — NotNull — 기본 키 — NOT NULL
- HouseId (집 식별자) — NotNull — 외래 키 → Home.HouseId — NOT NULL
- UserName (유저 이름) — NotNull
- Pw (비밀번호) — NotNull
- PhoneNumber (전화번호) — NotNull
- Admin (관리자 권한) — NotNull