drop database gamecard;
create database gamecard;
--修改 userinfo, templativecard
use gamecard;
--可扩展性,设置用户是否被屏蔽的状态
create table userstate(
id int not null primary key,
userstateid varchar(50),
userstatename varchar(50)
) type=innoDB;
--存放用户基本信息
create table userinfo(
id Integer primary key AUTO_INCREMENT,
userid varchar (50) not null,
username varchar (20) not null,
password varchar (15) not null,
userrole int not null,
gender varchar(50) not null,
passquestion varchar (50) not null,
passanswer varchar (50) not null,
email varchar (50) not null,
telno bigint not null,
address varchar (50),
idcardno bigint not null,
money bigint,
userstate int not null
) type=innoDB;
--存放角色基本信息
create table roleinfo(
roleid Integer not null primary key AUTO_INCREMENT,
rolename varchar (50) not null,
roledesc varchar (50) not null,
discount Integer
) type=innoDB;
--存放菜单功能基本信息
create table sysfun(
noteid Integer not null primary key AUTO_INCREMENT,
displayname varchar(50) not null,
nodeurl varchar (50) not null,
displayorder Integer not null,
parentnodeid Integer not null
) type=innoDB;
--存放所有角色权限
create table roleright(
rolerightid Integer not null primary key AUTO_INCREMENT,
roleid Integer not null,
nodeid Integer not null
) type=innoDB;
--卡片类型信息表
create table cardtype(
cardtypeid Integer not null primary key AUTO_INCREMENT,
cardtypename nvarchar (50) not null,
cardprice Integer not null,
cardimage nvarchar (50)
) type=innoDB;
--可扩展,卡片是否被售出的状态
create table cardstate(
id Integer not null primary key AUTO_INCREMENT,
cardstateid Integer not null,
cardstatename varchar(50) not null
) type=innoDB;
--具体卡片表
create table card(
cardid Integer not null primary key AUTO_INCREMENT,
cardtypeid Integer not null,
cardno bigint not null,
cardpassword varchar(50) not null,
carddesc varchar(50) ,
cardtime datetime not null,
cardstate Integer,
cardcount Integer
) type=innoDB;
--购物车功能,存放用户已经选择的卡片信息
create table shoppingcart (
shoppingcartitemid Integer not null primary key AUTO_INCREMENT,
userid Integer not null,
cardtypeid int not null,
num Integer not null
) type=innoDB;
--用户购物历史记录
create table shoppinghistory(
ShopHistoryId Integer not null primary key AUTO_INCREMENT,
userid Integer not null,
cardid Integer not null,
shoptime datetime not null
) type=innoDB;
--根据用户选择的卡片,给出相关的选择
create table temprelativecard(
id Integer primary key AUTO_INCREMENT,
temprelativecardid varchar(50) not null ,
userid Integer not null,
cardtypeid Integer not null
) type=innoDB;
--可扩展,用户汇款被审核状态
create table approvestate (
approvestateid Integer not null primary key AUTO_INCREMENT,
approvestatename varchar(50) not null
) type=innoDB;
--用户汇款历史记录
create table posthistory(
posthistory Integer not null primary key AUTO_INCREMENT,
userid Integer not null,
bank varchar(50) not null,
money Integer null,
posttime datetime not null,
postdesc varchar(50),
approvestate Integer not null
) type=innoDB;
--存放汇款失败时,系统发送的信息
create table postfailedinfo(
postfaildinfold Integer not null primary key AUTO_INCREMENT,
userid Integer not null,
posthistoryid Integer not null,
readstate Integer not null
) type=innoDB;
--存放系统公告信息
create table news (
newsid Integer not null primary key AUTO_INCREMENT,
title varchar(50) not null,
content varchar(500),
newstime datetime not null,
newsstate Integer not null
) type=innoDB;
--存放会员的投诉建议信息
create table advice (
adviceid Integer not null primary key AUTO_INCREMENT,
userid Integer not null,
content varchar(20000) not null
) type=innoDB;
alter table userinfo
add constraint fk_userinfo_userstate foreign key (userstate) references userstate(id);
alter table userinfo
add constraint fk_userinfo_roleinfo foreign key (userrole) references roleinfo(roleid);
alter table roleright
add constraint fk_roleright_nodeid foreign key (nodeid) references sysfun(noteid );
alter table roleright
add constraint fk_roleright_roleid foreign key (roleid) references roleinfo(roleid );
alter table card
add constraint fk_card_cardtypeid foreign key (cardtypeid) references cardtype(cardtypeid
);
alter table card
add constraint fk_card_cardstate foreign key (cardstate) references cardstate(id );
alter table shoppingcart
add constraint fk_shoppingcart_userid foreign key (userid) references userinfo(id );
alter table shoppingcart
add constraint fk_shoppingcart_cardtypeid foreign key (cardtypeid) references cardtype
(cardtypeid );
alter table temprelativecard
add constraint fk_temprelativecard_userid foreign key (userid) references userinfo(id );
alter table temprelativecard
add constraint fk_temprelativecard_cardtypeid foreign key (cardtypeid) references cardtype
(cardtypeid );
alter table shoppinghistory
add constraint fk_shoppinghistory_cardid foreign key (cardid) references cardtype
(cardtypeid );
alter table shoppinghistory
add constraint fk_shoppinghistory_userid foreign key (userid) references userinfo(id );
alter table posthistory
add constraint fk_posthistory_userid foreign key (userid) references userinfo(id );
alter table posthistory
add constraint fk_posthistory_approvestate foreign key (approvestate) references
approvestate(approvestateid );
alter table postfailedinfo
add constraint fk_postfailedinfo_userid foreign key (userid) references userinfo(id );
alter table postfailedinfo
add constraint fk_postfailedinfo_posthistoryid foreign key (posthistoryid) references
posthistory(posthistory );
alter table advice
add constraint fk_advice_userid foreign key (userid) references userinfo(id );
--userstate 可扩展性,设置用户是否被屏蔽的状态
insert into userstate values (
1,1,'正常');
insert into userstate values (
2,0,'屏蔽');
--RoleInfo 存放角色基本信息
insert into roleinfo values (
1,'超级管理员','拥有最高权限',0);
insert into roleinfo values (
2,'VIP会员','享受更多优惠',85);
insert into roleinfo values (
3,'普通会员','普通会员',95);
insert into roleinfo values (
4,'待审核人员','待审核人员',100);
--userinfo 存放用户基本信息
-- 超级用户
insert into userinfo values (1,'admin','超级用户','admin',1,'男','待定',
'待定','group4@163.com',8888888,'长沙',456789123456,1234564,1
);
--vip会员
insert into userinfo values (2,'sulianzhi','经理','123456',2,'女','待定',
'待定','sulianzhi@163.com',8888888,'长沙',456789123456,1234564,1);
--普通用户
insert into userinfo values (3,'java1','软1','123456',3,'男','生日',
'1987-10-12','java1@163.com',8888888,'长沙',456789123456,1234564,1);
-- 普通用户
insert into userinfo values (4,'pengrunfei','software','123456',3,'男','baby',
'baby','pengrunfei@163.com',8888888,'长沙',4232423423,1234564,1);
--屏蔽用户
insert into userinfo values (5,'liulang','流浪','123456',4,'男','待定',
'待定','liulang@163.com',8888888,'岳阳',234234324324,1234564,2);
--sysfun 存放菜单功能基本信息
insert into sysfun values (
1,'个人管理','youself.jsp',1,2);
insert into sysfun values (
2,'系统管理','system.jsp',2,6);
insert into sysfun values (
3,'综合信息','colligation.jsp',3,2);
insert into sysfun values (
4,'修改资料','update.jsp',4,1);
insert into sysfun values (
5,'用户管理','usermanager.jsp',5,1);
insert into sysfun values (
6,'角色管理','rolemanager.jsp',6,1);
insert into sysfun values (
7,'分类管理','classmanager.jsp',7,1);
insert into sysfun values (
8,'游戏卡管理','gamemanager.jsp',8,1);
insert into sysfun values (
9,'汇款审核','remit.jsp',9,1);
insert into sysfun values (
10,'公告管理','newsmanager.jsp',10,1);
insert into sysfun values (
11,'销售统计','sellsate.jsp',11,1);
insert into sysfun values (
12,'浏览投诉','scan.jsp',12,1);
insert into sysfun values (
13,'商品列
没有合适的资源?快使用搜索试试~ 我知道了~
游戏点卡,ssh框架,毕业项目
共328个文件
class:70个
java:68个
gif:54个
3星 · 超过75%的资源 需积分: 8 69 下载量 79 浏览量
2009-07-23
23:18:31
上传
评论 1
收藏 4.53MB RAR 举报
温馨提示
游戏点卡,ssh框架,毕业项目,功能相当齐全,使用的是mysql
资源推荐
资源详情
资源评论
收起资源包目录
游戏点卡,ssh框架,毕业项目 (328个子文件)
UserInfoAction.class 11KB
PostHistoryAction.class 8KB
UserinfoDaoImp.class 8KB
ShoppingCartAction.class 6KB
Userinfo.class 6KB
CardtypeAction.class 6KB
CardAction.class 6KB
RolerightAction.class 5KB
PostHistoryDaoImp.class 5KB
CardTypeAction4.class 4KB
NewsAction.class 4KB
RoleInfoDaoImp.class 4KB
ShoppingHistoryAction.class 4KB
RoleinInfoAction.class 4KB
CardDaoImp.class 3KB
CardtypeDaoImp.class 3KB
NewDaoImp.class 3KB
CardAddAction.class 3KB
Posthistory.class 3KB
MyShoppingCart.class 3KB
Card.class 3KB
Cardtype.class 3KB
SysfunAction.class 3KB
ShoppingcartActionLi.class 2KB
AdviceAction4.class 2KB
SysfunDaoImp.class 2KB
IndexShow.class 2KB
Sysfun.class 2KB
Roleinfo.class 2KB
PostfailedInfoDaoImp.class 2KB
ApprovestateDaoImp.class 2KB
UserstateAction.class 2KB
ShoppingCartDaoImp.class 2KB
UserStateDaoImp.class 2KB
News.class 2KB
Cardstate.class 2KB
Temprelativecard.class 2KB
AdviceDaoImp.class 2KB
Shoppinghistory.class 2KB
RoleRightDaoImp.class 2KB
Postfailedinfo.class 2KB
Shoppingcart.class 2KB
Userstate.class 2KB
ShoppingHistoryDaoImp.class 1KB
Approvestate.class 1KB
EncodingFilter.class 1KB
Roleright.class 1KB
Advice.class 1KB
CardtypeDaoImp$1.class 1KB
RoleInfoDaoImp$1.class 1KB
UserinfoDaoImp$1.class 1KB
ExitAction.class 1KB
UserInfoDao.class 869B
Test.class 860B
PosthistoryDao.class 590B
AdviceAction.class 572B
RoleinfoDao.class 549B
PostfailedinfoDao.class 500B
CardtypeDao.class 479B
ShoppingCartDao.class 436B
SysfunDao.class 425B
CardDao.class 404B
NewsDao.class 384B
ShoppingHistoryDao.class 329B
ApprovestateDao.class 314B
UserStateDao.class 279B
AdviceDao.class 257B
RolerightDao.class 230B
TemprelativeCardDao.class 141B
CardstateDao.class 127B
.classpath 4KB
style.css 5KB
css.css 1KB
chanpinliebiao.gif 11KB
card.gif 11KB
shengyu.gif 11KB
8m8.gif 10KB
new_logo.gif 8KB
banner.gif 7KB
top.gif 5KB
new_bg.gif 5KB
wa1.gif 4KB
mycar.gif 3KB
zx.gif 2KB
nav.gif 2KB
jiesuan2.gif 2KB
icon.gif 922B
login.gif 804B
button.gif 792B
big_bottom.gif 771B
big_top.gif 771B
leftbox_top.gif 697B
gif-0919.gif 544B
input.gif 544B
logobg.gif 505B
gif-0918.gif 439B
ebuy.gif 399B
user.gif 386B
ico1.gif 306B
ico_r.gif 306B
共 328 条
- 1
- 2
- 3
- 4
libin_j2ee_1005
- 粉丝: 6
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页