简体   繁体   中英

How to define blog relation database structure in NoSQL

In relation database, I have data model: user, post, comment to story, voting to story.

user:
id,
username
pass
email

post:
user_id
title
body
etc...

comment:
id
user_id
post_id
body
date
etc....


vote:
id
user_id
post_id
date

what is normal way to define in NoSQL like MongoDB?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM