create table tb_bbs_file ( FILE_ID varchar(20) not null comment '파일 ID' primary key, POST_ID varchar(20) not null comment '게시물 ID', ORIGINAL_FILE_NM varchar(200) not null comment '원본 파일명', STORED_FILE_NM varchar(200) not null comment '저장 파일명', FILE_PATH varchar(200) not null comment '파일 경로', FILE_SIZE bigint not null comment '파일 크기', FILE_EXT varchar(10) not null comment '파일 확장자', REG_DTTM datetime null comment '등록 일시', RGTR varchar(20) null comment '등록자', constraint fk_bbs_file_post foreign key (POST_ID) references tb_bbs_post (POST_ID) ) comment '게시판 파일';