代码拉取完成,页面将自动刷新
-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64)
--
-- Host: 127.0.0.1 Database: zl_mall
-- ------------------------------------------------------
-- Server version 5.7.19-0ubuntu0.16.04.1-log
/*!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 */;
--
-- Current Database: `zl_mall`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `zl_mall` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `zl_mall`;
--
-- Table structure for table `auth_group`
--
DROP TABLE IF EXISTS `auth_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(80) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group`
--
LOCK TABLES `auth_group` WRITE;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group_permissions`
--
DROP TABLE IF EXISTS `auth_group_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group_permissions`
--
LOCK TABLES `auth_group_permissions` WRITE;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_permission`
--
DROP TABLE IF EXISTS `auth_permission`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_permission`
--
LOCK TABLES `auth_permission` WRITE;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` VALUES (1,'Can add log entry',1,'add_logentry'),(2,'Can change log entry',1,'change_logentry'),(3,'Can delete log entry',1,'delete_logentry'),(4,'Can add group',2,'add_group'),(5,'Can change group',2,'change_group'),(6,'Can delete group',2,'delete_group'),(7,'Can add user',3,'add_user'),(8,'Can change user',3,'change_user'),(9,'Can delete user',3,'delete_user'),(10,'Can add permission',4,'add_permission'),(11,'Can change permission',4,'change_permission'),(12,'Can delete permission',4,'delete_permission'),(13,'Can add content type',5,'add_contenttype'),(14,'Can change content type',5,'change_contenttype'),(15,'Can delete content type',5,'delete_contenttype'),(16,'Can add session',6,'add_session'),(17,'Can change session',6,'change_session'),(18,'Can delete session',6,'delete_session'),(19,'Can add order',7,'add_order'),(20,'Can change order',7,'change_order'),(21,'Can delete order',7,'delete_order'),(22,'Can add picture',8,'add_picture'),(23,'Can change picture',8,'change_picture'),(24,'Can delete picture',8,'delete_picture'),(25,'Can add user',9,'add_user'),(26,'Can change user',9,'change_user'),(27,'Can delete user',9,'delete_user'),(28,'Can add spu',10,'add_spu'),(29,'Can change spu',10,'change_spu'),(30,'Can delete spu',10,'delete_spu'),(31,'Can add addr',11,'add_addr'),(32,'Can change addr',11,'change_addr'),(33,'Can delete addr',11,'delete_addr'),(34,'Can add pre active',12,'add_preactive'),(35,'Can change pre active',12,'change_preactive'),(36,'Can delete pre active',12,'delete_preactive'),(37,'Can add category',13,'add_category'),(38,'Can change category',13,'change_category'),(39,'Can delete category',13,'delete_category'),(40,'Can add sku',14,'add_sku'),(41,'Can change sku',14,'change_sku'),(42,'Can delete sku',14,'delete_sku'),(43,'Can add pre category',15,'add_precategory'),(44,'Can change pre category',15,'change_precategory'),(45,'Can delete pre category',15,'delete_precategory'),(46,'Can add vip',16,'add_vip'),(47,'Can change vip',16,'change_vip'),(48,'Can delete vip',16,'delete_vip'),(49,'Can add order_goods',17,'add_order_goods'),(50,'Can change order_goods',17,'change_order_goods'),(51,'Can delete order_goods',17,'delete_order_goods');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user`
--
DROP TABLE IF EXISTS `auth_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`password` varchar(128) NOT NULL,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`username` varchar(150) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(30) NOT NULL,
`email` varchar(254) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user`
--
LOCK TABLES `auth_user` WRITE;
/*!40000 ALTER TABLE `auth_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user_groups`
--
DROP TABLE IF EXISTS `auth_user_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user_groups`
--
LOCK TABLES `auth_user_groups` WRITE;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user_user_permissions`
--
DROP TABLE IF EXISTS `auth_user_user_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user_user_permissions`
--
LOCK TABLES `auth_user_user_permissions` WRITE;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_admin_log`
--
DROP TABLE IF EXISTS `django_admin_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_admin_log`
--
LOCK TABLES `django_admin_log` WRITE;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_content_type`
--
DROP TABLE IF EXISTS `django_content_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_content_type`
--
LOCK TABLES `django_content_type` WRITE;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` VALUES (1,'admin','logentry'),(2,'auth','group'),(4,'auth','permission'),(3,'auth','user'),(5,'contenttypes','contenttype'),(11,'mallApp','addr'),(13,'mallApp','category'),(7,'mallApp','order'),(17,'mallApp','order_goods'),(8,'mallApp','picture'),(12,'mallApp','preactive'),(15,'mallApp','precategory'),(14,'mallApp','sku'),(10,'mallApp','spu'),(9,'mallApp','user'),(16,'mallApp','vip'),(6,'sessions','session');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_migrations`
--
DROP TABLE IF EXISTS `django_migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_migrations`
--
LOCK TABLES `django_migrations` WRITE;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` VALUES (1,'contenttypes','0001_initial','2017-11-10 08:35:12.449187'),(2,'auth','0001_initial','2017-11-10 08:35:12.854233'),(3,'admin','0001_initial','2017-11-10 08:35:12.974963'),(4,'admin','0002_logentry_remove_auto_add','2017-11-10 08:35:12.998871'),(5,'contenttypes','0002_remove_content_type_name','2017-11-10 08:35:13.073405'),(6,'auth','0002_alter_permission_name_max_length','2017-11-10 08:35:13.115409'),(7,'auth','0003_alter_user_email_max_length','2017-11-10 08:35:13.162426'),(8,'auth','0004_alter_user_username_opts','2017-11-10 08:35:13.175434'),(9,'auth','0005_alter_user_last_login_null','2017-11-10 08:35:13.206857'),(10,'auth','0006_require_contenttypes_0002','2017-11-10 08:35:13.211530'),(11,'auth','0007_alter_validators_add_error_messages','2017-11-10 08:35:13.222801'),(12,'auth','0008_alter_user_username_max_length','2017-11-10 08:35:13.269170'),(13,'mallApp','0001_initial','2017-11-10 08:35:14.059204'),(14,'sessions','0001_initial','2017-11-10 08:35:14.093441');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_session`
--
DROP TABLE IF EXISTS `django_session`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_session`
--
LOCK TABLES `django_session` WRITE;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_addr`
--
DROP TABLE IF EXISTS `mallApp_addr`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_addr` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`addr_phone` varchar(20) NOT NULL,
`addr_recvname` varchar(20) NOT NULL,
`addr_address` varchar(200) NOT NULL,
`addr_post` varchar(20) NOT NULL,
`addr_uid_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `mallApp_addr_addr_uid_id_212b72ab_fk_mallApp_user_id` (`addr_uid_id`),
CONSTRAINT `mallApp_addr_addr_uid_id_212b72ab_fk_mallApp_user_id` FOREIGN KEY (`addr_uid_id`) REFERENCES `mallApp_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_addr`
--
LOCK TABLES `mallApp_addr` WRITE;
/*!40000 ALTER TABLE `mallApp_addr` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_addr` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_category`
--
DROP TABLE IF EXISTS `mallApp_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cate_name` varchar(20) NOT NULL,
`cate_brand` varchar(20) NOT NULL,
`cate_logo` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_category`
--
LOCK TABLES `mallApp_category` WRITE;
/*!40000 ALTER TABLE `mallApp_category` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_order`
--
DROP TABLE IF EXISTS `mallApp_order`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`order_code` varchar(20) NOT NULL,
`order_quantity` int(11) NOT NULL,
`order_price` double NOT NULL,
`order_datetime` datetime(6) NOT NULL,
`order_payme` int(11) NOT NULL,
`order_payst` int(11) NOT NULL,
`order_postage` double NOT NULL,
`order_addr_id` int(11) NOT NULL,
`order_uid_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `mallApp_order_order_addr_id_97403750_fk_mallApp_addr_id` (`order_addr_id`),
KEY `mallApp_order_order_uid_id_df61d101_fk_mallApp_user_id` (`order_uid_id`),
CONSTRAINT `mallApp_order_order_addr_id_97403750_fk_mallApp_addr_id` FOREIGN KEY (`order_addr_id`) REFERENCES `mallApp_addr` (`id`),
CONSTRAINT `mallApp_order_order_uid_id_df61d101_fk_mallApp_user_id` FOREIGN KEY (`order_uid_id`) REFERENCES `mallApp_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_order`
--
LOCK TABLES `mallApp_order` WRITE;
/*!40000 ALTER TABLE `mallApp_order` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_order` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_order_goods`
--
DROP TABLE IF EXISTS `mallApp_order_goods`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_order_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`orgs_number` int(11) NOT NULL,
`orgs_bp` double NOT NULL,
`orgs_ap` double NOT NULL,
`orgs_comment` longtext NOT NULL,
`order_id_id` int(11) NOT NULL,
`sku_id_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `mallApp_order_goods_order_id_id_0d9de981_fk_mallApp_order_id` (`order_id_id`),
KEY `mallApp_order_goods_sku_id_id_f8a3a38b_fk_mallApp_sku_id` (`sku_id_id`),
CONSTRAINT `mallApp_order_goods_order_id_id_0d9de981_fk_mallApp_order_id` FOREIGN KEY (`order_id_id`) REFERENCES `mallApp_order` (`id`),
CONSTRAINT `mallApp_order_goods_sku_id_id_f8a3a38b_fk_mallApp_sku_id` FOREIGN KEY (`sku_id_id`) REFERENCES `mallApp_sku` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_order_goods`
--
LOCK TABLES `mallApp_order_goods` WRITE;
/*!40000 ALTER TABLE `mallApp_order_goods` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_order_goods` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_picture`
--
DROP TABLE IF EXISTS `mallApp_picture`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_picture` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pic_url` varchar(100) NOT NULL,
`sku_id_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `mallApp_picture_sku_id_id_301766d7_fk_mallApp_sku_id` (`sku_id_id`),
CONSTRAINT `mallApp_picture_sku_id_id_301766d7_fk_mallApp_sku_id` FOREIGN KEY (`sku_id_id`) REFERENCES `mallApp_sku` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_picture`
--
LOCK TABLES `mallApp_picture` WRITE;
/*!40000 ALTER TABLE `mallApp_picture` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_picture` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_preactive`
--
DROP TABLE IF EXISTS `mallApp_preactive`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_preactive` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`preAct_image` varchar(100) NOT NULL,
`preAct_url` varchar(200) NOT NULL,
`preAct_index` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_preactive`
--
LOCK TABLES `mallApp_preactive` WRITE;
/*!40000 ALTER TABLE `mallApp_preactive` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_preactive` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_precategory`
--
DROP TABLE IF EXISTS `mallApp_precategory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_precategory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cate_id_id` int(11) NOT NULL,
`sku_id_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `mallApp_precategory_cate_id_id_72f3a2ee_fk_mallApp_category_id` (`cate_id_id`),
KEY `mallApp_precategory_sku_id_id_2995111b_fk_mallApp_sku_id` (`sku_id_id`),
CONSTRAINT `mallApp_precategory_cate_id_id_72f3a2ee_fk_mallApp_category_id` FOREIGN KEY (`cate_id_id`) REFERENCES `mallApp_category` (`id`),
CONSTRAINT `mallApp_precategory_sku_id_id_2995111b_fk_mallApp_sku_id` FOREIGN KEY (`sku_id_id`) REFERENCES `mallApp_sku` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_precategory`
--
LOCK TABLES `mallApp_precategory` WRITE;
/*!40000 ALTER TABLE `mallApp_precategory` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_precategory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_sku`
--
DROP TABLE IF EXISTS `mallApp_sku`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_sku` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sku_name` varchar(20) NOT NULL,
`sku_intro` varchar(100) NOT NULL,
`sku_price` double NOT NULL,
`sku_stash` varchar(20) NOT NULL,
`spu_image` varchar(200) NOT NULL,
`spu_salenum` varchar(20) NOT NULL,
`spu_onsale` tinyint(1) NOT NULL,
`cate_id_id` int(11) NOT NULL,
`spu_id_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `mallApp_sku_cate_id_id_a138ef31_fk_mallApp_category_id` (`cate_id_id`),
KEY `mallApp_sku_spu_id_id_35c13a36_fk_mallApp_spu_id` (`spu_id_id`),
CONSTRAINT `mallApp_sku_cate_id_id_a138ef31_fk_mallApp_category_id` FOREIGN KEY (`cate_id_id`) REFERENCES `mallApp_category` (`id`),
CONSTRAINT `mallApp_sku_spu_id_id_35c13a36_fk_mallApp_spu_id` FOREIGN KEY (`spu_id_id`) REFERENCES `mallApp_spu` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_sku`
--
LOCK TABLES `mallApp_sku` WRITE;
/*!40000 ALTER TABLE `mallApp_sku` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_sku` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_spu`
--
DROP TABLE IF EXISTS `mallApp_spu`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_spu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`spu_name` varchar(20) NOT NULL,
`spu_detail` varchar(1000) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_spu`
--
LOCK TABLES `mallApp_spu` WRITE;
/*!40000 ALTER TABLE `mallApp_spu` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_spu` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_user`
--
DROP TABLE IF EXISTS `mallApp_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(20) NOT NULL,
`user_pwd` varchar(100) NOT NULL,
`user_email` varchar(254) NOT NULL,
`user_auth` int(11) NOT NULL,
`user_status` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_user`
--
LOCK TABLES `mallApp_user` WRITE;
/*!40000 ALTER TABLE `mallApp_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mallApp_vip`
--
DROP TABLE IF EXISTS `mallApp_vip`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mallApp_vip` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`vip_level` int(11) NOT NULL,
`vip_item` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mallApp_vip`
--
LOCK TABLES `mallApp_vip` WRITE;
/*!40000 ALTER TABLE `mallApp_vip` DISABLE KEYS */;
/*!40000 ALTER TABLE `mallApp_vip` 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 2017-11-10 16:38:50
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。