library
테이블 (3)
Books (Untitled)
- book_id (pk) — int — 기본 키 — NOT NULL
- enrolled_num (등록번호) — int
- title (도서명) — string — NOT NULL
- author (저자) — string
- publised (출판사) — string
- publish_date (출간일) — timestamp
- type (도서 타입) — string — DVD, e-book, 오디오북
- is_digital (전자 도서 여부) — boolean
- is_deleted (삭제 여부) — boolean
- location (도서 위치(자료실)) — string
- is_new (신규 도서 여부) — boolean
Users (Untitled2)
- user_id (id) — int — 기본 키 — NOT NULL
- name (회원 이름) — string — NOT NULL
- email (유저 email) — string — NOT NULL
- passwd (유저 패스워드) — jwt — NOT NULL
- tel (전화번호) — int — NOT NULL
- address (주소) — string — NOT NULL
- created_at (회원가입 날짜) — timestamp — NOT NULL
- updated_at (회원정보 수정일) — timestamp
- is_deleted (탈퇴 여부) — boolean
- deleted_at (회원 탈퇴일) — timestamp
- type (회원 타입) — string — NOT NULL — 정회원 , 준회원
회원 대여 상태 (Untitled3)
- status_id (id) — int — 기본 키 — NOT NULL
- user_id (uid) — int — 외래 키 → Users.user_id — NOT NULL
- book_id (도서 id) — int — 외래 키 → Books.book_id — NOT NULL
- status (도서 대여 상태) — boolean
- start_date (대출일) — timestamp
- is_renewed (연장 여부) — boolean
- org_end_date (반납 예정일) — timestamp
- end_date (연장된 반납 예정일) — timestamp
- return_date (실제 반납일) — timestamp