/*
Navicat MySQL Data Transfer

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

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

Date: 2013-12-21 04:20:03
*/

SET FOREIGN_KEY_CHECKS=0;

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

-- ----------------------------
-- Records of t_admin
-- ----------------------------
INSERT INTO `t_admin` VALUES ('admin', '21232f297a57a5a743894a0e4a801fc3');

-- ----------------------------
-- Table structure for `t_classinfo`
-- ----------------------------
DROP TABLE IF EXISTS `t_classinfo`;
CREATE TABLE `t_classinfo` (
  `classNumber` varchar(20) collate utf8_bin NOT NULL COMMENT 'classNumber',
  `className` varchar(20) collate utf8_bin NOT NULL COMMENT '班级名称',
  `classSpecialFieldNumber` varchar(20) collate utf8_bin NOT NULL COMMENT '所属专业',
  `classBirthDate` date NOT NULL COMMENT '成立日期',
  `classTeacherCharge` varchar(12) collate utf8_bin default NULL COMMENT '班主任',
  `classTelephone` varchar(20) collate utf8_bin default NULL COMMENT '联系电话',
  `classMemo` varchar(100) collate utf8_bin default NULL COMMENT '附加信息',
  PRIMARY KEY  (`classNumber`),
  KEY `classSpecialFieldNumber` (`classSpecialFieldNumber`),
  CONSTRAINT `t_classinfo_ibfk_1` FOREIGN KEY (`classSpecialFieldNumber`) REFERENCES `t_specialfieldinfo` (`specialFieldNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_classinfo
-- ----------------------------
INSERT INTO `t_classinfo` VALUES ('2012050303', '2012级计算机3班', '0503', '2012-08-31', '宋大侠', '13839431943', '测试班级');
INSERT INTO `t_classinfo` VALUES ('2012050304', '2012级计算机4班', '0503', '2012-09-13', '刘实', '13859343502', '测试班级');
INSERT INTO `t_classinfo` VALUES ('2012050403', '2012级电子技术3班', '0504', '2012-09-13', '王德阳', '15394213432', '测试班级');

-- ----------------------------
-- Table structure for `t_collegeinfo`
-- ----------------------------
DROP TABLE IF EXISTS `t_collegeinfo`;
CREATE TABLE `t_collegeinfo` (
  `collegeNumber` varchar(20) collate utf8_bin NOT NULL COMMENT 'collegeNumber',
  `collegeName` varchar(20) collate utf8_bin NOT NULL COMMENT '学院名称',
  `collegeBirthDate` date NOT NULL COMMENT '成立日期',
  `collegeMan` varchar(10) collate utf8_bin default NULL COMMENT '院长姓名',
  `collegeTelephone` varchar(20) collate utf8_bin default NULL COMMENT '联系电话',
  `collegeMemo` varchar(100) collate utf8_bin default NULL COMMENT '附加信息',
  PRIMARY KEY  (`collegeNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_collegeinfo
-- ----------------------------
INSERT INTO `t_collegeinfo` VALUES ('05', '信息工程学院', '2010-12-08', '高飞', '13583949833', '这是测试');

-- ----------------------------
-- Table structure for `t_courseinfo`
-- ----------------------------
DROP TABLE IF EXISTS `t_courseinfo`;
CREATE TABLE `t_courseinfo` (
  `courseNumber` varchar(20) collate utf8_bin NOT NULL COMMENT 'courseNumber',
  `courseName` varchar(20) collate utf8_bin NOT NULL COMMENT '课程名称',
  `courseTeacher` varchar(20) collate utf8_bin NOT NULL COMMENT '上课老师',
  `courseTime` varchar(40) collate utf8_bin default NULL COMMENT '上课时间',
  `coursePlace` varchar(40) collate utf8_bin default NULL COMMENT '上课地点',
  `courseScore` float NOT NULL COMMENT '课程学分',
  `courseMemo` varchar(100) collate utf8_bin default NULL COMMENT '附加信息',
  PRIMARY KEY  (`courseNumber`),
  KEY `courseTeacher` (`courseTeacher`),
  CONSTRAINT `t_courseinfo_ibfk_1` FOREIGN KEY (`courseTeacher`) REFERENCES `t_teacher` (`teacherNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_courseinfo
-- ----------------------------
INSERT INTO `t_courseinfo` VALUES ('KC001', '安卓Android程序设计', 'TH001', '每周星期2下午3,4节', '9教学楼304', '3.5', '测试课程信息');
INSERT INTO `t_courseinfo` VALUES ('KC002', 'ios程序设计', 'TH002', '每周5下午1,2节', '6A-301', '3', '苹果手机程序');
INSERT INTO `t_courseinfo` VALUES ('KC003', 'jsp网站设计入门', 'TH002', '每周4上午3,4节', '7C-101', '3.5', '测试课程');
INSERT INTO `t_courseinfo` VALUES ('KC004', '高等数学', 'TH001', '每周2下午3,4节', '8C-103', '3', '测试信息');
INSERT INTO `t_courseinfo` VALUES ('KC005', '计算机编译原理', 'TH001', '每周3上午1,2节', '6B-203', '3.5', '测试课程');
INSERT INTO `t_courseinfo` VALUES ('KC006', '计算机基础', 'TH002', '每周一下午3,4节', '6C-202', '3.5', '课程附加信息测试');
INSERT INTO `t_courseinfo` VALUES ('KC007', '计算机组成原理', 'TH002', '每周三下午1,2节', '6C-303', '3.5', 'ceshi课程');

-- ----------------------------
-- Table structure for `t_news`
-- ----------------------------
DROP TABLE IF EXISTS `t_news`;
CREATE TABLE `t_news` (
  `newsId` int(11) NOT NULL auto_increment COMMENT '记录编号',
  `newsTitle` varchar(50) collate utf8_bin NOT NULL COMMENT '新闻标题',
  `newsContent` varchar(500) collate utf8_bin NOT NULL COMMENT '新闻内容',
  `newsDate` date NOT NULL COMMENT '发布日期',
  `newsPhoto` text collate utf8_bin NOT NULL COMMENT '新闻图片',
  PRIMARY KEY  (`newsId`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_news
-- ----------------------------
INSERT INTO `t_news` VALUES ('1', '2014年放假安排', '除夕节不放假了！', '2013-12-13', 0x2F75706C6F61642F323031332F31322F31323637353430302E6A7067);
INSERT INTO `t_news` VALUES ('2', '嫦娥三号将于14日落月', '据中国之声《央广新闻》报道，嫦娥三号即将于14日落月，面对从未去过的陌生土地，黑色750秒、时不时会扬起的月尘……嫦娥三号携带了哪些制胜法宝，又将如何闯关？\r\n\r\n　　嫦娥三号要降落在一个从未去过的这么一片土地，这里面的环境温度白天达到100多度，同时在地面上还会有时时扬起的跟我们地面上不一样的月尘，而这种月尘其实在地面上我们是无法测到的，它的成分相当于火山灰。还有，它在下降的过程中还有一系列包括角度等等的风险。\r\n\r\n　　正是因为嫦娥三号探测器会面对这么多的风险，因此它现在设计也是非常合理，它们是由着陆器和巡视器两部分组成，当着陆器降落到月球之后将释放巡视器，也就是说只要三姑娘能轻盈落月，此次任务就已经取得了一大半的成功。这样的话在落月的过程之中最关键的莫过于推进系统，推进系统现在是由一台7500牛的变推力轨控发动机，还有若干台150牛的大姿控发动机，还有若干台10牛的小姿控发动机组成，这些发动机可以共同作用来承担地月转移、近月制动、环月飞行以及最后的分系统在15公里到100米的高度精确完成逐减速任务，还要在100米-4米高度开始稳定和缓慢地下降。（记者张棉棉）\r\n', '2013-12-14', 0x2F75706C6F61642F323031332F31322F32303838373630302E6A7067);

-- ----------------------------
-- Table structure for `t_scoreinfo`
-- ----------------------------
DROP TABLE IF EXISTS `t_scoreinfo`;
CREATE TABLE `t_scoreinfo` (
  `scoreId` int(11) NOT NULL auto_increment COMMENT '记录编号',
  `studentNumber` varchar(30) collate utf8_bin NOT NULL COMMENT '学生对象',
  `courseNumber` varchar(20) collate utf8_bin NOT NULL COMMENT '课程对象',
  `scoreValue` float NOT NULL COMMENT '成绩得分',
  `studentEvaluate` varchar(30) collate utf8_bin default NULL COMMENT '学生评价',
  PRIMARY KEY  (`scoreId`),
  KEY `studentNumber` (`studentNumber`),
  KEY `courseNumber` (`courseNumber`),
  CONSTRAINT `t_scoreinfo_ibfk_1` FOREIGN KEY (`studentNumber`) REFERENCES `t_student` (`studentNumber`),
  CONSTRAINT `t_scoreinfo_ibfk_2` FOREIGN KEY (`courseNumber`) REFERENCES `t_courseinfo` (`courseNumber`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_scoreinfo
-- ----------------------------
INSERT INTO `t_scoreinfo` VALUES ('1', '201205030317', 'KC002', '98', '很好的成绩');
INSERT INTO `t_scoreinfo` VALUES ('2', '201205030317', 'KC003', '85', '还Ok');
INSERT INTO `t_scoreinfo` VALUES ('3', '201205030317', 'KC007', '93', '表现不错哦！');

-- ----------------------------
-- Table structure for `t_specialfieldinfo`
-- ----------------------------
DROP TABLE IF EXISTS `t_specialfieldinfo`;
CREATE TABLE `t_specialfieldinfo` (
  `specialFieldNumber` varchar(20) collate utf8_bin NOT NULL COMMENT 'specialFieldNumber',
  `specialFieldName` varchar(20) collate utf8_bin NOT NULL COMMENT '专业名称',
  `specialCollegeNumber` varchar(20) collate utf8_bin NOT NULL COMMENT '所在学院',
  `specialBirthDate` date NOT NULL COMMENT '成立日期',
  `specialMan` varchar(10) collate utf8_bin default NULL COMMENT '联系人',
  `specialTelephone` varchar(20) collate utf8_bin default NULL COMMENT '联系电话',
  `specialMemo` varchar(100) collate utf8_bin default NULL COMMENT '附加信息',
  PRIMARY KEY  (`specialFieldNumber`),
  KEY `specialCollegeNumber` (`specialCollegeNumber`),
  CONSTRAINT `t_specialfieldinfo_ibfk_1` FOREIGN KEY (`specialCollegeNumber`) REFERENCES `t_collegeinfo` (`collegeNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_specialfieldinfo
-- ----------------------------
INSERT INTO `t_specialfieldinfo` VALUES ('0503', '计算机科学与技术', '05', '2011-12-07', '小明', '13859383943', '测试专业');
INSERT INTO `t_specialfieldinfo` VALUES ('0504', '电子信息技术', '05', '2009-06-17', '黄石', '13569384953', '测试信息啊啊啊啊');

-- ----------------------------
-- Table structure for `t_student`
-- ----------------------------
DROP TABLE IF EXISTS `t_student`;
CREATE TABLE `t_student` (
  `studentNumber` varchar(30) collate utf8_bin NOT NULL COMMENT 'studentNumber',
  `studentName` varchar(12) collate utf8_bin NOT NULL COMMENT '姓名',
  `studentPassword` varchar(30) collate utf8_bin NOT NULL COMMENT '登录密码',
  `studentSex` varchar(2) collate utf8_bin NOT NULL COMMENT '性别',
  `studentClassNumber` varchar(20) collate utf8_bin NOT NULL COMMENT '所在班级',
  `studentBirthday` date NOT NULL COMMENT '出生日期',
  `studentState` varchar(20) collate utf8_bin default NULL COMMENT '政治面貌',
  `studentPhoto` text collate utf8_bin NOT NULL COMMENT '学生照片',
  `studentTelephone` varchar(20) collate utf8_bin default NULL COMMENT '联系电话',
  `studentEmail` varchar(30) collate utf8_bin default NULL COMMENT '学生邮箱',
  `studentQQ` varchar(20) collate utf8_bin default NULL COMMENT '联系qq',
  `studentAddress` varchar(100) collate utf8_bin default NULL COMMENT '家庭地址',
  `studentMemo` varchar(100) collate utf8_bin default NULL COMMENT '附加信息',
  PRIMARY KEY  (`studentNumber`),
  KEY `studentClassNumber` (`studentClassNumber`),
  CONSTRAINT `t_student_ibfk_1` FOREIGN KEY (`studentClassNumber`) REFERENCES `t_classinfo` (`classNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_student
-- ----------------------------
INSERT INTO `t_student` VALUES ('201205030317', '双鱼林', '123456', '男', '2012050303', '1996-12-12', '党员', 0x2F75706C6F61642F323031332F31322F35313538373230302E6A7067, '13849384212', 'wangjianlin1985@126.com', '287307421', '四川达州渠县望溪乡5组', '测试学生信息啊dd');
INSERT INTO `t_student` VALUES ('201205030318', '雷小夏', '123456', '女', '2012050303', '1993-12-09', '党员', 0x2F75706C6F61642F323031332F31322F33303031383530302E6A7067, '15934214312', 'xiaoxia@126.com', '4398412', '福建福州', '测试学生');

-- ----------------------------
-- Table structure for `t_studentselectcourseinfo`
-- ----------------------------
DROP TABLE IF EXISTS `t_studentselectcourseinfo`;
CREATE TABLE `t_studentselectcourseinfo` (
  `selectId` int(11) NOT NULL auto_increment COMMENT '记录编号',
  `studentNumber` varchar(30) collate utf8_bin NOT NULL COMMENT '学生对象',
  `courseNumber` varchar(20) collate utf8_bin NOT NULL COMMENT '课程对象',
  PRIMARY KEY  (`selectId`),
  KEY `studentNumber` (`studentNumber`),
  KEY `courseNumber` (`courseNumber`),
  CONSTRAINT `t_studentselectcourseinfo_ibfk_1` FOREIGN KEY (`studentNumber`) REFERENCES `t_student` (`studentNumber`),
  CONSTRAINT `t_studentselectcourseinfo_ibfk_2` FOREIGN KEY (`courseNumber`) REFERENCES `t_courseinfo` (`courseNumber`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_studentselectcourseinfo
-- ----------------------------
INSERT INTO `t_studentselectcourseinfo` VALUES ('1', '201205030317', 'KC001');
INSERT INTO `t_studentselectcourseinfo` VALUES ('2', '201205030317', 'KC003');
INSERT INTO `t_studentselectcourseinfo` VALUES ('3', '201205030317', 'KC002');
INSERT INTO `t_studentselectcourseinfo` VALUES ('4', '201205030317', 'KC007');

-- ----------------------------
-- Table structure for `t_teacher`
-- ----------------------------
DROP TABLE IF EXISTS `t_teacher`;
CREATE TABLE `t_teacher` (
  `teacherNumber` varchar(20) collate utf8_bin NOT NULL COMMENT 'teacherNumber',
  `teacherName` varchar(12) collate utf8_bin NOT NULL COMMENT '教师姓名',
  `teacherPassword` varchar(30) collate utf8_bin default NULL COMMENT '登录密码',
  `teacherSex` varchar(2) collate utf8_bin NOT NULL COMMENT '性别',
  `teacherBirthday` date NOT NULL COMMENT '出生日期',
  `teacherArriveDate` date NOT NULL COMMENT '入职日期',
  `teacherCardNumber` varchar(20) collate utf8_bin default NULL COMMENT '身份证号',
  `teacherPhone` varchar(20) collate utf8_bin default NULL COMMENT '联系电话',
  `teacherPhoto` text collate utf8_bin NOT NULL COMMENT '教师照片',
  `teacherAddress` varchar(100) collate utf8_bin default NULL COMMENT '家庭地址',
  `teacherMemo` varchar(100) collate utf8_bin default NULL COMMENT '附加信息',
  PRIMARY KEY  (`teacherNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of t_teacher
-- ----------------------------
INSERT INTO `t_teacher` VALUES ('TH001', '张无忌', '123456', '男', '1989-12-06', '2012-12-06', '513030198912064123', '13959349312', 0x2F75706C6F61642F323031332F31322F38343133343130302E6A7067, '测试老师地址', '测试附加信息');
INSERT INTO `t_teacher` VALUES ('TH002', '王小燕', '123456', '女', '1992-12-09', '2011-09-14', '513030199312064133', '13953539313', 0x2F75706C6F61642F323031332F31322F37353838353930302E6A7067, '四川成都二仙桥', '测试信息啊啊啊');
