-- MySQL dump 10.13  Distrib 5.5.40, for Win32 (x86)
--
-- Host: localhost    Database: Mobanbox
-- ------------------------------------------------------
-- Server version	5.5.40

/*!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 `app_extends`
--

DROP TABLE IF EXISTS `app_extends`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `app_extends` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `extend_name` varchar(50) NOT NULL COMMENT '扩展应用名称',
  `state` tinyint(1) DEFAULT '1' COMMENT '开启状态（1：打开，0：未打开）',
  `m` varchar(50) NOT NULL COMMENT '模块名称',
  `c` varchar(50) NOT NULL COMMENT '动作名称',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='扩展应用表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `app_extends`
--

LOCK TABLES `app_extends` WRITE;
/*!40000 ALTER TABLE `app_extends` DISABLE KEYS */;
INSERT INTO `app_extends` VALUES (1,'截图包上传',1,'uploads_extends','uploads_extends');
/*!40000 ALTER TABLE `app_extends` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `attributes`
--

DROP TABLE IF EXISTS `attributes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attributes` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `category_id` int(11) NOT NULL COMMENT '所属属性类别的ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '属性名称',
  `photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '图片',
  `visible` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '可见',
  `order_index` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='属性';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `attributes`
--

LOCK TABLES `attributes` WRITE;
/*!40000 ALTER TABLE `attributes` DISABLE KEYS */;
INSERT INTO `attributes` VALUES (1,1,'红色','','false',1),(2,1,'橙色','','false',2),(3,1,'蓝色','','false',3),(4,1,'绿色','','false',4),(5,1,'紫色','','false',5),(6,1,'黑色','','false',6),(7,1,'白色','','false',7),(8,1,'黄色','','false',8),(9,2,'IE8','','false',1),(10,2,'IE9-11','','false',2),(11,2,'Chrome','','false',3),(12,2,'Firefox','','false',4);
/*!40000 ALTER TABLE `attributes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `attributes_categories`
--

DROP TABLE IF EXISTS `attributes_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attributes_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '属性类别名称',
  `type` enum('select','multiple','check','radio','input') COLLATE utf8_unicode_ci NOT NULL COMMENT '类型',
  `categories` text COLLATE utf8_unicode_ci NOT NULL COMMENT '启用该属性类别的作品类别',
  `visible` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '可见',
  `order_index` int(11) NOT NULL COMMENT '排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='属性类别';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `attributes_categories`
--

LOCK TABLES `attributes_categories` WRITE;
/*!40000 ALTER TABLE `attributes_categories` DISABLE KEYS */;
INSERT INTO `attributes_categories` VALUES (1,'颜色','check',',1,2,','true',1),(2,'兼容','check',',1,2,','true',2);
/*!40000 ALTER TABLE `attributes_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `badges`
--

DROP TABLE IF EXISTS `badges`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `badges` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '徽章的名称或显示的内容',
  `photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '图片',
  `visible` enum('true','false') COLLATE utf8_unicode_ci NOT NULL COMMENT '可见',
  `from` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT '从…(某金额)',
  `to` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT '到…(某金额)',
  `type` enum('other','buyers','authors','referrals','system') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'other' COMMENT '徽章类型',
  `sys_key` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='徽章';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `badges`
--

LOCK TABLES `badges` WRITE;
/*!40000 ALTER TABLE `badges` DISABLE KEYS */;
INSERT INTO `badges` VALUES (1,'贡献了一次当月免费文件','author_had_free_file.png','true','0','0','system','has_free_file_month'),(2,'曾经被推荐过','author_was_featured.png','true','0','0','system','has_been_featured'),(3,'位置','','true','0','0','system','location_global_community'),(4,'在本站独家出售其作品的作者','exclusive_author.png','true','0','0','system','is_exclusive_author'),(5,'已有一件作品被推荐','item_was_featured.png','true','0','0','system','has_had_item_featured'),(7,'赢过一次比赛','won_a_competition.png','true','0','0','other',''),(17,'已售出价值¥1 - ¥100的作品','sold_between_1_and_100_yuan.png','true','1','100','authors',''),(18,'已售出价值¥100 - ¥1,000的作品','sold_between_100_and_1000_yuan.png','true','100','1000','authors',''),(19,'已售出价值¥1,000 - ¥5,000的作品','sold_between_1000_and_5000_yuan.png','true','1000','5000','authors',''),(20,'已售出价值¥5,000 - ¥10,000的作品','sold_between_5000_and_10000_yuan.png','true','5000','10000','authors',''),(21,'已售出价值¥10,000 - ¥50,000的作品','sold_between_10000_and_50000_yuan.png','true','10000','500000','authors',''),(22,'已售出价值¥50,000 - ¥100,000的作品','sold_between_50000_and_100000_yuan.png','true','50000','100000','authors',''),(23,'已售出价值¥100,000 - ¥250,000的作品','sold_between_100000_and_250000_yuan.png','true','100000','250000','authors',''),(24,'已售出价值¥250,000 - ¥1,000,000的作品','sold_between_250000_and_1000000_yuan.png','true','250000','1000000','authors',''),(25,'已购买1至9件作品','bought_between_1_and_9_items.png','true','1','9','buyers',''),(26,'已购买10至49件作品','bought_between_10_and_49_items.png','true','10','49','buyers',''),(27,'已购买50至99件作品','bought_between_50_and_99_items.png','true','50','99','buyers',''),(28,'已购买100至499件作品','bought_between_100_and_499_items.png','true','100','499','buyers',''),(29,'已购买500至999件作品','bought_between_500_and_999_items.png','true','500','999','buyers',''),(30,'已购买超过1000件作品','bought_between_1000_and_4999_items.png','true','1000','4999','buyers',''),(31,'已介绍了1 - 9个会员','referred_between_1_and_9_users.png','true','1','9','referrals',''),(32,'已介绍了10 - 49个会员','referred_between_10_and_49_users.png','true','10','49','referrals',''),(33,'已介绍了50 - 99个会员','referred_between_50_and_99_users.png','true','50','99','referrals',''),(34,'已介绍了100 - 199个会员','referred_between_100_and_199_users.png','true','100','199','referrals',''),(35,'已介绍了200 - 499个会员','referred_between_200_and_499_users.png','true','200','499','referrals',''),(36,'已介绍了500 - 999个会员','referred_between_500_and_999_users.png','true','500','999','referrals',''),(37,'已介绍了1,000 - 1999个会员','referred_between_1000_and_1999_users.png','true','1000','1999','referrals',''),(38,'已介绍了2,000+个会员','referred_more_than_2000_users.png','true','2000','4999','referrals',''),(39,'担任过beta测试员','beta_tester.png','true','0','0','other',''),(40,'权威精英作者','power_elite_author.png','true','0','0','system','power_elite_author'),(41,'精英作者','elite_author.png','true','0','0','system','elite_author'),(42,'市场管理员','marketplace_manager.png','true','0','0','other',''),(43,'作品审核员','reviewer.png','true','0','0','other',''),(44,'已有一件作品被推荐至套装','author_had_bundled_file.png','true','0','0','other',''),(45,'支持与帮助人员','support.png','true','0','0','other',''),(46,'精英开发者之一','developer.png','true','0','0','other',''),(47,'爱心大使','community_ambassador.png','true','0','0','other',''),(48,'帮助站点打击过盗版','violation.png','true','0','0','other',''),(49,'超级版权监察员!','violation_gold.png','true','0','0','other',''),(50,'贡献了一个教程','contributed_a_tutorial.png','true','0','0','other',''),(51,'站点博主','blog_editor.png','true','0','0','other',''),(52,'社区管理员','community_manager.png','true','0','0','other',''),(53,'独家出售超级巨星之一','community_superstar.png','true','0','0','other',''),(54,'社区版主','community_mod.png','true','0','0','other','');
/*!40000 ALTER TABLE `badges` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bulletin`
--

DROP TABLE IF EXISTS `bulletin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bulletin` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '广播名称',
  `text` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '广播内容',
  `datetime` datetime NOT NULL COMMENT '发送时间',
  `send_to` varchar(20) COLLATE utf8_unicode_ci NOT NULL COMMENT '发送范围',
  `send_id` int(11) NOT NULL COMMENT '发送者ID',
  `readed` int(11) NOT NULL DEFAULT '0' COMMENT '阅读次数',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='广播';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bulletin`
--

LOCK TABLES `bulletin` WRITE;
/*!40000 ALTER TABLE `bulletin` DISABLE KEYS */;
/*!40000 ALTER TABLE `bulletin` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bulletin_emails`
--

DROP TABLE IF EXISTS `bulletin_emails`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bulletin_emails` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `subname` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '订阅者名称',
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '电子邮件地址',
  `bulletin_subscribe` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'true' COMMENT '订阅确认',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='广播邮件列表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bulletin_emails`
--

LOCK TABLES `bulletin_emails` WRITE;
/*!40000 ALTER TABLE `bulletin_emails` DISABLE KEYS */;
INSERT INTO `bulletin_emails` VALUES (1,'cdwmhcc','mobanbox@126.com','true'),(2,'Tateduo','tateduo@163.com','true'),(3,'mobanbox','mobantianxia@163.com','true'),(4,'colorbang','colorbang@163.com','true'),(5,'chendawei','chendada@163.com','true');
/*!40000 ALTER TABLE `bulletin_emails` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bulletin_template`
--

DROP TABLE IF EXISTS `bulletin_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bulletin_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `template` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '广播模板',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='广播模板';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bulletin_template`
--

LOCK TABLES `bulletin_template` WRITE;
/*!40000 ALTER TABLE `bulletin_template` DISABLE KEYS */;
INSERT INTO `bulletin_template` VALUES (1,'<html>\r\n<head>\r\n</head>\r\n<body>\r\n<img src=\"http://{$DOMAIN}/bulletin/read/?bulletin_id={$BULLETINID}\" alt=\"\" />\r\n<br /><br />\r\n\r\n{$CONTENT}\r\n\r\n<br /><br />\r\n<a href=\"http://{$DOMAIN}/bulletin/delete/?email={$EMAIL}\">退订</a>\r\n</body>\r\n</html>');
/*!40000 ALTER TABLE `bulletin_template` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `categories`
--

DROP TABLE IF EXISTS `categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `sub_of` int(11) NOT NULL COMMENT '所属类别',
  `meta_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '元标题',
  `meta_keywords` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '元关键词',
  `meta_description` text COLLATE utf8_unicode_ci NOT NULL COMMENT '元描述',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '类别名称',
  `text` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '描述',
  `visible` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '可见',
  `order_index` int(11) NOT NULL COMMENT '排序',
  PRIMARY KEY (`id`),
  KEY `category_id` (`sub_of`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='作品类别';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `categories`
--

LOCK TABLES `categories` WRITE;
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
INSERT INTO `categories` VALUES (1,0,'html模板','html模板','html模板','html模板','','true',1),(2,0,'CMS模板','CMS模板','CMS模板','CMS模板','','true',2),(3,0,'高清图片','高清图片','高清图片','高清图片','','true',3),(7,2,'wordpress模板','wordpress模板','wordpress模板','wordpress','','true',1),(8,2,'Dedecms模板','Dedecms模板','Dedecms模板','DedeCms','','true',2),(9,2,'Discuz模板','Discuz模板','Discuz模板','Discuz','','true',3),(10,2,'其它CMS','其它CMS','其它CMS','其它CMS','','true',4),(11,3,'设计图片','设计图片','设计图片','设计','','true',1),(12,3,'风景','风景','风景','风景','','true',2),(13,1,'手机模板','手机模板','手机模板','手机模板','','true',1),(14,1,'企业模板','企业模板','企业模板','企业模板','','true',2),(15,1,'后台模板','后台模板','后台模板','后台模板','','true',3),(16,1,'个人模板','个人模板','个人模板','个人模板','','true',4),(17,0,'代码','代码','代码','特效代码','','false',4),(18,3,'人物','人物','人物','人物','','true',3),(19,3,'动物','动物','动物','动物','','true',4);
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `collections`
--

DROP TABLE IF EXISTS `collections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `collections` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) NOT NULL COMMENT '创建者ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '收藏夹名称',
  `text` text COLLATE utf8_unicode_ci NOT NULL COMMENT '描述',
  `photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '图片',
  `items` int(11) NOT NULL DEFAULT '0' COMMENT '作品数',
  `rating` int(11) NOT NULL DEFAULT '0' COMMENT '平均星数',
  `votes` int(11) NOT NULL DEFAULT '0' COMMENT '总投票数',
  `score` int(11) NOT NULL DEFAULT '0' COMMENT '总星数',
  `datetime` datetime NOT NULL COMMENT '创建时间',
  `public` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '公开显示',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='收藏夹';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `collections`
--

LOCK TABLES `collections` WRITE;
/*!40000 ALTER TABLE `collections` DISABLE KEYS */;
INSERT INTO `collections` VALUES (1,1,'我喜欢的','我很喜欢的收藏','b18554f6580934c47be79ac273e474f0.jpg',0,0,0,0,'2015-08-21 00:00:00','false'),(2,1,'打算购买的','很不错的收藏了','76b149152154be13b6232604d6ef136e.jpg',0,0,0,0,'2015-08-21 00:15:14','false'),(3,1,'模板','很不错的模板收藏了','f07ff02bd64104cbd6c686ca9a8631f4.jpg',1,3,1,3,'2015-08-21 00:15:51','true'),(4,1,'素材专用','很不错的素材收藏了','b5f56538572e9ba92e4ef530752c1aca.jpg',2,4,3,11,'2015-08-21 00:16:21','true'),(8,2,'psd素材','很漂亮的文件收藏啦','12b9575094e8bd67a4d42163d051fc61.jpg',0,4,1,4,'2015-08-21 02:16:22','true'),(10,1,'壁纸用','','',2,0,0,0,'2015-11-22 02:10:45','true'),(11,4,'精品后台模板集','收藏各种后台模板','',1,0,0,0,'2015-12-26 13:11:13','true');
/*!40000 ALTER TABLE `collections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `collections_rates`
--

DROP TABLE IF EXISTS `collections_rates`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `collections_rates` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `collection_id` int(11) NOT NULL COMMENT '收藏夹ID',
  `user_id` int(11) NOT NULL COMMENT '创建者ID',
  `rate` int(11) NOT NULL COMMENT '创建者评价的星数',
  `datetime` datetime NOT NULL COMMENT '评星时间',
  PRIMARY KEY (`id`),
  KEY `collection_id` (`collection_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='收藏夹评星记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `collections_rates`
--

LOCK TABLES `collections_rates` WRITE;
/*!40000 ALTER TABLE `collections_rates` DISABLE KEYS */;
INSERT INTO `collections_rates` VALUES (1,3,1,3,'2015-08-21 01:17:12'),(2,8,1,4,'2015-08-21 05:13:11'),(3,4,1,3,'2015-08-27 03:04:37'),(4,4,0,3,'2015-08-27 05:27:59'),(5,4,4,5,'2015-08-27 05:36:56'),(6,11,1,5,'2015-12-26 09:15:16');
/*!40000 ALTER TABLE `collections_rates` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `contacts`
--

DROP TABLE IF EXISTS `contacts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contacts` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '发起者名称',
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '发起者电子邮件',
  `issue_id` int(11) NOT NULL DEFAULT '0' COMMENT '事项所属类别ID',
  `issue` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '事项所属类别名称',
  `short_text` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '内容摘要',
  `datetime` datetime NOT NULL COMMENT '发起时间',
  `answer` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '回复内容',
  `answer_datetime` datetime NOT NULL COMMENT '回复时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='联系我们';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `contacts`
--

LOCK TABLES `contacts` WRITE;
/*!40000 ALTER TABLE `contacts` DISABLE KEYS */;
/*!40000 ALTER TABLE `contacts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `contacts_categories`
--

DROP TABLE IF EXISTS `contacts_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contacts_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '类别名称',
  `text` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '描述',
  `visible` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '可见',
  `order_index` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='联系我们类别';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `contacts_categories`
--

LOCK TABLES `contacts_categories` WRITE;
/*!40000 ALTER TABLE `contacts_categories` DISABLE KEYS */;
INSERT INTO `contacts_categories` VALUES (1,'文件问题','','true',1),(2,'支付问题','','true',2),(3,'大额充值','','true',3),(4,'意见建议','','true',4);
/*!40000 ALTER TABLE `contacts_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `countries`
--

DROP TABLE IF EXISTS `countries`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `countries` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '国家国地区的名称',
  `photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '国旗或旗帜',
  `visible` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '可见',
  `order_index` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='国家或地区';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `countries`
--

LOCK TABLES `countries` WRITE;
/*!40000 ALTER TABLE `countries` DISABLE KEYS */;
/*!40000 ALTER TABLE `countries` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `currency`
--

DROP TABLE IF EXISTS `currency`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `currency` (
  `code` varchar(3) COLLATE utf8_unicode_ci NOT NULL COMMENT '货币代码',
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '货币名称',
  `symbol` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT '货币符号',
  `active` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no' COMMENT '启用',
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='货币';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `currency`
--

LOCK TABLES `currency` WRITE;
/*!40000 ALTER TABLE `currency` DISABLE KEYS */;
INSERT INTO `currency` VALUES ('CNY','CNY','￥','yes'),('EUR','Euro','&euro;','no'),('USD','U.S. Dollar ','$','no');
/*!40000 ALTER TABLE `currency` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `deposit`
--

DROP TABLE IF EXISTS `deposit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `deposit` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) NOT NULL COMMENT '到账者ID',
  `deposit` float NOT NULL COMMENT '充值金额',
  `paid` enum('true','false') NOT NULL DEFAULT 'false' COMMENT '到账',
  `datetime` datetime NOT NULL COMMENT '充值时间',
  `from_admin` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `from_admin` (`from_admin`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='充值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `deposit`
--

LOCK TABLES `deposit` WRITE;
/*!40000 ALTER TABLE `deposit` DISABLE KEYS */;
INSERT INTO `deposit` VALUES (1,1,500,'true','2013-06-06 00:00:00',0),(2,1,6154,'true','2013-07-21 18:17:49',1),(3,4,0.01,'false','2015-08-21 04:37:22',0),(4,4,0.01,'false','2015-08-21 04:37:31',0),(5,1,0.01,'false','2015-08-27 19:46:20',0),(6,1,0.01,'false','2015-08-27 19:49:45',0),(7,3,0.01,'false','2015-08-27 21:21:47',0),(8,3,0.01,'false','2015-08-27 21:57:28',0),(9,1,0.01,'false','2015-08-28 07:37:13',0),(10,1,0.01,'false','2015-08-28 07:40:19',0),(11,4,0.01,'false','2015-09-27 17:05:21',0),(12,1,0.01,'false','2015-11-21 23:54:16',0),(13,1,0.01,'false','2015-11-21 23:56:13',0),(14,4,5143,'true','2015-12-22 13:48:19',1),(15,1,0.01,'false','2015-12-26 08:17:07',0),(16,2,3841,'true','2015-12-29 19:06:50',1),(17,1,0.01,'false','2015-12-30 04:04:21',0);
/*!40000 ALTER TABLE `deposit` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `history`
--

DROP TABLE IF EXISTS `history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `history` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) NOT NULL COMMENT '到账者ID',
  `action` varchar(255) NOT NULL COMMENT '动作',
  `transaction_id` varchar(255) NOT NULL COMMENT '交易ID',
  `datetime` datetime NOT NULL COMMENT '发生时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='充值记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `history`
--

LOCK TABLES `history` WRITE;
/*!40000 ALTER TABLE `history` DISABLE KEYS */;
INSERT INTO `history` VALUES (1,1,'Deposit 500¥','1','0000-00-00 00:00:00');
/*!40000 ALTER TABLE `history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `items`
--

DROP TABLE IF EXISTS `items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `items` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) NOT NULL COMMENT '上传者ID',
  `name` varchar(50) NOT NULL COMMENT '作品名称',
  `description` text NOT NULL COMMENT '详细描述',
  `thumbnail` varchar(255) NOT NULL COMMENT '缩略图',
  `theme_preview` varchar(255) NOT NULL COMMENT '预览文件包',
  `main_file` varchar(255) NOT NULL COMMENT '主文件包',
  `main_file_name` varchar(255) NOT NULL COMMENT '主文件包全称',
  `categories` varchar(100) NOT NULL COMMENT '所属类别',
  `demo_url` varchar(255) NOT NULL COMMENT '演示地址',
  `price` float NOT NULL DEFAULT '0' COMMENT '定价',
  `suggested_price` float NOT NULL,
  `sales` int(11) NOT NULL DEFAULT '0' COMMENT '销售数量',
  `earning` float NOT NULL DEFAULT '0' COMMENT '总销售额',
  `rating` int(11) NOT NULL DEFAULT '0' COMMENT '平均星数',
  `votes` int(11) NOT NULL DEFAULT '0' COMMENT '总投票数',
  `score` int(11) NOT NULL DEFAULT '0' COMMENT '总星数',
  `comments` int(11) NOT NULL DEFAULT '0' COMMENT '评论数',
  `free_request` enum('true','false') NOT NULL DEFAULT 'false' COMMENT '请求免费上架',
  `free_file` enum('true','false') NOT NULL DEFAULT 'false' COMMENT '当前免费文件',
  `weekly_to` date DEFAULT NULL COMMENT '周推荐至',
  `reviewer_comment` text NOT NULL COMMENT '给审核员的说明',
  `datetime` datetime NOT NULL COMMENT '上传时间',
  `status` enum('active','queue','unapproved','extended_buy','deleted') NOT NULL DEFAULT 'queue' COMMENT '状态',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`categories`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='作品';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `items`
--

LOCK TABLES `items` WRITE;
/*!40000 ALTER TABLE `items` DISABLE KEYS */;
INSERT INTO `items` VALUES (1,1,'jQuery仿腾讯支宽屏下拉菜单导航 子菜单可','<p>jQuery仿腾讯支宽屏下拉菜单导航 子菜单可自定义</p>','d18df9f19fb356821bba314cfa0041c7.jpg','37dab68d708ee5093654ccdc3a851426.jpg','a3efe5a0bd27cf732b115c774b693e04.zip','psb.zip','','http://www.baidu.com/',399,399,0,0,0,0,0,0,'true','false','2016-12-20','<p>李厚霖</p>','2015-08-17 20:28:43','active'),(2,1,'ui 网页设计 黑色 ipad素材 app素材','<p>ui 网页设计 黑色 ipad素材 app素材</p>','ea7265255b6fdd2b533ae268c05b6118.jpg','8052415b3282a8afa91ff7c8f2b45a9b.jpg','879c64ec44c3ebe23c3a68d6c916f875.zip','psb.zip','','http://qq.com/',356,356,1,356,0,0,0,0,'true','false',NULL,'<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-17 20:31:02','active'),(3,1,'响应式 网站模板 可切换颜色主题','<p>响应式 网站模板 可切换颜色主题</p>','990ebd31d179b3ba3d3723d096590278.jpg','15327c67eb94cf72995f4f82de145224.jpg','5c2cac35f41253550099de6a37375893.zip','psb.zip','','http://www.163.com/',99,99,0,0,0,0,0,0,'true','false','2016-08-19','<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-17 20:34:06','active'),(4,1,'国外轻量级响应式H5页面分享highlights','<p>国外轻量级响应式H5页面分享highlights</p>','8f6f2f1adfba398638412c70032d9506.jpg','003a03b40afb3175c69d7b642b1639d7.jpg','29b09db4ef2f37232025fee887ca1d31.zip','preview.zip','','http://www.sina.com/',235,235,0,0,0,0,0,0,'true','false','2016-12-27','<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-17 20:36:49','active'),(5,1,'手持iphone6手机APP UI展示 psd','<p>手持iphone6手机APP UI展示 psd</p>','e7c7f30c46ec7cc832dd6cd93d3ca921.jpg','8384388a9e669f4d0e907ef967ef1873.jpg','888a571bd6a2b9b8f497efa5691cf9c2.zip','psb.zip','','http://www.360.com/',13,13,0,0,0,0,0,0,'true','false',NULL,'<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-17 21:05:44','active'),(6,1,'LOGO应用PSD智能模板 立体','<p>空间必须支持php+mysql&nbsp;</p><p>安装方法：&nbsp;</p><p>&nbsp;1.把文件上传到你的站点的根目录，然后运行 http://你的域名/install/index.php 安装，根据提示填写好相关信息，点“下一步”...即可完成安装。&nbsp;</p><p>注：若提示无法安装，页面出现DIY字样。请进入install文件夹，将install_lock.txt文件删掉。把index.php.bak文件改为index.php即可！&nbsp;</p><p>2.安装好后，在后台“系统”—“数据库备份/恢复”，点右上角“还原数据”—“开始还原数据”，恢复数据库。&nbsp;</p><p>3.进入后台<a href=\"http://你的域名/dede，点“系统”—“系统参数设置”这里，修改一下网站设置，重新点一下“确定”。\r\n\" _src=\"http://你的域名/dede，点“系统”—“系统参数设置”这里，修改一下网站设置，重新点一下“确定”。\r\n\">http://你的域名/dede，点“系统”—“系统参数设置”这里，修改一下网站设置，重新点一下“确定”。&nbsp;</a></p><p>4.后台,点&quot;生成&quot;—&quot;更新系统缓存&quot;&nbsp;</p><p>&nbsp;5.重新生成一次所有页面，OK 完成。&nbsp;</p><p>&nbsp;如果安装后出现网站错位的情况，请检查以下两点设置&nbsp;</p><p>&nbsp;一. 网站程序必须放在根目录&nbsp;</p><p>&nbsp;二. 进入后台[系统]-[系统基本参数]，修改“站点根网址”为你的网址，或者留空！&nbsp;</p><p>&nbsp;后台管理地址/dede，管理帐号：admin &nbsp; 管理密码：admin</p>','733f1c7aa57eb77edba7cd52763ee058.jpg','0b4d2c3057665f065413e1649d1d0f35.jpg','f59b4fa85affacd08c1d7ca5f5843ab4.zip','preview.zip','','http://www.aliyun.com/',29,5,2,58,5,1,0,0,'true','false','2016-12-27','<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-17 21:09:07','active'),(7,1,'VI品牌设计PSD效果模板 智能效果模板','<p>VI品牌设计PSD效果模板 智能效果模板</p>','54e3321002ebf5fb041cce6c36427b28.jpg','df3d089e9c45b4fdba1a2117680afb1d.jpg','27225fb0899e0cd62c57715d3eee64bf.zip','preview.zip','','http://weibo.com/',37,37,0,0,0,0,0,0,'true','false','2016-12-27','<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-17 21:11:39','active'),(8,1,'写实风格UI元素Braun UI','<p>写实风格UI元素Braun UI写实风格UI元素Braun UI哈</p>','1a1aeac4c7bc7f957a255e31bb132d06.jpg','fa2ea4f797648f220c29600907376ce8.jpg','28c1af041011e2dc597615f680a8680f.zip','psb.zip','','http://www.sohu.com/',8,8,2,16,4,1,0,0,'true','false','2016-12-27','<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-17 21:17:16','active'),(9,2,'一套手机图片照片分享社区应用UI Photosapp','<p>一套手机图片照片分享社区应用UI Photosapp</p>','84a8c7f7525e6e08d938c609e5ec9b84.jpg','93c3e577ca695f1493cc9c5864bf1a3c.jpg','ecbec8128dbacb04302189bff02b9f44.zip','2.zip','','http://www.taobao.com/',16,16,0,0,0,0,0,0,'true','true',NULL,'<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-18 16:48:50','active'),(10,2,'优秀精美APP网页图标 PSD免费下载','<p>优秀精美APP网页图标 PSD免费下载</p>','145f14ac17b4c3fb4b605df2366eef8c.jpg','3d4ca1cb6d28924828cecd81a83d9ba0.jpg','31b143bac85eaf1869d4b4912bdfb3b8.zip','2.zip','','http://www.hao123.com/',27,27,2,54,4,1,4,0,'true','false','2016-12-27','<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-18 16:49:49','active'),(11,3,'完整的基于Android L风格微信APP设计-PSD免费下载','<p>完整的基于Android L风格微信APP设计-PSD免费下载</p>','f7e603ceaa4ee284d9363caa80671283.jpg','8c7377c49fc61c6735febd6f2cb8757d.jpg','c91eb3c78d4d5bda4920f4e2bcb5236f.zip','2.zip','','http://www.youku.com/',67,67,0,0,0,0,0,0,'true','true','2016-08-19','<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-18 16:55:00','active'),(12,3,'手拿着手机智能鼠标APP展示页','<p>手拿着手机智能鼠标APP展示页</p>','d8a80f17d5eef7c4a3975eaece52c05c.jpg','056713a3f726cbe13c8b073d14bafb6d.jpg','0c15d8466af72c5865ce3d7bb72a4a79.zip','2.zip','','http://120.26.88.138',813,813,2,1626,0,0,0,0,'true','false',NULL,'<p><span style=\"color: rgb(83, 83, 83); font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif;\">http://mobanbox.net/</span></p>','2015-08-18 16:56:09','active'),(13,1,'漂亮的写实风格UI元素Braun UI','<p>360致力于通过提供高品质的免费安全服务。</p>','4d6fdd3e79459cf4a74fcd8fe7936364.jpg','dec71fdae327d98bbc4c5d81129c3c73.jpg','f6be84d7cbda67c4771a8f0a7262c6db.zip','2.zip','','http://120.26.88.138',53,51,1,53,0,0,0,0,'false','true',NULL,'<p>dssds</p>','2015-08-19 21:59:34','active'),(14,4,'2015年上半年作品集，可下载哦','<p>空间必须支持php+mysql&nbsp;</p><p>安装方法：&nbsp;</p><p>&nbsp;1.把文件上传到你的站点的根目录，然后运行 http://你的域名/install/index.php 安装，根据提示填写好相关信息，点“下一步”...即可完成安装。&nbsp;</p><p>注：若提示无法安装，页面出现DIY字样。请进入install文件夹，将install_lock.txt文件删掉。把index.php.bak文件改为index.php即可！&nbsp;</p><p>2.安装好后，在后台“系统”—“数据库备份/恢复”，点右上角“还原数据”—“开始还原数据”，恢复数据库。&nbsp;</p><p>3.进入后台<a href=\"http://你的域名/dede，点“系统”—“系统参数设置”这里，修改一下网站设置，重新点一下“确定”。\r\n\" _src=\"http://你的域名/dede，点“系统”—“系统参数设置”这里，修改一下网站设置，重新点一下“确定”。\r\n\">http://你的域名/dede，点“系统”—“系统参数设置”这里，修改一下网站设置，重新点一下“确定”。&nbsp;</a></p><p>4.后台,点&quot;生成&quot;—&quot;更新系统缓存&quot;&nbsp;</p><p>&nbsp;5.重新生成一次所有页面，OK 完成。&nbsp;</p><p>&nbsp;如果安装后出现网站错位的情况，请检查以下两点设置&nbsp;</p><p>&nbsp;一. 网站程序必须放在根目录&nbsp;</p><p>&nbsp;二. 进入后台[系统]-[系统基本参数]，修改“站点根网址”为你的网址，或者留空！&nbsp;</p><p>&nbsp;后台管理地址/dede，管理帐号：admin &nbsp; 管理密码：admin</p>','ddc7f785cbf5375085c0acbfb51e0020.jpg','af1234f892a1a4058ee8964166a157d4.jpg','a7d1ea04bebea66af4b6a2ac986e768c.zip','2.zip','','http://120.26.88.138',99,99,1,99,5,1,5,7,'true','false',NULL,'<p><span style=\"color: rgb(97, 97, 97); font-family: Verdana, 宋体, Helvetica, sans-serif; font-size: 14px; line-height: 24px; background-color: rgb(255, 255, 255);\">去年参与VIBE设计时候做的一些探索方案，近期做了整理。</span><br style=\"color: rgb(97, 97, 97); font-family: Verdana, 宋体, Helvetica, sans-serif; font-size: 14px; line-height: 24px; white-space: normal; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(97, 97, 97); font-family: Verdana, 宋体, Helvetica, sans-serif; font-size: 14px; line-height: 24px; background-color: rgb(255, 255, 255);\">虽然都是些飞机稿，不过回头看看还是很值得反思。</span></p>','2015-08-21 03:31:39','active'),(15,1,'蓝色中国风山水群山雾高清图片壁纸','<p>蓝色中国风山水群山雾高清图片壁纸</p>','9f968ab99ae2159f2586fdd9218b1ad0.jpg','2b7b7e214c97b39a8878ed9258e38b9a.jpg','fbac214b7fd35eea5418a6d1362c9498.zip','8.zip','','http://120.26.88.138',1,0,0,0,0,0,0,0,'true','false',NULL,'<p>蓝色中国风山水群山雾高清图片壁纸</p>','2015-11-22 00:44:06','active'),(16,5,'漂亮的写实风格UI元素Braun UI漂亮','<p>请注意，我们只接受500MB以内大小的文件。</p>','0ec4ca53e01dcf1040541a35c0488e97.jpg','44f04a0a9995490dcf825aaa522ec27f.jpg','f6f326374f7cb9ed351077800abc738e.zip','11.zip','','',645,645,0,0,0,0,0,0,'true','false',NULL,'<p>请注意，我们只接受500MB以内大小的文件。</p>','2016-01-07 10:50:00','active'),(17,5,'2016年上半年作品集，可下载哦1','<p>请注意，我们只接受500MB以内大小的文件。</p>','22a0db762c1d97501d9ce279935a1a3e.jpg','c9a0728c4849b16f207ab3ed065b38ac.jpg','ff89fbbe49cdece420eacc18d4c57996.zip','11.zip','','',333,333,0,0,0,0,0,0,'true','false',NULL,'<p>请注意，我们只接受500MB以内大小的文件。</p>','2016-01-07 10:52:35','active'),(18,14,'优秀精美APP网页模板','<p>尽量精炼详实从而有助于用户搜索到你的作品。</p>','0406e9773999a7217a99bb775ab966e1.jpg','32386b58019c43f0bdef07ffb6db642d.jpg','d952e9a991f26cb8716abeb00eae9a20.zip','11.zip','','',432,432,0,0,0,0,0,0,'true','false',NULL,'<p>优秀精美APP网页图标</p>','2016-01-07 10:55:42','active'),(19,14,'手拿着手机智能鼠标APP展示','<p>手拿着手机智能鼠标APP展示</p>','07f1ae488f23f1894a512d8029f1b202.jpg','7a75bcfda7076a47aaee3070fcd4421d.jpg','1b47b9a568888bfa19df0cde69c6ecf4.zip','11.zip','','',22,22,0,0,0,0,0,1,'true','false',NULL,'<p>手拿着手机智能鼠标APP展示</p>','2016-01-07 10:57:40','active');
/*!40000 ALTER TABLE `items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `items_attributes`
--

DROP TABLE IF EXISTS `items_attributes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `items_attributes` (
  `item_id` int(11) NOT NULL COMMENT '作品ID',
  `attribute_id` varchar(255) NOT NULL COMMENT '属性ID',
  `category_id` int(11) NOT NULL COMMENT '属性类别的ID',
  KEY `item_id` (`item_id`,`attribute_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='作品属性';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `items_attributes`
--

LOCK TABLES `items_attributes` WRITE;
/*!40000 ALTER TABLE `items_attributes` DISABLE KEYS */;
INSERT INTO `items_attributes` VALUES (1,'4',1),(1,'5',1),(14,'1',1),(14,'2',1),(14,'3',1),(14,'6',1),(14,'8',1),(14,'9',2),(14,'10',2),(14,'11',2),(14,'12',2),(6,'3',1),(6,'4',1),(6,'5',1),(6,'7',1),(6,'8',1),(6,'9',2),(6,'10',2),(6,'11',2),(6,'12',2),(13,'2',1),(13,'3',1),(13,'7',1),(13,'10',2),(13,'11',2),(13,'12',2),(16,'1',1),(16,'3',1),(16,'5',1),(16,'6',1),(16,'9',2),(16,'10',2),(16,'11',2),(16,'12',2),(17,'1',1),(17,'5',1),(17,'6',1),(17,'7',1),(17,'9',2),(17,'10',2),(17,'11',2),(17,'12',2),(18,'2',1),(18,'5',1),(18,'6',1),(18,'7',1),(18,'9',2),(18,'10',2),(18,'11',2),(18,'12',2),(19,'2',1),(19,'3',1),(19,'4',1),(19,'5',1),(19,'9',2),(19,'10',2),(19,'11',2),(19,'12',2);
/*!40000 ALTER TABLE `items_attributes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `items_collections`
--

DROP TABLE IF EXISTS `items_collections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `items_collections` (
  `item_id` int(11) NOT NULL COMMENT '作品ID',
  `collection_id` int(11) NOT NULL COMMENT '收藏夹ID',
  PRIMARY KEY (`item_id`,`collection_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='作品收藏夹';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `items_collections`
--

LOCK TABLES `items_collections` WRITE;
/*!40000 ALTER TABLE `items_collections` DISABLE KEYS */;
INSERT INTO `items_collections` VALUES (1,3),(3,10),(9,4),(13,11),(14,4),(15,10);
/*!40000 ALTER TABLE `items_collections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `items_comments`
--

DROP TABLE IF EXISTS `items_comments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `items_comments` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `owner_id` int(11) NOT NULL COMMENT '作品作者ID',
  `item_id` int(11) NOT NULL COMMENT '作品ID',
  `item_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '作品名称',
  `user_id` int(11) NOT NULL COMMENT '评论者ID',
  `comment` text COLLATE utf8_unicode_ci NOT NULL COMMENT '评论内容',
  `datetime` datetime NOT NULL COMMENT '评论时间',
  `notify` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '回复提醒',
  `reply_to` int(11) NOT NULL DEFAULT '0' COMMENT '回复所属评论的ID',
  `report_by` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `item_id` (`item_id`,`user_id`),
  KEY `owner_id` (`owner_id`),
  KEY `report_by` (`report_by`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='作品评论';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `items_comments`
--

LOCK TABLES `items_comments` WRITE;
/*!40000 ALTER TABLE `items_comments` DISABLE KEYS */;
INSERT INTO `items_comments` VALUES (27,4,14,'2015年上半年作品集，可下载哦',1,'\n<pre><code class=\"javascript hljs\">define(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">require, exports, module</span>)</span>{\r\n	<span class=\"hljs-keyword\">var</span> $ = <span class=\"hljs-built_in\">require</span>(<span class=\"hljs-string\">&quot;jq&quot;</span>);\r\n	<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">idxChartInit</span>(<span class=\"hljs-params\">settings</span>)</span>{\r\n		<span class=\"hljs-built_in\">require</span>.async([<span class=\"hljs-string\">&quot;hchart&quot;</span>, <span class=\"hljs-string\">&quot;plug/highcharts/themes/gray&quot;</span>], <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\">hchart, gray</span>)</span>{\r\n			hchart();gray();\r\n			<span class=\"hljs-keyword\">for</span>(<span class=\"hljs-keyword\">var</span> i <span class=\"hljs-keyword\">in</span> settings){\r\n				<span class=\"hljs-keyword\">var</span> tmp = <span class=\"hljs-keyword\">new</span> Highcharts.Chart(settings[i]);\r\n			}\r\n		});\r\n	}\r\n	exports.idxChartInit = idxChartInit;\r\n});</code>\n</pre><p></p>','2016-01-07 11:13:07','true',0,0),(28,4,14,'2015年上半年作品集，可下载哦',1,'我们最远的距离，我努力靠近你的心.<p></p>','2016-01-07 11:14:07','true',0,0),(29,4,14,'2015年上半年作品集，可下载哦',5,' 后台管理地址/dede，管理帐号：admin   管理密码：admin','2016-01-07 11:14:46','false',27,0),(30,4,14,'2015年上半年作品集，可下载哦',5,'<img src=\"/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/39.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><img src=\"/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/44.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><img src=\"/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/47.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><img src=\"/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/65.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><img src=\"/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/25.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><p></p>','2016-01-07 11:14:58','true',0,0),(32,4,14,'2015年上半年作品集，可下载哦',14,'如果安装后出现网站错位的情况，请检查以下两点设置&nbsp;<p></p>','2016-01-08 11:21:38','true',0,0),(33,4,14,'2015年上半年作品集，可下载哦',1,'<img src=\"/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/65.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><img src=\"/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/41.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\">把文件上传到你的站点的根目录，然后运行 http://你的域名/install/index.php 安装，根据提示填写好相关信息，点“下一步”...即可完成安装。&nbsp;&nbsp;<p></p>','2016-01-08 11:22:11','true',0,0),(34,4,14,'2015年上半年作品集，可下载哦',1,'\n<pre><code class=\"php hljs\"><span class=\"hljs-keyword\">if</span>(check_login_bool() &amp;&amp; <span class=\"hljs-keyword\">isset</span>($_POST[<span class=\"hljs-string\">&#39;add&#39;</span>])) {\r\n	$s = $commentsClass-&gt;add();\r\n	<span class=\"hljs-keyword\">if</span>($s === <span class=\"hljs-keyword\">true</span>) {\r\n		refresh(<span class=\"hljs-string\">&#39;/&#39;</span>.$languageURL.<span class=\"hljs-string\">&#39;items/&#39;</span>.$itemID, $langArray[<span class=\"hljs-string\">&#39;complete_add_comment&#39;</span>], <span class=\"hljs-string\">&#39;complete&#39;</span>);\r\n	}\r\n	<span class=\"hljs-keyword\">else</span> {\r\n		addErrorMessage($langArray[<span class=\"hljs-string\">&#39;error_item_comment&#39;</span>], <span class=\"hljs-string\">&#39;&#39;</span>, <span class=\"hljs-string\">&#39;error&#39;</span>);\r\n	}\r\n}</code>\n</pre><p></p>','2016-01-08 11:24:19','true',0,0),(39,4,14,'2015年上半年作品集，可下载哦',2,'易语言','2016-01-08 22:05:14','false',32,0),(41,14,19,'手拿着手机智能鼠标APP展示',4,'手拿着手机智能鼠标APP展示<p></p>','2016-01-09 05:16:37','true',0,0),(43,4,14,'2015年上半年作品集，可下载哦',1,'测试AJAX评论&nbsp;<img src=\"http://120.26.88.138/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/41.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><img src=\"http://120.26.88.138/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/46.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><img src=\"http://120.26.88.138/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/expressions/20.gif\" mobanboxeditor_img_max_width_mark=\"1\" style=\"max-width: 100%;\"><p></p>','2016-01-09 05:25:46','true',0,0);
/*!40000 ALTER TABLE `items_comments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `items_faqs`
--

DROP TABLE IF EXISTS `items_faqs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `items_faqs` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `item_id` int(11) NOT NULL COMMENT '所属作品ID',
  `user_id` int(11) NOT NULL COMMENT '创建者ID',
  `question` text COLLATE utf8_unicode_ci NOT NULL COMMENT '问题内容',
  `answer` text COLLATE utf8_unicode_ci NOT NULL COMMENT '解答内容',
  `datetime` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `item_id` (`item_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='作品常见问题与解答';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `items_faqs`
--

LOCK TABLES `items_faqs` WRITE;
/*!40000 ALTER TABLE `items_faqs` DISABLE KEYS */;
INSERT INTO `items_faqs` VALUES (1,14,4,'这套模板支持IE8吗？','此套模板最低兼容IE9','2016-01-08 17:32:35'),(2,14,4,'支持退款吗？','模板为虚拟物品，不支持退款，请考虑好再购买','2016-01-08 17:33:56');
/*!40000 ALTER TABLE `items_faqs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `items_rates`
--

DROP TABLE IF EXISTS `items_rates`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `items_rates` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `item_id` int(11) NOT NULL COMMENT '作品ID',
  `user_id` int(11) NOT NULL COMMENT '购买者ID',
  `rate` int(11) NOT NULL COMMENT '购买者评价的星数',
  `datetime` datetime NOT NULL COMMENT '评星时间',
  PRIMARY KEY (`id`),
  KEY `collection_id` (`item_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='作品评星记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `items_rates`
--

LOCK TABLES `items_rates` WRITE;
/*!40000 ALTER TABLE `items_rates` DISABLE KEYS */;
INSERT INTO `items_rates` VALUES (1,10,1,4,'2015-08-21 01:26:22'),(2,8,2,4,'2015-08-21 01:55:13'),(3,14,1,5,'2015-08-21 04:23:12'),(4,6,4,5,'2015-12-22 13:49:06');
/*!40000 ALTER TABLE `items_rates` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `items_tags`
--

DROP TABLE IF EXISTS `items_tags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `items_tags` (
  `item_id` int(11) NOT NULL COMMENT '原作品ID',
  `tag_id` int(11) NOT NULL COMMENT '新增标签ID',
  `type` enum('usage','style','features') COLLATE utf8_unicode_ci NOT NULL COMMENT '新增标签类型',
  PRIMARY KEY (`item_id`,`tag_id`,`type`),
  KEY `tag_id` (`tag_id`),
  KEY `item_id` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='处于更新队列的作品新增的标签';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `items_tags`
--

LOCK TABLES `items_tags` WRITE;
/*!40000 ALTER TABLE `items_tags` DISABLE KEYS */;
INSERT INTO `items_tags` VALUES (1,1,'usage'),(2,1,'usage'),(3,1,'usage'),(10,1,'usage'),(13,1,'usage'),(14,1,'usage'),(16,1,'usage'),(17,1,'usage'),(18,1,'usage'),(19,1,'usage'),(5,2,'usage'),(6,2,'usage'),(7,2,'usage'),(8,2,'usage'),(9,2,'usage'),(11,2,'usage'),(12,2,'usage'),(15,2,'usage'),(17,2,'usage'),(2,3,'usage'),(3,3,'usage'),(4,3,'usage'),(5,3,'usage'),(6,3,'usage'),(7,3,'usage'),(8,3,'usage'),(9,3,'usage'),(10,3,'usage'),(11,3,'usage'),(13,3,'usage'),(14,3,'usage'),(17,3,'usage'),(19,3,'usage'),(1,4,'usage'),(2,4,'usage'),(3,4,'usage'),(4,4,'usage'),(9,4,'usage'),(10,4,'usage'),(12,4,'usage'),(13,4,'usage'),(16,4,'usage'),(18,4,'usage'),(1,5,'usage'),(2,5,'usage'),(4,5,'usage'),(6,5,'usage'),(8,5,'usage'),(10,5,'usage'),(11,5,'usage'),(14,5,'usage'),(19,5,'usage'),(5,6,'usage'),(7,6,'usage'),(11,6,'usage'),(12,6,'usage'),(15,6,'usage'),(1,7,'usage'),(2,7,'usage'),(8,7,'usage'),(10,7,'usage'),(11,7,'usage'),(12,7,'usage'),(13,7,'usage'),(15,7,'usage'),(16,7,'usage'),(18,7,'usage'),(19,7,'usage'),(1,8,'usage'),(2,8,'usage'),(3,8,'usage'),(4,8,'usage'),(6,8,'usage'),(9,8,'usage'),(14,8,'usage'),(16,8,'usage'),(17,8,'usage'),(18,8,'usage'),(1,9,'usage'),(3,9,'usage'),(7,9,'usage'),(12,9,'usage'),(17,9,'usage');
/*!40000 ALTER TABLE `items_tags` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `items_to_category`
--

DROP TABLE IF EXISTS `items_to_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `items_to_category` (
  `item_id` int(11) NOT NULL,
  `categories` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  KEY `item_id` (`item_id`,`categories`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `items_to_category`
--

LOCK TABLES `items_to_category` WRITE;
/*!40000 ALTER TABLE `items_to_category` DISABLE KEYS */;
INSERT INTO `items_to_category` VALUES (1,',1,13,'),(2,',1,15,'),(3,',1,16,'),(4,',1,13,'),(5,',2,10,'),(6,',2,8,'),(7,',2,7,'),(8,',3,12,'),(9,',2,10,'),(10,',3,11,'),(11,',2,7,'),(12,',1,14,'),(13,',1,16,'),(14,',1,14,'),(15,',3,11,'),(16,',1,14,'),(17,',1,15,'),(18,',1,14,'),(19,',1,14,');
/*!40000 ALTER TABLE `items_to_category` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `orders`
--

DROP TABLE IF EXISTS `orders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `orders` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) NOT NULL COMMENT '订单创建者ID',
  `owner_id` int(11) NOT NULL COMMENT '订单中作品所属作者的ID',
  `item_id` int(11) NOT NULL COMMENT '作品ID',
  `item_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '作品名称',
  `price` float NOT NULL COMMENT '订单价格',
  `receive` float NOT NULL DEFAULT '0' COMMENT '作品所属作者获得的分成',
  `datetime` datetime NOT NULL COMMENT '订单创建时间',
  `paid` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '到账',
  `paid_datetime` datetime NOT NULL COMMENT '到账时间',
  `extended` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false',
  `type` enum('buy','referal') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'buy' COMMENT '订单类型',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`item_id`),
  KEY `owner_id` (`owner_id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='订单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `orders`
--

LOCK TABLES `orders` WRITE;
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
INSERT INTO `orders` VALUES (1,1,3,12,'手拿着手机智能鼠标APP展示页',813,0,'2015-08-19 07:02:58','false','0000-00-00 00:00:00','false','buy'),(2,1,2,10,'优秀精美APP网页图标 PSD免费下载',27,8.1,'2015-08-21 01:24:11','true','2015-08-21 01:24:11','false','buy'),(3,2,1,8,'写实风格UI元素Braun UI',8,2.4,'2015-08-21 01:54:32','true','2015-08-21 01:54:32','false','buy'),(4,1,4,14,'2015年上半年作品集，可下载哦',99,29.7,'2015-08-21 04:15:37','true','2015-08-21 04:15:37','false','buy'),(5,4,1,8,'写实风格UI元素Braun UI',8,2.4,'2015-08-21 04:31:15','true','2015-08-21 04:31:15','false','buy'),(6,1,3,12,'手拿着手机智能鼠标APP展示页',813,243.9,'2015-08-27 20:11:10','true','2015-08-27 20:11:10','false','buy'),(7,4,2,10,'优秀精美APP网页图标 PSD免费下载',27,0,'2015-09-27 17:04:58','false','0000-00-00 00:00:00','false','buy'),(8,4,2,10,'优秀精美APP网页图标 PSD免费下载',27,0,'2015-10-11 18:47:10','false','0000-00-00 00:00:00','false','buy'),(9,3,2,10,'优秀精美APP网页图标 PSD免费下载',27,8.1,'2015-10-11 18:56:32','true','2015-10-11 18:56:32','false','buy'),(10,3,1,8,'写实风格UI元素Braun UI',8,0,'2015-10-11 19:00:26','false','0000-00-00 00:00:00','false','buy'),(11,4,1,6,'LOGO应用PSD智能模板 立体',29,8.7,'2015-12-22 13:48:58','true','2015-12-22 13:48:58','false','buy'),(12,4,1,13,'漂亮的写实风格UI元素Braun UI',53,15.9,'2015-12-25 03:41:57','true','2015-12-25 03:41:57','false','buy'),(13,2,1,2,'ui 网页设计 黑色 ipad素材 app素材',356,106.8,'2015-12-29 19:07:58','true','2015-12-29 19:07:58','false','buy'),(14,2,1,6,'LOGO应用PSD智能模板 立体',29,8.7,'2015-12-29 19:09:31','true','2015-12-29 19:09:31','false','buy'),(15,4,3,12,'手拿着手机智能鼠标APP展示页',813,243.9,'2016-01-03 10:23:28','true','2016-01-03 10:23:28','false','buy');
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pages`
--

DROP TABLE IF EXISTS `pages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pages` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `sub_of` int(11) NOT NULL COMMENT '父页面ID',
  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'URL地址关键词',
  `meta_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '元标题',
  `meta_keywords` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '元关键词',
  `meta_description` text COLLATE utf8_unicode_ci NOT NULL COMMENT '元描述',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '页面名称',
  `text` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '页面详细内容',
  `menu` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '加入顶部菜单',
  `footer` enum('true','false') COLLATE utf8_unicode_ci NOT NULL,
  `visible` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '可见',
  `order_index` int(11) NOT NULL COMMENT '排序',
  PRIMARY KEY (`id`),
  KEY `category_id` (`sub_of`),
  KEY `key` (`key`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='自定义页面';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `pages`
--

LOCK TABLES `pages` WRITE;
/*!40000 ALTER TABLE `pages` DISABLE KEYS */;
INSERT INTO `pages` VALUES (3,0,'business','商务合作','商务合作','商务合作','商务合作','','true','false','true',1);
/*!40000 ALTER TABLE `pages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `percents`
--

DROP TABLE IF EXISTS `percents`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `percents` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `percent` int(11) NOT NULL COMMENT '百分比',
  `from` int(11) NOT NULL COMMENT '从…(某金额)',
  `to` int(11) NOT NULL COMMENT '到…(某金额)',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='分成比例';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `percents`
--

LOCK TABLES `percents` WRITE;
/*!40000 ALTER TABLE `percents` DISABLE KEYS */;
INSERT INTO `percents` VALUES (1,60,0,5000);
/*!40000 ALTER TABLE `percents` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `preview`
--

DROP TABLE IF EXISTS `preview`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `preview` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `item_id` int(11) NOT NULL,
  `dir` varchar(255) DEFAULT NULL,
  `status` tinyint(1) DEFAULT '1',
  `show_for_admin` tinyint(1) DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `preview`
--

LOCK TABLES `preview` WRITE;
/*!40000 ALTER TABLE `preview` DISABLE KEYS */;
INSERT INTO `preview` VALUES (1,1,'/static//uploads/items/1/preview/df161b93e04b3a6e3c76ce86b8bace7d.jpg',1,1),(2,2,'/static//uploads/items/2/preview/e513f686e7c7761698d461cb22d7e537.jpg',1,1),(3,3,'/static//uploads/items/3/preview/edbc7826c65861ff9bc38e19688033b7.jpg',1,1),(4,4,'/static//uploads/items/4/preview/ec13a5e75c1e6a4a3b2ee1eab0c00b87.jpg',1,1),(5,5,'/static//uploads/items/5/preview/ee1ba0e04037a48feec69b117a891a1b.jpg',1,1),(6,6,'/static//uploads/items/6/preview/3c3b7927bfdd666ef9828236db06bab4.jpg',1,1),(7,7,'/static//uploads/items/7/preview/be2bc71d7fe647e2ac3e146e1dac41e9.jpg',1,1),(8,8,'/static//uploads/items/8/preview/80279ed16fa611c8ef8f719d6e03c753.jpg',1,1),(9,9,'/static//uploads/items/9/preview/77e81abcd4c6556eb9ccc47b90850c67.jpg',1,1),(10,10,'/static//uploads/items/10/preview/8e2ebc90bc64821ef5711860a33086d2.jpg',1,1),(11,11,'/static//uploads/items/11/preview/355a27ef05b47ce620924680bf327615.jpg',1,1),(12,12,'/static//uploads/items/12/preview/16dd10746d5dd3b340e4eb07ff8c566d.jpg',1,1),(13,13,'/static//uploads/items/13/preview/fa2a1e0fd531c5d3bdb4655ad146a359.jpg',1,1),(14,13,'/static//uploads/items/13/preview/ade038006f7124a063a1d4ad647832e3.jpg',1,1),(15,14,'/static//uploads/items/14/preview/7b1632974888314b9595152d6ebc815f.jpg',1,1),(25,14,'/static//uploads/items/14/preview/a8f68bbced2432bbfd9b68af93ff91be.jpg',1,1),(26,14,'/static//uploads/items/14/preview/8891f4e9bb06e0acd1660d6dde7fee66.jpg',1,1),(27,14,'/static//uploads/items/14/preview/8d8d335ac242f969c70f990945c10e95.jpg',1,1),(28,14,'/static//uploads/items/14/preview/53f314fbb466eef6b3f94476b5714511.jpg',1,1),(29,1,'/static/uploads/items/1/preview/5bef9a20a8a38847cc4a55738040b13c.jpg',1,1),(30,1,'/static//uploads/items/1/preview/62e94c24e9b5b19f7aef1a7af3ff92ca.jpg',1,1),(31,15,'/static//uploads/items/15/preview/037d915a19b032093ac29bfd724edaa7.jpg',1,1),(32,16,'/static//uploads/items/7/preview/be2bc71d7fe647e2ac3e146e1dac41e9.jpg',1,1),(33,17,'/static//uploads/items/4/preview/ec13a5e75c1e6a4a3b2ee1eab0c00b87.jpg',1,1),(34,18,'/static//uploads/items/9/preview/77e81abcd4c6556eb9ccc47b90850c67.jpg',1,1),(35,19,'/static/uploads/items/14/preview/a8f68bbced2432bbfd9b68af93ff91be.jpg',1,1);
/*!40000 ALTER TABLE `preview` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qnews`
--

DROP TABLE IF EXISTS `qnews`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `qnews` (
  `id` int(6) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(250) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '快讯名称',
  `description` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '快讯内容',
  `url` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '内部URL',
  `photo` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '图片',
  `visible` enum('true','false') CHARACTER SET utf8 NOT NULL DEFAULT 'true' COMMENT '可见',
  `order_index` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='登入用户首页快讯';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qnews`
--

LOCK TABLES `qnews` WRITE;
/*!40000 ALTER TABLE `qnews` DISABLE KEYS */;
INSERT INTO `qnews` VALUES (1,'这是一个示例新闻','这是一个示例新闻，你可以点击标题更换。','?m=qnews&c=list','b68ad4b75c422696f8b0d00f3ce56229.jpg','true',1);
/*!40000 ALTER TABLE `qnews` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `quiz`
--

DROP TABLE IF EXISTS `quiz`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `quiz` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '问题内容',
  `order_index` int(11) NOT NULL COMMENT '排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='测验问题';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `quiz`
--

LOCK TABLES `quiz` WRITE;
/*!40000 ALTER TABLE `quiz` DISABLE KEYS */;
INSERT INTO `quiz` VALUES (1,'5 + 5 = ?',4),(2,'10 - 7 = ?',1),(3,'2 * 2 = ?',2),(4,'15 : 3 = ?',3),(5,'10 * 10 = ?',5);
/*!40000 ALTER TABLE `quiz` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `quiz_answers`
--

DROP TABLE IF EXISTS `quiz_answers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `quiz_answers` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `quiz_id` int(11) NOT NULL COMMENT '测验问题ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '答案内容',
  `right` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '正确答案',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='测验问题的答案';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `quiz_answers`
--

LOCK TABLES `quiz_answers` WRITE;
/*!40000 ALTER TABLE `quiz_answers` DISABLE KEYS */;
INSERT INTO `quiz_answers` VALUES (1,1,'11','false'),(2,1,'8','false'),(3,1,'10','true'),(4,1,'5','false'),(5,2,'7','false'),(6,2,'3','true'),(7,2,'8','false'),(8,2,'4','false'),(9,3,'5','false'),(10,3,'1','false'),(11,3,'6','false'),(12,3,'4','true'),(13,4,'5','true'),(14,4,'4','false'),(15,4,'6','false'),(16,4,'7','false'),(17,5,'200','false'),(18,5,'100','true'),(19,5,'20','false'),(20,5,'10','false');
/*!40000 ALTER TABLE `quiz_answers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `service`
--

DROP TABLE IF EXISTS `service`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `service` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_name` varchar(20) NOT NULL COMMENT '客服姓名',
  `email` varchar(30) DEFAULT NULL COMMENT '邮件',
  `info` varchar(255) DEFAULT NULL COMMENT '备注',
  `status` enum('true','false') DEFAULT 'true' COMMENT '状态',
  `time` int(11) DEFAULT NULL COMMENT '时间',
  `service_num` int(11) DEFAULT NULL,
  `service_status` tinyint(1) DEFAULT '1' COMMENT '服务状态（0：该轮已服务，1：该轮未服务）',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `service`
--

LOCK TABLES `service` WRITE;
/*!40000 ALTER TABLE `service` DISABLE KEYS */;
/*!40000 ALTER TABLE `service` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `service_relation`
--

DROP TABLE IF EXISTS `service_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `service_relation` (
  `user_id` int(11) NOT NULL COMMENT '用户id',
  `service_user_id` int(11) NOT NULL COMMENT '客服id',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='客服用户关联表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `service_relation`
--

LOCK TABLES `service_relation` WRITE;
/*!40000 ALTER TABLE `service_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `service_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `system`
--

DROP TABLE IF EXISTS `system`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `system` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '系统关键词',
  `value` text COLLATE utf8_unicode_ci NOT NULL COMMENT '具体的值',
  `system` tinyint(1) NOT NULL DEFAULT '0',
  `group` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `group` (`group`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='系统设置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `system`
--

LOCK TABLES `system` WRITE;
/*!40000 ALTER TABLE `system` DISABLE KEYS */;
INSERT INTO `system` VALUES (1,'meta_title','莎莎mobanbox商城_bbs.sasadown.cn',1,'config'),(2,'meta_keywords','mobanbox',1,'config'),(3,'meta_description','mobanbox',1,'config'),(4,'admin_mail','mobanbox@163.com',1,'config'),(5,'report_mail','mobanbox@163.com',1,'config'),(6,'referal_sum','10',1,'config'),(7,'referal_percent','60',1,'config'),(8,'prepaid_price_discount','2',1,'config'),(9,'extended_price','50',1,'config'),(10,'no_exclusive_author_percent','30',1,'config'),(11,'exclusive_author_percent','40',1,'config'),(12,'site_logo','',0,'images'),(13,'send_mail','1',1,'config'),(14,'chinabank_v_key','1',1,'chinabank'),(15,'chinabank_v_mid','1',1,'chinabank'),(16,'smtp_host','',1,'mailconf'),(17,'smtp_from','',1,'mailconf'),(18,'smtp_port','25',1,'mailconf'),(19,'smtp_user','',1,'mailconf'),(20,'smtp_pass','',1,'mailconf'),(21,'smtp_from_name','',1,'mailconf'),(22,'template','mbbb',1,'template'),(23,'admin_template','default',1,'template');
/*!40000 ALTER TABLE `system` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tags`
--

DROP TABLE IF EXISTS `tags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tags` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '标签内容',
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='标签';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tags`
--

LOCK TABLES `tags` WRITE;
/*!40000 ALTER TABLE `tags` DISABLE KEYS */;
INSERT INTO `tags` VALUES (1,'模板'),(2,'psd素材'),(3,'html模板'),(4,'html5'),(5,'cms模板'),(6,'素材'),(7,'jQuery'),(8,'Bootstrap'),(9,'自适应');
/*!40000 ALTER TABLE `tags` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `temp_items`
--

DROP TABLE IF EXISTS `temp_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `temp_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `item_id` int(11) NOT NULL COMMENT '原作品ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '原作品名称',
  `thumbnail` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '更新的缩略图',
  `theme_preview` text COLLATE utf8_unicode_ci,
  `main_file` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '更新的主文件包',
  `main_file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '更新的主文件包全称',
  `reviewer_comment` text COLLATE utf8_unicode_ci NOT NULL COMMENT '给更新审核员的说明',
  `datetime` datetime NOT NULL COMMENT '提交更新时间',
  `first_preview` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='处于更新队列的作品';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `temp_items`
--

LOCK TABLES `temp_items` WRITE;
/*!40000 ALTER TABLE `temp_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `temp_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `temp_items_tags`
--

DROP TABLE IF EXISTS `temp_items_tags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `temp_items_tags` (
  `item_id` int(11) NOT NULL COMMENT '原作品ID',
  `tag_id` int(11) NOT NULL COMMENT '新增标签ID',
  `type` enum('usage','style','features') COLLATE utf8_unicode_ci NOT NULL COMMENT '新增标签类型',
  PRIMARY KEY (`item_id`,`tag_id`,`type`),
  KEY `tag_id` (`tag_id`),
  KEY `item_id` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='处于更新队列的作品新增的标签';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `temp_items_tags`
--

LOCK TABLES `temp_items_tags` WRITE;
/*!40000 ALTER TABLE `temp_items_tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `temp_items_tags` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `transaction_details`
--

DROP TABLE IF EXISTS `transaction_details`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transaction_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` enum('deposit','withdraw','buy','sale_income','referal_income') DEFAULT 'deposit' COMMENT '类型',
  `value` float DEFAULT NULL COMMENT '金额',
  `info` varchar(255) DEFAULT NULL COMMENT '详情描述',
  `time` datetime DEFAULT NULL COMMENT '时间',
  `uid` int(11) DEFAULT NULL COMMENT '流动用户id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='资金流动记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `transaction_details`
--

LOCK TABLES `transaction_details` WRITE;
/*!40000 ALTER TABLE `transaction_details` DISABLE KEYS */;
INSERT INTO `transaction_details` VALUES (1,'buy',-25,'作品名称:优秀精美APP网页图标 PSD免费下载(余额支付)','2015-08-21 01:24:11',1),(2,'sale_income',8.1,'作品名称:优秀精美APP网页图标 PSD免费下载','2015-08-21 01:24:11',2),(3,'buy',-6,'作品名称:写实风格UI元素Braun UI(余额支付)','2015-08-21 01:54:32',2),(4,'sale_income',2.4,'作品名称:写实风格UI元素Braun UI','2015-08-21 01:54:32',1),(5,'buy',-97,'作品名称:2015年上半年作品集，可下载哦(余额支付)','2015-08-21 04:15:37',1),(6,'sale_income',29.7,'作品名称:2015年上半年作品集，可下载哦','2015-08-21 04:15:37',4),(7,'buy',-6,'作品名称:写实风格UI元素Braun UI(余额支付)','2015-08-21 04:31:15',4),(8,'sale_income',2.4,'作品名称:写实风格UI元素Braun UI','2015-08-21 04:31:15',1),(9,'buy',-811,'作品名称:手拿着手机智能鼠标APP展示页(余额支付)','2015-08-27 20:11:10',1),(10,'sale_income',243.9,'作品名称:手拿着手机智能鼠标APP展示页','2015-08-27 20:11:10',3),(11,'buy',-25,'作品名称:优秀精美APP网页图标 PSD免费下载(余额支付)','2015-10-11 18:56:32',3),(12,'sale_income',8.1,'作品名称:优秀精美APP网页图标 PSD免费下载','2015-10-11 18:56:32',2),(13,'buy',-27,'作品名称:LOGO应用PSD智能模板 立体(余额支付)','2015-12-22 13:48:58',4),(14,'sale_income',8.7,'作品名称:LOGO应用PSD智能模板 立体','2015-12-22 13:48:58',1),(15,'buy',-51,'作品名称:漂亮的写实风格UI元素Braun UI(余额支付)','2015-12-25 03:41:57',4),(16,'sale_income',15.9,'作品名称:漂亮的写实风格UI元素Braun UI','2015-12-25 03:41:57',1),(17,'buy',-354,'作品名称:ui 网页设计 黑色 ipad素材 app素材(余额支付)','2015-12-29 19:07:58',2),(18,'sale_income',106.8,'作品名称:ui 网页设计 黑色 ipad素材 app素材','2015-12-29 19:07:58',1),(19,'buy',-27,'作品名称:LOGO应用PSD智能模板 立体(余额支付)','2015-12-29 19:09:31',2),(20,'sale_income',8.7,'作品名称:LOGO应用PSD智能模板 立体','2015-12-29 19:09:31',1),(21,'buy',-811,'作品名称:手拿着手机智能鼠标APP展示页(余额支付)','2016-01-03 10:23:28',4),(22,'sale_income',243.9,'作品名称:手拿着手机智能鼠标APP展示页','2016-01-03 10:23:28',3);
/*!40000 ALTER TABLE `transaction_details` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `upload_queue`
--

DROP TABLE IF EXISTS `upload_queue`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `upload_queue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `item_id` int(11) NOT NULL,
  `dir` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` tinyint(4) NOT NULL,
  `queue_type` tinyint(4) NOT NULL,
  `key` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'wait',
  `user_id` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `upload_queue`
--

LOCK TABLES `upload_queue` WRITE;
/*!40000 ALTER TABLE `upload_queue` DISABLE KEYS */;
/*!40000 ALTER TABLE `upload_queue` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_groups`
--

DROP TABLE IF EXISTS `user_groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_groups` (
  `ug_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户组ID',
  `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL COMMENT '用户组名称',
  `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '用户组描述',
  `rights` text COLLATE utf8_unicode_ci NOT NULL COMMENT '权限',
  PRIMARY KEY (`ug_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用户组';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_groups`
--

LOCK TABLES `user_groups` WRITE;
/*!40000 ALTER TABLE `user_groups` DISABLE KEYS */;
INSERT INTO `user_groups` VALUES (2,'Administrator','<p>\r\n完全的管理权限</p>\r\n','a:21:{s:6:\"system\";s:2:\"on\";s:5:\"admin\";s:2:\"on\";s:11:\"app_extends\";s:2:\"on\";s:10:\"attributes\";s:2:\"on\";s:8:\"bulletin\";s:2:\"on\";s:10:\"categories\";s:2:\"on\";s:11:\"collections\";s:2:\"on\";s:8:\"contacts\";s:2:\"on\";s:9:\"countries\";s:2:\"on\";s:5:\"error\";s:2:\"on\";s:4:\"help\";s:2:\"on\";s:5:\"items\";s:2:\"on\";s:10:\"make_money\";s:2:\"on\";s:5:\"pages\";s:2:\"on\";s:8:\"payments\";s:2:\"on\";s:8:\"percents\";s:2:\"on\";s:5:\"qnews\";s:2:\"on\";s:4:\"quiz\";s:2:\"on\";s:7:\"reports\";s:2:\"on\";s:4:\"tags\";s:2:\"on\";s:5:\"users\";s:2:\"on\";}');
/*!40000 ALTER TABLE `user_groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
  `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `username` varchar(30) COLLATE utf8_unicode_ci NOT NULL COMMENT '用户名',
  `password` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT '密码',
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '电子邮件地址',
  `nickname` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '昵称',
  `featured_item_id` int(11) NOT NULL DEFAULT '0' COMMENT '自荐作品ID',
  `exclusive_author` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '独家作者',
  `license` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'a:1:{s:8:"personal";s:8:"personal";}' COMMENT '作品许可',
  `avatar` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '头像',
  `homeimage` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '个人主页图片',
  `firmname` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '公司名称',
  `profile_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '个人资料标题',
  `profile_desc` text COLLATE utf8_unicode_ci NOT NULL COMMENT '个人资料详情',
  `live_city` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '所在城市',
  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '详细地址',
  `country_id` int(11) NOT NULL DEFAULT '0' COMMENT '国家或地区的ID',
  `custom_made` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '承接定制',
  `social` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `quiz` enum('false','true') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '通过测验问题',
  `deposit` float NOT NULL DEFAULT '0' COMMENT '充值金额的余额',
  `earning` float NOT NULL DEFAULT '0' COMMENT '分成所得金额的余额',
  `total` float NOT NULL DEFAULT '0' COMMENT '总余额',
  `sold` float NOT NULL DEFAULT '0' COMMENT '售出作品总值',
  `items` int(11) NOT NULL DEFAULT '0' COMMENT '在售作品数量',
  `sales` int(11) NOT NULL DEFAULT '0' COMMENT '作品销售次数',
  `buy` int(11) NOT NULL DEFAULT '0' COMMENT '购买作品的数量',
  `rating` int(11) NOT NULL DEFAULT '0' COMMENT '平均星数',
  `score` int(11) NOT NULL DEFAULT '0' COMMENT '总星数',
  `votes` int(11) NOT NULL DEFAULT '0' COMMENT '总投票数',
  `referals` int(11) NOT NULL DEFAULT '0' COMMENT '推广的用户数量',
  `referal_money` float NOT NULL DEFAULT '0' COMMENT '推广的总金额',
  `featured_author` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '推荐用户',
  `power_elite_author` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '强力精英作者',
  `elite_author` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '精英作者',
  `register_datetime` datetime DEFAULT NULL COMMENT '注册时间',
  `last_login_datetime` datetime DEFAULT NULL COMMENT '最后登录时间',
  `ip_address` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '最后登录IP地址',
  `status` enum('waiting','banned','activate') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'waiting' COMMENT '用户状态',
  `groups` text COLLATE utf8_unicode_ci COMMENT '所属权限组',
  `remember_key` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `activate_key` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '激活码',
  `referal_id` int(11) NOT NULL DEFAULT '0' COMMENT '推广者ID',
  `commission_percent` int(2) NOT NULL DEFAULT '0' COMMENT '单独分成比例',
  `badges` text COLLATE utf8_unicode_ci NOT NULL COMMENT '管理员授予的徽章',
  `weibo` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '新浪微博URL地址',
  `weixin` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '微信账号',
  `baidu` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '百度空间URL地址',
  `netease` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '网易微博URL地址',
  `sohu` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT '搜狐微博URL地址',
  `qq` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'QQ号',
  PRIMARY KEY (`user_id`),
  UNIQUE KEY `username` (`username`),
  UNIQUE KEY `email` (`email`),
  KEY `status` (`status`),
  KEY `featured_item_id` (`featured_item_id`),
  KEY `referal_id` (`referal_id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'admin','227185cd9f05d623414d210579038b49','mobanbox@163.com','陈三哥哥',2,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','07c9e000bae4f986644402e2f0560ea3.jpg','3eb64765322de1c322f319a665d1b6af.jpg','','talk is cheap，show me the proto','','安徽合肥','',0,'true','','true',5221,144.9,5365.9,483,18,6,3,5,9,2,0,0,'false','true','false','2013-06-06 00:00:00','2017-12-13 16:38:59','127.0.0.1','activate','a:1:{i:2;s:2:\"on\";}','',NULL,0,0,'52,46,45','mobanbox','mobanbox','','','','48894503'),(2,'cdwmhcc','70873e8580c9900986939611618d7b1e','mobanbox@126.com','飞翔的猪',10,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','f8603d3817b8c80f7fe9a7dac02d9cb5.gif','26ba1f6d0b98cd2af9d9c2036b21055b.jpg','易迅科技','纯白的雪，给予了我们纯白的记忆','','安徽合肥','',0,'true','','true',3460,10.2,3470.2,54,4,2,3,4,4,1,0,0,'true','true','false','2015-08-18 16:37:04','2016-01-08 22:04:56','118.206.228.79','activate','a:0:{}','','e7b8230d17c1e61feb7e0b5bfa8adf18',0,0,'46','cdwmhcc','dsfdsfs','','','','137270632'),(3,'Tateduo','63fef502142036ad753bb131a9caf880','tateduo@163.com','Tate多多',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','','','','','','','',0,'false','','true',0,462.8,462.8,1626,4,2,1,0,0,0,0,0,'false','true','true','2015-08-18 16:51:50','2015-12-22 16:26:53','::1','activate','a:0:{}','','cf6707db7277ff79a3dcf187e374e68c',0,0,'54,52,51,49,47,45,44','','','','','',''),(4,'mobanbox','63fef502142036ad753bb131a9caf880','mobantianxia@163.com','模板盒子',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','668459ed1ee2d661530769c039ce19b6.gif','b535870efa583e6ffd0560adbe225caa.jpg','','我们最远的距离，我努力靠近你的心.','','','',0,'true','','true',4254,23.7,4277.7,99,4,1,4,5,5,1,0,0,'false','false','false','2015-08-20 16:53:59','2016-01-09 04:58:52','106.38.202.234','activate','a:0:{}','','d26334d99dc01ba3be8f5794a82491f5',0,0,'52,51,47,46,45,42','','','','','',''),(5,'colorbang','63fef502142036ad753bb131a9caf880','colorbang@163.com','色彩帮',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','bd5f60d567e4209df6d20c298300f998.jpg','','','People did not love has no one loves you. ','','潍坊','',0,'false','','true',0,0,0,0,2,0,0,0,0,0,0,0,'false','false','false','2015-08-20 16:54:27','2016-01-07 12:52:59','106.38.202.234','activate','a:0:{}','','dc742badcedec741a2d5667899b7f640',0,0,'54,53,52,51,50,47,46,45','','','','','',''),(6,'yixinfly','63fef502142036ad753bb131a9caf880','yixinfly@163.com','依晰听雨',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','','','','','','','',0,'false','','false',0,0,0,0,0,0,0,0,0,0,0,0,'false','false','false','2015-08-22 01:23:24',NULL,NULL,'activate','a:0:{}',NULL,'74d9cfb740e071ff7519e5f7a68a6c7f',0,0,'','','','','','',''),(7,'yeti','63fef502142036ad753bb131a9caf880','yeti@yeti.com','yeti',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','','','','','','','',0,'false','','false',0,0,0,0,0,0,0,0,0,0,0,0,'false','false','false','2015-08-28 07:49:15','2015-08-28 07:52:57','::1','activate','a:0:{}','','52aef16212b55b14b5ceec9feefa1f95',0,0,'','','','','','',''),(8,'chenchen','63fef502142036ad753bb131a9caf880','mobanboxs@163.com','陈晨',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','','','','','','','',0,'false','','false',0,0,0,0,0,0,0,0,0,0,0,0,'false','false','false','2015-11-21 09:17:51',NULL,NULL,'waiting','a:0:{}',NULL,'12027bcef7d84305fff1ff28db274593',0,0,'','','','','','',''),(9,'chendawei','63fef502142036ad753bb131a9caf880','chendada@163.com','陈大大',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','','','','','','','',0,'false','','false',0,0,0,0,0,0,0,0,0,0,0,0,'false','false','false','2015-11-21 09:44:01',NULL,NULL,'waiting','a:0:{}',NULL,'7ec5957e99651d7fd4be010ad320ced7',0,0,'','','','','','',''),(10,'chenli','63fef502142036ad753bb131a9caf880','chenli@163.com','chenli',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','','','','','','','',0,'false','','false',0,0,0,0,0,0,0,0,0,0,0,0,'false','false','false','2015-11-21 10:37:36',NULL,NULL,'waiting','a:0:{}',NULL,'6b95dac195c00f5f0d567d18ecfb92a6',0,0,'','','','','','',''),(11,'willy','101f99bcf4dd313fcdddd6b2d6f1c5ef','624872954@qq.com','willy33',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','','','','','','','',0,'false','','false',0,0,0,0,0,0,0,0,0,0,0,0,'false','false','false','2015-11-23 10:37:29',NULL,NULL,'waiting','a:0:{}',NULL,'a1a068ac633826e9d4c0930f417f914d',0,0,'','','','','','',''),(13,'demo','70873e8580c9900986939611618d7b1e','demo@admin.com','测试专用',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','0c813135dd3bad799c8004b67ddf2bf6.jpg','9c7ce0ade1cc4f46f7924bb668e71da9.jpg','','我是测试个性签名的','','','',0,'false','','true',0,0,0,0,0,0,0,0,0,0,0,0,'false','false','false','2015-12-29 18:59:39','2015-12-29 19:00:30','116.216.30.128','activate','a:0:{}','','80007abf7cd4c792cb47f1c968989ec3',0,0,'','ceshi','ceshi','','','','123456789'),(14,'zcool','70873e8580c9900986939611618d7b1e','zcool@admin.com','站酷',0,'false','a:1:{s:8:\"personal\";s:8:\"personal\";}','','','','','','','',0,'false','','true',0,0,0,0,2,0,0,0,0,0,0,0,'false','false','false','2015-12-29 19:00:15','2016-01-08 11:20:11','106.38.202.234','activate','a:0:{}','','00e2195e294f45c1eb80ec6cf04310b1',0,0,'','','','','','','');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users_emails`
--

DROP TABLE IF EXISTS `users_emails`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_emails` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `from_id` int(11) NOT NULL COMMENT '发件者用户ID',
  `from_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '发件者电子邮件地址',
  `to_id` int(11) NOT NULL COMMENT '收件者ID',
  `message` text COLLATE utf8_unicode_ci NOT NULL COMMENT '邮件内容',
  `datetime` datetime NOT NULL COMMENT '发送时间',
  PRIMARY KEY (`id`),
  KEY `from_id` (`from_id`,`to_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用户联系邮件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users_emails`
--

LOCK TABLES `users_emails` WRITE;
/*!40000 ALTER TABLE `users_emails` DISABLE KEYS */;
/*!40000 ALTER TABLE `users_emails` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users_followers`
--

DROP TABLE IF EXISTS `users_followers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_followers` (
  `user_id` int(11) NOT NULL COMMENT '被关注者ID',
  `follow_id` int(11) NOT NULL COMMENT '粉丝ID',
  PRIMARY KEY (`user_id`,`follow_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用户粉丝';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users_followers`
--

LOCK TABLES `users_followers` WRITE;
/*!40000 ALTER TABLE `users_followers` DISABLE KEYS */;
INSERT INTO `users_followers` VALUES (1,0),(1,2),(1,3),(1,4),(2,0),(2,1),(2,3),(4,1),(4,3);
/*!40000 ALTER TABLE `users_followers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users_referals_count`
--

DROP TABLE IF EXISTS `users_referals_count`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_referals_count` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) NOT NULL COMMENT '受推广而注册的用户ID',
  `datetime` datetime NOT NULL,
  `referal_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `referal_id` (`referal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用户推广记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users_referals_count`
--

LOCK TABLES `users_referals_count` WRITE;
/*!40000 ALTER TABLE `users_referals_count` DISABLE KEYS */;
/*!40000 ALTER TABLE `users_referals_count` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users_status`
--

DROP TABLE IF EXISTS `users_status`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) NOT NULL COMMENT '用户ID',
  `status` enum('freefile','featured') COLLATE utf8_unicode_ci NOT NULL COMMENT '宣传形式',
  `datetime` datetime NOT NULL COMMENT '设置时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用户作品在站内的宣传记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users_status`
--

LOCK TABLES `users_status` WRITE;
/*!40000 ALTER TABLE `users_status` DISABLE KEYS */;
INSERT INTO `users_status` VALUES (1,1,'featured','2015-08-17 20:48:24'),(2,1,'freefile','2015-08-18 16:56:53'),(3,3,'freefile','2015-08-18 16:56:59'),(4,2,'freefile','2015-08-18 16:57:00'),(5,3,'featured','2015-08-20 03:13:04'),(6,2,'featured','2015-08-20 03:13:14');
/*!40000 ALTER TABLE `users_status` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `withdraw`
--

DROP TABLE IF EXISTS `withdraw`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `withdraw` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) NOT NULL COMMENT '提现发起者ID',
  `amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '提现金额',
  `method` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '提现方式',
  `text` text COLLATE utf8_unicode_ci NOT NULL COMMENT '到账账号',
  `chinese` enum('false','iam','iamnot') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '中国大陆纳税主体',
  `cbn` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '组织机构代码',
  `ccn` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '营业执照号码',
  `datetime` datetime NOT NULL COMMENT '发起提现时间',
  `paid` enum('true','false') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'false' COMMENT '已处理',
  `paid_datetime` datetime DEFAULT NULL COMMENT '处理时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `withdraw`
--

LOCK TABLES `withdraw` WRITE;
/*!40000 ALTER TABLE `withdraw` DISABLE KEYS */;
/*!40000 ALTER TABLE `withdraw` 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-12-13 17:44:27
