首先,国家应当是一个结构严密的工作,因此,应该为它们设立单独的一栏。 想一开始你需要什么,但你可以轻易地在稍后再增加一栏或两栏。
Tags like keywords shouldn t be stored in columns, because the amount is growing rapidly over time. That wouldn t make any sense. So for that, build a table with id and keyword in it and a link table with post_id and keyword_id. You could also omit the keyword_id and directly link post_id and keyword.
Make sure that both columns combined define the primary key, so you can not end up with a keyword stored several time to one particular post.
For attributes it can be the same. It is not a bad practice to create an attribute table with attribute_id, attribute_name and maybe more information and a link table attribute_id and post_id and content.
You can also easily enhance it to be multilingual by using attribute_ids.
意见相同,在单独的表格中储存,与用户和员额链接:评论_id、用户_id、海报_id、内容和可能父母_id,如果你希望再次发表评论的话,这可以成为评论。
That s it for a brief overview.