test

테이블 (14)

가사 소절 (LyricsLine)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 곡 id (song_id) — int — 외래 키 → 곡.id — NOT NULL
  • 듀엣 곡 파트 id (duet_song_part_id) — int — 외래 키 → 듀엣 곡 파트.id — 솔로 곡일 경우 NULL
  • 가사 순서 (line_index) — int — NOT NULL
  • 가사 문자열 (text) — string — NOT NULL
  • 가사 시작 시간 (start_time_ms) — int — NOT NULL — 단위: ms

곡 (SONG)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 원곡 파일 id (original_audio_file_id) — int — 외래 키 → 오디오 파일.id — NOT NULL
  • MR 파일 id (mr_audio_file_id) — int — 외래 키 → 오디오 파일.id — NOT NULL
  • 앨범 커버 파일 id (album_cover_file_id) — int — 외래 키 → 이미지 파일.id — NOT NULL
  • 트레이닝 모드 (training_mode) — string — NOT NULL — enum('SOLO', 'DUET', 'GUEST')
  • 제목 (title) — string — NOT NULL
  • 아티스트 (artist) — string — NOT NULL
  • 성부 (voice_type) — string — NOT NULL — enum('SOPRANO', 'ALTO', 'TENOR', 'BASS')
  • 최저 음역대 (pitch_note_min) — string — NOT NULL — e.g. 'E1'
  • 최고 음역대 (pitch_note_max) — string — NOT NULL — e.g. 'F4'

녹음본 (RECORDING)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 오디오 파일 id (audio_file_id) — int — 외래 키 → 오디오 파일.id — NOT NULL
  • 트레이닝 세션 id (training_session_id) — int — 외래 키 → 트레이닝 세션.id — 비로그인 녹음본은 NULL
  • 보컬 분석 리포트 id (vocal_analysis_report_id) — int — 외래 키 → 보컬 분석 리포트.id — 병합 녹음본은 NULL
  • 녹음 형식 (recording_format) — string — NOT NULL — enum('MERGED', 'SINGLE')
  • 녹음 시점 (recording_phase) — string — NOT NULL — enum('PRE', 'POST', 'GUEST')
  • 생성일 (created_at) — datetime — NOT NULL — 비로그인 녹음본 일정 기간 지나면 삭제

듀엣 곡 파트 (DUET_SONG_PART)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 곡 id (song_id) — int — 외래 키 → 곡.id — NOT NULL
  • 파트 번호 (part_number) — int — NOT NULL — e.g. 1
  • 파트 이름 (part_name) — string — NOT NULL — e.g. 영희

듀엣 트레이닝 방 (DUET_TRAINING_ROOM)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 호스트 사용자 id (host_id) — int — 외래 키 → 사용자.id — NOT NULL
  • 곡 id (song_id) — int — 외래 키 → 곡.id — NOT NULL
  • 호스트 트레이닝 세션 id (host_training_session_id) — int — 외래 키 → 트레이닝 세션.id — 비매칭 상태에서 NULL
  • 파트너 트레이닝 세션 id (partner_training_session_id) — int — 외래 키 → 트레이닝 세션.id — 비매칭 상태에서 NULL
  • 호스트 사용자 파트 id (host_user_part_id) — int — 외래 키 → 듀엣 곡 파트.id — NOT NULL
  • 파트너 사용자 파트 id (partner_user_part_id) — int — 외래 키 → 듀엣 곡 파트.id — NOT NULL
  • 커리큘럼 기간 (일) (curriculum_days) — int — NOT NULL — e.g. 3, 7, 14
  • 진행 상태 (status) — string — NOT NULL — enum('PENDING', 'IN_SESSION', 'COMPLETED')
  • 훈련 전 녹음 기한 (pre_recording_due_date) — date — 비매칭 상태에서 NULL
  • 훈련 후 녹음 기한 (post_recording_due_date) — date — 비매칭 상태에서 NULL
  • 생성일 (created_at) — datetime — NOT NULL

듀엣 파트너 신청 (DUET_ROOM_APPLICATION)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 듀엣 트레이닝 방 id (duet_trining_room_id) — int — 외래 키 → 듀엣 트레이닝 방.id — NOT NULL
  • 파트너 신청 사용자 id (applicant_user_id) — int — 외래 키 → 사용자.id — NOT NULL
  • 신청일 (created_at) — datetime — NOT NULL

