drop table if exists m_adjust_result; drop table if exists m_major_apply; drop table if exists m_major_info; drop table if exists m_schedule_arrange; drop table if exists m_special_apply; drop table if exists m_student_info; /*==============================================================*/ /* Table: m_adjust_result */ /*==============================================================*/ create table m_adjust_result ( batch_id char(8), student_id varchar(32), admit_major_id varchar(32), special_flag char(1) ); alter table m_adjust_result comment '分流结果表'; /*==============================================================*/ /* Table: m_major_apply */ /*==============================================================*/ create table m_major_apply ( major_apply_id varchar(32), student_id varchar(32), major_id_1st varchar(32), major_id_2nd varchar(32), major_id_3rd varchar(32), major_id_4th varchar(32), major_id_5th varchar(32), sign text, apply_status char(1), status char(1), adjust_flag char(1), apply_date datetime, create_time datetime, update_time datetime ); alter table m_major_apply comment '专业分流申请表'; /*==============================================================*/ /* Table: m_major_info */ /*==============================================================*/ create table m_major_info ( major_id varchar(32), major_name varchar(32), plan_num int, status char(1), create_time datetime, update_time datetime, update_user_id varchar(32) ); alter table m_major_info comment '专业信息表'; /*==============================================================*/ /* Table: m_schedule_arrange */ /*==============================================================*/ create table m_schedule_arrange ( schedule_id int, schedule_name varchar(32), start_date date, end_date date, create_time datetime, update_time datetime, update_user_id datetime, status char(1) ); alter table m_schedule_arrange comment '日程安排'; /*==============================================================*/ /* Table: m_special_apply */ /*==============================================================*/ create table m_special_apply ( special_apply_id varchar(32), student_id varchar(32), major_id varchar(32), apply_reason text, college_opinion text, aca_affairs_opinion text, leader_opinion text, sign text, guardin_sign text, apply_status char(1), status char(1), apply_date datetime, create_time datetime, update_time datetime ); alter table m_special_apply comment '特别申请'; /*==============================================================*/ /* Table: m_student_info */ /*==============================================================*/ create table m_student_info ( student_id varchar(32), student_name char(10), class_name varchar(32), score decimal(4,4), rank int, phone char(11), gender char(1), guardian_phone char(11), create_time datetime, update_time datetime ); alter table m_student_info comment '学生信息表';