redis cinema project
Tables (7)
Cinema (영화관)
- 영화관 id (cinema_id) — BIGINT — Primary key — NOT NULL
- 영화관 이름 (cinema_name) — VARCHAR
Movie (영화)
- 영화 id (movie_id) — BIGINT — Primary key — NOT NULL
- 영화 제목 (title) — VARCHAR
- 영상물 등급 (rating) — VARCHAR
- 개봉일 (releasedAt) — DATETIME
- 썸네일 이미지 (thumbnail) — VARCHAR
- 러닝 타임 (duration) — INT
- 영화 장르 (genre) — VARCHAR
Reservation (예약)
- 예약 id (reservation_id) — BIGINT — Primary key — NOT NULL
- 유저 id (user)id) — BIGINT — Foreign key → User.유저 id — NOT NULL
- 좌석 id (seat_id) — BIGINT — Foreign key → Seat.좌석 id — NOT NULL
- 상영 id (screening_id) — BIGINT — Foreign key → Screening.상영 id — NOT NULL
Screening (상영)
- 상영 id (screening_id) — BIGINT — Primary key — NOT NULL
- 영화 id (movie_id) — BIGINT — Foreign key → Movie.영화 id — NOT NULL
- 상영관 id (theater_id) — BIGINT — Foreign key → Theater.상영관 id — NOT NULL
- 시작 시간 (startedAt) — DATETIME
- 종료 시간 (endedAt) — DATETIME
Seat (좌석)
- 좌석 id (seat_id) — BIGINT — Primary key — NOT NULL
- 행 (seat_row) — VARCHAR
- 열 (seat_column) — INT
Theater (상영관)
- 상영관 id (theater_id) — BIGINT — Primary key — NOT NULL
- 영화관 id (cinema_id) — BIGINT — Foreign key → Cinema.영화관 id — NOT NULL
- 상영관 이름 (theater_name) — VARCHAR
User (유저)
- 유저 id (user_id) — BIGINT — Primary key — NOT NULL
- 유저 이름 (user_name) — VARCHAR