Mixsense_ERD
Tables (9)
Artist (아티스트)
- artist_id (아티스트 아이디) — uuid — Primary key — NOT NULL
- artist_name (아티스트 이름)
Likes (노래 좋아요)
- user_id (유저 아이디) — uuid — Foreign key → Profiles.user_id — NOT NULL
- track_id (트랙 아이디) — uuid — Foreign key → Track.track_id — NOT NULL
- artist_id (아티스트 아이디) — uuid — Foreign key → Track.artist_id — NOT NULL
- liked_at (좋아요 일자) — datetime
Playlist (플레이리스트)
- playlist_id (플레이리스트 아이디) — uuid — Primary key — NOT NULL
- user_id (유저 아이디) — uuid — Foreign key → Profiles.user_id — NOT NULL
- created_at (플레이리스트 제작 일자) — datetime
Playlist_Tracks (플레이리스트 노래)
- playlist_track_id (플레이리스트 노래 아이디) — uuid — Primary key — NOT NULL
- track_id (트랙 아이디) — uuid — Foreign key → Track.track_id — NOT NULL
- artist_id (아티스트 아이디) — uuid — Foreign key → Track.artist_id — NOT NULL
- playlist_id (플레이리스트 아이디) — uuid — Foreign key → Playlist.playlist_id — NOT NULL
- user_id (유저 아이디) — uuid — Foreign key → Playlist.user_id — NOT NULL
- added_at (추가된 일자) — datetime
Profiles (유저 프로필)
- user_id (유저 아이디) — uuid — Primary key — NOT NULL
- display_name (유저 이름) — char
- updated_at (업데이트 날짜) — datetime
Search_History (검색기록)
- search_history_id (검색 기록 아이디) — uuid — Primary key — NOT NULL
- user_id (유저 아이디) — uuid — Foreign key → Profiles.user_id — NOT NULL
- keyword (검색어) — varchar
- created_at (검색 일자) — datetime
Track (노래)
- track_id (트랙 아이디) — uuid — Primary key — NOT NULL
- artist_id (아티스트 아이디) — uuid — Foreign key → Artist.artist_id — NOT NULL
- track_name (트랙 이름) — char
- relase_date (발매일) — datetime
- youtube_video_id (유튜브 비디오 객체) — uuid
- image_url (트랙 이미지) — varchar
- lyrics (가사) — text
Trending_Tracks (일 단위 순위 정보)
- track_id (트랙 아이디) — uuid — Foreign key → Track.track_id — NOT NULL
- artist_id (아티스트 아이디) — uuid — Foreign key → Track.artist_id — NOT NULL
- rank (순위) — int
- crawled_at (크롤링 일자) — datetime
User_Recommendations (유저별 추천 리스트)
- user_id (유저 아이디) — uuid — Foreign key → Profiles.user_id — NOT NULL
- track_id (트랙 아이디) — uuid — Foreign key → Track.track_id — NOT NULL
- artist_id (아티스트 아이디) — uuid — Foreign key → Track.artist_id — NOT NULL
- recommendation_score (추천 점수) — int