major.sql 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. drop table if exists m_adjust_result;
  2. drop table if exists m_major_apply;
  3. drop table if exists m_major_info;
  4. drop table if exists m_schedule_arrange;
  5. drop table if exists m_special_apply;
  6. drop table if exists m_student_info;
  7. /*==============================================================*/
  8. /* Table: m_adjust_result */
  9. /*==============================================================*/
  10. create table m_adjust_result
  11. (
  12. batch_id char(8),
  13. student_id varchar(32),
  14. admit_major_id varchar(32),
  15. special_flag char(1)
  16. );
  17. alter table m_adjust_result comment '分流结果表';
  18. /*==============================================================*/
  19. /* Table: m_major_apply */
  20. /*==============================================================*/
  21. create table m_major_apply
  22. (
  23. major_apply_id varchar(32),
  24. student_id varchar(32),
  25. major_id_1st varchar(32),
  26. major_id_2nd varchar(32),
  27. major_id_3rd varchar(32),
  28. major_id_4th varchar(32),
  29. major_id_5th varchar(32),
  30. sign text,
  31. apply_status char(1),
  32. status char(1),
  33. adjust_flag char(1),
  34. apply_date datetime,
  35. create_time datetime,
  36. update_time datetime
  37. );
  38. alter table m_major_apply comment '专业分流申请表';
  39. /*==============================================================*/
  40. /* Table: m_major_info */
  41. /*==============================================================*/
  42. create table m_major_info
  43. (
  44. major_id varchar(32),
  45. major_name varchar(32),
  46. plan_num int,
  47. status char(1),
  48. create_time datetime,
  49. update_time datetime,
  50. update_user_id varchar(32)
  51. );
  52. alter table m_major_info comment '专业信息表';
  53. /*==============================================================*/
  54. /* Table: m_schedule_arrange */
  55. /*==============================================================*/
  56. create table m_schedule_arrange
  57. (
  58. schedule_id int,
  59. schedule_name varchar(32),
  60. start_date date,
  61. end_date date,
  62. create_time datetime,
  63. update_time datetime,
  64. update_user_id datetime,
  65. status char(1)
  66. );
  67. alter table m_schedule_arrange comment '日程安排';
  68. /*==============================================================*/
  69. /* Table: m_special_apply */
  70. /*==============================================================*/
  71. create table m_special_apply
  72. (
  73. special_apply_id varchar(32),
  74. student_id varchar(32),
  75. major_id varchar(32),
  76. apply_reason text,
  77. college_opinion text,
  78. aca_affairs_opinion text,
  79. leader_opinion text,
  80. sign text,
  81. guardin_sign text,
  82. apply_status char(1),
  83. status char(1),
  84. apply_date datetime,
  85. create_time datetime,
  86. update_time datetime
  87. );
  88. alter table m_special_apply comment '特别申请';
  89. /*==============================================================*/
  90. /* Table: m_student_info */
  91. /*==============================================================*/
  92. create table m_student_info
  93. (
  94. student_id varchar(32),
  95. student_name char(10),
  96. class_name varchar(32),
  97. score decimal(4,4),
  98. rank int,
  99. phone char(11),
  100. gender char(1),
  101. guardian_phone char(11),
  102. create_time datetime,
  103. update_time datetime
  104. );
  105. alter table m_student_info comment '学生信息表';