java畢業設計_動漫之家手機APP代碼分析

 

動漫之家手機APPmysql數據庫版本源碼:

超級管理員表創建語句如下:

create table t_admin(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '超級管理員賬號',
	password varchar(100) comment '超級管理員密碼'
) comment '超級管理員';
insert into t_admin(username,password) values('admin','123456');

SQL

Copy

地址表創建語句如下:

create table t_address(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	phone varchar(100) comment '電話',
	addressVal varchar(100) comment '地址',
	addressName varchar(100) comment '姓名',
	ismoren varchar(100) comment '是否默認',
	province varchar(100) comment '',
	city varchar(100) comment '',
	area varchar(100) comment ''
) comment '地址';

SQL

Copy

分類表創建語句如下:

create table t_bk(
	id int primary key auto_increment comment '主鍵',
	bkName varchar(100) comment '分類名稱'
) comment '分類';

SQL

Copy

標籤表創建語句如下:

create table t_bq(
	id int primary key auto_increment comment '主鍵',
	bqName varchar(100) comment '標籤'
) comment '標籤';

SQL

Copy

建議表創建語句如下:

create table t_contact(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	phone varchar(100) comment '聯繫方式',
	content varchar(100) comment '內容',
	insertDate datetime comment '日期'
) comment '建議';

SQL

Copy

客戶表創建語句如下:

create table t_customer(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	customerName varchar(100) comment '姓名',
	sex varchar(100) comment '性別',
	address varchar(100) comment '地址',
	phone varchar(100) comment '手機',
	account int comment '賬戶',
	jf int comment '積分',
	email varchar(100) comment '郵箱',
	headPic varchar(100) comment '頭像'
) comment '客戶';

SQL

Copy

積分兌換產品表創建語句如下:

create table t_jfdh(
	id int primary key auto_increment comment '主鍵',
	jfName varchar(100) comment '積分產品名稱',
	jfCost int comment '積分數量',
	jfPic varchar(100) comment '產品圖片'
) comment '積分兌換產品';

SQL

Copy

庫存表創建語句如下:

create table t_kc(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	kcNum int comment '庫存數量',
	insertDate datetime comment '日期'
) comment '庫存';

SQL

Copy

輪播圖表創建語句如下:

create table t_lbt(
	id int primary key auto_increment comment '主鍵',
	pic varchar(100) comment '圖片'
) comment '輪播圖';

SQL

Copy

留言表創建語句如下:

create table t_liuyan(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	content varchar(100) comment '內容',
	insertDate datetime comment '日期',
	back varchar(100) comment '回覆',
	status varchar(100) comment '狀態'
) comment '留言';

SQL

Copy

信息交流表創建語句如下:

create table t_message(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	messageContent varchar(100) comment '內容',
	types int comment '',
	insertDate datetime comment '時間'
) comment '信息交流';

SQL

Copy

訂單表創建語句如下:

create table t_order(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	productDetail varchar(100) comment '訂單詳細',
	allPrice varchar(100) comment '訂單總價格',
	status varchar(100) comment '狀態',
	orderNum varchar(100) comment '訂單編號',
	pl varchar(100) comment '物流信息',
	insertDate datetime comment '日期',
	userId int comment '',
	orderDate varchar(100) comment '',
	address varchar(100) comment '',
	xj varchar(100) comment '',
	pic varchar(100) comment '',
	content varchar(100) comment '',
	plDate datetime comment '',
	plr varchar(100) comment ''
) comment '訂單';

SQL

Copy

訂單詳情表創建語句如下:

create table t_orderlist(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	orderId int comment '訂單',
	productId int comment '菜品',
	sl int comment '',
	productName varchar(100) comment '',
	price int comment '',
	productPic1 varchar(100) comment '',
	xj varchar(100) comment '',
	content varchar(100) comment '',
	plDate datetime comment '',
	pic varchar(100) comment '',
	customerName varchar(100) comment ''
) comment '訂單詳情';

SQL

Copy

評論表創建語句如下:

create table t_pinglun(
	id int primary key auto_increment comment '主鍵',
	wdxxId int comment '評論信息',
	customerId int comment '評論人',
	content varchar(100) comment '評論內容',
	insertDate datetime comment '評論日期'
) comment '評論';

SQL

Copy

表創建語句如下:

create table t_pinglun_product(
	id int primary key auto_increment comment '主鍵',
	productId int comment '評論信息',
	customerId int comment '評論人',
	content varchar(100) comment '評論內容',
	insertDate datetime comment '評論日期',
	xj varchar(100) comment '星級',
	pic varchar(100) comment ''
) comment '';

SQL

Copy

產品表創建語句如下:

create table t_product(
	id int primary key auto_increment comment '主鍵',
	productName varchar(100) comment '產品名稱',
	productPic1 varchar(100) comment '圖片1',
	productPic2 varchar(100) comment '圖片2',
	productPic3 varchar(100) comment '圖片3',
	productPic4 varchar(100) comment '圖片4',
	price int comment '價格',
	oldPrice int comment '原價',
	content varchar(100) comment '內容',
	nums int comment '數量',
	tjxj varchar(100) comment '推薦星級',
	status varchar(100) comment '狀態',
	typesId int comment '分類',
	jf int comment '積分',
	userId int comment '商家',
	bqId int comment '標籤'
) comment '產品';

SQL

Copy

瀏覽記錄表創建語句如下:

create table t_productview(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	customerId int comment '用戶',
	insertDate datetime comment '日期'
) comment '瀏覽記錄';

SQL

Copy

購物車表創建語句如下:

create table t_shopcar(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	num int comment '數量',
	customerId int comment ''
) comment '購物車';

SQL

Copy

收藏表創建語句如下:

create table t_shoucang(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	customerId int comment '用戶',
	insertDate datetime comment '日期'
) comment '收藏';

SQL

Copy

分類表創建語句如下:

create table t_types(
	id int primary key auto_increment comment '主鍵',
	typesName varchar(100) comment '分類'
) comment '分類';

SQL

Copy

普通員工表創建語句如下:

create table t_user(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	name varchar(100) comment '姓名',
	gh varchar(100) comment '工號',
	mobile varchar(100) comment '手機'
) comment '普通員工';

SQL

Copy

我的消息表創建語句如下:

create table t_wdxx(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '我',
	title varchar(100) comment '標題',
	pic varchar(100) comment '圖片',
	content varchar(100) comment '內容',
	zan int comment '贊',
	insertDate datetime comment '發佈日期',
	nologin varchar(100) comment '遊客是否可見',
	bkId int comment ''
) comment '我的消息';

SQL

Copy

作業表創建語句如下:

create table t_zuoye(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	content varchar(100) comment '說明',
	fileUrl varchar(100) comment '附件',
	insertDate datetime comment '日期',
	back varchar(100) comment '回覆',
	pf int comment '評分',
	status varchar(100) comment '狀態'
) comment '作業';

SQL

Copy

資訊表創建語句如下:

create table t_zx(
	id int primary key auto_increment comment '主鍵',
	title varchar(100) comment '標題',
	content varchar(100) comment '內容',
	pic varchar(100) comment '圖片',
	showDate varchar(100) comment ''
) comment '資訊';

