DB Modeling Assignment

Tables (9)

Admin (관리자)

  • 관리자 아이디 (Admin_id) — Primary key — NOT NULL
  • 관리자명 (Admin_name)

Customer (고객)

  • 고객 아이디 (Cust_id) — Primary key — NOT NULL
  • 폰번호 (Phone_num)

Employee (담당자)

  • 담당자 아이디 (Employee_id) — Primary key — NOT NULL
  • 상영관 아이디 (Screen_id) — Foreign key → Screen.상영관 아이디 — NOT NULL
  • 담당자 이름 (Field)

Movie (영화)

  • 영화 아이디 (Movie_id) — Primary key — NOT NULL
  • 영화명 (Movie_name)
  • 상영 시작일 (Start_date)
  • 상영 종료일 (End_date)

Screen (상영관)

  • 상영관 아이디 (Screen_id) — Primary key — NOT NULL
  • 관리자 아이디 (Admin_id) — Foreign key → Admin.관리자 아이디 — NOT NULL
  • 지점 아이디 (Theater_id) — Foreign key → Theater.지점 아이디
  • 좌석 수 (number_of_seat)

ScreenPeriod (상영시간)

  • 상영시간 아이디 (Screen_per_id) — Primary key — NOT NULL
  • 영화 아이디 (Movie_id) — Foreign key → Movie.영화 아이디 — NOT NULL
  • 상영관 아이디 (Screen_id) — Foreign key → Screen.상영관 아이디 — NOT NULL
  • 시작 시각 (Start_time)
  • 종료 시각 (End_time)

Seat (좌석)

  • 좌석 아이디 (Seat_id) — Primary key — NOT NULL
  • 상영관 아이디 (Screen_id) — Foreign key → Screen.상영관 아이디 — NOT NULL
  • 좌석 가격 (Seat_Price)
  • 좌석 위치 (Seat_location)
  • 좌석 종류 (Seat_Type)
  • 예약여부상태 (Is_Reserved)

Theater (지점)

  • 지점 아이디 (Theater_id) — Primary key
  • 지점명 (Theater_name) — NOT NULL

Ticket (티켓)

  • 티켓 아이디 (Ticket_id) — Primary key — NOT NULL
  • 고객 아이디 (Cust_id) — Foreign key → Customer.고객 아이디 — NOT NULL
  • 좌석 아이디 (Seat_id) — Foreign key → Seat.좌석 아이디 — NOT NULL
  • 상영시간 아이디 (Screen_per_id) — Foreign key → ScreenPeriod.상영시간 아이디 — NOT NULL