首页 > 解决方案 > 我的简单网站索引页的表结构是否有效?

问题描述

我的mysql表结构有效吗?我正在制作一个简单的主页(索引页),其中包含三个部分:

 Top section consisted of three part :
A Background image (string, only image-path is being saved here)
A main title (string)
A short explanation of the main title (string). 

中间部分也有三个部分:

Left-part : Welcome message (string)
Middle part : 'Where' information (string)
Right part : ' When ' information (string)

页脚,也有三个部分:

Left-part : some content (string)
Middle-part : link to our affiliate/partner's website . Will have three column for the ID(integer), displayed name (String) and the actual link (string) 
RIght-part : our main office address (string) and below that, a social media icons as links to our social media.


我正在考虑将整个顶部和中间部分以及页脚左侧部分放入一个表中(让我们命名它Table 1),因为它们只有一行(总是返回一行),并且不有什么关系。我认为我不需要这张表的 ID,是吗?

对于页脚部分,我认为我需要将它们分成中间部分和右侧部分的两个表,它们返回几行作为结果。(因为它们是链接)。

Table 2页脚部分中间部分也是如此:

ID (integer)
Displayed name (string)
The actual link (string)

对于由地址和社交媒体链接组成的右页脚部分,我是否应该将“地址”列放入Table 1其内容中只有一行的内容?这样社交媒体表(让我们将其命名为table 3纯粹由idand组成) social media links

我的表结构有效吗?谢谢!

标签: mysqldatabase

解决方案


推荐阅读