SQL

Copy

動漫之家手機APPoracle數據庫版本源碼:

超級管理員表創建語句如下:

create table t_admin(
	id integer,
	username varchar(100),
	password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超級管理員字段加註釋
comment on column t_admin.id is '主鍵';
comment on column t_admin.username is '超級管理員賬號';
comment on column t_admin.password is '超級管理員密碼';
--超級管理員表加註釋
comment on table t_admin is '超級管理員';

SQL

Copy

地址表創建語句如下:

create table t_address(
	id integer,
	customerId int,
	phone varchar(100),
	addressVal varchar(100),
	addressName varchar(100),
	ismoren varchar(100),
	province varchar(100),
	city varchar(100),
	area varchar(100)
);
--地址字段加註釋
comment on column t_address.id is '主鍵';
comment on column t_address.customerId is '用戶';
comment on column t_address.phone is '電話';
comment on column t_address.addressVal is '地址';
comment on column t_address.addressName is '姓名';
comment on column t_address.ismoren is '是否默認';
comment on column t_address.province is '';
comment on column t_address.city is '';
comment on column t_address.area is '';
--地址表加註釋
comment on table t_address is '地址';

SQL

Copy

分類表創建語句如下:

create table t_bk(
	id integer,
	bkName varchar(100)
);
--分類字段加註釋
comment on column t_bk.id is '主鍵';
comment on column t_bk.bkName is '分類名稱';
--分類表加註釋
comment on table t_bk is '分類';

SQL

Copy

標籤表創建語句如下:

create table t_bq(
	id integer,
	bqName varchar(100)
);
--標籤字段加註釋
comment on column t_bq.id is '主鍵';
comment on column t_bq.bqName is '標籤';
--標籤表加註釋
comment on table t_bq is '標籤';

SQL

Copy

建議表創建語句如下:

create table t_contact(
	id integer,
	customerId int,
	phone varchar(100),
	content varchar(100),
	insertDate datetime
);
--建議字段加註釋
comment on column t_contact.id is '主鍵';
comment on column t_contact.customerId is '用戶';
comment on column t_contact.phone is '聯繫方式';
comment on column t_contact.content is '內容';
comment on column t_contact.insertDate is '日期';
--建議表加註釋
comment on table t_contact is '建議';

SQL

Copy

客戶表創建語句如下:

create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	sex varchar(100),
	address varchar(100),
	phone varchar(100),
	account int,
	jf int,
	email varchar(100),
	headPic varchar(100)
);
--客戶字段加註釋
comment on column t_customer.id is '主鍵';
comment on column t_customer.username is '賬號';
comment on column t_customer.password is '密碼';
comment on column t_customer.customerName is '姓名';
comment on column t_customer.sex is '性別';
comment on column t_customer.address is '地址';
comment on column t_customer.phone is '手機';
comment on column t_customer.account is '賬戶';
comment on column t_customer.jf is '積分';
comment on column t_customer.email is '郵箱';
comment on column t_customer.headPic is '頭像';
--客戶表加註釋
comment on table t_customer is '客戶';

SQL

Copy

積分兌換產品表創建語句如下:

create table t_jfdh(
	id integer,
	jfName varchar(100),
	jfCost int,
	jfPic varchar(100)
);
--積分兌換產品字段加註釋
comment on column t_jfdh.id is '主鍵';
comment on column t_jfdh.jfName is '積分產品名稱';
comment on column t_jfdh.jfCost is '積分數量';
comment on column t_jfdh.jfPic is '產品圖片';
--積分兌換產品表加註釋
comment on table t_jfdh is '積分兌換產品';

SQL

Copy

庫存表創建語句如下:

create table t_kc(
	id integer,
	productId int,
	kcNum int,
	insertDate datetime
);
--庫存字段加註釋
comment on column t_kc.id is '主鍵';
comment on column t_kc.productId is '產品';
comment on column t_kc.kcNum is '庫存數量';
comment on column t_kc.insertDate is '日期';
--庫存表加註釋
comment on table t_kc is '庫存';

SQL

Copy

輪播圖表創建語句如下:

create table t_lbt(
	id integer,
	pic varchar(100)
);
--輪播圖字段加註釋
comment on column t_lbt.id is '主鍵';
comment on column t_lbt.pic is '圖片';
--輪播圖表加註釋
comment on table t_lbt is '輪播圖';

SQL

Copy

留言表創建語句如下:

create table t_liuyan(
	id integer,
	customerId int,
	content varchar(100),
	insertDate datetime,
	back varchar(100),
	status varchar(100)
);
--留言字段加註釋
comment on column t_liuyan.id is '主鍵';
comment on column t_liuyan.customerId is '用戶';
comment on column t_liuyan.content is '內容';
comment on column t_liuyan.insertDate is '日期';
comment on column t_liuyan.back is '回覆';
comment on column t_liuyan.status is '狀態';
--留言表加註釋
comment on table t_liuyan is '留言';

SQL

Copy

信息交流表創建語句如下:

create table t_message(
	id integer,
	customerId int,
	messageContent varchar(100),
	types int,
	insertDate datetime
);
--信息交流字段加註釋
comment on column t_message.id is '主鍵';
comment on column t_message.customerId is '用戶';
comment on column t_message.messageContent is '內容';
comment on column t_message.types is '';
comment on column t_message.insertDate is '時間';
--信息交流表加註釋
comment on table t_message is '信息交流';

SQL

Copy

訂單表創建語句如下:

create table t_order(
	id integer,
	customerId int,
	productDetail varchar(100),
	allPrice varchar(100),
	status varchar(100),
	orderNum varchar(100),
	pl varchar(100),
	insertDate datetime,
	userId int,
	orderDate varchar(100),
	address varchar(100),
	xj varchar(100),
	pic varchar(100),
	content varchar(100),
	plDate datetime,
	plr varchar(100)
);
--訂單字段加註釋
comment on column t_order.id is '主鍵';
comment on column t_order.customerId is '用戶';
comment on column t_order.productDetail is '訂單詳細';
comment on column t_order.allPrice is '訂單總價格';
comment on column t_order.status is '狀態';
comment on column t_order.orderNum is '訂單編號';
comment on column t_order.pl is '物流信息';
comment on column t_order.insertDate is '日期';
comment on column t_order.userId is '';
comment on column t_order.orderDate is '';
comment on column t_order.address is '';
comment on column t_order.xj is '';
comment on column t_order.pic is '';
comment on column t_order.content is '';
comment on column t_order.plDate is '';
comment on column t_order.plr is '';
--訂單表加註釋
comment on table t_order is '訂單';

SQL

Copy

訂單詳情表創建語句如下:

