웹프로그래밍
Pookle 프로젝트 - DB 설계
조영재님
2018. 9. 21. 11:21
Database : MongoDB(NoSQL)
Database Name : Pookle_db
collections : user, timeline_post, board_post
user collections :
_id : object_id
user_name : string
user_pw : string
user_que : string
user_ans : string
user_nickname : string // 기본값은 user_name과 동일하게 넣되, 변경해서 사용할 수 있도록.
user_fav_timeline : object = {
timeline_id : object_id,
timeline_title : string // 유저에게 미리 보여주기 용
}
user_like_board : object = {
board_id : object_id,
board_content : string // 앞의 10글자만 가져와서 유저에게 미리 보여주기 용.
}
user_comment : object = {
comment_id : object_id or number, //number가 맞는 것 같다.
comment_content = string,
comment_like = number,
}
user_fav_tag : array<string>
user_reg_date : date,
user_last_date : date,
timeline_post :
_id : object_id
timeline_title : string
timeline_content : string
timeline_fav : object = {
fav_user_id :object_id,
fav_user_name : string,
fav_cnt : number
}
timeline_link : string
timeline_tag : array<string>
timeline_date : date
board_post :
_id : object_id
board_author : string,
board_content : string,
board_fav : object = {
fav_user_id :object_id,
fav_user_name : string,
fav_cnt : number
}
board_comment: object = {
comment_id : object_id or number //number가 맞는 것 같다.
comment_author : string, // 로그인 했을 경우 닉네임을, 비로그인시 익명 이라는 타이틀과 ip주소의 일부를 보여주기.
comment_content = string,
comment_like = number
comment_like = number
comment_date = date
}
board_tag : array<string>
board_date : date