T-econo
Tables (6)
post (게시글)
- post_id (글 번호) — NOT NULL — Primary key — NOT NULL
- id (회원 아이디) — NOT NULL — Foreign key → user.user_id — NOT NULL
- official (오피셜 글) — NOT NULL
- title (글 제목) — NOT NULL
- content (글 내용) — NOT NULL
- created_at (등록 일자) — NOT NULL
- modified_at (수정 일자) — NOT NULL
- category (카테고리) — NOT NULL
post_img (게시글 사진)
- post_id (글 번호) — NOT NULL — Foreign key → post.post_id — NOT NULL
- postImageUrl (게시글 사진)
post_tag (N:M)
- id (글 구분) — NOT NULL — Foreign key → post.post_id — NOT NULL
- tag_id (태그 아이디) — NOT NULL — Foreign key → tag.tag_id — NOT NULL
reply (댓글)
- reply_id (댓글 구분) — NOT NULL — Primary key — NOT NULL
- user_id (회원 아이디) — NOT NULL — Foreign key → user.user_id — NOT NULL
- post_id (글 구분) — NOT NULL — Foreign key → post.post_id — NOT NULL
- content (댓글 내용) — NOT NULL
- created_at (등록 일자) — NOT NULL
- modified_at (수정 일자) — NOT NULL
- groupNum (큰댓글 인덱스) — NOT NULL
- depth (대댓글 인덱스)
- depth_order (대댓글 내 순서)
tag (블로그 태그)
- tag_id (태그 아이디) — NOT NULL — Primary key — NOT NULL
- name (태그 이름) — NOT NULL
user (회원 정보)
- user_id (회원 아이디) — NOT NULL — Primary key — NOT NULL
- password (비밀번호) — NOT NULL
- grade (회원 등급) — NOT NULL
- year (회원 기수) — NOT NULL