Spring Web Project/6. Ajax 댓글 (Reply)
02. TABLE 생성, Domain ~ Service
hanseom
2020. 12. 29. 11:28
반응형
1. TABLE 생성
CREATE TABLE TBL_REPLY (
rno int NOT NULL AUTO_INCREMENT,
bno int not null default 0,
replytext varchar(1000) not null,
replyer varchar(50) not null,
regdate TIMESTAMP NOT NULL DEFAULT now(),
updatedate TIMESTAMP NOT NULL DEFAULT now(),
primary key(rno)
);
[외래키 추가]
alter table tbl_reply add constraint fk_board
foreign key (bno) references tbl_board (bno);
2. Domain
3. SQL
4. DAO
5. Service
반응형