From 5d77906331243354710712ddf45b8bcb2152dacc Mon Sep 17 00:00:00 2001
From: chai <chaifix@163.com>
Date: Mon, 29 Jan 2018 15:37:45 +0800
Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 sql/issues.sql | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 sql/issues.sql

(limited to 'sql/issues.sql')

diff --git a/sql/issues.sql b/sql/issues.sql
new file mode 100644
index 0000000..8be37e6
--- /dev/null
+++ b/sql/issues.sql
@@ -0,0 +1,56 @@
+/*
+SQLyog Ultimate v12.09 (64 bit)
+MySQL - 5.5.28 : Database - issues
+*********************************************************************
+*/

+
+/*!40101 SET NAMES utf8 */;
+
+/*!40101 SET SQL_MODE=''*/;
+
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+CREATE DATABASE /*!32312 IF NOT EXISTS*/`issues` /*!40100 DEFAULT CHARACTER SET utf8 */;
+
+USE `issues`;
+
+/*Table structure for table `issue` */
+
+DROP TABLE IF EXISTS `issue`;
+
+CREATE TABLE `issue` (
+  `issueId` int(32) NOT NULL AUTO_INCREMENT,
+  `issueTitle` varchar(64) DEFAULT NULL,
+  `issueDesc` text,
+  `issueSolve` text,
+  `issueTime` int(32) DEFAULT NULL,
+  PRIMARY KEY (`issueId`)
+) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
+
+/*Table structure for table `relation` */
+
+DROP TABLE IF EXISTS `relation`;
+
+CREATE TABLE `relation` (
+  `relationId` int(32) NOT NULL AUTO_INCREMENT,
+  `tagId` int(32) NOT NULL,
+  `issueId` int(32) NOT NULL,
+  PRIMARY KEY (`relationId`)
+) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
+
+/*Table structure for table `tag` */
+
+DROP TABLE IF EXISTS `tag`;
+
+CREATE TABLE `tag` (
+  `tagId` int(32) unsigned NOT NULL AUTO_INCREMENT,
+  `tagName` varchar(64) NOT NULL,
+  PRIMARY KEY (`tagId`)
+) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- 
cgit v1.1-26-g67d0

