bokbookbok
Tables (6)
Book (책)
- id (아이디) — int — Primary key — NOT NULL
- title (책 제목) — string
- description (설명) — text
- start_date (시작 일자) — datetime
- end_date (완료 일자) — datetime
- imageUrl (책 표지 이미지) — text
Question (질문)
- id (아이디) — int — Primary key — NOT NULL
- book_id (책 아이디) — int — Foreign key → Book.id — NOT NULL
- question (질문) — text
- created_at (생성일) — datetime
- updated_at (수정일) — datetime
Review (감상평)
- id (아이디) — int — Primary key — NOT NULL
- user_id (유저 아이디) — int — Foreign key → User.id — NOT NULL
- book_id (책 아이디) — int — Foreign key → Book.id — NOT NULL
- content (리뷰 내용) — text
- like_count (공감수) — int
- created_at (작성일) — datetime
- updated_at (수정일) — datetime
User (사용자)
- id (아이디) — int — Primary key — NOT NULL
- email (이메일) — string
- nickname (닉네임) — string
- password (비밀번호) — string
- role (역할) — ENUM
UserBookRecord (사용자_책)
- id (아이디) — Primary key — NOT NULL
- user_id (유저 아이디) — int — Foreign key → User.id — NOT NULL
- book_id (책 아이디) — int — Foreign key → Book.id — NOT NULL
- status (상태) — ENUM
- reading_time (누적 독서 시간) — int
- created_at (등록일) — datetime
- update_at (수정일) — datetime
- started_at (독서 시작 날짜) — datetime
- ended_at (독서 마무리 날짜) — datetime
Vote (투표)
- id (아이디) — int — Primary key — NOT NULL
- question_id (질문 아이디) — int — Foreign key → Question.id — NOT NULL
- user_id (사용자 아이디) — int — Foreign key → User.id — NOT NULL
- vote (투표) — ENUM
- created_at (생성일) — datetime
- updated_at (수정일) — datetime