create table t_orderlist(
	id integer,
	customerId int,
	orderId int,
	productId int,
	sl int,
	productName varchar(100),
	price int,
	productPic1 varchar(100),
	xj varchar(100),
	content varchar(100),
	plDate datetime,
	pic varchar(100),
	customerName varchar(100)
);
--訂單詳情字段加註釋
comment on column t_orderlist.id is '主鍵';
comment on column t_orderlist.customerId is '用戶';
comment on column t_orderlist.orderId is '訂單';
comment on column t_orderlist.productId is '菜品';
comment on column t_orderlist.sl is '';
comment on column t_orderlist.productName is '';
comment on column t_orderlist.price is '';
comment on column t_orderlist.productPic1 is '';
comment on column t_orderlist.xj is '';
comment on column t_orderlist.content is '';
comment on column t_orderlist.plDate is '';
comment on column t_orderlist.pic is '';
comment on column t_orderlist.customerName is '';
--訂單詳情表加註釋
comment on table t_orderlist is '訂單詳情';

SQL

Copy

評論表創建語句如下:

create table t_pinglun(
	id integer,
	wdxxId int,
	customerId int,
	content varchar(100),
	insertDate datetime
);
--評論字段加註釋
comment on column t_pinglun.id is '主鍵';
comment on column t_pinglun.wdxxId is '評論信息';
comment on column t_pinglun.customerId is '評論人';
comment on column t_pinglun.content is '評論內容';
comment on column t_pinglun.insertDate is '評論日期';
--評論表加註釋
comment on table t_pinglun is '評論';

SQL

Copy

表創建語句如下:

create table t_pinglun_product(
	id integer,
	productId int,
	customerId int,
	content varchar(100),
	insertDate datetime,
	xj varchar(100),
	pic varchar(100)
);
--字段加註釋
comment on column t_pinglun_product.id is '主鍵';
comment on column t_pinglun_product.productId is '評論信息';
comment on column t_pinglun_product.customerId is '評論人';
comment on column t_pinglun_product.content is '評論內容';
comment on column t_pinglun_product.insertDate is '評論日期';
comment on column t_pinglun_product.xj is '星級';
comment on column t_pinglun_product.pic is '';
--表加註釋
comment on table t_pinglun_product is '';

SQL

Copy

產品表創建語句如下:

create table t_product(
	id integer,
	productName varchar(100),
	productPic1 varchar(100),
	productPic2 varchar(100),
	productPic3 varchar(100),
	productPic4 varchar(100),
	price int,
	oldPrice int,
	content varchar(100),
	nums int,
	tjxj varchar(100),
	status varchar(100),
	typesId int,
	jf int,
	userId int,
	bqId int
);
--產品字段加註釋
comment on column t_product.id is '主鍵';
comment on column t_product.productName is '產品名稱';
comment on column t_product.productPic1 is '圖片1';
comment on column t_product.productPic2 is '圖片2';
comment on column t_product.productPic3 is '圖片3';
comment on column t_product.productPic4 is '圖片4';
comment on column t_product.price is '價格';
comment on column t_product.oldPrice is '原價';
comment on column t_product.content is '內容';
comment on column t_product.nums is '數量';
comment on column t_product.tjxj is '推薦星級';
comment on column t_product.status is '狀態';
comment on column t_product.typesId is '分類';
comment on column t_product.jf is '積分';
comment on column t_product.userId is '商家';
comment on column t_product.bqId is '標籤';
--產品表加註釋
comment on table t_product is '產品';

SQL

Copy

瀏覽記錄表創建語句如下:

create table t_productview(
	id integer,
	productId int,
	customerId int,
	insertDate datetime
);
--瀏覽記錄字段加註釋
comment on column t_productview.id is '主鍵';
comment on column t_productview.productId is '產品';
comment on column t_productview.customerId is '用戶';
comment on column t_productview.insertDate is '日期';
--瀏覽記錄表加註釋
comment on table t_productview is '瀏覽記錄';

SQL

Copy

購物車表創建語句如下:

create table t_shopcar(
	id integer,
	productId int,
	num int,
	customerId int
);
--購物車字段加註釋
comment on column t_shopcar.id is '主鍵';
comment on column t_shopcar.productId is '產品';
comment on column t_shopcar.num is '數量';
comment on column t_shopcar.customerId is '';
--購物車表加註釋
comment on table t_shopcar is '購物車';

SQL

Copy

收藏表創建語句如下:

create table t_shoucang(
	id integer,
	productId int,
	customerId int,
	insertDate datetime
);
--收藏字段加註釋
comment on column t_shoucang.id is '主鍵';
comment on column t_shoucang.productId is '產品';
comment on column t_shoucang.customerId is '用戶';
comment on column t_shoucang.insertDate is '日期';
--收藏表加註釋
comment on table t_shoucang is '收藏';

SQL

Copy

分類表創建語句如下:

create table t_types(
	id integer,
	typesName varchar(100)
);
--分類字段加註釋
comment on column t_types.id is '主鍵';
comment on column t_types.typesName is '分類';
--分類表加註釋
comment on table t_types is '分類';

SQL

Copy

普通員工表創建語句如下:

create table t_user(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	gh varchar(100),
	mobile varchar(100)
);
--普通員工字段加註釋
comment on column t_user.id is '主鍵';
comment on column t_user.username is '賬號';
comment on column t_user.password is '密碼';
comment on column t_user.name is '姓名';
comment on column t_user.gh is '工號';
comment on column t_user.mobile is '手機';
--普通員工表加註釋
comment on table t_user is '普通員工';

SQL

Copy

我的消息表創建語句如下:

create table t_wdxx(
	id integer,
	customerId int,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	zan int,
	insertDate datetime,
	nologin varchar(100),
	bkId int
);
--我的消息字段加註釋
comment on column t_wdxx.id is '主鍵';
comment on column t_wdxx.customerId is '我';
comment on column t_wdxx.title is '標題';
comment on column t_wdxx.pic is '圖片';
comment on column t_wdxx.content is '內容';
comment on column t_wdxx.zan is '贊';
comment on column t_wdxx.insertDate is '發佈日期';
comment on column t_wdxx.nologin is '遊客是否可見';
comment on column t_wdxx.bkId is '';
--我的消息表加註釋
comment on table t_wdxx is '我的消息';

SQL

Copy

作業表創建語句如下:

create table t_zuoye(
	id integer,
	customerId int,
	content varchar(100),
	fileUrl varchar(100),
	insertDate datetime,
	back varchar(100),
	pf int,
	status varchar(100)
);
--作業字段加註釋
comment on column t_zuoye.id is '主鍵';
comment on column t_zuoye.customerId is '用戶';
comment on column t_zuoye.content is '說明';
comment on column t_zuoye.fileUrl is '附件';
comment on column t_zuoye.insertDate is '日期';
comment on column t_zuoye.back is '回覆';
comment on column t_zuoye.pf is '評分';
comment on column t_zuoye.status is '狀態';
--作業表加註釋
comment on table t_zuoye is '作業';

SQL

Copy

資訊表創建語句如下:

create table t_zx(
	id integer,
	title varchar(100),
	content varchar(100),
	pic varchar(100),
	showDate varchar(100)
);
--資訊字段加註釋
comment on column t_zx.id is '主鍵';
comment on column t_zx.title is '標題';
comment on column t_zx.content is '內容';
comment on column t_zx.pic is '圖片';
comment on column t_zx.showDate is '';
--資訊表加註釋
comment on table t_zx is '資訊';

SQL

Copy

oracle特有,對應序列如下:

