我开发了一个简化版Facebook发布数据库架构。 我只是想知道我是否正确。 有人可以帮我看看并给我一些评论吗?
条件:
1. Email address can be used for one registration.
2. Posting is composed of a text and images up to maximum 5.
3. User can reply to a comment or reply.
4. Comment can be liked but not be commented further.
5. A user can only like a comment once.
6. Post_id is unique.
注册用户(用户ID ,User_name,User_email_address,密码)
用户个人资料(用户ID ,图片ID)
用户的朋友(用户ID ,用户ID )
发布(帖子ID ,Post_text_message,User_id,Post_date_time)
帖子中的图片(帖子ID ,图片ID ,User_id)
图片(图片ID ,图片_link)
评论(评论ID, 帖子ID ,User_id,Comment_date_time, Comment_text_message)
回复评论(回复评论ID ,评论ID ,帖子ID , User_id,Reply_comment_date_time,Reply_comment_text_message)
回复回复( Reply_id , Reply_comment_id ,User_id, Reply_to_reply_date_time,Reply_to_reply_text_message)
像发帖一样(发布ID ,与用户ID类似)
喜欢评论(发布ID ,喜欢用户ID )
喜欢回复(回复评论ID ,喜欢用户ID )
答案 0 :(得分:0)
您是否期待进行审核?我想从我的一些建议开始。
我还想与您分享我遇到的一些链接。