erd1

Tables (9)

Actor

  • 배우아이디 (actor_id) — DEFAULT — Primary key — NOT NULL — AUTO_INCREMENT
  • 배우이름 (name) — NOT NULL — NOT NULL

Member

  • 회원아이디 (member_id) — Primary key — NOT NULL — NOT NULL
  • 이름 (name) — NOT NULL — NOT NULL
  • 전화번호 (phone) — NOT NULL — NOT NULL
  • 이메일 (email) — NOT NULL — NOT NULL
  • 비밀번호 (password) — NOT NULL — NOT NULL
  • 거주 지역 (adress) — NOT NULL — NOT NULL
  • 회원등급 (membership_level) — DEFAULT 'Basic' — DEFALUT 'Basic'
  • 포인트 (point) — DEFAULT — NOT NULL

Movie

  • 영화아이디 (movie_id) — DEFAULT — Primary key — NOT NULL — AUTO_INCREMENT
  • 제목 (title) — NOT NULL
  • 장르 (genre) — NOT NULL — NOT NULL
  • 감독명 (director) — NOT NULL — NOT NULL
  • 최초 상영일 (release_date) — NOT NULL
  • 제작사 정보 (production_company) — NOT NULL

MovieActor

  • 캐스트아이디 (cast_id) — DEFAULT — Primary key — NOT NULL — AUTO_INCREMENT
  • 배우아이디 (actor_id) — DEFAULT — Foreign key → Actor.배우아이디 — NOT NULL — AUTO_INCREMENT
  • 영화아이디 (movie_id) — DEFAULT — Foreign key → Movie.영화아이디 — NOT NULL — AUTO_INCREMENT
  • 캐스팅 일자 (cast_date) — NOT NULL

ReserSeat (ReservSeat)

  • 예매좌석아이디 (reserv_seat_id) — DEFAULT — Primary key — NOT NULL — AUTO_INCREMENT
  • 예매아이디 (reserv_id) — DEFAULT — Foreign key → Reservation.예매아이디 — NOT NULL — AUTO_INCREMENT
  • 극장아이디 (theater_id) — DEFAULT — Foreign key → Reservation.극장아이디 — NOT NULL — AUTO_INCREMENT
  • 영화아이디 (movie_id) — DEFAULT — Foreign key → Reservation.영화아이디 — NOT NULL — AUTO_INCREMENT
  • 회원아이디 (member_id) — Foreign key → Reservation.회원아이디 — NOT NULL — NOT NULL
  • 좌석아이디 (seat_id2) — DEFAULT — Foreign key → Seat.좌석아이디 — NOT NULL — AUTO_INCREMENT
  • 극장아이디 (theater_id2) — DEFAULT — Foreign key → Seat.극장아이디 — NOT NULL — AUTO_INCREMENT

Reservation

  • 예매아이디 (reserv_id) — DEFAULT — Primary key — NOT NULL — AUTO_INCREMENT
  • 극장아이디 (theater_id) — DEFAULT — Foreign key → Theater.극장아이디 — NOT NULL — AUTO_INCREMENT
  • 영화아이디 (movie_id) — DEFAULT — Foreign key → Movie.영화아이디 — NOT NULL — AUTO_INCREMENT
  • 회원아이디 (member_id) — Foreign key → Member.회원아이디 — NOT NULL — NOT NULL
  • 예매일 (reserv_date) — NOT NULL
  • 결제수단 (method) — NOT NULL — NOT NULL

Screen

  • 상영번호 (screen_id) — DEFAULT — Primary key — NOT NULL — AUTO_INCREMENT
  • 영화아이디 (movie_id) — DEFAULT — Foreign key → Movie.영화아이디 — NOT NULL — AUTO_INCREMENT
  • 극장아이디 (theater_id) — DEFAULT — Foreign key → Theater.극장아이디 — NOT NULL — AUTO_INCREMENT
  • 상영일자 (screen_date) — NOT NULL
  • 상영관 명 (screen_name) — NOT NULL — NOT NULL
  • 상영시간정보 (screen_time) — NOT NULL

Seat

  • 좌석아이디 (seat_id) — DEFAULT — Primary key — NOT NULL — AUTO_INCREMENT
  • 극장아이디 (theater_id) — DEFAULT — Foreign key → Theater.극장아이디 — NOT NULL — AUTO_INCREMENT
  • 행 (row_num) — DEFAULT — NOT NULL
  • 열 (col_num) — DEFAULT — NOT NULL
  • 좌석명 (seat_name) — NOT NULL — NOT NULL

Theater

  • 극장아이디 (theater_id) — DEFAULT — Primary key — NOT NULL — AUTO_INCREMENT
  • 극장 지점명 (Field) — NOT NULL — NOT NULL
  • 극장위치 (location) — NOT NULL — NOT NULL
  • 상영관 수 (total_halls) — DEFAULT — NOT NULL