You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
791 B
SQL
18 lines
791 B
SQL
create table tb_bbs_comment
|
|
(
|
|
COMMENT_ID varchar(20) not null comment '댓글 ID'
|
|
primary key,
|
|
POST_ID varchar(20) not null comment '게시물 ID',
|
|
CONTENT text not null comment '내용',
|
|
PARENT_COMMENT_ID varchar(20) null comment '부모 댓글 ID',
|
|
DEPTH int default 0 null comment '댓글 깊이 (0: 원댓글, 1: 대댓글)',
|
|
REG_DTTM datetime null comment '등록 일시',
|
|
RGTR varchar(20) null comment '등록자',
|
|
MDFCN_DTTM datetime null comment '수정 일시',
|
|
MDFR varchar(20) null comment '수정자',
|
|
constraint fk_bbs_comment_post
|
|
foreign key (POST_ID) references tb_bbs_post (POST_ID)
|
|
)
|
|
comment '댓글';
|
|
|