board
Tables (4)
comment (댓글)
- 댓글아이디 (commentid) — bigint — Primary key — NOT NULL
- 게시글아이디 (postid) — bigint — Foreign key → post.게시글아이디 — NOT NULL
- 유저아이디 (userid) — bigint — Foreign key → user.유저아이디 — NOT NULL — auto_increment
- 내용 (content) — varchar(20)
- 작성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp
- 삭제여부 (del_yn) — char(1)
like (좋아요)
- likeid — bigint — Primary key — NOT NULL
- 유저아이디 (userid) — bigint — Foreign key → user.유저아이디 — NOT NULL — auto_increment
- 게시글아이디 (postid) — bigint — Foreign key → post.게시글아이디 — NOT NULL
- created_at — timestamp
post (게시글)
- 게시글아이디 (postid) — bigint — Primary key — NOT NULL
- 유저아이디 (userid) — bigint — Foreign key → user.유저아이디 — NOT NULL — auto_increment
- 제목 (title) — varchar(20)
- 내용 (content) — varchar(20)
- 작성일 (created_at) — timestamp
- 수정일 (updated_at) — timestamp
- 삭제여부 (del_yn) — char(1)
- 조회수 (view_count) — int
user (사용자)
- 유저아이디 (userid) — bigint — Primary key — NOT NULL — auto_increment
- 이메일 (email) — varchar(200)
- 비밀번호 (password) — varchar(20)
- 닉네임 (nickname) — varchar(200)
- 권한('ROLE_USER', 'ROLE_ADMIN') (role) — varchar(20)
- 생성일자 (created_at) — timestamp
- 수정일자 (updated_at) — timestamp
- 삭제여부 (del_yn) — char(1)