create sequence s_t_address;
create sequence s_t_bk;
create sequence s_t_bq;
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_jfdh;
create sequence s_t_kc;
create sequence s_t_lbt;
create sequence s_t_liuyan;
create sequence s_t_message;
create sequence s_t_order;
create sequence s_t_orderlist;
create sequence s_t_pinglun;
create sequence s_t_pinglun_product;
create sequence s_t_product;
create sequence s_t_productview;
create sequence s_t_shopcar;
create sequence s_t_shoucang;
create sequence s_t_types;
create sequence s_t_user;
create sequence s_t_wdxx;
create sequence s_t_zuoye;
create sequence s_t_zx;

SQL

Copy

動漫之家手機APPsqlserver數據庫版本源碼:

超級管理員表創建語句如下:

--超級管理員
create table t_admin(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--超級管理員賬號
	password varchar(100)--超級管理員密碼
);
insert into t_admin(username,password) values('admin','123456');

SQL

Copy

地址表創建語句如下:

--地址表註釋
create table t_address(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	phone varchar(100),--電話
	addressVal varchar(100),--地址
	addressName varchar(100),--姓名
	ismoren varchar(100),--是否默認
	province varchar(100),--
	city varchar(100),--
	area varchar(100)--
);

SQL

Copy

分類表創建語句如下:

--分類表註釋
create table t_bk(
	id int identity(1,1) primary key not null,--主鍵
	bkName varchar(100)--分類名稱
);

SQL

Copy

標籤表創建語句如下:

--標籤表註釋
create table t_bq(
	id int identity(1,1) primary key not null,--主鍵
	bqName varchar(100)--標籤
);

SQL

Copy

建議表創建語句如下:

--建議表註釋
create table t_contact(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	phone varchar(100),--聯繫方式
	content varchar(100),--內容
	insertDate datetime--日期
);

SQL

Copy

客戶表創建語句如下:

--客戶表註釋
create table t_customer(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	customerName varchar(100),--姓名
	sex varchar(100),--性別
	address varchar(100),--地址
	phone varchar(100),--手機
	account int,--賬戶
	jf int,--積分
	email varchar(100),--郵箱
	headPic varchar(100)--頭像
);

SQL

Copy

積分兌換產品表創建語句如下:

--積分兌換產品表註釋
create table t_jfdh(
	id int identity(1,1) primary key not null,--主鍵
	jfName varchar(100),--積分產品名稱
	jfCost int,--積分數量
	jfPic varchar(100)--產品圖片
);

SQL

Copy

庫存表創建語句如下:

--庫存表註釋
create table t_kc(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	kcNum int,--庫存數量
	insertDate datetime--日期
);

SQL

Copy

輪播圖表創建語句如下:

--輪播圖表註釋
create table t_lbt(
	id int identity(1,1) primary key not null,--主鍵
	pic varchar(100)--圖片
);

SQL

Copy

留言表創建語句如下:

--留言表註釋
create table t_liuyan(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	content varchar(100),--內容
	insertDate datetime,--日期
	back varchar(100),--回覆
	status varchar(100)--狀態
);

SQL

Copy

信息交流表創建語句如下:

--信息交流表註釋
create table t_message(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	messageContent varchar(100),--內容
	types int,--
	insertDate datetime--時間
);

SQL

Copy

訂單表創建語句如下:

--訂單表註釋
create table t_order(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	productDetail varchar(100),--訂單詳細
	allPrice varchar(100),--訂單總價格
	status varchar(100),--狀態
	orderNum varchar(100),--訂單編號
	pl varchar(100),--物流信息
	insertDate datetime,--日期
	userId int,--
	orderDate varchar(100),--
	address varchar(100),--
	xj varchar(100),--
	pic varchar(100),--
	content varchar(100),--
	plDate datetime,--
	plr varchar(100)--
);

SQL

Copy

訂單詳情表創建語句如下:

--訂單詳情表註釋
create table t_orderlist(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	orderId int,--訂單
	productId int,--菜品
	sl int,--
	productName varchar(100),--
	price int,--
	productPic1 varchar(100),--
	xj varchar(100),--
	content varchar(100),--
	plDate datetime,--
	pic varchar(100),--
	customerName varchar(100)--
);

SQL

Copy

評論表創建語句如下:

--評論表註釋
create table t_pinglun(
	id int identity(1,1) primary key not null,--主鍵
	wdxxId int,--評論信息
	customerId int,--評論人
	content varchar(100),--評論內容
	insertDate datetime--評論日期
);

SQL

Copy

表創建語句如下:

--表註釋
create table t_pinglun_product(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--評論信息
	customerId int,--評論人
	content varchar(100),--評論內容
	insertDate datetime,--評論日期
	xj varchar(100),--星級
	pic varchar(100)--
);

SQL

Copy

產品表創建語句如下:

--產品表註釋
create table t_product(
	id int identity(1,1) primary key not null,--主鍵
	productName varchar(100),--產品名稱
	productPic1 varchar(100),--圖片1
	productPic2 varchar(100),--圖片2
	productPic3 varchar(100),--圖片3
	productPic4 varchar(100),--圖片4
	price int,--價格
	oldPrice int,--原價
	content varchar(100),--內容
	nums int,--數量
	tjxj varchar(100),--推薦星級
	status varchar(100),--狀態
	typesId int,--分類
	jf int,--積分
	userId int,--商家
	bqId int--標籤
);

SQL

Copy

瀏覽記錄表創建語句如下:

--瀏覽記錄表註釋
create table t_productview(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	customerId int,--用戶
	insertDate datetime--日期
);

SQL

Copy

購物車表創建語句如下:

--購物車表註釋
create table t_shopcar(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	num int,--數量
	customerId int--
);

SQL

Copy

收藏表創建語句如下:

--收藏表註釋
create table t_shoucang(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	customerId int,--用戶
	insertDate datetime--日期
);

SQL

Copy

分類表創建語句如下:

--分類表註釋
create table t_types(
	id int identity(1,1) primary key not null,--主鍵
	typesName varchar(100)--分類
);

SQL

Copy

普通員工表創建語句如下:

--普通員工表註釋
create table t_user(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	name varchar(100),--姓名
	gh varchar(100),--工號
	mobile varchar(100)--手機
);

SQL

Copy

我的消息表創建語句如下:

--我的消息表註釋
create table t_wdxx(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--我
	title varchar(100),--標題
	pic varchar(100),--圖片
	content varchar(100),--內容
	zan int,--贊
	insertDate datetime,--發佈日期
	nologin varchar(100),--遊客是否可見
	bkId int--
);

SQL

Copy

作業表創建語句如下:

--作業表註釋
create table t_zuoye(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	content varchar(100),--說明
	fileUrl varchar(100),--附件
	insertDate datetime,--日期
	back varchar(100),--回覆
	pf int,--評分
	status varchar(100)--狀態
);

SQL

Copy

資訊表創建語句如下:

--資訊表註釋
create table t_zx(
	id int identity(1,1) primary key not null,--主鍵
	title varchar(100),--標題
	content varchar(100),--內容
	pic varchar(100),--圖片
	showDate varchar(100)--
);

動漫之家手機APPmysql數據庫版本源碼:

