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?
You can research the best practice here
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.