亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? createtable.sql

?? 網(wǎng)上購(gòu)物系統(tǒng),可以進(jìn)行網(wǎng)上購(gòu)物,瀏覽商品,個(gè)人信息管理等等
?? SQL
字號(hào):
--GWAP2.0-新豆網(wǎng)建表腳本

--刪除數(shù)據(jù)庫(kù)庫(kù)xindou
drop database if exists xindou;

--建里數(shù)據(jù)庫(kù)庫(kù)xindou,并指定解碼集為gb2312
--create database if not exists xindou default character set gb2312;
--建里數(shù)據(jù)庫(kù)庫(kù)xindou,并指定解碼集為utf8
create database if not exists xindou default character set utf8;

--使用數(shù)據(jù)庫(kù)
use xindou;

--分類表
drop table if exists category;
create table if not exists category(
	id int not null primary key auto_increment,
	cname varchar(20) not null,
	parentid int not null default 0,
	description varchar(200),
	photo blob,
	ctype tinyint default 1
) ENGINE=InnoDB;

--品牌表
drop table if exists brand;
create table if not exists brand(
	id int not null primary key auto_increment,
	en_name varchar(20),
	cn_name varchar(20),
	small_photo blob,
	big_photo blob,
	description varchar(2000)
) ENGINE=InnoDB;

--商品表
drop table if exists product;
create table if not exists product(
	id int not null primary key auto_increment,
	pname varchar(50) not null,
	cid int not null,
	recommend boolean default false,
	bid int not null,
	ptype varchar(30),
	price double not null,
	prisentation int default 0,
	promotion boolean default false,
	promotionalprice double,
	allowitem int,
	endtime datetime,
	addtime datetime not null,
	warranty varchar(20),
	remark varchar(2000),
	summary text,
	norm text,
	salepopluarity int not null default 0,
	viewpopluarity int not null default 0,
	totalscore double not null default 0.0,
	showscore double not null default 0.0,
	pricescore double not null default 0.0,
	performancescore double not null default 0.0,
	markuser text,
	collectuser text,
	INDEX(cid),
	FOREIGN KEY (cid) REFERENCES category(id) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX(bid),
	FOREIGN KEY (bid) REFERENCES brand(id) ON UPDATE CASCADE ON DELETE RESTRICT
) ENGINE=InnoDB;

