一个简单的、满足基本功能和一些补充项目的个人网站。
采用MVC设计模式,java ee+mysql+tomcat
create database website;
use website;
create table users(account char(15) NOT NULL,password char(15) NOT NULL,realName char(8),sex char(1),phone char(20),email char(20),type tinyint NOT NULL,jurisdiction tinyint NOT NULL)engine=InnoDB default charset=utf8;
create table sessions(account char(15) NOT NULL,sessionValue char(60) NOT NULL)engine=InnoDB default charset=utf8;
create table blogs(id int unsigned auto_increment,title char(30) NOT NULL,fileName char(30) NOT NULL,type char(15),#分类
time date NOT NULL,#创建时间commentStatus tinyint,#是否允许评论openStatus tinyint,#是否公开password char(15),#访问密码number int unsigned,#访问次数
primary key(id))engine=InnoDB default charset=utf8;
create table comment(id int unsigned NOT NULL,comment char(200) NOT NULL,account char(15) NOT NULL,time DATE NOT NULL)engine=InnoDB default charset=utf8;
create table files(id int unsigned auto_increment,title char(50) NOT NULL,#文件名path char(30) NOT NULL,#文件相对路径名remark varchar(30),#备注说明type char(20),#文件类型time date,#上传时间downNumber int unsigned,#下载次数playNumber int unsigned,#播放次数playStatus tinyint,#是否允许在线播放downloadStatus tinyint,#是否允许下载playPassword char(15),#播放密码downloadPassword char(15),#下载密码playJurisdiction tinyint,#播放权限downloadJurisdiction tinyint,#下载权限primary key(id))engine=InnoDB default charset=utf8;