8 Star 8 Fork 5

skysee/react-shop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
shop.sql 9.32 KB
一键复制 编辑 原始数据 按行查看 历史
skysee 提交于 2015-07-09 23:00 . add active_record to access mysql
-- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: shop
-- ------------------------------------------------------
-- Server version 5.5.43-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!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 */;
--
-- Table structure for table `category`
--
DROP TABLE IF EXISTS `category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `category`
--
LOCK TABLES `category` WRITE;
/*!40000 ALTER TABLE `category` DISABLE KEYS */;
INSERT INTO `category` VALUES (1,'PHONE'),(2,'COMPUTER');
/*!40000 ALTER TABLE `category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `customer`
--
DROP TABLE IF EXISTS `customer`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstName` varchar(128) NOT NULL,
`lastName` varchar(128) NOT NULL,
`gender` varchar(128) NOT NULL,
`dob` datetime NOT NULL,
`address` varchar(128) NOT NULL,
`suburb` varchar(128) NOT NULL,
`city` varchar(128) NOT NULL,
`zipCode` varchar(128) DEFAULT NULL,
`phone` varchar(128) NOT NULL,
`title` varchar(128) DEFAULT NULL,
`email` varchar(128) NOT NULL,
`password` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_password` (`password`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `customer`
--
LOCK TABLES `customer` WRITE;
/*!40000 ALTER TABLE `customer` DISABLE KEYS */;
INSERT INTO `customer` VALUES (1,'eva','evae','eva','2015-04-01 00:00:00','evaeva','evaeva','evaea','evaev12','eva','eva','eva1','eva'),(2,'Leon','zhou','Male','2015-04-03 00:00:00','stree','ee','ee','ee','800800','Mr','zhouleib1412@gmail.com','evaeva'),(3,'eee','evaeva','evaeva','2015-05-05 00:00:00','evaeva','evaeave','evaeav','evaeva','evaeva','eee','evaevaeva','evaevaeva');
/*!40000 ALTER TABLE `customer` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `enquire`
--
DROP TABLE IF EXISTS `enquire`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `enquire` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`email` varchar(128) NOT NULL,
`content` varchar(256) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `enquire`
--
LOCK TABLES `enquire` WRITE;
/*!40000 ALTER TABLE `enquire` DISABLE KEYS */;
INSERT INTO `enquire` VALUES (1,'xx','xx','xx'),(2,'xx','xx','xx');
/*!40000 ALTER TABLE `enquire` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `order`
--
DROP TABLE IF EXISTS `order`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`transnum` varchar(128) NOT NULL,
`totalamt` double NOT NULL,
`createtime` datetime NOT NULL,
`status_id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `order`
--
LOCK TABLES `order` WRITE;
/*!40000 ALTER TABLE `order` DISABLE KEYS */;
INSERT INTO `order` VALUES (1,'1430129766',22.44,'2015-04-27 22:16:06',1,1),(2,'1430132576',155.98,'2015-04-27 23:02:56',2,1),(3,'1430133144',55.77,'2015-04-27 23:12:24',1,1),(4,'1430188895',156.09,'2015-04-28 14:41:35',1,2),(5,'1430660695',222,'2015-05-04 01:44:55',1,2),(6,'1430666562',144.76,'2015-05-04 03:22:42',1,2),(7,'1430666656',22.44,'2015-05-04 03:24:16',1,3),(8,'1430713718',145.09,'2015-05-04 16:28:38',1,2),(9,'1430794855',11.22,'2015-05-05 15:00:55',1,2),(10,'1430794901',111.76,'2015-05-05 15:01:41',1,2);
/*!40000 ALTER TABLE `order` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `order_detail`
--
DROP TABLE IF EXISTS `order_detail`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_detail` (
`id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`qty` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `order_detail`
--
LOCK TABLES `order_detail` WRITE;
/*!40000 ALTER TABLE `order_detail` DISABLE KEYS */;
INSERT INTO `order_detail` VALUES (0,1,1,2),(0,2,3,2),(0,2,4,3),(0,2,1,4),(0,3,3,1),(0,3,2,1),(0,3,1,1),(0,4,1,2),(0,4,3,3),(0,4,2,3),(0,5,8,1),(0,6,1,1),(0,6,2,2),(0,6,3,4),(0,7,1,2),(0,8,2,5),(0,8,1,1),(0,8,3,1),(0,9,1,1),(0,10,2,4),(0,10,1,2);
/*!40000 ALTER TABLE `order_detail` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `product`
--
DROP TABLE IF EXISTS `product`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`price` double NOT NULL,
`description` varchar(256) NOT NULL,
`category_id` int(11) NOT NULL,
`is_hot` int(11) NOT NULL,
`pic` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `product`
--
LOCK TABLES `product` WRITE;
/*!40000 ALTER TABLE `product` DISABLE KEYS */;
INSERT INTO `product` VALUES (1,'Product1',11.22,'xxxxx xxxx',1,0,'1.jpg'),(2,'Product2',22.33,'xxx\r\nxxx\r\nxxx\r\nxxxxx\r\nxxx',1,1,'2.jpg'),(3,'ProductAAA',22.22,'xxx\r\nxxx\r\nxx',1,1,'3.jpg'),(4,'computer3',22.22,'xxxx',1,1,'4.jpg'),(5,'Computer',11.33,'',1,1,'5.jpg'),(6,'xxx',11,'xx',1,1,'6.jpg'),(7,'xxx',111,'xxxx',1,1,'7.jpg'),(8,'computer',222,'computer',2,1,'laptop_2.jpg'),(9,'computer3',22.33,'xxxxxx',2,1,'tv_2.jpg'),(10,'computer',44.55,'xxxxx',2,1,'8.jpg'),(11,'computer31',33.44,'xxxxxxxxxxxxx',2,1,'9.jpg'),(12,'rohini',111,'xxxxxx',1,1,'9.jpg'),(13,'xxx',11,'',1,0,''),(14,'1',2,'',1,0,''),(15,'1',2,'',2,0,''),(16,'1',0,'',1,0,''),(17,'1',2,'',1,0,''),(18,'1',2,'',2,0,''),(19,'1',2,'',1,0,''),(20,'1',2,'',2,0,''),(21,'xxx',111,'',2,0,'');
/*!40000 ALTER TABLE `product` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `staff`
--
DROP TABLE IF EXISTS `staff`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `staff` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(128) NOT NULL,
`firstname` varchar(128) NOT NULL,
`lastname` varchar(128) NOT NULL,
`password` varchar(128) NOT NULL,
`role` varchar(128) NOT NULL,
`updated_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `staff`
--
LOCK TABLES `staff` WRITE;
/*!40000 ALTER TABLE `staff` DISABLE KEYS */;
INSERT INTO `staff` VALUES (1,'zhouleib1412@gmail.com','rohini','eva','eva','admin',NULL,NULL),(2,'Foo@1111','','','Bar1111111','','2015-07-09 22:56:17','2015-07-09 22:56:17'),(3,'Foo@1111','','','Bar1111111','','2015-07-09 22:57:10','2015-07-09 22:57:10'),(4,'Fo','','','Bar1111111','','2015-07-09 22:58:07','2015-07-09 22:58:07');
/*!40000 ALTER TABLE `staff` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `status`
--
DROP TABLE IF EXISTS `status`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `status` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `status`
--
LOCK TABLES `status` WRITE;
/*!40000 ALTER TABLE `status` DISABLE KEYS */;
INSERT INTO `status` VALUES (1,'Pending'),(2,'Fulfilled'),(3,'Error');
/*!40000 ALTER TABLE `status` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2015-07-09 23:00:43
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/skysee/react-shop.git
git@gitee.com:skysee/react-shop.git
skysee
react-shop
react-shop
master

搜索帮助