도서관
테이블 (8)
대출 (rental)
- 대출번호 (re_num) — int auto_increment not null — 기본 키 — NOT NULL
- 대출일 (re_rental_date) — date not null
- 반납예정일 (re_estimated_return_date) — date not null
- 반납일 (re_return_date) — date
- 연체기간 (re_overdue) — int
- 도서번호 (re_bo_num) — varchar(15) not null — 외래 키 → 도서.도서번호 — NOT NULL
- 회원번호 (re_me_num) — int auto_increment not null — 외래 키 → 회원.회원번호 — NOT NULL
도서 (books)
- 도서번호 (bo_num) — varchar(15) not null — 기본 키 — NOT NULL
- 도서명 (bo_title) — varchar(20) not null
- 상태 (bo_availability) — varchar(4) not null
- 분류명 (bo_ca_category) — varchar(10) not null — 외래 키 → 분류.분류명 — NOT NULL
- 출판사명 (bo_pu_name) — varchar(15) not null — 외래 키 → 출판사.출판사명 — NOT NULL
도서저자 (book_author)
- 도서저자번호 (ba_num) — int auto_increment not null — 기본 키 — NOT NULL
- 직업구분 (ba_job) — varchar(10)
- 도서번호 (ba_bo_num) — varchar(15) not null — 외래 키 → 도서.도서번호 — NOT NULL
- 인물번호 (ba_au_num) — int auto_increment not null — 외래 키 → 저자/옮긴이/엮은이.인물번호 — NOT NULL
분류 (category)
- 분류명 (ca_category) — varchar(10) not null — 기본 키 — NOT NULL
예약 (booking)
- 예약번호 (bk_num) — int auto_increment not null — 기본 키 — NOT NULL
- 예약일 (bk_date) — date not null
- 도서번호 (bk_bo_num) — varchar(15) not null — 외래 키 → 도서.도서번호 — NOT NULL
- 회원번호 (bk_me_num) — int auto_increment not null — 외래 키 → 회원.회원번호 — NOT NULL
저자/옮긴이/엮은이 (author)
- 인물번호 (au_num) — int auto_increment not null — 기본 키 — NOT NULL
- 이름 (au_name) — varchar(15) not null
- 생년월일 (au_birth) — date not null
- 학력 (au_education) — varchar(10)
출판사 (publisher)
- 출판사명 (pu_name) — varchar(15) not null — 기본 키 — NOT NULL
회원 (member)
- 회원번호 (me_num) — int auto_increment not null — 기본 키 — NOT NULL
- 아이디 (me_id) — varchar(15) not null
- 비밀번호 (me_pw) — varchar(45) not null
- 생년월일 (me_birth) — date not null
- 연락처 (me_phone) — varchar(11) not null
- 권한 (me_authority) — varchar(3) not null default '유저'
- 대출권수 (me_current_rental) — int not null default 0
- 연체 누적일 (me_overdue) — int