mysql - 我的简单网站索引页的表结构是否有效?
问题描述
我的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
纯粹由id
and组成) social media links
。
我的表结构有效吗?谢谢!
解决方案
推荐阅读
- laravel - Laravel 请求->all() 为空
- ssl - 在java中将curl命令转换为HTTPS请求
- maven - Maven 子项目 - 不可解析的父 POM
- java - 将 JButton 添加到画布
- php - 使用 php 发送电子邮件。没有框架
- reactjs - React App复制粘贴/手动输入链接显示页面而不获取数据
- spring-boot - 从 Springboot 调用具有 Table/TableType 作为 In/OUT 参数的存储过程
- c# - c# 运行时是否缓存内置类型的 typeof 值?
- java - 证明递归函数的时间复杂度
- docker - Docker 通过发送信号杀死容器