MusicalInfo

Tables (7)

customer

  • 고객아이디 (customer_id) — INT — Primary key
  • 고객비밀번호 (customer_pw) — VARCHAR(255) — NOT NULL
  • 고객핸드폰번호 (customer_phone) — VARCHAR(20)
  • 고객이메일 (customer_email) — VARCHAR(255)
  • 고객주소 (customer_address) — VARCHAR(255)
  • 고객생년월일 (customer_birth) — DATE

musical

  • 뮤지컬 아이디 (musical_id) — INT — Primary key
  • 뮤지컬 제목 (musical_title) — VARCHAR(255) — NOT NULL
  • 뮤지컬 포스터 (musical_poster) — VARCHAR(255)
  • 뮤지컬 상영기간 (musical_period) — VARCHAR(50)
  • 뮤지컬 러닝타임 (musical_runningtime) — INT
  • 뮤지컬 연령제한 (musical_agelimit) — VARCHAR(50)

musical_schedule

  • 공연 ID (mu_sch_id) — INT — Primary key
  • 뮤지컬 아이디 (musical_id) — INT — Foreign key → musical.뮤지컬 아이디
  • 공연장 아이디 (venue_id) — INT — Foreign key → venue.공연장 아이디
  • 공연 일자 (mu_sch_date) — DATE
  • 공연 시간 (mu_sch_time) — TIME
  • 총좌석수 (mu_sch_total_seat) — INT
  • 잔여좌석수 (Field) — INT

reservation

  • reservation_id — INT — Primary key
  • 좌석 ID (seat_id) — INT — Foreign key → seat.좌석 ID
  • 공연 ID (mu_sch_id) — INT — Foreign key → seat.공연 ID
  • 뮤지컬 아이디 (musical_id) — INT — Foreign key → seat.뮤지컬 아이디
  • 고객아이디 (customer_id) — INT — Foreign key → customer.고객아이디
  • 좌석등급 (seat_grade2) — VARCHAR(50) — Foreign key → seat.좌석등급

seat

  • 좌석 ID (seat_id) — INT — Primary key
  • 공연 ID (mu_sch_id) — INT — Foreign key → musical_schedule.공연 ID
  • 뮤지컬 아이디 (musical_id) — INT — Foreign key → musical_schedule.뮤지컬 아이디
  • 좌석등급 (seat_grade) — VARCHAR(50) — Foreign key → seat_price.좌석등급
  • 좌석명 (seat_name) — VARCHAR(50)
  • 행 (seat_row) — INT
  • 열 (seat_col) — INT
  • 예약유무 (seat_reservation) — BOOLEAN

seat_price

  • 좌석등급 (seat_grade) — VARCHAR(50) — Primary key
  • 좌석가격 (seat_price) — DECIMAL(10, 2)

venue

  • 공연장 아이디 (venue_id) — INT — Primary key
  • 공연장 이름 (venue_name) — VARCHAR(255) — NOT NULL