보컬 분석 리포트 (VOCAL_ANALYSIS_REPORT)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 사용자 id (user_id) — int — 외래 키 → 사용자.id — 비로그인 시 사용자 id값 NULL
  • 훈련 전 리포트 id (pre_training_report_id) — int — 외래 키 → 보컬 분석 리포트.id — NULL IF report_type = 'PRE'
  • 곡 id (song_id) — int — 외래 키 → 곡.id — NOT NULL
  • 제목 (title) — string — NOT NULL — yyyy-MM-dd song title
  • 트레이닝 모드 (training_mode) — string — NOT NULL — enum('SOLO', 'DUET')
  • 리포트 구분 (report_type) — string — NOT NULL — enum('PRE', 'POST', 'GUEST')
  • 음정 점수 (pitch_score) — int — NOT NULL — 0~100
  • 박자 점수 (beat_score) — int — NOT NULL — 0~100
  • 발성 점수 (vocalization_score) — int — NOT NULL — 0~100
  • 호흡 점수 (breath_score) — int — NOT NULL — 0~100
  • 총평 제목 (overall_review_title) — string — NOT NULL
  • 총평 내용 (overall_review_content) — string — NOT NULL
  • 원인 내용 (cause_content) — string — NOT NULL IF report_type = 'PRE'
  • 제안 내용 (proposal_content) — string — NOT NULL IF report_type = 'PRE'
  • 최종 피드백 제목 (feedback_title) — string — NOT NULL IF report_type = 'POST'
  • 최종 피드백 내용 (feedback_content) — string — NOT NULL IF report_type = 'POST'
  • 생성일 (created_at) — datetime — NOT NULL

사용자 (USER)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 아이디 (username) — string — NOT NULL — UNIQUE
  • 비밀번호 (password) — string — NOT NULL
  • 닉네임 (nickname) — string — NOT NULL
  • 성별 (gender) — string — NOT NULL — enum('MALE', 'FEMALE')
  • 나이 (age) — int — NOT NULL
  • 성부 (voice_type) — string — NOT NULL — enum('SOPRANO', 'ALTO', 'TENOR', 'BASS')
  • 최저 음역대 (pitch_note_min) — string — NOT NULL — e.g. 'E1'
  • 최고 음역대 (pitch_note_max) — string — NOT NULL — e.g. 'F4'
  • 듀엣 페널티 횟수 (duet_penalty_count) — int — NOT NULL
  • 듀엣 페널티 기한 (duet_penalty_until) — date
  • JWT 리프레시 토큰 (refresh_token) — string

사용자 훈련 기록 (USER_TRAINING_LOG)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 사용자 id (user_id) — int — 외래 키 → 사용자.id — NOT NULL
  • 훈련 id (training_id) — int — 외래 키 → 훈련.id — NOT NULL
  • 훈련 횟수 (training_count) — int — NOT NULL

오디오 파일 (AUDIO_FILE)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 파일 이름 (file_name) — string — NOT NULL
  • 파일 경로 (file_url) — string — NOT NULL — S3 url

이미지 파일 (IMAGE_FILE)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 파일 이름 (file_name) — string — NOT NULL
  • 파일 경로 (file_url) — string — NOT NULL — S3 url

트레이닝 세션 (TRAINING_SESSION)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 사용자 id (user_id) — int — 외래 키 → 사용자.id — NOT NULL
  • 곡 id (song_id) — int — 외래 키 → 곡.id — NOT NULL
  • 트레이닝 모드 (training_mode) — string — NOT NULL — enum('SOLO', 'DUET')
  • 커리큘럼 기간 (일) (curriculum_days) — int — NOT NULL — e.g. 3, 7, 14
  • 진행 상태 (status) — string — NOT NULL — enum('BEFORE_TRAINING', 'TRAINING_IN_PROGRESS', 'AFTER_TRAINING')
  • 커리큘럼 시작일 (curriculum_start_date) — date — NOT NULL
  • 커리큘럼 종료일 (curriculum_end_date) — date — NOT NULL — 시작일 + 커리큘럼 기간

트레이닝 세션 훈련 (TRAINING_SESSION_TRAINING)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 트레이닝 세션 id (training_session_id) — int — 외래 키 → 트레이닝 세션.id — NOT NULL
  • 훈련 id (training_id) — int — 외래 키 → 훈련.id — NOT NULL
  • 진행도 (progress) — int — NOT NULL
  • 현재 진행 중인 훈련 여부 (isCurrentTraining) — boolean — NOT NULL

훈련 (TRAINING)

  • id — int — 기본 키 — NOT NULL — Auto Increment
  • 제목 (title) — string — NOT NULL
  • 설명 (description) — string — NOT NULL
  • 훈련 분류 (category) — string — NOT NULL — enum('PITCH', 'BEAT', 'VOCALIZATION', 'BREATH')
  • 등급 (grade) — string — NOT NULL — enum('HIGH', 'MEDIUM', 'LOW')
  • 시간 (training_minutes) — int — NOT NULL