JavaProgramming
Tables (3)
Book (도서)
- bookId (도서 id) — BIGINT — Primary key — NOT NULL
- name (도서명) — String
- publisher (출판사) — String
- price (가격) — INT
- domain (도서 분류) — ENUM
- imageUrl (도서 이미지 파일명) — String
Member (유저)
- memberId (멤버 id) — BIGINT — Primary key — NOT NULL
- account (계정명) — String
- password (비밀번호) — String
- name (사용자 이름) — String
- address (주소) — String
- phoneNumber (휴대전화 번호) — INT
purchase (구입 도서)
- purchase_id (구입 도서 id) — BIGINT — Primary key — NOT NULL
- memberId (멤버 id) — BIGINT — Foreign key → Member.memberId — NOT NULL
- bookId (도서 id) — BIGINT — Foreign key → Book.bookId — NOT NULL
- purchaseTime (구입 년월일시) — Datetime