超級管理員表創建語句如下:

create table t_admin(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '超級管理員賬號',
	password varchar(100) comment '超級管理員密碼'
) comment '超級管理員';
insert into t_admin(username,password) values('admin','123456');

SQL

Copy

地址表創建語句如下:

create table t_address(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	phone varchar(100) comment '電話',
	addressVal varchar(100) comment '地址',
	addressName varchar(100) comment '姓名',
	ismoren varchar(100) comment '是否默認',
	province varchar(100) comment '',
	city varchar(100) comment '',
	area varchar(100) comment ''
) comment '地址';

SQL

Copy

分類表創建語句如下:

create table t_bk(
	id int primary key auto_increment comment '主鍵',
	bkName varchar(100) comment '分類名稱'
) comment '分類';

SQL

Copy

標籤表創建語句如下:

create table t_bq(
	id int primary key auto_increment comment '主鍵',
	bqName varchar(100) comment '標籤'
) comment '標籤';

SQL

Copy

建議表創建語句如下:

create table t_contact(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	phone varchar(100) comment '聯繫方式',
	content varchar(100) comment '內容',
	insertDate datetime comment '日期'
) comment '建議';

SQL

Copy

客戶表創建語句如下:

create table t_customer(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	customerName varchar(100) comment '姓名',
	sex varchar(100) comment '性別',
	address varchar(100) comment '地址',
	phone varchar(100) comment '手機',
	account int comment '賬戶',
	jf int comment '積分',
	email varchar(100) comment '郵箱',
	headPic varchar(100) comment '頭像'
) comment '客戶';

SQL

Copy

積分兌換產品表創建語句如下:

create table t_jfdh(
	id int primary key auto_increment comment '主鍵',
	jfName varchar(100) comment '積分產品名稱',
	jfCost int comment '積分數量',
	jfPic varchar(100) comment '產品圖片'
) comment '積分兌換產品';

SQL

Copy

庫存表創建語句如下:

create table t_kc(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	kcNum int comment '庫存數量',
	insertDate datetime comment '日期'
) comment '庫存';

SQL

Copy

輪播圖表創建語句如下:

create table t_lbt(
	id int primary key auto_increment comment '主鍵',
	pic varchar(100) comment '圖片'
) comment '輪播圖';

SQL

Copy

留言表創建語句如下:

create table t_liuyan(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	content varchar(100) comment '內容',
	insertDate datetime comment '日期',
	back varchar(100) comment '回覆',
	status varchar(100) comment '狀態'
) comment '留言';

SQL

Copy

信息交流表創建語句如下:

create table t_message(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	messageContent varchar(100) comment '內容',
	types int comment '',
	insertDate datetime comment '時間'
) comment '信息交流';

SQL

Copy

訂單表創建語句如下:

create table t_order(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	productDetail varchar(100) comment '訂單詳細',
	allPrice varchar(100) comment '訂單總價格',
	status varchar(100) comment '狀態',
	orderNum varchar(100) comment '訂單編號',
	pl varchar(100) comment '物流信息',
	insertDate datetime comment '日期',
	userId int comment '',
	orderDate varchar(100) comment '',
	address varchar(100) comment '',
	xj varchar(100) comment '',
	pic varchar(100) comment '',
	content varchar(100) comment '',
	plDate datetime comment '',
	plr varchar(100) comment ''
) comment '訂單';

SQL

Copy

訂單詳情表創建語句如下:

create table t_orderlist(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	orderId int comment '訂單',
	productId int comment '菜品',
	sl int comment '',
	productName varchar(100) comment '',
	price int comment '',
	productPic1 varchar(100) comment '',
	xj varchar(100) comment '',
	content varchar(100) comment '',
	plDate datetime comment '',
	pic varchar(100) comment '',
	customerName varchar(100) comment ''
) comment '訂單詳情';

SQL

Copy

評論表創建語句如下:

create table t_pinglun(
	id int primary key auto_increment comment '主鍵',
	wdxxId int comment '評論信息',
	customerId int comment '評論人',
	content varchar(100) comment '評論內容',
	insertDate datetime comment '評論日期'
) comment '評論';

SQL

Copy

表創建語句如下:

create table t_pinglun_product(
	id int primary key auto_increment comment '主鍵',
	productId int comment '評論信息',
	customerId int comment '評論人',
	content varchar(100) comment '評論內容',
	insertDate datetime comment '評論日期',
	xj varchar(100) comment '星級',
	pic varchar(100) comment ''
) comment '';

SQL

Copy

產品表創建語句如下:

create table t_product(
	id int primary key auto_increment comment '主鍵',
	productName varchar(100) comment '產品名稱',
	productPic1 varchar(100) comment '圖片1',
	productPic2 varchar(100) comment '圖片2',
	productPic3 varchar(100) comment '圖片3',
	productPic4 varchar(100) comment '圖片4',
	price int comment '價格',
	oldPrice int comment '原價',
	content varchar(100) comment '內容',
	nums int comment '數量',
	tjxj varchar(100) comment '推薦星級',
	status varchar(100) comment '狀態',
	typesId int comment '分類',
	jf int comment '積分',
	userId int comment '商家',
	bqId int comment '標籤'
) comment '產品';

SQL

Copy

瀏覽記錄表創建語句如下:

create table t_productview(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	customerId int comment '用戶',
	insertDate datetime comment '日期'
) comment '瀏覽記錄';

SQL

Copy

購物車表創建語句如下:

create table t_shopcar(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	num int comment '數量',
	customerId int comment ''
) comment '購物車';

SQL

Copy

收藏表創建語句如下:

create table t_shoucang(
	id int primary key auto_increment comment '主鍵',
	productId int comment '產品',
	customerId int comment '用戶',
	insertDate datetime comment '日期'
) comment '收藏';

SQL

Copy

分類表創建語句如下:

create table t_types(
	id int primary key auto_increment comment '主鍵',
	typesName varchar(100) comment '分類'
) comment '分類';

SQL

Copy

普通員工表創建語句如下:

create table t_user(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	name varchar(100) comment '姓名',
	gh varchar(100) comment '工號',
	mobile varchar(100) comment '手機'
) comment '普通員工';

SQL

Copy

我的消息表創建語句如下:

create table t_wdxx(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '我',
	title varchar(100) comment '標題',
	pic varchar(100) comment '圖片',
	content varchar(100) comment '內容',
	zan int comment '贊',
	insertDate datetime comment '發佈日期',
	nologin varchar(100) comment '遊客是否可見',
	bkId int comment ''
) comment '我的消息';

SQL

Copy

作業表創建語句如下:

create table t_zuoye(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '用戶',
	content varchar(100) comment '說明',
	fileUrl varchar(100) comment '附件',
	insertDate datetime comment '日期',
	back varchar(100) comment '回覆',
	pf int comment '評分',
	status varchar(100) comment '狀態'
) comment '作業';

SQL

Copy

資訊表創建語句如下:

create table t_zx(
	id int primary key auto_increment comment '主鍵',
	title varchar(100) comment '標題',
	content varchar(100) comment '內容',
	pic varchar(100) comment '圖片',
	showDate varchar(100) comment ''
) comment '資訊';

