게시판 로직
5.답변형 게시판을 작성
1) b_ref (reply family)->윗글과 답변글을 묶어준다.(그룹번호)
->게시물 번호와 같이 글을 중복을 허용해주지 않는 번호
2) b_step(reply step)->몇번째단계의 답변인지를 나타내는 컬럼
->같은 그룹내에서도 답변글을 구분
3) b_level(reply level)=> 글의 정렬순서를 지정해주는 컬럼
(들여쓰기)
step,level->일반글->0,0
답변을 달게되면 1씩증가
ref step level
aaa 0 0 0
|_aaa-1 0 1 1
|_aaa-2 0 2 2
|_aaa-3 0 3 2
bbb 1 0 0
ccc 2 0 0
자유게시판
num ref step level
test 1 1 0 0
kim 2 2 0 0
aaa 3 3 0 0
답변형 게시판->트리구조로 표현이 가능
num ref step(y축) level(x축)
test 1 1 0 0
┗test-1 1 1 1
┗test-2 1 2 2
┗test-3 1 3 3
┗test-4 1 4 3
kim 2 2 0 0
┗test-1 2 1 1
┗test-2 2 2 2
aaa 3 3 0 0