I'm looking for the best way to design database for simple blog. My idea is:
Is it good solution? I use Symfony3 with Doctrine and MySQL.
In addition to the tables above, I recommend you add the following tables:
A user table should be there to track the post authors and to implement a login/registration system. The same table can be used to securely manage the blog posts.
Also, comment system is an integral part of a blogging system. You can either have a table to store comments or integrate an external commenting system.
You can also check this ER Diagram to have more clarity about what I am saying.
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.