ReservationERD
Tables (9)
Admin (관리자)
- 관리자ID (admin_id) — Primary key — NOT NULL
- 관리자 이름 (admin_name)
Customer (고객)
- 고객ID (customer_id) — Primary key — NOT NULL
- 휴대폰 번호 (phone_num)
Employee (담당자)
- 담당자ID (employee_id) — Primary key — NOT NULL
- 담당자 이름 (employee_name)
Movie (영화)
- 영화ID (movie_id) — Primary key — NOT NULL
- 영화 제목 (movie_title)
- 영화 시작일 (start_date)
- 영화 종료일 (end_date)
- 영화 상영 시간 (movie_period)
Screen (상영관)
- 상영관ID (screed_id) — Primary key — NOT NULL
- 상영관 번호 (screen_num)
- 지점ID (theater_id) — Foreign key → Theater.지점ID — NOT NULL
- 담당자ID (employee_id) — Foreign key → Employee.담당자ID — NOT NULL
ScreenPeriod (상영 시간)
- 상영 시간ID (period_id) — Primary key — NOT NULL
- 상영 시작 시간 (stard_time)
- 상영 종료 시간 (end_time)
- 상영관ID (screed_id) — Foreign key → Screen.상영관ID — NOT NULL
- 영화ID (movie_id) — Foreign key → Movie.영화ID — NOT NULL
Seat (좌석)
- 좌석ID (seat_id) — Primary key — NOT NULL
- 좌석 위치 (seat_position)
- 좌석 종류 (seat_type)
- 좌석 가격 (seat_price)
- 상영관ID (screed_id) — Foreign key → Screen.상영관ID — NOT NULL
Theater (지점)
- 지점ID (theater_id) — Primary key — NOT NULL
- 지점 이름 (theater_name)
Ticket (티켓)
- 티켓ID (ticket_id) — Primary key — NOT NULL
- 좌석ID (seat_id) — Foreign key → Seat.좌석ID — NOT NULL
- 고객ID (customer_id) — Foreign key → Customer.고객ID — NOT NULL
- 상영 시간ID (period_id) — Foreign key → ScreenPeriod.상영 시간ID — NOT NULL