ceos_cgv
Tables (23)
Follow (팔로우)
- 팔로우아이디 (follow_id) — BIGINT — Primary key — NOT NULL
- 팔로워아이디 (follower_id) — BIGINT — Foreign key → User.유저아이디 — NOT NULL
- 팔로잉아이디 (following_id) — BIGINT — Foreign key → User.유저아이디 — NOT NULL
Movie (영화)
- 영화아이디 (movie_id) — BIGINT — Primary key — NOT NULL
- 영화제목 (movie_title)
- 영화 전체 상영시간 (running_time)
- 영화 설명 (description)
- 영화 개봉일 (open_date)
- 영화 종영일 (end_date)
- 상영상태 (status)
MovieParticipant (영화-참여자)
- 영화-참여자아이디 (movie_pariticipant_id) — BIGINT — Primary key — NOT NULL
- 출연자타입 (participant_role)
- 영화아이디 (movie_id) — BIGINT — Foreign key → Movie.영화아이디 — NOT NULL
- 참여자 (participant_id) — BIGINT — Foreign key → Participant.참여자 — NOT NULL
MoviePoster (영화포스터)
- 영화포스터아이디 (movieposter_id) — Primary key — NOT NULL
- 영화포스터url (movie_image_url)
- 영화아이디 (movie_id) — BIGINT — Foreign key → Movie.영화아이디 — NOT NULL
MovieStatistic (영화통계)
- 영화통계아이디 (moviestatistic_id) — BIGINT — Primary key — NOT NULL
- 누적관객수 (audience_count)
- 예매율 (reservation_rate)
- 에그지수 (egg_rate)
- 총리뷰수 (review_count)
- 영화아이디 (movie_id) — BIGINT — Foreign key → Movie.영화아이디 — NOT NULL
Participant (참여자(감독/출연))
- 참여자 (participant_id) — BIGINT — Primary key — NOT NULL
- 이름 (name)
- 출연자사진 (profile_url)
Reservation (예매 내역)
- 예매내역아이디 (reservation_id) — BIGINT — Primary key — NOT NULL
- 총금액 (total_price)
- 예매상태 (status)
- 상영일정아이디 (screening_id) — BIGINT — Foreign key → Screening.상영일정아이디 — NOT NULL
- 유저아이디 (user_id) — BIGINT — Foreign key → User.유저아이디 — NOT NULL
ReservationSeat (예매좌석)
- 예매좌석아이디 (reservation_seat_id) — BIGINT — Primary key — NOT NULL
- 예매내역아이디 (reservation_id) — BIGINT — Foreign key → Reservation.예매내역아이디 — NOT NULL
- 좌석아이디 (seat_id2) — BIGINT — Foreign key → Seat.좌석아이디 — NOT NULL
- 상영일정아이디 (screening_id) — BIGINT — Foreign key → Screening.상영일정아이디 — NOT NULL
Review (영화리뷰)
- 리뷰아이디 (review_id) — BIGINT — Primary key — NOT NULL
- 별점 (rate)
- 내용 (content)
- 유저아이디 (user_id) — BIGINT — Foreign key → User.유저아이디 — NOT NULL
- 영화아이디 (movie_id) — BIGINT — Foreign key → Movie.영화아이디 — NOT NULL
Screen (상영관)
- 상영관아이디 (screen_id) — BIGINT — Primary key — NOT NULL
- 영화관아이디 (theater_id) — BIGINT — Foreign key → Theater.영화관아이디 — NOT NULL
- 영화관종류 (theater_type)
- 총좌석수 (seat_num)
- 상영관타입아이디 (screentype_id) — BIGINT — Foreign key → ScreenType.상영관타입아이디 — NOT NULL
ScreenType (상영관 타입)
- 상영관타입아이디 (screentype_id) — BIGINT — Primary key — NOT NULL
- 상영관타입이름 (name)
- 기본가격 (basePrice)
Screening (상영일정)
- 상영일정아이디 (screening_id) — BIGINT — Primary key — NOT NULL
- 상영관아이디 (screen_id) — Foreign key → Screen.상영관아이디 — NOT NULL
- 영화아이디 (movie_id) — Foreign key → Movie.영화아이디 — NOT NULL
- 상영시작시간 (start_time)
- 상영종료시간 (end_time)
- 상영회차 (screening_sequence)
ScreeningSeat (Untitled)
- Key — Primary key — NOT NULL
- 상영일정아이디 (screening_id) — BIGINT — Foreign key → Screening.상영일정아이디 — NOT NULL
- 좌석아이디 (seat_id) — BIGINT — Foreign key → Seat.좌석아이디 — NOT NULL
Seat (좌석)
- 좌석아이디 (seat_id) — BIGINT — Primary key — NOT NULL
- 좌석행 (seat_row)
- 좌석열 (seat_column)
- 상영관아이디 (screen_id) — BIGINT — Foreign key → Screen.상영관아이디 — NOT NULL
SeatTemplate (좌석 템플릿)
- 좌석템플릿아이디 (seat_template_id) — BIGINT — Primary key — NOT NULL
- 좌석 행 (seat_row)
- 좌석 열 (seat_column)
- 상영관타입아이디 (screentype_id) — BIGINT — Foreign key → ScreenType.상영관타입아이디 — NOT NULL
SnackItem (매점상품)
- 매점상품아이디 (snackitem_id) — BIGINT — Primary key — NOT NULL
- 이름 (name)
- 가격 (price)
SnackOrder (매점주문)
- 매점주문아이디 (snack_order_id) — Primary key — NOT NULL
- 총 결제 금액 (total_price)
- 주문 상태 (order_status)
- 구매일시 (ordered_at)
- 유저아이디 (user_id) — BIGINT — Foreign key → User.유저아이디 — NOT NULL
- 영화관아이디 (theater_id) — BIGINT — Foreign key → Theater.영화관아이디 — NOT NULL
SnackOrderItem (매점주문상품)
- 주문상품아이디 (snackorderitem_id) — Primary key — NOT NULL
- 구매 수량 (quantity)
- 구매가격 (price)
- 매점주문아이디 (snack_order_id) — Foreign key → SnackOrder.매점주문아이디 — NOT NULL
- 매점상품아이디 (snackitem_id) — BIGINT — Foreign key → SnackItem.매점상품아이디 — NOT NULL
SnackStock (지점별 재고)
- 지점별재고아이디 (snackstock_id) — Primary key — NOT NULL
- 현재 재고 수량 (stock_quantity)
- 매점상품아이디 (snackitem_id) — BIGINT — Foreign key → SnackItem.매점상품아이디 — NOT NULL
- 영화관아이디 (theater_id) — BIGINT — Foreign key → Theater.영화관아이디 — NOT NULL
Theater (영화관)
- 영화관아이디 (theater_id) — BIGINT — Primary key — NOT NULL
- 영화관이름 (name)
- 주소 (address)
- 지역 (region)
User (사용자)
- 유저아이디 (user_id) — BIGINT — Primary key — NOT NULL
- 닉네임 (nickname)
- 생일 (birthday)
- 아이디 (login_id)
- 비밀번호 (password)
- 전화번호 (phone)
UserMovie (영화찜)
- 영화찜아이디 (usermovie_id) — Primary key — NOT NULL
- 유저아이디 (user_id) — BIGINT — Foreign key → User.유저아이디 — NOT NULL
- 영화아이디 (movie_id2) — BIGINT — Foreign key → Movie.영화아이디 — NOT NULL
UserTheater (영화관 찜)
- 영화관찜아이디 (usertheater_id) — BIGINT — Primary key — NOT NULL
- 유저아이디 (user_id) — BIGINT — Foreign key → User.유저아이디 — NOT NULL
- 영화관아이디 (theater_id2) — BIGINT — Foreign key → Theater.영화관아이디 — NOT NULL