SQL

Copy

動漫之家手機APPoracle數據庫版本源碼:

超級管理員表創建語句如下:

create table t_admin(
	id integer,
	username varchar(100),
	password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超級管理員字段加註釋
comment on column t_admin.id is '主鍵';
comment on column t_admin.username is '超級管理員賬號';
comment on column t_admin.password is '超級管理員密碼';
--超級管理員表加註釋
comment on table t_admin is '超級管理員';

SQL

Copy

地址表創建語句如下:

create table t_address(
	id integer,
	customerId int,
	phone varchar(100),
	addressVal varchar(100),
	addressName varchar(100),
	ismoren varchar(100),
	province varchar(100),
	city varchar(100),
	area varchar(100)
);
--地址字段加註釋
comment on column t_address.id is '主鍵';
comment on column t_address.customerId is '用戶';
comment on column t_address.phone is '電話';
comment on column t_address.addressVal is '地址';
comment on column t_address.addressName is '姓名';
comment on column t_address.ismoren is '是否默認';
comment on column t_address.province is '';
comment on column t_address.city is '';
comment on column t_address.area is '';
--地址表加註釋
comment on table t_address is '地址';

SQL

Copy

分類表創建語句如下:

create table t_bk(
	id integer,
	bkName varchar(100)
);
--分類字段加註釋
comment on column t_bk.id is '主鍵';
comment on column t_bk.bkName is '分類名稱';
--分類表加註釋
comment on table t_bk is '分類';

SQL

Copy

標籤表創建語句如下:

create table t_bq(
	id integer,
	bqName varchar(100)
);
--標籤字段加註釋
comment on column t_bq.id is '主鍵';
comment on column t_bq.bqName is '標籤';
--標籤表加註釋
comment on table t_bq is '標籤';

SQL

Copy

建議表創建語句如下:

create table t_contact(
	id integer,
	customerId int,
	phone varchar(100),
	content varchar(100),
	insertDate datetime
);
--建議字段加註釋
comment on column t_contact.id is '主鍵';
comment on column t_contact.customerId is '用戶';
comment on column t_contact.phone is '聯繫方式';
comment on column t_contact.content is '內容';
comment on column t_contact.insertDate is '日期';
--建議表加註釋
comment on table t_contact is '建議';

SQL

Copy

客戶表創建語句如下:

create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	sex varchar(100),
	address varchar(100),
	phone varchar(100),
	account int,
	jf int,
	email varchar(100),
	headPic varchar(100)
);
--客戶字段加註釋
comment on column t_customer.id is '主鍵';
comment on column t_customer.username is '賬號';
comment on column t_customer.password is '密碼';
comment on column t_customer.customerName is '姓名';
comment on column t_customer.sex is '性別';
comment on column t_customer.address is '地址';
comment on column t_customer.phone is '手機';
comment on column t_customer.account is '賬戶';
comment on column t_customer.jf is '積分';
comment on column t_customer.email is '郵箱';
comment on column t_customer.headPic is '頭像';
--客戶表加註釋
comment on table t_customer is '客戶';

SQL

Copy

積分兌換產品表創建語句如下:

create table t_jfdh(
	id integer,
	jfName varchar(100),
	jfCost int,
	jfPic varchar(100)
);
--積分兌換產品字段加註釋
comment on column t_jfdh.id is '主鍵';
comment on column t_jfdh.jfName is '積分產品名稱';
comment on column t_jfdh.jfCost is '積分數量';
comment on column t_jfdh.jfPic is '產品圖片';
--積分兌換產品表加註釋
comment on table t_jfdh is '積分兌換產品';

SQL

Copy

庫存表創建語句如下:

create table t_kc(
	id integer,
	productId int,
	kcNum int,
	insertDate datetime
);
--庫存字段加註釋
comment on column t_kc.id is '主鍵';
comment on column t_kc.productId is '產品';
comment on column t_kc.kcNum is '庫存數量';
comment on column t_kc.insertDate is '日期';
--庫存表加註釋
comment on table t_kc is '庫存';

SQL

Copy

輪播圖表創建語句如下:

create table t_lbt(
	id integer,
	pic varchar(100)
);
--輪播圖字段加註釋
comment on column t_lbt.id is '主鍵';
comment on column t_lbt.pic is '圖片';
--輪播圖表加註釋
comment on table t_lbt is '輪播圖';

SQL

Copy

留言表創建語句如下:

create table t_liuyan(
	id integer,
	customerId int,
	content varchar(100),
	insertDate datetime,
	back varchar(100),
	status varchar(100)
);
--留言字段加註釋
comment on column t_liuyan.id is '主鍵';
comment on column t_liuyan.customerId is '用戶';
comment on column t_liuyan.content is '內容';
comment on column t_liuyan.insertDate is '日期';
comment on column t_liuyan.back is '回覆';
comment on column t_liuyan.status is '狀態';
--留言表加註釋
comment on table t_liuyan is '留言';

SQL

Copy

信息交流表創建語句如下:

create table t_message(
	id integer,
	customerId int,
	messageContent varchar(100),
	types int,
	insertDate datetime
);
--信息交流字段加註釋
comment on column t_message.id is '主鍵';
comment on column t_message.customerId is '用戶';
comment on column t_message.messageContent is '內容';
comment on column t_message.types is '';
comment on column t_message.insertDate is '時間';
--信息交流表加註釋
comment on table t_message is '信息交流';

SQL

Copy

訂單表創建語句如下:

create table t_order(
	id integer,
	customerId int,
	productDetail varchar(100),
	allPrice varchar(100),
	status varchar(100),
	orderNum varchar(100),
	pl varchar(100),
	insertDate datetime,
	userId int,
	orderDate varchar(100),
	address varchar(100),
	xj varchar(100),
	pic varchar(100),
	content varchar(100),
	plDate datetime,
	plr varchar(100)
);
--訂單字段加註釋
comment on column t_order.id is '主鍵';
comment on column t_order.customerId is '用戶';
comment on column t_order.productDetail is '訂單詳細';
comment on column t_order.allPrice is '訂單總價格';
comment on column t_order.status is '狀態';
comment on column t_order.orderNum is '訂單編號';
comment on column t_order.pl is '物流信息';
comment on column t_order.insertDate is '日期';
comment on column t_order.userId is '';
comment on column t_order.orderDate is '';
comment on column t_order.address is '';
comment on column t_order.xj is '';
comment on column t_order.pic is '';
comment on column t_order.content is '';
comment on column t_order.plDate is '';
comment on column t_order.plr is '';
--訂單表加註釋
comment on table t_order is '訂單';

SQL

Copy

訂單詳情表創建語句如下:

