kt aivle 16
Tables (6)
Book (도서)
- book_id (Key) — integer — Primary key — NOT NULL
- author (작가) — string — NOT NULL
- title (제목) — string — NOT NULL
- publisher (출판사) — string — NOT NULL
- like (좋아요 수) — integer — NOT NULL
- book_path (도서 내용) — string — NOT NULL
- image_path (도서 표지) — string — NOT NULL
- genre (장르) — enum — NOT NULL
- is_register (Field)
- is_requested (Field2)
- user_id (Key2) — integer — Foreign key → Users.user_id — NOT NULL
Comment (댓글)
- comment_id (댓글 아이디) — integer — Primary key — NOT NULL
- content (내용) — string — NOT NULL
- created_date (작성일자) — Date — NOT NULL
- id (게시판 아이디) — integer — Foreign key → Post.post_id — NOT NULL
- user_id (Key) — integer — Foreign key → Users.user_id — NOT NULL
Inquiry (문의)
- inquiry_id (문의 아이디) — integer — Primary key — NOT NULL
- category (문의 분류) — enum — NOT NULL
- title (제목) — string — NOT NULL
- content (내용) — string
- is_answered (처리 상태) — boolean — NOT NULL
- answer (답변) — string
- user_id (Key) — integer — Foreign key → Users.user_id — NOT NULL
Post (게시글)
- post_id (게시판 아이디) — integer — Primary key — NOT NULL
- title (제목) — string — NOT NULL
- content (내용) — string — NOT NULL
- created_date (작성일자) — Date — NOT NULL
- Field
- user_id (Key) — integer — Foreign key → Users.user_id — NOT NULL
- id (Key2) — integer — Foreign key → Book.book_id — NOT NULL
Users (사용자)
- user_id (Key) — integer — Primary key — NOT NULL
- name (이름) — string — NOT NULL
- email (이메일) — string — NOT NULL
- user_role (역할) — NOT NULL
- is_subscribe (구독 여부) — boolean — NOT NULL
- Field5 — NOT NULL
Voice (음성)
- voice_id (음성 아이디) — integer — Primary key — NOT NULL
- name (음성 이름) — string — NOT NULL
- like (좋아요 수) — integer — NOT NULL
- voice_path (음성 파일 경로) — string — NOT NULL
- image_path (음성 이미지) — string — NOT NULL
- is_public (공개여부) — boolean — NOT NULL
- user_id (Key) — integer — Foreign key → Users.user_id — NOT NULL