CGV_clone

테이블 (12)

구매 (Untitled3)

  • Key3 — 기본 키 — NOT NULL
  • user_id (Key) — 외래 키 → 사용자.user_id — NOT NULL
  • product_id (Key2) — 외래 키 → 상품.product_id — NOT NULL

사용자 (User)

  • user_id (Key) — 기본 키 — NOT NULL
  • name (이름)
  • email (이메일)
  • password (비밀번호)
  • phoneNumber (전화번호)
  • birthDate (생년월일)
  • isDeleted (Field6)

상영 (Untitled8)

  • Key — 기본 키 — NOT NULL
  • movie_id (Key2) — 외래 키 → 영화.movie_id — NOT NULL
  • schedule_id (Key22) — 외래 키 → 상영관.Key2 — NOT NULL
  • startTime (상영 시작 시간)
  • endTime (상영 마감 시간)
  • possibleSeat (최대 좌석 수)

상영관 (Untitled5)

  • Key2 — 기본 키 — NOT NULL
  • cinema_id (Key) — 외래 키 → 영화관.cinema_id — NOT NULL
  • theaterType (Field)
  • name (Field2)
  • maxSeats (Field3)

상품 (Untitled9)

  • product_id (Key) — 기본 키 — NOT NULL
  • stock (int)
  • name (이름)
  • cinema_id (Key2) — 외래 키 → 영화관.cinema_id — NOT NULL

영화 (movie)

  • movie_id (Key) — 기본 키 — NOT NULL
  • title (제목)
  • releaseDate (개봉날짜)
  • runningTime (러닝타임)
  • ageRating (연령등급)
  • poster (포스터)
  • genre (장르)
  • prolog (프롤로그)

영화 찜 (movie_prefer)

  • movie_id (Key) — 외래 키 → 영화.movie_id — NOT NULL
  • user_id (Key2) — 외래 키 → 사용자.user_id — NOT NULL

영화관 (cinema)

  • cinema_id (Key) — 기본 키 — NOT NULL
  • address (주소)
  • name (Field)

영화관 찜 (Untitled2)

  • user_id (Key) — 외래 키 → 사용자.user_id — NOT NULL
  • cinema_id (Key2) — 외래 키 → 영화관.cinema_id — NOT NULL

예매 (reservation)

  • reservation_id (Key) — 기본 키 — NOT NULL
  • user_id (Key2) — 외래 키 → 사용자.user_id — NOT NULL
  • total_price (총 결제금액)
  • amount (총 예매 수량)

예매된좌석 (Untitled7)

  • ticket_id (Key3) — 기본 키 — NOT NULL
  • schedule_id (Key4) — 외래 키 → 상영.Key — NOT NULL
  • reservation_id (Key) — 외래 키 → 예매.reservation_id — NOT NULL
  • isAvailable (예매여부)
  • seat_id (Key2) — 외래 키 → 좌석.seat_id — NOT NULL

좌석 (seat)

  • seat_id (Key) — 기본 키 — NOT NULL
  • theater_id (Key2) — 외래 키 → 상영관.Key2 — NOT NULL
  • name (좌석명)
  • seatType (좌석 타입)
  • price (가격)