数据库的设计
在 Mysql 数据库中建立一个名为“solarle”库,该数据库包含六张表:
“ user” 、
“anchorinfo”、“videoinfo”、“picinfo”、“detectinfo”、“resultle”。
表名 内容 应用场景
user
一般权限用户的个人信息 用户登录、注册
anchorinf
o
记录锚点位置信息 根据锚点位置信息计
算光斑位置信息
videoinfo
待检测太阳能板视频的基本信息 文件基本信息展示\光
斑检测信息
picinfo
待检测太阳能板图像的基本信息 文件基本信息展示\光
斑检测信息
detectinf
o
检测结果信息 视频/图片光斑检测信
息
resultle
检测报告的基本信息 储存、查找检测报告
数据库的字段设计
在“solarle”数据库的六张表格中,id 字段均为自动递增的主键,其他字
段为长短不一的 char 字符(涉及到时间的 time 字段可定义为时间类型、位置
的定义为 genmetry 类型)。详细的字段说明如下:
“user”字段:id int not null primary key auto-increment,
name char(20) not null,
password char(20) not null
评论0
最新资源