movie/musical 수정

테이블 (7)

리뷰 (REVIEW)

  • Key (review_id) — 기본 키 — NOT NULL
  • ID (user_id) — int — 외래 키 → 사용자.Key — NOT NULL
  • ID (movie_id) — 외래 키 → 영화.ID — NOT NULL
  • 평점 (rating)
  • 리뷰 내용 (review_text)
  • 리뷰날짜 (review_date)

사용자 (USER)

  • Key (user_id) — int — 기본 키 — NOT NULL
  • 이름 (user_name) — string — NOT NULL
  • 이메일 (email) — string
  • 아이디 (id)
  • 비밀번호 (password) — NOT NULL
  • 연락처 (number)
  • 생성일 (created_at)

사용자 프로필 (PROFILE)

  • Key (profile_id) — int — 기본 키 — NOT NULL
  • ID (user_id) — int — 외래 키 → 사용자.Key — NOT NULL
  • 닉네임 (nickname)
  • 프로필 이미지 (profile_image)
  • 자기소개 (intro) — text
  • 선호 장르 (preferred_genre) — varchar
  • 정보 공개 (notification_enabled)
  • 프로필 수정시간 (updated_at)

상영관 (THEATER)

  • Key (theater_id) — 기본 키 — NOT NULL
  • 극장이름 (theater_name) — string
  • 위치 (location) — string
  • 좌석 수 (seats) — int
  • 상태 (status)

영화 (MOVIE)

  • ID (movie_id) — 기본 키 — NOT NULL
  • 제목 (title) — string — NOT NULL
  • 설명 (description) — string
  • 장르 (genre)
  • 시간 (duration) — time
  • 개봉일 (release_date) — date
  • 관람 등급 (age_rating)
  • 감독 (director)
  • 출연진 (cast)
  • 포스터 (poster)

예약 (RESERVATION)

  • Key (reservation_id) — 기본 키 — NOT NULL
  • ID (user_id) — int — 외래 키 → 사용자.Key — NOT NULL
  • Key (schedule_id) — 외래 키 → 일정.Key — NOT NULL
  • 가격 (price)
  • 상태 (status)
  • 날짜 (date) — date
  • 좌석 번호 (seat_number) — int
  • 예약 시간 (created_at) — date

일정 (SCHEDULE)

  • Key (schedule_id) — 기본 키 — NOT NULL
  • Key (theater_id) — 외래 키 → 상영관.Key — NOT NULL
  • Key (movie_id) — 외래 키 → 영화.ID — NOT NULL
  • 상영일자 (show_date) — date
  • 시작시간 (start_time) — time
  • 종료시간 (end_time) — time
  • 잔여 좌석 (available_seats)