create table t_orderlist(
	id integer,
	customerId int,
	orderId int,
	productId int,
	sl int,
	productName varchar(100),
	price int,
	productPic1 varchar(100),
	xj varchar(100),
	content varchar(100),
	plDate datetime,
	pic varchar(100),
	customerName varchar(100)
);
--訂單詳情字段加註釋
comment on column t_orderlist.id is '主鍵';
comment on column t_orderlist.customerId is '用戶';
comment on column t_orderlist.orderId is '訂單';
comment on column t_orderlist.productId is '菜品';
comment on column t_orderlist.sl is '';
comment on column t_orderlist.productName is '';
comment on column t_orderlist.price is '';
comment on column t_orderlist.productPic1 is '';
comment on column t_orderlist.xj is '';
comment on column t_orderlist.content is '';
comment on column t_orderlist.plDate is '';
comment on column t_orderlist.pic is '';
comment on column t_orderlist.customerName is '';
--訂單詳情表加註釋
comment on table t_orderlist is '訂單詳情';

SQL

Copy

評論表創建語句如下:

create table t_pinglun(
	id integer,
	wdxxId int,
	customerId int,
	content varchar(100),
	insertDate datetime
);
--評論字段加註釋
comment on column t_pinglun.id is '主鍵';
comment on column t_pinglun.wdxxId is '評論信息';
comment on column t_pinglun.customerId is '評論人';
comment on column t_pinglun.content is '評論內容';
comment on column t_pinglun.insertDate is '評論日期';
--評論表加註釋
comment on table t_pinglun is '評論';

SQL

Copy

表創建語句如下:

create table t_pinglun_product(
	id integer,
	productId int,
	customerId int,
	content varchar(100),
	insertDate datetime,
	xj varchar(100),
	pic varchar(100)
);
--字段加註釋
comment on column t_pinglun_product.id is '主鍵';
comment on column t_pinglun_product.productId is '評論信息';
comment on column t_pinglun_product.customerId is '評論人';
comment on column t_pinglun_product.content is '評論內容';
comment on column t_pinglun_product.insertDate is '評論日期';
comment on column t_pinglun_product.xj is '星級';
comment on column t_pinglun_product.pic is '';
--表加註釋
comment on table t_pinglun_product is '';

SQL

Copy

產品表創建語句如下:

create table t_product(
	id integer,
	productName varchar(100),
	productPic1 varchar(100),
	productPic2 varchar(100),
	productPic3 varchar(100),
	productPic4 varchar(100),
	price int,
	oldPrice int,
	content varchar(100),
	nums int,
	tjxj varchar(100),
	status varchar(100),
	typesId int,
	jf int,
	userId int,
	bqId int
);
--產品字段加註釋
comment on column t_product.id is '主鍵';
comment on column t_product.productName is '產品名稱';
comment on column t_product.productPic1 is '圖片1';
comment on column t_product.productPic2 is '圖片2';
comment on column t_product.productPic3 is '圖片3';
comment on column t_product.productPic4 is '圖片4';
comment on column t_product.price is '價格';
comment on column t_product.oldPrice is '原價';
comment on column t_product.content is '內容';
comment on column t_product.nums is '數量';
comment on column t_product.tjxj is '推薦星級';
comment on column t_product.status is '狀態';
comment on column t_product.typesId is '分類';
comment on column t_product.jf is '積分';
comment on column t_product.userId is '商家';
comment on column t_product.bqId is '標籤';
--產品表加註釋
comment on table t_product is '產品';

SQL

Copy

瀏覽記錄表創建語句如下:

create table t_productview(
	id integer,
	productId int,
	customerId int,
	insertDate datetime
);
--瀏覽記錄字段加註釋
comment on column t_productview.id is '主鍵';
comment on column t_productview.productId is '產品';
comment on column t_productview.customerId is '用戶';
comment on column t_productview.insertDate is '日期';
--瀏覽記錄表加註釋
comment on table t_productview is '瀏覽記錄';

SQL

Copy

購物車表創建語句如下:

create table t_shopcar(
	id integer,
	productId int,
	num int,
	customerId int
);
--購物車字段加註釋
comment on column t_shopcar.id is '主鍵';
comment on column t_shopcar.productId is '產品';
comment on column t_shopcar.num is '數量';
comment on column t_shopcar.customerId is '';
--購物車表加註釋
comment on table t_shopcar is '購物車';

SQL

Copy

收藏表創建語句如下:

create table t_shoucang(
	id integer,
	productId int,
	customerId int,
	insertDate datetime
);
--收藏字段加註釋
comment on column t_shoucang.id is '主鍵';
comment on column t_shoucang.productId is '產品';
comment on column t_shoucang.customerId is '用戶';
comment on column t_shoucang.insertDate is '日期';
--收藏表加註釋
comment on table t_shoucang is '收藏';

SQL

Copy

分類表創建語句如下:

create table t_types(
	id integer,
	typesName varchar(100)
);
--分類字段加註釋
comment on column t_types.id is '主鍵';
comment on column t_types.typesName is '分類';
--分類表加註釋
comment on table t_types is '分類';

SQL

Copy

普通員工表創建語句如下:

create table t_user(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	gh varchar(100),
	mobile varchar(100)
);
--普通員工字段加註釋
comment on column t_user.id is '主鍵';
comment on column t_user.username is '賬號';
comment on column t_user.password is '密碼';
comment on column t_user.name is '姓名';
comment on column t_user.gh is '工號';
comment on column t_user.mobile is '手機';
--普通員工表加註釋
comment on table t_user is '普通員工';

SQL

Copy

我的消息表創建語句如下:

create table t_wdxx(
	id integer,
	customerId int,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	zan int,
	insertDate datetime,
	nologin varchar(100),
	bkId int
);
--我的消息字段加註釋
comment on column t_wdxx.id is '主鍵';
comment on column t_wdxx.customerId is '我';
comment on column t_wdxx.title is '標題';
comment on column t_wdxx.pic is '圖片';
comment on column t_wdxx.content is '內容';
comment on column t_wdxx.zan is '贊';
comment on column t_wdxx.insertDate is '發佈日期';
comment on column t_wdxx.nologin is '遊客是否可見';
comment on column t_wdxx.bkId is '';
--我的消息表加註釋
comment on table t_wdxx is '我的消息';

SQL

Copy

作業表創建語句如下:

create table t_zuoye(
	id integer,
	customerId int,
	content varchar(100),
	fileUrl varchar(100),
	insertDate datetime,
	back varchar(100),
	pf int,
	status varchar(100)
);
--作業字段加註釋
comment on column t_zuoye.id is '主鍵';
comment on column t_zuoye.customerId is '用戶';
comment on column t_zuoye.content is '說明';
comment on column t_zuoye.fileUrl is '附件';
comment on column t_zuoye.insertDate is '日期';
comment on column t_zuoye.back is '回覆';
comment on column t_zuoye.pf is '評分';
comment on column t_zuoye.status is '狀態';
--作業表加註釋
comment on table t_zuoye is '作業';

SQL

Copy

資訊表創建語句如下:

create table t_zx(
	id integer,
	title varchar(100),
	content varchar(100),
	pic varchar(100),
	showDate varchar(100)
);
--資訊字段加註釋
comment on column t_zx.id is '主鍵';
comment on column t_zx.title is '標題';
comment on column t_zx.content is '內容';
comment on column t_zx.pic is '圖片';
comment on column t_zx.showDate is '';
--資訊表加註釋
comment on table t_zx is '資訊';

SQL

Copy

oracle特有,對應序列如下:

