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.
clean-parking/DB-DDL/maria/ddl/xitframework/tb_bbs_post.sql

24 lines
1.3 KiB
SQL

create table tb_bbs_post
(
POST_ID varchar(20) not null comment '게시물 ID'
primary key,
BBS_ID varchar(20) not null comment '게시판 ID',
TITLE varchar(200) not null comment '제목',
CONTENT text not null comment '내용',
WRITER_NM varchar(50) not null comment '작성자 이름',
VIEW_CNT int default 0 null comment '조회수',
NOTICE_YN varchar(1) default 'N' null comment '상단 고정 여부',
EMAIL_YN varchar(1) default 'N' null comment '이메일 발송 여부',
EMAIL varchar(100) null comment '이메일 주소',
ANSWER_STATUS_CD varchar(20) null comment '답변 상태 (WAITING: 대기중, COMPLETED: 답변완료), CODE_GROUP_ID:BBS_ANSWER_STATUS_CD',
USE_YN varchar(1) default 'Y' not null comment '사용 여부',
REG_DTTM datetime null comment '등록 일시',
RGTR varchar(20) null comment '등록자',
MDFCN_DTTM datetime null comment '수정 일시',
MDFR varchar(20) null comment '수정자',
constraint fk_bbs_post_config
foreign key (BBS_ID) references tb_bbs_config (BBS_ID)
)
comment '게시물';