text: -- MySQL dump 10.17  Distrib 10.3.14-MariaDB, for osx10.13 (x86_64)
  --
  -- Host: localhost    Database: goblog
  -- ------------------------------------------------------
  -- Server version	10.3.14-MariaDB
  
  /*!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 utf8mb4 */;
  /*!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 `fe_articles`
  --
  
  DROP TABLE IF EXISTS `fe_articles`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `fe_articles` (
    `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    `title` varchar(120) NOT NULL DEFAULT '',
    `seo_title` varchar(120) DEFAULT NULL,
    `keywords` varchar(120) DEFAULT NULL,
    `description` varchar(200) DEFAULT NULL,
    `message` longtext DEFAULT NULL,
    `logo` varchar(200) DEFAULT NULL,
    `views` int(11) NOT NULL DEFAULT 0,
    `is_recommend` tinyint(1) NOT NULL DEFAULT 0,
    `add_time` int(11) NOT NULL DEFAULT 0,
    `comment_count` int(11) NOT NULL DEFAULT 0,
    `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1正常，其他不正常',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `fe_attachments`
  --
  
  DROP TABLE IF EXISTS `fe_attachments`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `fe_attachments` (
    `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    `title` varchar(100) NOT NULL DEFAULT '',
    `location` varchar(200) NOT NULL DEFAULT '',
    `file_size` int(11) NOT NULL DEFAULT 0,
    `width` int(11) NOT NULL DEFAULT 0,
    `height` int(11) NOT NULL DEFAULT 0,
    `add_time` int(11) NOT NULL DEFAULT 0,
    `mime` varchar(20) NOT NULL DEFAULT '' COMMENT '文件类型',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `fe_categories`
  --
  
  DROP TABLE IF EXISTS `fe_categories`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `fe_categories` (
    `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    `parent_id` int(11) NOT NULL DEFAULT 0,
    `title` varchar(120) NOT NULL DEFAULT '',
    `description` varchar(200) DEFAULT NULL,
    `logo` varchar(200) DEFAULT NULL,
    `add_time` int(11) NOT NULL,
    `article_count` int(11) NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `fe_comments`
  --
  
  DROP TABLE IF EXISTS `fe_comments`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `fe_comments` (
    `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    `parent_id` int(11) NOT NULL DEFAULT 0,
    `article_id` int(11) NOT NULL DEFAULT 0,
    `user_id` int(11) NOT NULL DEFAULT 0,
    `message` text DEFAULT NULL,
    `add_time` int(11) NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `fe_relation`
  --
  
  DROP TABLE IF EXISTS `fe_relation`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `fe_relation` (
    `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    `category_id` int(11) NOT NULL DEFAULT 0,
    `article_id` int(11) NOT NULL DEFAULT 0,
    `add_time` int(11) NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `fe_users`
  --
  
  DROP TABLE IF EXISTS `fe_users`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `fe_users` (
    `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    `user_name` varchar(20) NOT NULL DEFAULT '',
    `is_admin` tinyint(1) NOT NULL DEFAULT 0,
    `password` varchar(128) NOT NULL DEFAULT '',
    `add_time` int(11) NOT NULL DEFAULT 0,
    `last_login` int(11) NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`),
    KEY `user_name` (`user_name`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  /*!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 2019-05-02 10:06:16
  