--商品關(guān)注表
drop table if exists productattention;
create table if not exists productattention(
	id int not null primary key auto_increment,
	sessionid varchar(50) not null,
	pid int not null,
	attentiontime datetime not null,
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES product(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--產(chǎn)品圖片表
drop table if exists photo;
create table if not exists photo(
	id int not null primary key auto_increment,
	pid int not null,
	image blob not null,
	description varchar(100),
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES product(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--產(chǎn)品顏色表
drop table if exists color;
create table if not exists color(
	id int not null primary key auto_increment,
	pid int not null,
	colorname varchar(20) not null,
	image blob not null,
	description varchar(100),
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES product(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--商城價(jià)格表
drop table if exists prices;
create table if not exists prices(
	id int not null primary key auto_increment,
	pid int not null,
	shopname varchar(30) not null,
	shopprice double not null,
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES product(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--分類規(guī)格表
drop table if exists norms;
create table if not exists norms(
	id int not null primary key auto_increment,
	cid int not null,
	normname varchar(20) not null,
	description varchar(200),
	INDEX (cid),
	FOREIGN KEY (cid) REFERENCES category(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--規(guī)格屬性表
drop table if exists normproperty;
create table if not exists normproperty(
	id int not null primary key auto_increment,
	nid int not null,
	properytname varchar(20) not null,
	description varchar(200) not null,
	INDEX (nid),
	FOREIGN KEY (nid) REFERENCES norms(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--商品規(guī)格表
drop table if exists productnorm;
create table if not exists productnorm(
	id int not null primary key auto_increment,
	pid int not null,
	nid int not null,
	npid int not null,
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES product(id) ON UPDATE CASCADE ON DELETE CASCADE,
	INDEX (nid),
	FOREIGN KEY (nid) REFERENCES norms(id) ON UPDATE CASCADE ON DELETE CASCADE,
	INDEX (npid),
	FOREIGN KEY (npid) REFERENCES normproperty(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--支付方式表
drop table if exists payway;
create table if not exists payway(
	id int not null primary key auto_increment,
	isclose boolean not null default false,
	payname varchar(40) not null,
	paydesc varchar(200),
	fees double not null default 0
)ENGINE=InnoDB;

--支付參數(shù)表
drop table if exists payparameter;
create table if not exists payparameter(
	id int not null primary key auto_increment,
	pid int not null,
	pname varchar(30) not null,
	pkey varchar(50) not null,
	pvalue varchar(50) not null,
	description varchar(100),
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES payway(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--送貨方式表
drop table if exists sendway;
create table if not exists sendway(
	id int not null primary key auto_increment,
	isclose boolean not null default false,
	sendname varchar(40) not null,
	senddesc varchar(200),
	basefee double not null,
	arrivaldate varchar(20)
)ENGINE=InnoDB;

--收貨地址表
drop table if exists receiveaddress;
create table if not exists receiveaddress(
	id int not null primary key auto_increment,
	receivename varchar(20) not null,
	province varchar(30) not null,
	city varchar(30) not null,
	area varchar(30) not null,
	address varchar(80) not null,
	zip varchar(20) not null,
	phone varchar(21),
	mobile varchar(11)
)ENGINE=InnoDB;

--訂單表
drop table if exists orders;
create table if not exists orders(
	id varchar(15) not null primary key,
	ordertime datetime not null,
	state varchar(30) not null,
	description varchar(2000),
	productmoney double not null,
	pid int not null,
	sid int not null,
	fare double,
	fees double,
	ordermoney double,
	dounum int not null default 0,
	paymoney double not null,
	rid int not null,
	invoice boolean default false,
	receivedate varchar(20),
	invoicename varchar(40),
	invoicedesc varchar(1000),
	logisticscompany varchar(40),
	logisticsnumber varchar(50),
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES payway(id) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX (sid),
	FOREIGN KEY (sid) REFERENCES sendway(id) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX (rid),
	FOREIGN KEY (rid) REFERENCES receiveaddress(id) ON UPDATE CASCADE ON DELETE RESTRICT
)ENGINE=InnoDB;

--交易表
drop table if exists tarasaction;
create table if not exists transaction(
	id int not null primary key auto_increment,
	pid int not null,
	cid int,
	amount int not null,
	money double,
	oid varchar(15),
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES product(id) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX (cid),
	FOREIGN KEY (cid) REFERENCES color(id) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX (oid),
	FOREIGN KEY (oid) REFERENCES orders(id) ON UPDATE CASCADE ON DELETE RESTRICT
)ENGINE=InnoDB;

--問(wèn)題表
drop table if exists question;
create table if not exists question(
	id int not null primary key auto_increment,
	question varchar(40) not null
)ENGINE=InnoDB;

--級(jí)數(shù)表
drop table if exists levels;
create table if not exists levels(
	id int not null primary key auto_increment,
	levelname varchar(50) not null,
	photo varchar(100) not null,
	description varchar(200)
)ENGINE=InnoDB;

--會(huì)員表
drop table if exists user;
create table if not exists user(
	id int not null primary key auto_increment,
	username varchar(30) not null unique,
	password varchar(40) not null,
	sex boolean default false,
	nickname varchar(30),
	email varchar(50) not null,
	emailsecret boolean default false,
	mobile varchar(13) not null,
	phone varchar(21),
	homepage varchar(40),
	comefrom varchar(80),
	msn varchar(50),
	qq varchar(10),
	skype varchar(50),
	icq varchar(50),
	yahoo varchar(50),
	selfshow varchar(200),
	signature varchar(200),
	usesign boolean default false,
	useportrait boolean default false,
	portrait blob,
	portraitaddress varchar(100),
	portraitwidth int,
	portraitheight int,
	qid int,
	answer varchar(50),
	topicnum int,
	postnum int,
	tipwave bit(4),
	receiveemail boolean default true,
	hiden boolean default false,
	state boolean default false,
	logintime datetime,
	registertime datetime not null,
	lid int not null,
	medal varchar(50),
	dounum int default 0,
	forumpoint int default 0,
	paypoint int default 0,
	readaccess int default 0,
	INDEX (qid),
	FOREIGN KEY (qid) REFERENCES question(id) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX (lid),
	FOREIGN KEY (lid) REFERENCES levels(id) ON UPDATE CASCADE ON DELETE RESTRICT
)ENGINE=InnoDB;

--操作記錄表
drop table if exists operatelog;
create table if not exists operatelog(
	id int not null primary key auto_increment,
	otime datetime not null,
	uname varchar(30) not null,
	operation varchar(200) not null,
	remark varchar(200),
	INDEX (uname),
	FOREIGN KEY (uname) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--收藏表
drop table if exists collect;
create table if not exists collect(
	id int not null primary key auto_increment,
	uid int not null,
	pid int not null,
	INDEX (uid),
	FOREIGN KEY (uid) REFERENCES user(id) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX (pid),
	FOREIGN KEY (pid) REFERENCES product(id) ON UPDATE CASCADE ON DELETE RESTRICT
)ENGINE=InnoDB;

--公告表
drop table if exists announce;
create table if not exists announce(
	id int not null primary key auto_increment,
	username varchar(30) not null,
	atype varchar(10),
	title varchar(50) not null,
	titlecolor varchar(20),
	sendtime datetime not null,
	content text not null
)ENGINE=InnoDB;

--勛章表
drop table if exists medal;
create table if not exists medal(
	id int not null primary key auto_increment,
	medalname varchar(50) not null,
	photo blob not null,
	description varchar(200)
)ENGINE=InnoDB;

--版塊表
drop table if exists section;
create table if not exists section(
	id int not null primary key auto_increment,
	sectionname varchar(20) not null,
	parentid int not null default 0,
	description varchar(200),
	moderators varchar(200),
	photo blob,
	sectiontype bit
)ENGINE=InnoDB;

--主題表
drop table if exists topic;
create table if not exists topic(
	id int not null primary key auto_increment,
	islock boolean default false,
	lockuser varchar(30),
	topictype varchar(30),
	digest boolean default false,
	degestuser varchar(30),
	highlight boolean default false,
	lightcolor varchar(30),
	lightuser varchar(30),
	lettop boolean default false,
	lettopend datetime,
	lettoparea varchar(80),
	lettopuser varchar(30),
	sid int not null,
	vote boolean default false,
	voteuser text,
	viewnum int default 0,
	INDEX (sid),
	FOREIGN KEY (sid) REFERENCES section(id) ON UPDATE CASCADE ON DELETE RESTRICT
)ENGINE=InnoDB;

--主題關(guān)注表
drop table if exists topicattention;
create table if not exists topicattention(
	id int not null primary key auto_increment,
	sessionid  varchar(50) not null,
	tid int not null,
	attentiontime datetime not null,
	INDEX (tid),
	FOREIGN KEY (tid) REFERENCES topic(id) ON UPDATE CASCADE ON DELETE RESTRICT
)ENGINE=InnoDB;

--主題訂閱表
drop table if exists subscribe;
create table if not exists subscribe(
	id int not null primary key auto_increment,
	uid int not null,
	tid int not null,
	INDEX (uid),
	FOREIGN KEY (uid) REFERENCES user(id) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX (tid),
	FOREIGN KEY (tid) REFERENCES topic(id) ON UPDATE CASCADE ON DELETE RESTRICT
)ENGINE=InnoDB;

--帖子表
drop table if exists post;
create table if not exists post(
	id int not null primary key auto_increment,
	title varchar(80) not null,
	transactionpoint int default 0,
	readaccess int default 0,
	icon int,
	content text not null,
	forbideurl boolean default false,
	forbidesmile boolean default false,
	forbidegerweb boolean default false,
	usesign boolean default false,
	floor int not null,
	sendtime datetime not null,
	tid int not null,
	uname varchar(30) not null,
	lastmodified datetime,
	INDEX (uname),
	FOREIGN KEY (uname) REFERENCES user(username) ON UPDATE CASCADE ON DELETE RESTRICT,
	INDEX (tid),
	FOREIGN KEY (tid) REFERENCES topic(id) ON UPDATE CASCADE ON DELETE RESTRICT
)ENGINE=InnoDB;

--消息表
drop table if exists message;
create table if not exists message(
	id int not null primary key auto_increment,
	sendname varchar(30) not null,
	receivename varchar(30) not null,
	title varchar(80) not null,
	content varchar(1000) not null,
	savebox boolean not null default false,
	sendtime datetime not null,
	isread boolean not null default false,
	messtype bit not null
)ENGINE=InnoDB;

--投票表
drop table if exists vote;
create table if not exists vote(
	id int not null primary key auto_increment,
	multiselect boolean not null default false,
	endtime datetime not null
)ENGINE=InnoDB;

--投票選項(xiàng)表
drop table if exists voteoption;
create table if not exists voteoption(
	id int not null primary key auto_increment,
	vid int not null,
	content varchar(100) not null,
	ballot int not null default 0,
	INDEX (vid),
	FOREIGN KEY (vid) REFERENCES vote(id) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

--豆豆記錄表
drop table if exists beanlog;
create table if not exists beanlog(
	id int not null primary key auto_increment,
	uname varchar(30) not null,
	opertime datetime not null,
	operdesc varchar(50) not null,
	beannum int not null,
	INDEX (uname),
	FOREIGN KEY (uname) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品免费观看| 久久精品国产一区二区| 亚洲一区在线观看免费观看电影高清 | 正在播放一区二区| www国产精品av| 综合欧美一区二区三区| 午夜精品福利一区二区蜜股av| 久草中文综合在线| av色综合久久天堂av综合| 91浏览器入口在线观看| 欧美一区二区三区在| 欧美激情一区三区| 性欧美大战久久久久久久久| 国产在线麻豆精品观看| 91久久精品网| 国产亚洲综合色| 亚洲国产视频一区| 大桥未久av一区二区三区中文| 欧美无人高清视频在线观看| 久久一留热品黄| 亚洲国产日韩综合久久精品| 成人一级片在线观看| 欧美精品777| 中文字幕中文字幕一区二区| 日韩av电影免费观看高清完整版| 成人性生交大片免费看视频在线 | 日本午夜精品视频在线观看| 成人一区二区三区视频| 欧美一级在线视频| 曰韩精品一区二区| 国产精品一区二区在线观看不卡| 欧美三级乱人伦电影| 亚洲国产精品99久久久久久久久| 亚洲高清中文字幕| 91伊人久久大香线蕉| 久久综合资源网| 日韩影院精彩在线| 色激情天天射综合网| 欧美极品xxx| 蜜臀av性久久久久av蜜臀妖精 | 一区二区三区.www| 国产精品99久久久久久久vr| 67194成人在线观看| 亚洲欧美日本在线| 成人一区二区三区视频| 精品国产a毛片| 免费视频一区二区| 欧美日韩国产三级| 亚洲午夜羞羞片| 色综合中文字幕| 中文字幕一区二区三区四区不卡 | 中文字幕一区二| 国产精品资源网站| 日韩精品资源二区在线| 亚洲va国产va欧美va观看| 一本久久综合亚洲鲁鲁五月天| 国产日韩欧美不卡| 国产一区亚洲一区| 欧美成人一区二区三区片免费| 天天综合天天做天天综合| 国产欧美一区二区精品婷婷| 狠狠色狠狠色综合系列| 欧美一区三区四区| 日本午夜一本久久久综合| 欧美丰满嫩嫩电影| 首页国产欧美久久| 欧美福利视频导航| 亚洲电影一区二区三区| 91福利精品第一导航| 亚洲无人区一区| 欧美日韩国产不卡| 日韩电影一区二区三区四区| 欧美精品xxxxbbbb| 麻豆高清免费国产一区| 亚洲精品一区二区三区影院| 九色porny丨国产精品| 欧美电影精品一区二区| 精品一区二区久久| 久久久久久久久岛国免费| 国产精品18久久久久久vr| 国产日韩欧美综合在线| 高清国产一区二区| 日韩一区欧美一区| 色爱区综合激月婷婷| 亚洲国产成人av网| 欧美一级日韩一级| 狠狠色狠狠色综合日日91app| 国产婷婷色一区二区三区四区| 国产99精品国产| 亚洲人午夜精品天堂一二香蕉| 在线视频一区二区三区| 水蜜桃久久夜色精品一区的特点| 欧美一区二区视频在线观看2022| 美女高潮久久久| 国产欧美精品一区| 91啪在线观看| 午夜电影久久久| 欧美精品一区二区三区一线天视频 | 久久久久久99久久久精品网站| 国产成人在线影院| 日韩毛片视频在线看| 欧美日韩在线免费视频| 免费看日韩a级影片| 久久久久一区二区三区四区| 波多野结衣精品在线| 一区二区三区在线免费视频| 欧美一区在线视频| 懂色av一区二区三区蜜臀| 亚洲精品精品亚洲| 欧美一区二区三区的| 大尺度一区二区| 亚洲国产你懂的| www久久精品| 日本韩国欧美国产| 久久超碰97中文字幕| 国产精品国模大尺度视频| 欧美日韩国产大片| 高清成人在线观看| 午夜精品一区在线观看| 2014亚洲片线观看视频免费| 在线精品亚洲一区二区不卡| 久国产精品韩国三级视频| 亚洲视频1区2区| 欧美不卡一区二区三区| 99久久99久久精品国产片果冻| 日韩国产精品久久久| 国产精品丝袜在线| 制服丝袜国产精品| 99久久久久久99| 麻豆精品一区二区综合av| 亚洲天堂成人在线观看| 日韩一级片网站| 91片在线免费观看| 国产二区国产一区在线观看| 亚洲 欧美综合在线网络| 国产精品午夜春色av| 欧美一二三四区在线| 91丨porny丨蝌蚪视频| 欧美一级国产精品| 91国产免费看| 成人免费电影视频| 久久精品国产亚洲一区二区三区| 一区二区三区视频在线观看| 337p粉嫩大胆色噜噜噜噜亚洲 | 亚洲h动漫在线| 国产精品护士白丝一区av| 精品久久久影院| 色偷偷一区二区三区| 国产成人午夜高潮毛片| 日韩电影免费一区| 一区二区不卡在线播放| 国产精品―色哟哟| 精品久久久久香蕉网| 欧美精品日韩综合在线| 99这里都是精品| 国产高清不卡一区| 久久国产精品99精品国产| 一区二区三区加勒比av| 国产精品久久久久永久免费观看 | 丰满亚洲少妇av| 韩国成人在线视频| 日日欢夜夜爽一区| 亚洲一二三四久久| 亚洲日本丝袜连裤袜办公室| 国产亚洲综合在线| 久久人人爽爽爽人久久久| 欧美一二三四区在线| 欧美一三区三区四区免费在线看| 欧美视频日韩视频在线观看| 日本久久电影网| 色吊一区二区三区| 国产日韩欧美精品一区| 久久久久久久久久久电影| 精品久久久久久久久久久院品网| 欧美肥胖老妇做爰| 欧美精品自拍偷拍动漫精品| 欧美最猛黑人xxxxx猛交| 色综合天天性综合| 一本色道久久综合亚洲91 | 亚洲影视资源网| 亚洲一二三区视频在线观看| 亚洲国产中文字幕| 亚洲午夜日本在线观看| 亚洲国产毛片aaaaa无费看| 亚洲一区二区av电影| 亚洲成在线观看| 亚洲v日本v欧美v久久精品| 亚洲va天堂va国产va久| 日韩精彩视频在线观看| 人妖欧美一区二区| 麻豆成人久久精品二区三区小说| 蜜桃视频在线一区| 国产乱码精品1区2区3区| 国产91丝袜在线播放| 成人福利视频在线看| 91欧美一区二区| 欧美日韩中文字幕一区| 欧美精品三级日韩久久| 欧美成人官网二区| 欧美激情在线看|