해축지지
테이블 (6)
Comment (댓글)
- cid (댓글 아이디) — Long — 기본 키 — NOT NULL
- content (댓글 내용) — String
- created_at (생성일) — Date
- user_id (사용자아이디) — Long — 외래 키 → User.user_id — NOT NULL
- post_id (게시글 아이디) — Long — 외래 키 → Post.post_id — NOT NULL
File (파일)
- id (아이디) — Long — 기본 키 — NOT NULL
- post_id (게시글 아이디) — Long — 외래 키 → Post.post_id — NOT NULL
- file_url (파일 경로) — String
Like (좋아요)
- like_id (좋아요아이디) — Long — 기본 키 — NOT NULL
- user_id (사용자아이디) — Long — 외래 키 → User.user_id — NOT NULL
- post_id (게시글 아이디) — Long — 외래 키 → Post.post_id — NOT NULL
Post (게시글)
- post_id (게시글 아이디) — Long — 기본 키 — NOT NULL
- title (제목) — String
- content (내용) — String
- created_at (생성일) — Date
- modified_at (수정일) — Date
- view (조회수) — Long
- user_id (사용자아이디) — Long — 외래 키 → User.user_id — NOT NULL
- category_id (카테고리) — Integer
- like (좋아요) — Integer
Reply (답글)
- reply_id (답글 아이디) — Long — 기본 키 — NOT NULL
- content (댓글 내용) — String
- created_at (생성일) — Date
- user_id (사용자아이디) — Long — 외래 키 → User.user_id — NOT NULL
- cid (댓글 아이디) — Long — 외래 키 → Comment.cid — NOT NULL
- post_id (게시글 아이디) — Long — 외래 키 → Post.post_id — NOT NULL
User (사용자)
- user_id (사용자아이디) — Long — 기본 키 — NOT NULL
- email (이메일) — String
- nickname (닉네임) — String
- password (비밀번호) — String
- user_type (사용자타입) — int
- profile_image (프로필사진) — String
- created_at (생성일) — Date