基于SSH校内网项目

【需求说明】

  1. 普通用户
  1. 注册功能
  2. 管理账号的功能
  3. 相册(包括 创建相册和管理相册)
  4. 日志(包括 写日志和管理日志)
  5. 音乐盒(包括 创建音乐盒和管理音乐盒)
  6. 给其他留言
  7. 对其他用户的日志进行评论
  8. 对其他用户的相册进行评论
  9. 班级功能(包括 创建班级,管理班级,加入班级)
  10. 其他一些小功能
  1. 系统管理员
  1. 对普通用户进行管理
  2. 对班级进行管理

【普通用户用例图】

 

【部分功能展示】

1.首界面

2.注册界面

3.注册成功界面

【数据库】

--创建数据库.
create database xiaonei;
--国家表
create table country(	
	id int	not null primary key auto_increment,		
	name varchar(32) not null		
)
--省份表
CREATE TABLE province(
id int not null primary key auto_increment,
name varchar(32) not null,		
countryId int,	
FOREIGN KEY (countryId) REFERENCES country(id)
) TYPE=INNODB

--中国省份表
create table localProvince(
lp_id int(11) primary key,
lp_name varchar(32) not null)

--城市表
create table city(	
	id	int	not null primary key auto_increment,		
	name	varchar(32) not null,		
	proId	int references province(id),
	FOREIGN KEY (proId) REFERENCES province(id)		
)

--中国城市表
create table localCity(
 lc_id int primary key auto_increment,
 lc_name varchar(32),
 lc_lpId int
)
--乡村表
create table town(	
	id int	not null primary key auto_increment,	
	name	varchar(32) not null,		
	cityId	int,
	foreign key (cityId) references city(id)
)
--技工学校
create table techSchool(	
	id int	not null primary key auto_increment,		
	name	varchar(64) not null,		
	cityId	int,		
	townId	int,
	foreign key (cityId) references city(id),
	foreign key (townId) references town(id)
)
--初中表
create table junior(	
	id int not null primary key auto_increment,	
	name varchar(64) not null,		
	cityId int,		
	townId int,
	foreign key (cityId) references city(id),
	foreign key (townId) references town(id)
)
--小学表
create table primarySchool(	
	id int not null primary key auto_increment,		
	name varchar(64) not null,		
	cityId int,		
	townId int,
	foreign key (cityId) references city(id),
	foreign key (townId) references town(id)
)
--高中表(公共信息部分)
create table senior(	
	id int not null primary key auto_increment,	
	name   varchar(64) not null,		
	cityId	int,		
	townId	int,
	foreign key (cityId) references city(id),
	foreign key (townId) references town(id)	
)

--用户表
create table users(
	id int(11) not null primary key auto_increment, 
	email varchar(128) unique not null,	    
	name varchar(128) not null,		   
	pwd varchar(128) not null,		    
	photo	varchar(128) default 'default.gif',	   
	sex	varchar(16),			   
	homePro	int(11),			
	homeCity int(11),			
	birth	date,				
	tel	varchar(32),			
	mobile	varchar(32),			
	oicq	varchar(32),			
	msn	varchar(128),			
	website	varchar(128),			
	techSch	int(11),			
	techSchYear int(11),			
	juniorSch int(11),			
	juniorYear int(11),			
	primarySch int(11),			
	primaryYear int(11),			
	interest varchar(256),			
	music	varchar(256),			
	movie	varchar(256),			
	game	varchar(256),			
	cartoon	varchar(256),			
	sport	varchar(256),			
	book	varchar(256),			
	assn	varchar(256),			
	visited	int default 0,			
	doing	varchar(128),			
	online	tinyint	default 0,		
	registerDate datetime ,		
	loginDate datetime,
	level	tinyint default 1,		
	locked	tinyint	default 0,		
	foreign key (homePro) references province(id),
	foreign key (homeCity) references city(id),
	foreign key (techSch) references techschool(id),
	foreign key (juniorSch) references junior(id),
	foreign key (primarySch) references primarySchool(id)		
)

--用户高中表 userSenior ----							
		
create table userSenior(		
	id int	not null primary key auto_increment,		
	userId	int,		
	seniorSchId int,		
	seniorYear int,		
	grade1	varchar(64),	
	grade2	varchar	(64),	
	grade3	varchar	(64),
	foreign key (userid) references users(id),
	foreign key (seniorSchId) references senior(id)
)

--大学表(大学的公共信息部分)										
create table university(	
	id int not null primary key auto_increment,		
	name varchar(64) not null,		
	countryId int,		
	proId int,
	foreign key (countryId) references country(id),
	foreign key (proId) references province(id)		
)

--用户大学表 userUniversity 											
create table userUniversity
(
  id int not null primary key auto_increment,
  userId int,
  universityId int,
  uniYear int,
  userType varchar(32),
  college varchar(128),
  drom varchar(128),
  foreign key(userId) references users(id),
  foreign key(universityId) references university(id)
)	


--用户所在网络[即该同学是哪个圈的人.]
create table userNet(	
	id		int	not null primary key auto_increment,		
	userId	int	,		
	name		varchar	(64)	not null,	
	isPrimary	tinyint	default 1,
	foreign key (userId) references users(id)			
)


***********************相册功能涉及到的表****************************
--相册表
create table album(
id int primary key auto_increment,
userId int,
name varchar(128),
descript varchar(256),
photo varchar(64) default 'main.jpg',
creTime datetime,
updTime datetime,
foreign key (userId) references users(id)
)
--照片表
create table photo(
id int primary key auto_increment,
photo varchar(64),
albumId int,
descript varchar(256) ,
rtime int default 0,
addTime datetime,
foreign key (albumId) references album(id)
)
--照片评论表
create table photoComment(
id int primary key auto_increment,
photoId int ,
userId int,
content varchar(256),
comTime datetime ,
foreign key (photoId) references photo(id),
foreign key (userId) references users(id)
)
 

------------------------------------------- 用户公司表 userCom -------------------------------------------								
						
create table userCom(		
	uc_id int(11) primary key auto_increment, /*用户公司id*/		
	uc_userId int(11), /*用户id*/		
	uc_name varchar(64), /*--公司名*/		
	uc_describe varchar(256), /*公司描述*/		
	uc_trade int(11), /*行业ID*/		
	uc_tradeInfo int(11), /*行业具体ID*/		
	uc_job int(11), /*职位ID*/		
	uc_jobInfo int(11), /*职位具体ID*/		
	uc_date varchar(16) /*工作时间*/		
)	

【源码下载】

首先是项目主要包含的东西如下所示:

项目下载地址:https://download.csdn.net/download/wyf2017/11260733

 

 

 

 

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值