ㅁㄴㅇ
테이블 (7)
상영관 (screen)
- Key (id) — BIGINT — 기본 키 — NOT NULL
- Field (name) — VARCHAR(50)
- Field (total_seat) — INT
- Key (cinema_id) — BIGINT — 외래 키 → 영화관.Key — NOT NULL
상영시간 (screen_time)
- Key (id) — BIGINT — 기본 키 — NOT NULL
- Field (start_time) — Date
- Field (end_time) — Date
- Key (screen_id) — BIGINT — 외래 키 → 상영관.Key — NOT NULL
- Key (movie_id) — BIGINT — 외래 키 → 영화.Key — NOT NULL
영화 (movie)
- Key (id) — BIGINT — 기본 키 — NOT NULL
- Field (title) — VARCHAR(255)
- Field (description) — VARCHAR(255)
- Field (genre) — ENUM
- Field (poster) — VARCHAR(255)
- Field (duration) — INT
영화관 (cinema)
- Key (id) — BIGINT — 기본 키 — NOT NULL
- Field (name) — VARCHAR(50)
- Field (address) — VARCHAR(255)
- Field (sido) — VARCHAR(20)
- Field (gungu) — VARCHAR(50)
예약 (reservation)
- Key (id) — BIGINT — 기본 키 — NOT NULL
- Field (status) — (ENUM: CONFIRMED, CANCELLED)
- Key (screen_time_id) — BIGINT — 외래 키 → 상영시간.Key — NOT NULL
- Key (seat_id) — BIGINT — 외래 키 → 좌석.Key — NOT NULL
- Key (user_id) — BIGINT — 외래 키 → 유저.Key — NOT NULL
유저 (user)
- Key (id) — BIGINT — 기본 키 — NOT NULL
- Field (username) — VARCHAR(50)
- Field (phone_number) — VARCHAR(15)
- Field (email) — VARCHAR(100)
- Field (password) — VARCHAR(20)
- Field (is_withdraw) — (ENUM: ACTIVE, WITHDRAW)
- Field (refreshToken) — VARCHAR(255)
좌석 (seat)
- Key (id) — BIGINT — 기본 키 — NOT NULL
- Key (screen_id) — BIGINT — 외래 키 → 상영관.Key — NOT NULL