代码拉取完成,页面将自动刷新
/*
SQLyog Ultimate v12.08 (64 bit)
MySQL - 5.7.24 : Database - webstore
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`webstore` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `webstore`;
/*Table structure for table `message` */
DROP TABLE IF EXISTS `message`;
CREATE TABLE `message` (
`product_id` bigint(20) NOT NULL,
`username` varchar(16) NOT NULL,
`content` varchar(255) NOT NULL,
`infotime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `message` */
insert into `message`(`product_id`,`username`,`content`,`infotime`) values (10,'bbbb','除了好评,什么都不想说','2020-06-27 20:58:23'),(5,'bbbb','五星好评,狂扣一波666','2020-07-04 11:35:44');
/*Table structure for table `orderitem` */
DROP TABLE IF EXISTS `orderitem`;
CREATE TABLE `orderitem` (
`order_id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(16) NOT NULL,
`product_id` bigint(20) NOT NULL,
`buynum` int(11) DEFAULT '0',
PRIMARY KEY (`order_id`,`username`,`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8909 DEFAULT CHARSET=utf8;
/*Data for the table `orderitem` */
insert into `orderitem`(`order_id`,`username`,`product_id`,`buynum`) values (8900,'bbbb',2,2),(8908,'bbbb',10,2);
/*Table structure for table `orders` */
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`money` double DEFAULT NULL,
`receiverAddress` varchar(255) DEFAULT NULL,
`receiverName` varchar(16) DEFAULT NULL,
`receiverPhone` varchar(20) DEFAULT NULL,
`paystate` int(11) DEFAULT '0',
`ordertime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`username` varchar(16) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8;
/*Data for the table `orders` */
insert into `orders`(`id`,`money`,`receiverAddress`,`receiverName`,`receiverPhone`,`paystate`,`ordertime`,`username`) values (29,66.6,'佛山大学-网工5-指导老师-李娅收','李娅老师','13620806666',1,'2020-07-04 10:52:33','bbbb'),(30,88.8,'佛山大学-网工5-菜鸟程序猿-小詹收','小詹同学','13620808888',0,'2020-07-04 10:52:33','bbbb');
/*Table structure for table `products` */
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products` (
`product_id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(32) DEFAULT NULL,
`price` double DEFAULT NULL,
`pnum` int(11) DEFAULT NULL,
`category` varchar(32) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
/*Data for the table `products` */
insert into `products`(`product_id`,`name`,`price`,`pnum`,`category`,`description`) values (1,'Java从菜鸟到鲲鹏',48.88,20,'书籍','佛大网络工程出版社'),(2,'JavaWeb程序设计',38.88,18,'书籍','爱程序不爱BUG'),(3,'高性能MySQL',28.88,18,'书籍','搓搓小手等等第五版'),(4,'深入理解Java虚拟机',58.88,16,'书籍','JVM-JMM'),(5,'SSM框架从一到三',68.88,18,'书籍','一生二,二生三,三生万物'),(6,'SSH从入门到入土',46.66,20,'书籍','佛大网络工程出版社'),(7,'MySQL必知必会',16.66,20,'书籍','爱程序不爱BUG'),(8,'MySQL内幕技术',26.66,18,'书籍','佛大网络工程出版社'),(9,'Java并发实战',56.66,18,'书籍','佛大网络工程出版社'),(10,'Java编程思想',66.66,18,'书籍','佛大网络工程出版社');
/*Table structure for table `user` */
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`userId` bigint(20) NOT NULL AUTO_INCREMENT,
`email` varchar(28) DEFAULT NULL,
`username` varchar(16) DEFAULT NULL,
`password` varchar(18) DEFAULT NULL,
`type` int(11) DEFAULT '0',
`state` int(11) DEFAULT '0',
`registTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`userId`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*Data for the table `user` */
insert into `user`(`userId`,`email`,`username`,`password`,`type`,`state`,`registTime`) values (1,'888888888@qq.com','admin','admin',1,1,'2020-07-04 14:08:08'),(2,'666666666@qq.com','zc潮','suoyue_zhan',1,1,'2020-07-04 14:08:08'),(3,'524425542@qq.com','user','user',0,1,'2020-07-04 14:08:08'),(4,'524428842@qq.com','bbbb','bbbb',0,0,'2020-07-04 14:08:09');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。