/*
Navicat MySQL Data Transfer

Source Server         : localhost_3306
Source Server Version : 50051
Source Host           : localhost:3306
Source Database       : ssh2_db

Target Server Type    : MYSQL
Target Server Version : 50051
File Encoding         : 65001

Date: 2016-10-04 22:25:21
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for `admin`
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
  `username` varchar(20) NOT NULL,
  `password` varchar(20) default NULL,
  PRIMARY KEY  (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of admin
-- ----------------------------
INSERT INTO `admin` VALUES ('a', '123');

-- ----------------------------
-- Table structure for `t_book`
-- ----------------------------
DROP TABLE IF EXISTS `t_book`;
CREATE TABLE `t_book` (
  `barcode` varchar(20) NOT NULL,
  `bookName` varchar(20) default NULL,
  `bookType` int(11) default NULL,
  `price` float default NULL,
  `count` int(11) default NULL,
  `publish` varchar(20) default NULL,
  `publishDate` varchar(20) default NULL,
  `photoBook` varchar(50) default NULL,
  PRIMARY KEY  (`barcode`),
  KEY `FKCB4C8FF41434BB68` (`bookType`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of t_book
-- ----------------------------
INSERT INTO `t_book` VALUES ('TS001', '中国近代史', '2', '25.5', '18', '四川大学出版社', '2016-07-13', 'upload/4a1e54a8-4fa7-4b40-ade2-0852b85c0e61.jpg');
INSERT INTO `t_book` VALUES ('TS002', 'jsp网站开发', '1', '23.5', '12', '人民教育出版社', '2016-10-13', 'upload/b306cf46-fbec-4f12-9508-d4b11da4989b.jpg');
INSERT INTO `t_book` VALUES ('TS003', '外语', '3', '35', '50', 'xx出版社', '2014-06-11', 'upload/c0ec5f35-e2e7-4951-93d9-7142ba6e175b.jpg');

-- ----------------------------
-- Table structure for `t_booktype`
-- ----------------------------
DROP TABLE IF EXISTS `t_booktype`;
CREATE TABLE `t_booktype` (
  `bookTypeId` int(11) NOT NULL auto_increment,
  `bookTypeName` varchar(18) default NULL,
  `days` int(11) default NULL,
  PRIMARY KEY  (`bookTypeId`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of t_booktype
-- ----------------------------
INSERT INTO `t_booktype` VALUES ('1', '计算机类', '30');
INSERT INTO `t_booktype` VALUES ('2', '历史类', '25');
INSERT INTO `t_booktype` VALUES ('3', '文学类', '20');
