프로젝트
/
Database
/
스터디 관련 테이블 목록
/
study_comment
/
columns in study_comment table
Search
Share
columns in study_comment table
컬럼명
Data Type
NOT NULL
Default
설명
키 여부
참조 테이블 & 컬럼
id
Open
bigint(20)
TRUE
댓글 id
PK
user_id
Open
bigint(20)
FALSE
사용자 id 만약 삭제된 사용자일 경우
NULL
값
FK
user.id
https://www.notion.so/dongyeon1201/id-6c11fd0a865f4a9b93558d48a4e818ae
study_id
Open
bigint(20)
TRUE
스터디 id
FK
study.id
https://www.notion.so/dongyeon1201/id-5e49a38033114405b47219e20efdcd45
comment
Open
text
TRUE
댓글 내용
comment_class
Open
boolean
FALSE
false(0)
계층(False(0)일땐 부모, True(1)일땐 대댓글)
comment_order
Open
int
FALSE
0
댓글(대댓글) 나열 순서 (
comment_group
가 동일한 갯수로 확인 가능)
comment_group
Open
int
FALSE
댓글 그룹(부모 댓글과 대 댓글은 같은 값)
comment_visible
Open
boolean
FALSE
false
가시 여부 (스터디 생성자가 댓글 가시여부 변경)
comment_state
Open
varchar(15)
FALSE
active
active → 등록된 댓글 block → 신고된 댓글 delete → 삭제된 댓글
create_date
Open
datetime
FALSE
now time
댓글 작성 날짜
COUNT
10