movie
Tables (6)
member (회원)
- id (회원 id) — BIGINT — Primary key — NOT NULL
- name (회원 이름) — VARCHAR
- amount (회원 보유 돈) — INTEGER
movie (영화 데이터)
- id (영화 id) — BIGINT — Primary key — NOT NULL
- name (영화 이름) — VARCHAR
- time (영화 상영시간) — DATETIME
seat (좌석)
- id (좌석id) — BIGINT — Primary key — NOT NULL
- col (좌석 열) — VARCHAR
- num (좌석 번호) — INTEGER
- screen_number (상영관 번호) — INTEGER
show_seat (좌석 예매 상태)
- id (Key) — BIGINT — Primary key — NOT NULL
- status (좌석 상태) — VARCHAR
- create_at (좌석 예매 일시) — DATETIME
- movie_id (영화 id) — BIGINT — Foreign key → movie.id — NOT NULL
- seat_id (좌석id) — BIGINT — Foreign key → seat.id — NOT NULL
ticket_history (예매 내역)
- id (예매 내역 id) — BIGINT — Primary key — NOT NULL
- created_at (예매 일시) — DATETIME
- type (예매 타입) — VARCHAR
- member_id (회원 id) — BIGINT — Foreign key → member.id — NOT NULL
- movie_id (영화 id) — BIGINT — Foreign key → movie.id — NOT NULL
transaction_history (거래 내역)
- id (거래 내역 id) — BIGINT — Primary key — NOT NULL
- created_at (거래 일시) — DATETIME
- type (거래 타입) — VARCHAR
- amount (거래 금액) — INTEGER
- member_id (회원 id) — BIGINT — Foreign key → member.id — NOT NULL