sogeun_backend

Tables (5)

Broadcast (송출 정보)

  • 송출 id (broadcast_id) — int — Primary key — NOT NULL
  • 트랙 아이디 (trackId) — number — Foreign key → Music.트랙 아이디 — NOT NULL
  • 좋아요 수 (like_count) — int

Likes (좋아요 (relation))

  • 유저 아이디 (user_id) — int — Foreign key → User.유저 아이디 — NOT NULL
  • 송출 id (broadcast_id) — int — Foreign key → Broadcast.송출 id — NOT NULL
  • 트랙 아이디 (trackId) — number — Foreign key → Broadcast.트랙 아이디 — NOT NULL
  • 좋아요 한 일시 (liked_at) — date

Music (음악)

  • 트랙 아이디 (trackId) — number — Primary key — NOT NULL
  • 곡 제목 (trackName) — string
  • 아티스트 명 (artistName) — string
  • 앨범 아트 주소 (artworkUrl) — string
  • 미리듣기 주소 (previewUrl) — string

Played History (재생 기록)

  • 기록 id (history_id) — int — Primary key — NOT NULL
  • 유저 아이디 (user_id) — int — Foreign key → User.유저 아이디 — NOT NULL
  • 트랙 아이디 (trackId) — number — Foreign key → Music.트랙 아이디 — NOT NULL
  • 재생 일시 (played_at) — date

User (유저)

  • 유저 아이디 (user_id) — int — Primary key — NOT NULL
  • 로그인 아이디 (login_id) — string
  • 비밀번호 (password) — string
  • 닉네임 (nickname) — string