kt aivle 16 오예성
테이블 (10)
Book (도서)
- book_id (도서 아이디) — integer — 기본 키 — NOT NULL
- book_title (제목) — string — NOT NULL
- book_genre (장르) — string — NOT NULL
- book_image_path (도서 표지) — string — NOT NULL
- book_author (작가) — string — NOT NULL
- book _price (도서 가격) — integer — NOT NULL
- book_publisher (출판사) — string — NOT NULL
- book_pubilsh_date (출판 일자) — Date — NOT NULL
- book_content_path (도서 내용) — string — NOT NULL
- book_like (좋아요 수) — integer — NOT NULL
- Field
- ISBN (국제도서표준번호) — string — NOT NULL
- user_id (Key) — integer — 외래 키 → Users.user_id — NOT NULL
Comment (댓글)
- comment_id (댓글 아이디) — integer — 기본 키 — NOT NULL
- comment_content (내용) — string — NOT NULL
- comment_updated_date (수정일자) — Date
- comment_created_date (작성일자) — Date — NOT NULL
- user_id (Key) — integer — 외래 키 → Users.user_id — NOT NULL
- post_id (게시판 아이디) — integer — 외래 키 → Post.post_id — NOT NULL
Inquiry (문의)
- inquiry_id (문의 아이디) — integer — 기본 키 — NOT NULL
- inquiry_category (문의 분류) — enum — NOT NULL
- inquiry_title (제목) — string — NOT NULL
- inquiry_content (내용) — string
- inquiry_answer (답변) — string
- inquiry_created_date (문의 생성일자) — Date — NOT NULL
- is_answered (처리 상태) — boolean — NOT NULL
- user_id (Key) — integer — 외래 키 → Users.user_id — NOT NULL
Post (게시글)
- post_id (게시판 아이디) — integer — 기본 키 — NOT NULL
- post_title (제목) — string — NOT NULL
- post_content (내용) — string — NOT NULL
- post_created_date (작성일자) — Date — NOT NULL
- post_updated_date (수정일자) — Date
- user_id (Key) — integer — 외래 키 → Users.user_id — NOT NULL
- book_id (도서 아이디) — integer — 외래 키 → Book.book_id — NOT NULL
RequestBook (도서 신청)
- requested_book_ id (요청 도서 아이디) — integer — 기본 키 — NOT NULL
- ISBN (국제도서표준번호) — string — NOT NULL
- request_count (요청 횟수) — integer — NOT NULL
Subscription (구독)
- sub_id (구독 아이디) — integer — 기본 키 — NOT NULL
- is_subscribed (구독 여부) — boolean — NOT NULL
- sub_start_date (구독 시작일) — Date
- sub_end_date (구독 종료일) — Date
- user_id (Key) — integer — 외래 키 → Users.user_id — NOT NULL
UserRequestBook (사용자 요청 도서 관계)
- requested_book_ id (요청 도서 아이디) — integer — 외래 키 → RequestBook.requested_book_ id — NOT NULL
- user_id (Key) — integer — 외래 키 → Users.user_id — NOT NULL
Users (사용자)
- user_id (사용자 아이디) — integer — 기본 키 — NOT NULL
- oauth_provider (Oauth 제공자) — NOT NULL
- oauth _id (Oauth 식별자)
- user_name (사용자 이름) — string — NOT NULL
- user_email (사용자 이메일) — string — NOT NULL
- user_phone_number (사용자 전화번호) — integer — NOT NULL
- user_created_at (사용자 생성일자) — Date — NOT NULL
- user_updated_at (사용자 정보 수정 일자) — Date — NOT NULL
- user_book_history (사용자 청취 이력) — int[] — NOT NULL
- user_liked_books (사용자 선호 도서) — int[]
- user_liked_voices (사용자 선호 청취) — int[]
- is_admin (어드민 유저) — boolean — NOT NULL
Voice (음성)
- voice_id (음성 아이디) — integer — 기본 키 — NOT NULL
- voice_name (음성 이름) — string — NOT NULL
- voice_like (좋아요 수) — integer — NOT NULL
- voice_path (음성 파일 경로) — string — NOT NULL
- voice_image_path (음성 이미지) — string — NOT NULL
- voice_created_date (음성 생성일자) — Date — NOT NULL
- is_public (공개여부) — boolean — NOT NULL
- user_id (Key) — integer — 외래 키 → Users.user_id — NOT NULL