blog
Tables (9)
Comment (댓글)
- 댓글 ID (comment_id) — NOT NULL — Primary key — NOT NULL
- 게시글 ID (post_id) — NOT NULL — Foreign key → Post.게시글 ID — NOT NULL
- 멤버 ID (member_id) — NOT NULL — Foreign key → Member.멤버 ID — NOT NULL
- 내용 (content) — NOT NULL
- 작성일 (created_at) — NOT NULL
- 부모 댓글 ID (parent_comment_id) — NULLABLE — 답글 외래키
Follow (팔로우)
- 팔로우 ID (follow_id) — NOT NULL — Primary key — NOT NULL
- 팔로워 ID (follower_id) — NOT NULL — Foreign key → Member.멤버 ID — NOT NULL
- 팔로위 ID (followee_id) — NOT NULL — Foreign key → Member.멤버 ID — NOT NULL
Likes (좋아요)
- 좋아요 ID (likes_id) — NOT NULL — Primary key — NOT NULL
- 멤버 ID (member_id) — NOT NULL — Foreign key → Member.멤버 ID — NOT NULL
- 게시글 ID (post_id) — NOT NULL — Foreign key → Post.게시글 ID — NOT NULL
Member (사용자)
- 멤버 ID (member_id) — NOT NULL — Primary key — NOT NULL
- 로그인 ID (login_id) — NOT NULL
- 비밀번호 (password) — NOT NULL
- 이름 (name) — NOT NULL
- 이메일 (email) — NOT NULL
- 프로필 사진 Url (profile_image_url) — NULLABLE
- 가입일 (registration_date) — NOT NULL
- 권한 (is_admin) — NOT NULL
- 블로그 이름 (blog_name) — NOT NULL
- 이메일 수신 여부(댓글) (allow_comment_push) — NOT NULL
- 이메일 수신 여부(업데이트 소식) (allow_update_push) — NOT NULL
- 소개글 (introduce) — NULLABLE
Post (게시글)
- 게시글 ID (post_id) — NOT NULL — Primary key — NOT NULL
- 멤버 ID (member_id) — NOT NULL — Foreign key → Member.멤버 ID — NOT NULL
- 제목 (title) — NOT NULL
- 내용 (content) — NOT NULL
- 임시글 여부 (is_temp) — NOT NULL
- 비공개글 여부 (is_hide) — NOT NULL
- 게시일 (created_at) — NOT NULL
- 메인 사진 Url (main_image_url) — NULLABLE
- 통계 (views) — NOT NULL
- 시리즈 (series) — NULLABLE
PostImage (이미지)
- 이미지 ID (image_id) — NOT NULL — Primary key — NOT NULL
- 게시글 ID (post_id) — NOT NULL — Foreign key → Post.게시글 ID — NOT NULL
- 이미지 Url (image_url) — NOT NULL
- 순서 (order_index) — NOT NULL
PostTag (포스트/태그 관계)
- 포스트 태그 ID (post_tag_id) — NOT NULL — Primary key — NOT NULL
- 게시글 ID (post_id) — NOT NULL — Foreign key → Post.게시글 ID — NOT NULL
- 태그 ID (tag_id2) — NOT NULL — Foreign key → Tag.태그 ID — NOT NULL
ReadPost (읽은 글)
- 읽은 글 ID (readpost_id) — NOT NULL — Primary key — NOT NULL
- 멤버 ID (member_id) — NOT NULL — Foreign key → Member.멤버 ID — NOT NULL
- 게시글 ID (post_id) — NOT NULL — Foreign key → Post.게시글 ID — NOT NULL
Tag (태그)
- 태그 ID (tag_id) — NOT NULL — Primary key — NOT NULL
- 태그명 (tag_name) — NOT NULL