도서대여서비스
테이블 (7)
권한 (Role)
- 권한일련번호 (role_id) — 기본 키 — NOT NULL
- 권한 (authority)
대여 (Rental)
- 대여일련번호 (rental_id) — 기본 키 — NOT NULL
- 회원일련번호 (member_id) — 외래 키 → 회원.회원일련번호 — NOT NULL
- 대여일 (rent_date)
- 반납예정일 (return_date)
대여상품 (RentalItem)
- 대여상품일련번호 (rental_item_id) — 기본 키 — NOT NULL
- 대여일련번호 (rental_id) — 외래 키 → 대여.대여일련번호 — NOT NULL
- 상품일련번호 (item_id) — 외래 키 → 상품.상품일련번호 — NOT NULL
- 회원일련번호 (member_id) — 외래 키 → 대여.회원일련번호 — NOT NULL
- 반납일 (return_date)
- 반납여부 (return_yn)
도서 (Book)
- 상품일련번호 (item_id) — 외래 키 → 상품.상품일련번호 — NOT NULL
- 도서제목 (title) — varchar
- 저자 (author)
- ISBN (isbn)
- 출판사 (publisher)
상품 (Item)
- 상품일련번호 (item_id) — 기본 키 — NOT NULL
- 상품이름 (name)
- 상품설명 (description)
- 대여상태 (rental_status)
- 대여가능여부 (rendtal_yn)
상품리뷰 (ItemReview)
- 상품리뷰일련번호 (item_review_id) — 기본 키 — NOT NULL
- 회원일련번호 (member_id) — 외래 키 → 회원.회원일련번호 — NOT NULL
- 상품일련번호 (item_id) — 외래 키 → 상품.상품일련번호 — NOT NULL
- 리뷰제목 (title)
- 리뷰내용 (content)
- 작성일 (created_at)
- 수정일 (updated_at)
회원 (Member)
- 회원일련번호 (member_id) — 기본 키 — NOT NULL
- 회원명 (name)
- 생년월일 (birth_date)
- 성별 (gender)
- 연락처 (phone)
- 이메일 (email)
- 등록일 (created_at)
- 수정일 (updated_at)
- 탈퇴일 (deleted_at)
- 탈퇴여부 (deleted_yn)
- 권한일련번호 (role_id) — 외래 키 → 권한.권한일련번호 — NOT NULL