erd
Tables (5)
comment
- comment_id (REPLY_NO) — BIGINT — Primary key — NOT NULL — comment_id
- user_id (USER_NO2) — BIGINT — Foreign key → user.user_id — NOT NULL — user_id
- post_id (POST_NO2) — BIGINT — Foreign key → post.post_id — NOT NULL — post_id
- content (REPLY_BODY) — VARCHAR(255) — NOT NULL — 댓글 내용
- created_date (REPLY_DATE) — DATETIME — NOT NULL — 작성일
- lastmodified_date (Field) — DATETIME — NOT NULL — 최종 수정 날짜
nested_comment
- nested_comment_id (RE_REPLY_NO) — BIGINT — Primary key — NOT NULL — nested_comment_id
- user_id (USER_NO2) — BIGINT — Foreign key → user.user_id — NOT NULL — user_id
- comment_id (REPLY_NO2) — BIGINT — Foreign key → comment.comment_id — NOT NULL — comment_id
- content (RE_REPLY_BODY) — VARCHAR(255) — NOT NULL — 대댓글 내용
- created_date (RE_REPLY_DATE) — DATETIME — NOT NULL — 작성일
- lastmodified_date (Field2) — DATETIME — NOT NULL — 최종 수정 날짜
permission
- permission_id (ROLE_NO) — BIGINT — Primary key — NOT NULL — permission_id
- permission_name (ROLE_NAME) — VARCHAR(255) — NOT NULL — permission_id. 운영자는0, 회원은 1이지만 현재는 회원만 이용할 예정
post
- post_id (POST_NO) — BIGINT — Primary key — NOT NULL — post_id
- user_id (USER_NO2) — BIGINT — Foreign key → user.user_id — NOT NULL — user_id
- title (POST_TITLE) — VARCHAR(255) — NOT NULL — 포스트 제목
- content (POST_BODY) — MEDIUMTEXT — NOT NULL — 포스트 내용
- like_count (POST_LIKE) — BIGINT — 좋아요
- view_count (POST_VIEWS) — BIGINT — 조회수
- created_date (CREATE_DATE) — DATETIME — NOT NULL — 작성일
- lastmodified_date (Field) — DATETIME — NOT NULL — 최종 수정 날짜
user
- user_id (USER_NO) — BIGINT — Primary key — NOT NULL — user_id
- permission_id (ROLE_NO) — BIGINT — Foreign key → permission.permission_id — NOT NULL — permission_id
- id (USER_ID) — VARCHAR(255) — NOT NULL — 가입 id. 중복 X
- password (USER__PW) — VARCHAR(255) — NOT NULL — 가입 password
- nickname (USER_NICKNAME) — VARCHAR(255) — 가입 nickname. 중복 X
- profile_image (PROFILE_IMG) — VARCHAR(255) — 블로그 소개 이미지 & 본인 프로필 이미지
- introduction_title (USER_INTRODUCE) — VARCHAR(255) — 블로그 소개글 제목
- introdction_content (Field) — VARCHAR(255) — 블로그 소개글 내용
- created_date (USER_REGIST_DATE) — DATETIME — NOT NULL — 생성 날짜
- lastmodified_date (Field2) — DATETIME — NOT NULL — 블로그 소개글 등 최종 수정 날짜