Theater
테이블 (5)
극장 (theater)
- rNumber (관 번호) — check(rNumber between 1 and 20))
- mName (영화 이름) — foreign key
- tTime (회차 정보)
- tPrice (영화 가격) — not null
- remain (남은 좌석 수) — not null
영화 (movie)
- mName (영화 이름) — primary key — 기본 키 — NOT NULL
- mRated (나이 등급) — check(mRated between 1 and 200))
- mGenre (장르) — not null
예매 (book)
- bNumber (예매번호) — primary key — 기본 키 — NOT NULL
- id (회원 아이디) — foreign key
- mName (영화 이름) — foreign key
- tTime (회차 정보) — foreign key
- ticket (티켓수) — not null
- bPrice (총 구매 가격) — ticket*mPrice
회원 정보 (customer)
- id (회원 아이디) — primary key — 기본 키 — NOT NULL
- pwd (비밀번호) — not null
- cName (회원 이름) — not null
- gender (회원 성별) — check(gender in('남','여'))
- cAge (회원 나이) — check(cAge between 1 and 200)
후기 (review)
- reviewId (게시글번호) — primary key — 기본 키 — NOT NULL
- id (회원 아이디) — foreign key
- mName (영화 이름) — foreign key
- reviewDate (리뷰 작성일) — not null
- detail (리뷰 내용) — not null
- reviewRate (영화 별점) — check(reviewRate between 0 and 100)