BoostCamp ERD 미션
테이블 (4)
book (책)
- id (Key) — 기본 키 — NOT NULL
- price (가격)
- title (책 제목)
- publisher (출판사)
- genre (장르)
- author (지은님)
rental_status (대여 현황)
- id (Key) — 기본 키 — NOT NULL
- user_id (사용자) — 외래 키 → user.id — NOT NULL
- video_id (비디오) — 외래 키 → video.id — NOT NULL
- book_id (책) — 외래 키 → book.id — NOT NULL
- rental_date (대여일자)
- deadline_date (반납일자)
- returned_date (실제 반납일자)
user (사용자)
- id (Key) — 기본 키 — NOT NULL
- name (이름)
- phone_number (휴대폰 번호)
- address (주소)
- birth (생년월일)
- created_date (가입일자)
- point (포인트)
video (비디오)
- id (Key) — 기본 키 — NOT NULL
- price (가격)
- title (제목)
- genre (장르)
- director (감독)