[ERD] WeatherLink
Tables (7)
Alert (Untitled3)
- 알림 ID (id) — UUID — Primary key — NOT NULL
- 사용자 ID (id2) — UUID — Foreign key → User.사용자 ID — NOT NULL
- 내용 (content) — String
- 읽음 여부 (isRead) — Boolean
- 생성일시 (createdAt) — DateTime
Friend (Untitled4)
- 친구관계 ID (id) — UUID — Primary key — NOT NULL
- 사용자 ID (sender_id) — UUID — Foreign key → User.사용자 ID — NOT NULL
- 위치 ID (receiver_id) — UUID — Foreign key → User.위치 ID — NOT NULL
- 요청자 ID (requestId) — UUID
- 상태 (status) — Enum
- 요청일시 (createdAt) — DateTime
Location (Untitled5)
- 위치 ID (id) — UUID — Primary key — NOT NULL
- 사용자 ID (user_id) — UUID
- 위치이름 (name) — String
- 위도 (lat) — Int
- 경도 (lon) — Int
- 즐겨찾기 (is_favorite) — Boolean
User (Untitled)
- 사용자 ID (id) — UUID — Primary key — NOT NULL
- 위치 ID (id2) — UUID — Foreign key → Location.위치 ID — NOT NULL
- 이메일 (email) — String
- 비밀번호 (password) — String
- 닉네임 (name) — String
- 지역 (location) — String
- 알림 설정 (alertOption) — Boolean
- 생성일시 (createdAt) — DateTime
- 수정일시 (updatedAt) — DateTime
- 가입유형 (register_Type) — String
- 로그인시간 (last_login_at) — DateTime
Weather_air_quality (Untitled6)
- 미세먼지 ID (id) — UUID — Primary key — NOT NULL
- 미세먼지 농도 (pm10_value) — double precision
- 초미세먼지 농도 (pm24_value) — doucle precision
- 대기질 등급 (air_grad) — String
- 측정 시각 (data_time) — timestamp
- 저장 시각 (created_at) — timestamp
- 위치 ID (location_id) — UUID
Weather_alerts (Untitled7)
Weather_data (Untitled2)
- 날씨 ID (id) — UUID — Primary key — NOT NULL
- 위치 ID (location_id) — UUID — Foreign key → Location.위치 ID — NOT NULL
- 온도 (temperature) — Float
- 습도 (humidity) — Float
- 날씨 상태 (status) — String
- 측정 시각 (timestamp) — DateTime
- Field