sopt-38-kim-gyuill
Tables (4)
post_reactions (게시판-유저)
- post_reaction_id (Key) — BIGINT — Primary key — NOT NULL — post_reaction 식별자
- post_id (Key2) — BIGINT — Foreign key → posts.post_id — NOT NULL — post 식별자
- user_id (Key3) — BIGINT — Foreign key → users.user_id — NOT NULL — user 식별자
- type (Field) — VARCHAR(20) — NOT NULL — 반응 타입
- created_at (Field2) — DATETIME — NOT NULL — 생성 시간
- updated_at (Field3) — DATETIME — NOT NULL — 마지막 수정 시간
post_stats (게시글 집계 테이블)
- post_id (Key) — BIGINT — Foreign key → posts.post_id — NOT NULL — post 식별자
- like_count (Field) — BIGINT — NOT NULL — 좋아요 개수
- scrap_count (Field2) — BIGINT — NOT NULL — 스크랩 개수
- version (Field3) — BIGINT — NOT NULL — 낙관적 락 용 버전
posts (게시글)
- post_id (Key) — BIGINT — Primary key — NOT NULL — post 식별자
- user_id (Key2) — BIGINT — Foreign key → users.user_id — NOT NULL — 작성자
- board_type (Field) — VARCHAR(20) — NOT NULL — 게시판 타입
- title (Field2) — VARCHAR(50) — NOT NULL — 제목
- content (Field3) — TEXT — NOT NULL — 내용
- status (Field4) — VARCHAR(20) — NOT NULL — 게시글 상태
- status_reason (Field5) — VARCHAR(255) — NOT NULL — 상태 사유
- is_anonymous (Field6) — BOOLEAN — NOT NULL — 익명 게시글 여부
- created_at (Field8) — DATETIME — NOT NULL — 생성 시간
- updated_at (Field9) — DATETIME — NOT NULL — 마지막 수정 시간
users (사용자)
- user_id (Key) — BIGINT — Primary key — NOT NULL — user 식별자
- nickname (Field) — VARCHAR(30) — NOT NULL — 별명
- created_at (Field2) — DATETIME — NOT NULL — 생성 시간
- updated_at (Field3) — DATETIME — NOT NULL — 마지막 수정 시간
- deleted_at (Field4) — DATETIME — 삭제 시간