123
테이블 (4)
고객 (customer)
- 고객아이디 (customer_id) — not null — 기본 키 — NOT NULL
- 비밀번호 (customer_password) — not null
- 고객명 (customer_name) — not null
- 전화번호 (customer_number) — not null
- 나이 (customer_age) — not null
- 성별 (customer_gender) — not null
- 포인트 (customer_point) — not null
도서 (books)
- 순번 (books_number) — not null — 기본 키 — NOT NULL
- 도서명 (books_name) — not null
- 저자 (books_ author) — not null
- 출판사 (books_ publisher) — not null
- 발행일 (books_publisheddate) — not null
도서 대여대장 (rental)
- 대여고객 (rental_customer) — not null — 기본 키 — NOT NULL
- 순번 (books_number) — not null — 외래 키 → 도서.순번 — NOT NULL
- 대여도서 (rental_books) — not null
- 대여날짜 (rental_rentaldate) — not null
- 반납날짜 (rental_returndate) — not null
- 고객아이디 (customer_id) — not null — 외래 키 → 고객.고객아이디 — NOT NULL
이벤트 (event)
- 후기 (event_ impression) — not null — 기본 키 — NOT NULL
- 고객아이디 (customer_id) — not null — 외래 키 → 고객.고객아이디 — NOT NULL