create sequence s_t_address;
create sequence s_t_bk;
create sequence s_t_bq;
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_jfdh;
create sequence s_t_kc;
create sequence s_t_lbt;
create sequence s_t_liuyan;
create sequence s_t_message;
create sequence s_t_order;
create sequence s_t_orderlist;
create sequence s_t_pinglun;
create sequence s_t_pinglun_product;
create sequence s_t_product;
create sequence s_t_productview;
create sequence s_t_shopcar;
create sequence s_t_shoucang;
create sequence s_t_types;
create sequence s_t_user;
create sequence s_t_wdxx;
create sequence s_t_zuoye;
create sequence s_t_zx;

SQL

Copy

動漫之家手機APPsqlserver數據庫版本源碼:

超級管理員表創建語句如下:

--超級管理員
create table t_admin(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--超級管理員賬號
	password varchar(100)--超級管理員密碼
);
insert into t_admin(username,password) values('admin','123456');

SQL

Copy

地址表創建語句如下:

--地址表註釋
create table t_address(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	phone varchar(100),--電話
	addressVal varchar(100),--地址
	addressName varchar(100),--姓名
	ismoren varchar(100),--是否默認
	province varchar(100),--
	city varchar(100),--
	area varchar(100)--
);

SQL

Copy

分類表創建語句如下:

--分類表註釋
create table t_bk(
	id int identity(1,1) primary key not null,--主鍵
	bkName varchar(100)--分類名稱
);

SQL

Copy

標籤表創建語句如下:

--標籤表註釋
create table t_bq(
	id int identity(1,1) primary key not null,--主鍵
	bqName varchar(100)--標籤
);

SQL

Copy

建議表創建語句如下:

--建議表註釋
create table t_contact(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	phone varchar(100),--聯繫方式
	content varchar(100),--內容
	insertDate datetime--日期
);

SQL

Copy

客戶表創建語句如下:

--客戶表註釋
create table t_customer(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	customerName varchar(100),--姓名
	sex varchar(100),--性別
	address varchar(100),--地址
	phone varchar(100),--手機
	account int,--賬戶
	jf int,--積分
	email varchar(100),--郵箱
	headPic varchar(100)--頭像
);

SQL

Copy

積分兌換產品表創建語句如下:

--積分兌換產品表註釋
create table t_jfdh(
	id int identity(1,1) primary key not null,--主鍵
	jfName varchar(100),--積分產品名稱
	jfCost int,--積分數量
	jfPic varchar(100)--產品圖片
);

SQL

Copy

庫存表創建語句如下:

--庫存表註釋
create table t_kc(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	kcNum int,--庫存數量
	insertDate datetime--日期
);

SQL

Copy

輪播圖表創建語句如下:

--輪播圖表註釋
create table t_lbt(
	id int identity(1,1) primary key not null,--主鍵
	pic varchar(100)--圖片
);

SQL

Copy

留言表創建語句如下:

--留言表註釋
create table t_liuyan(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	content varchar(100),--內容
	insertDate datetime,--日期
	back varchar(100),--回覆
	status varchar(100)--狀態
);

SQL

Copy

信息交流表創建語句如下:

--信息交流表註釋
create table t_message(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	messageContent varchar(100),--內容
	types int,--
	insertDate datetime--時間
);

SQL

Copy

訂單表創建語句如下:

--訂單表註釋
create table t_order(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	productDetail varchar(100),--訂單詳細
	allPrice varchar(100),--訂單總價格
	status varchar(100),--狀態
	orderNum varchar(100),--訂單編號
	pl varchar(100),--物流信息
	insertDate datetime,--日期
	userId int,--
	orderDate varchar(100),--
	address varchar(100),--
	xj varchar(100),--
	pic varchar(100),--
	content varchar(100),--
	plDate datetime,--
	plr varchar(100)--
);

SQL

Copy

訂單詳情表創建語句如下:

--訂單詳情表註釋
create table t_orderlist(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	orderId int,--訂單
	productId int,--菜品
	sl int,--
	productName varchar(100),--
	price int,--
	productPic1 varchar(100),--
	xj varchar(100),--
	content varchar(100),--
	plDate datetime,--
	pic varchar(100),--
	customerName varchar(100)--
);

SQL

Copy

評論表創建語句如下:

--評論表註釋
create table t_pinglun(
	id int identity(1,1) primary key not null,--主鍵
	wdxxId int,--評論信息
	customerId int,--評論人
	content varchar(100),--評論內容
	insertDate datetime--評論日期
);

SQL

Copy

表創建語句如下:

--表註釋
create table t_pinglun_product(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--評論信息
	customerId int,--評論人
	content varchar(100),--評論內容
	insertDate datetime,--評論日期
	xj varchar(100),--星級
	pic varchar(100)--
);

SQL

Copy

產品表創建語句如下:

--產品表註釋
create table t_product(
	id int identity(1,1) primary key not null,--主鍵
	productName varchar(100),--產品名稱
	productPic1 varchar(100),--圖片1
	productPic2 varchar(100),--圖片2
	productPic3 varchar(100),--圖片3
	productPic4 varchar(100),--圖片4
	price int,--價格
	oldPrice int,--原價
	content varchar(100),--內容
	nums int,--數量
	tjxj varchar(100),--推薦星級
	status varchar(100),--狀態
	typesId int,--分類
	jf int,--積分
	userId int,--商家
	bqId int--標籤
);

SQL

Copy

瀏覽記錄表創建語句如下:

--瀏覽記錄表註釋
create table t_productview(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	customerId int,--用戶
	insertDate datetime--日期
);

SQL

Copy

購物車表創建語句如下:

--購物車表註釋
create table t_shopcar(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	num int,--數量
	customerId int--
);

SQL

Copy

收藏表創建語句如下:

--收藏表註釋
create table t_shoucang(
	id int identity(1,1) primary key not null,--主鍵
	productId int,--產品
	customerId int,--用戶
	insertDate datetime--日期
);

SQL

Copy

分類表創建語句如下:

--分類表註釋
create table t_types(
	id int identity(1,1) primary key not null,--主鍵
	typesName varchar(100)--分類
);

SQL

Copy

普通員工表創建語句如下:

--普通員工表註釋
create table t_user(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	name varchar(100),--姓名
	gh varchar(100),--工號
	mobile varchar(100)--手機
);

SQL

Copy

我的消息表創建語句如下:

--我的消息表註釋
create table t_wdxx(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--我
	title varchar(100),--標題
	pic varchar(100),--圖片
	content varchar(100),--內容
	zan int,--贊
	insertDate datetime,--發佈日期
	nologin varchar(100),--遊客是否可見
	bkId int--
);

SQL

Copy

作業表創建語句如下:

--作業表註釋
create table t_zuoye(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--用戶
	content varchar(100),--說明
	fileUrl varchar(100),--附件
	insertDate datetime,--日期
	back varchar(100),--回覆
	pf int,--評分
	status varchar(100)--狀態
);

SQL

Copy

資訊表創建語句如下:

--資訊表註釋
create table t_zx(
	id int identity(1,1) primary key not null,--主鍵
	title varchar(100),--標題
	content varchar(100),--內容
	pic varchar(100),--圖片
	showDate varchar(100)--
);

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章