solar_erd
Tables (8)
alarm (알람)
- 알람 아이디 (alarm_id) — uuid — Primary key — NOT NULL
- 알람 유형 (alarm_type) — string
- 알람 내용 (alarm_content) — string
- 알람 읽음 (alarm_read) — boolean
- 알람 생성일자 (create_time) — timestamp
energy_agg (에너지통계)
- 장비아이디 (equip_id) — string — Primary key — NOT NULL
- 타임스탬프 (timestamp) — timestamp
- 누적 소비량 (total_consum) — string
- 소비량 (consum_amount) — string
- 잔량 (remaining_amount) — string
equipment (장비 상세)
- 장비아이디 (equip_id) — string — Primary key — NOT NULL
- 장비명 (equip_name) — string
- 장비코드 (equip_code) — string
- 장비유형 (type) — string
- 장비 온라인 (online) — string
- 와이파이품질 (wifi) — string
generation_agg (발전통계)
- 장비코드 (equip_code) — string — Primary key — NOT NULL
- 타임스탬프 (timestamp) — timestamp
- 발전전압 (equip_voltage_gen) — string
- 발전전류 (equip_current_gen) — string
- 발전전력 (equip_bat_level) — string
- 배터리 잔량 (charge_power) — string
solar (태양광 발전기)
- 태양광 발전기 아이디 (solar_id) — uuid — Primary key — NOT NULL
- 발전 전압 (voltage)
- 발전 전류 (current)
- 발전량 (power)
- 누적 발전량 (total_power)
- 충전량 (charge)
user (사용자 관리)
- 사용자아이디 (id) — uuid — Primary key — NOT NULL
- 이메일 (email) — string
- 이름 (name) — string
- 소셜유형 (social_type) — string
- 생성일자 (create_time) — timestamp with time zone
user_device (사용자별 기기)
- 사용자아이디 (id) — uuid — Foreign key → user.사용자아이디 — NOT NULL
- 장비아이디 (equip_id) — string — Foreign key → equipment.장비아이디 — NOT NULL
user_tokens (사용자 토큰)
- refreshToken (token) — uuid — Primary key — NOT NULL
- 사용자아이디 (id) — uuid — Foreign key → user.사용자아이디 — NOT NULL
- 만료일자 (expiry_time) — timestamp with time zone
- 생성일자 (create_time) — timestamp with time zone
- 수정일자 (update_time) — timestamp with time zone