You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
262 lines
11 KiB
262 lines
11 KiB
6 years ago
|
-- --------------------------------------------------------
|
||
|
-- 主机: 127.0.0.1
|
||
|
-- 服务器版本: 10.2.18-MariaDB - mariadb.org binary distribution
|
||
|
-- 服务器操作系统: Win64
|
||
|
-- HeidiSQL 版本: 9.4.0.5125
|
||
|
-- --------------------------------------------------------
|
||
|
|
||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||
|
/*!40101 SET NAMES utf8 */;
|
||
|
/*!50503 SET NAMES utf8mb4 */;
|
||
|
/*!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' */;
|
||
|
|
||
|
|
||
|
-- 导出 gdms 的数据库结构
|
||
|
CREATE DATABASE IF NOT EXISTS `gdms` /*!40100 DEFAULT CHARACTER SET utf8 */;
|
||
|
USE `gdms`;
|
||
|
|
||
|
-- 导出 表 gdms.administrator 结构
|
||
|
CREATE TABLE IF NOT EXISTS `administrator` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`password` char(255) NOT NULL,
|
||
|
`name` char(30) DEFAULT NULL,
|
||
|
`e_mail_location` char(40) DEFAULT NULL,
|
||
|
`phone_number` char(20) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='管理员';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.announcement 结构
|
||
|
CREATE TABLE IF NOT EXISTS `announcement` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`title` text DEFAULT NULL,
|
||
|
`information` text DEFAULT NULL,
|
||
|
`ralease_date` date DEFAULT NULL,
|
||
|
`annex_url` varchar(255) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='公告';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`student_id` char(20) DEFAULT NULL,
|
||
|
`teacher_id` char(20) DEFAULT NULL,
|
||
|
`teacher_choose_student_status` char(1) DEFAULT NULL,
|
||
|
`student_choose_teacher_status` char(1) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='毕业设计';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design_finished_product 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design_finished_product` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`word_count` int(11) DEFAULT NULL,
|
||
|
`final_date` date DEFAULT NULL,
|
||
|
`graduation_design_url` varchar(255) DEFAULT NULL,
|
||
|
`chinese_abstract` text DEFAULT NULL,
|
||
|
`chinese_key_words` text DEFAULT NULL,
|
||
|
`english_abstract` text DEFAULT NULL,
|
||
|
`english_key_words` text DEFAULT NULL,
|
||
|
`score` float DEFAULT NULL,
|
||
|
`finished_product_status` char(1) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='毕设论文';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design_finished_product_mentor_score 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design_finished_product_mentor_score` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`meet_requirement_score` float DEFAULT NULL,
|
||
|
`meaning_value_score` float DEFAULT NULL,
|
||
|
`subject_scale_score` float DEFAULT NULL,
|
||
|
`complexity_score` float DEFAULT NULL,
|
||
|
`ability_consult_literature_score` float DEFAULT NULL,
|
||
|
`comprehensive_use_knowledge_score` float DEFAULT NULL,
|
||
|
`design_capability_score` float DEFAULT NULL,
|
||
|
`ability_use_score` float DEFAULT NULL,
|
||
|
`title_consistent_score` float DEFAULT NULL,
|
||
|
`writing_level_score` float DEFAULT NULL,
|
||
|
`writing_specifications_score` float DEFAULT NULL,
|
||
|
`paper_length_score` float DEFAULT NULL,
|
||
|
`teory_value_score` float DEFAULT NULL,
|
||
|
`ability_use_foreign_language_score` float DEFAULT NULL,
|
||
|
`total_grade` float DEFAULT NULL,
|
||
|
`review_opinion` text DEFAULT NULL,
|
||
|
`review_opinion_date` date DEFAULT NULL,
|
||
|
`finished_product_mentor_score_status` char(1) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='指导老师评定成绩';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design_finished_product_reviewer_score 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design_finished_product_reviewer_score` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`score` float DEFAULT NULL,
|
||
|
`opinion` text DEFAULT NULL,
|
||
|
`reviewer_score_date` date DEFAULT NULL,
|
||
|
`finished_product_reviewer_score_status` char(1) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='评阅老师对论文的评审成绩';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design_information 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design_information` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`chinese_name` varchar(255) DEFAULT NULL,
|
||
|
`english_name` varchar(255) DEFAULT NULL,
|
||
|
`type_of_topic` varchar(255) DEFAULT NULL,
|
||
|
`source_of_design` varchar(255) DEFAULT NULL,
|
||
|
`nature_of_design` varchar(255) DEFAULT NULL,
|
||
|
`description_of_topic` text DEFAULT NULL,
|
||
|
`student_fill_graduation_design_information_status` char(1) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='毕业设计信息';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design_opening_report 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design_opening_report` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`report_date` date DEFAULT NULL,
|
||
|
`report_location` varchar(255) DEFAULT NULL,
|
||
|
`report_url` varchar(255) DEFAULT NULL,
|
||
|
`report_teacher_leader_team_id` char(20) DEFAULT NULL,
|
||
|
`report_secretary_leader_team_id` char(20) DEFAULT NULL,
|
||
|
`estimated_word_count` int(11) DEFAULT NULL,
|
||
|
`opening_report_status` char(1) DEFAULT NULL,
|
||
|
`opening_report_mentor_opinion_status` char(1) DEFAULT NULL,
|
||
|
`opening_report_teacher_team_opinion_status` char(1) DEFAULT NULL,
|
||
|
`opening_report_college_opinion_status` char(1) DEFAULT NULL,
|
||
|
`opening_report_secretary_record_status` char(1) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='开题报告';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design_opening_report_opinion_record 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design_opening_report_opinion_record` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`mentor_opinion` text DEFAULT NULL,
|
||
|
`mentor_opinion_date` date DEFAULT NULL,
|
||
|
`secretary_record` text DEFAULT NULL,
|
||
|
`secretary_record_date` date DEFAULT NULL,
|
||
|
`report_teacher_team_opinion` text DEFAULT NULL,
|
||
|
`report_teacher_team_opinion_date` date DEFAULT NULL,
|
||
|
`college_opinion` text DEFAULT NULL,
|
||
|
`college_opinion_date` date DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='开题报告会纪要';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design_reply 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design_reply` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`date` date DEFAULT NULL,
|
||
|
`location` varchar(255) DEFAULT NULL,
|
||
|
`teacher_team_leader_id` char(20) DEFAULT NULL,
|
||
|
`secretary_team_leader_id` char(20) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='答辩';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.graduation_design_reply_opinion_record_score 结构
|
||
|
CREATE TABLE IF NOT EXISTS `graduation_design_reply_opinion_record_score` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`mentor_opinion text` text DEFAULT NULL,
|
||
|
`mentor_opinion_date date` date DEFAULT NULL,
|
||
|
`secretary_record` text DEFAULT NULL,
|
||
|
`secretary_record_date date` date DEFAULT NULL,
|
||
|
`teacher_team_opinion` text DEFAULT NULL,
|
||
|
`teacher_team_score` float DEFAULT NULL,
|
||
|
`teacher_team_opinion_date` date DEFAULT NULL,
|
||
|
`college_opinion` text DEFAULT NULL,
|
||
|
`college_score` float DEFAULT NULL,
|
||
|
`college_opinion_date` date DEFAULT NULL,
|
||
|
`school_opinion` text DEFAULT NULL,
|
||
|
`school_score` float DEFAULT NULL,
|
||
|
`school_opinion_date` date DEFAULT NULL,
|
||
|
`reply_ secretary_record_status` char(1) DEFAULT NULL,
|
||
|
`reply_ teacher_team_score_status` char(1) DEFAULT NULL,
|
||
|
`reply_ college_score_status` char(1) DEFAULT NULL,
|
||
|
`reply_school_score_status` char(1) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='答辩记录表';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.opening_report_secretary_team 结构
|
||
|
CREATE TABLE IF NOT EXISTS `opening_report_secretary_team` (
|
||
|
`leader_student_id` char(20) NOT NULL,
|
||
|
`student1_id` char(20) DEFAULT NULL,
|
||
|
`student2_id` char(20) DEFAULT NULL,
|
||
|
PRIMARY KEY (`leader_student_id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='开题报告秘书组';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.opening_report_teacher_team 结构
|
||
|
CREATE TABLE IF NOT EXISTS `opening_report_teacher_team` (
|
||
|
`leader_teacher_id` char(20) NOT NULL,
|
||
|
`teacher1_id` char(20) DEFAULT NULL,
|
||
|
`teacher2_id` char(20) DEFAULT NULL,
|
||
|
PRIMARY KEY (`leader_teacher_id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='开题报告老师组';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.profession_information 结构
|
||
|
CREATE TABLE IF NOT EXISTS `profession_information` (
|
||
|
`profession_code` char(8) NOT NULL,
|
||
|
`college` varchar(255) DEFAULT NULL,
|
||
|
`department` varchar(255) DEFAULT NULL,
|
||
|
`profession` varchar(255) DEFAULT NULL,
|
||
|
PRIMARY KEY (`profession_code`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='专业信息';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.reply_secretary_team 结构
|
||
|
CREATE TABLE IF NOT EXISTS `reply_secretary_team` (
|
||
|
`leader_student_id` char(20) NOT NULL,
|
||
|
`student1_id` char(20) DEFAULT NULL,
|
||
|
`student2_id` char(20) DEFAULT NULL,
|
||
|
PRIMARY KEY (`leader_student_id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='答辩秘书小组';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.reply_teacher_team 结构
|
||
|
CREATE TABLE IF NOT EXISTS `reply_teacher_team` (
|
||
|
`leader_teacher_id` char(20) NOT NULL,
|
||
|
`teacher1_id` char(20) DEFAULT NULL,
|
||
|
`teacher2_id` char(20) DEFAULT NULL,
|
||
|
PRIMARY KEY (`leader_teacher_id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='答辩教师组';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.student 结构
|
||
|
CREATE TABLE IF NOT EXISTS `student` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`password` char(255) NOT NULL,
|
||
|
`name` char(30) DEFAULT NULL,
|
||
|
`e_mail_location` char(40) DEFAULT NULL,
|
||
|
`phone_number` char(20) DEFAULT NULL,
|
||
|
`grade` char(4) DEFAULT NULL,
|
||
|
`profession_code` char(8) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='学生用户';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
-- 导出 表 gdms.teacher 结构
|
||
|
CREATE TABLE IF NOT EXISTS `teacher` (
|
||
|
`id` char(20) NOT NULL,
|
||
|
`password` char(255) NOT NULL,
|
||
|
`name` char(30) DEFAULT NULL,
|
||
|
`e_mail_location` char(40) DEFAULT NULL,
|
||
|
`phone_number` char(20) DEFAULT NULL,
|
||
|
`job_title` varchar(255) DEFAULT NULL,
|
||
|
`education` varchar(255) DEFAULT NULL,
|
||
|
`profession_code` char(8) DEFAULT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='老师用户';
|
||
|
|
||
|
-- 数据导出被取消选择。
|
||
|
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
|
||
|
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
|
||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|