20250414_sql.sql 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. alter table wf_meeting_apply
  2. modify meeting_room_id varchar(32) null comment '会议室管理主键id(meeting_room)';
  3. -- ---------------------------------------------------------------
  4. -- 教职工职称信息
  5. -- ---------------------------------------------------------------
  6. drop table if exists `professional_title`;
  7. create table `professional_title`
  8. (
  9. id bigint not null comment '主键编号'
  10. primary key,
  11. create_user_id bigint null comment '创建人',
  12. create_date datetime null comment '创建时间',
  13. modify_user_id bigint null comment '修改人',
  14. modify_date datetime null comment '修改时间',
  15. delete_mark int not null comment '删除标记',
  16. enabled_mark int not null comment '有效标志',
  17. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  18. `user_name` varchar(32) default null comment '工号',
  19. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  20. `name` varchar(256) not null comment '职称名称',
  21. `professional_title_no` varchar(256) not null comment '证书编号',
  22. `get_date` date default null comment '取得时间',
  23. `subject_category` varchar(256) default null comment '学科类别',
  24. `be_honored_date` date default null comment '授予时间',
  25. `issuance_date` date default null comment '发证时间',
  26. `qualification_start_date` date default null comment '任职资格开始时间',
  27. `qualification_end_date` date default null comment '任职资格结束时间',
  28. `notice_date` date default null comment '发文时间',
  29. `professional_title_category` varchar(256) default null comment '职称类别',
  30. `job_status` char(1) default null comment '是否现任(0:否;1:是)',
  31. `accord_file_id` bigint default null comment '依据附件id'
  32. ) engine = innodb
  33. default charset = utf8mb4 comment = '教职工职称信息';
  34. alter table textbook_student_claim
  35. add price decimal(15, 6) default 0 null comment '教材确认领取的价格' after textbook_id;
  36. alter table textbook_student_claim
  37. add claim_source int default 0 comment '确认领取来源(1:个人申领发放,当确认领取不能被修改未领取,2:班级申领发放,可以修改为未领取)' after is_claim;
  38. -- ---------------------------------------------------------------
  39. -- 教师资格证信息
  40. -- ---------------------------------------------------------------
  41. drop table if exists `teacher_certification`;
  42. create table `teacher_certification`
  43. (
  44. id bigint not null comment '主键编号'
  45. primary key,
  46. create_user_id bigint null comment '创建人',
  47. create_date datetime null comment '创建时间',
  48. modify_user_id bigint null comment '修改人',
  49. modify_date datetime null comment '修改时间',
  50. delete_mark int not null comment '删除标记',
  51. enabled_mark int not null comment '有效标志',
  52. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  53. `user_name` varchar(32) default null comment '工号',
  54. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  55. `name` varchar(256) not null comment '证书名称',
  56. `certification_no` varchar(256) not null comment '证书编号',
  57. `subject_category` varchar(256) default null comment '任教学科',
  58. `category` varchar(256) default null comment '资格种类',
  59. `certifying_authority` varchar(256) default null comment '发证机构',
  60. `issuance_date` date default null comment '发证时间',
  61. `accord_file_id` bigint default null comment '依据附件id'
  62. ) engine = innodb
  63. default charset = utf8mb4 comment = '教师资格证信息';
  64. -- ---------------------------------------------------------------
  65. -- 考评员信息
  66. -- ---------------------------------------------------------------
  67. drop table if exists `evaluator_information`;
  68. create table `evaluator_information`
  69. (
  70. id bigint not null comment '主键编号'
  71. primary key,
  72. create_user_id bigint null comment '创建人',
  73. create_date datetime null comment '创建时间',
  74. modify_user_id bigint null comment '修改人',
  75. modify_date datetime null comment '修改时间',
  76. delete_mark int not null comment '删除标记',
  77. enabled_mark int not null comment '有效标志',
  78. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  79. `user_name` varchar(32) default null comment '工号',
  80. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  81. `name` varchar(256) not null comment '证书名称',
  82. `certification_no` varchar(256) not null comment '证书编号',
  83. `subject_category` varchar(256) default null comment '任教学科',
  84. `level` varchar(256) default null comment '级别',
  85. `certifying_authority` varchar(256) default null comment '发证机构',
  86. `issuance_date` date default null comment '发证时间',
  87. `validity` date default null comment '有效期',
  88. `accord_file_id` bigint default null comment '依据附件id'
  89. ) engine = innodb
  90. default charset = utf8mb4 comment = '考评员信息';
  91. -- ---------------------------------------------------------------
  92. -- 语言能力信息
  93. -- ---------------------------------------------------------------
  94. drop table if exists `language_competence`;
  95. create table `language_competence`
  96. (
  97. id bigint not null comment '主键编号'
  98. primary key,
  99. create_user_id bigint null comment '创建人',
  100. create_date datetime null comment '创建时间',
  101. modify_user_id bigint null comment '修改人',
  102. modify_date datetime null comment '修改时间',
  103. delete_mark int not null comment '删除标记',
  104. enabled_mark int not null comment '有效标志',
  105. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  106. `user_name` varchar(32) default null comment '工号',
  107. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  108. `name` varchar(256) not null comment '语言种类',
  109. `level` varchar(256) not null comment '等级',
  110. `certification_no` varchar(256) not null comment '证书编号',
  111. `exam_authority` varchar(256) default null comment '测试机构',
  112. `issuance_unit` varchar(256) default null comment '发证单位',
  113. `issuance_date` date default null comment '发证时间',
  114. `accord_file_id` bigint default null comment '依据附件id'
  115. ) engine = innodb
  116. default charset = utf8mb4 comment = '语言能力信息';
  117. -- ---------------------------------------------------------------
  118. -- 教职工合同记录
  119. -- ---------------------------------------------------------------
  120. drop table if exists `faculty_contract`;
  121. create table `faculty_contract`
  122. (
  123. id bigint not null comment '主键编号'
  124. primary key,
  125. create_user_id bigint null comment '创建人',
  126. create_date datetime null comment '创建时间',
  127. modify_user_id bigint null comment '修改人',
  128. modify_date datetime null comment '修改时间',
  129. delete_mark int not null comment '删除标记',
  130. enabled_mark int not null comment '有效标志',
  131. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  132. `user_name` varchar(32) default null comment '工号',
  133. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  134. `start_date` date not null comment '起始日期',
  135. `end_date` date not null comment '结束日期',
  136. `contract_position` varchar(256) default null comment '合同岗位',
  137. `accord_file_id` bigint default null comment '依据附件id'
  138. ) engine = innodb
  139. default charset = utf8mb4 comment = '教职工合同记录';
  140. -- ---------------------------------------------------------------
  141. -- 校外其他协会记录
  142. -- ---------------------------------------------------------------
  143. drop table if exists `outside_associations`;
  144. create table `outside_associations`
  145. (
  146. id bigint not null comment '主键编号'
  147. primary key,
  148. create_user_id bigint null comment '创建人',
  149. create_date datetime null comment '创建时间',
  150. modify_user_id bigint null comment '修改人',
  151. modify_date datetime null comment '修改时间',
  152. delete_mark int not null comment '删除标记',
  153. enabled_mark int not null comment '有效标志',
  154. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  155. `user_name` varchar(32) default null comment '工号',
  156. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  157. `name` varchar(256) not null comment '协会名称',
  158. `join_date` date not null comment '加入时间',
  159. `exit_date` date default null comment '退出时间',
  160. `duty` varchar(256) default null comment '职务',
  161. `remark` varchar(512) default null comment '说明',
  162. `accord_file_id` bigint default null comment '依据附件id'
  163. ) engine = innodb
  164. default charset = utf8mb4 comment = '校外其他协会记录';
  165. -- ---------------------------------------------------------------
  166. -- 骨干教师记录
  167. -- ---------------------------------------------------------------
  168. drop table if exists `core_teacher`;
  169. create table `core_teacher`
  170. (
  171. id bigint not null comment '主键编号'
  172. primary key,
  173. create_user_id bigint null comment '创建人',
  174. create_date datetime null comment '创建时间',
  175. modify_user_id bigint null comment '修改人',
  176. modify_date datetime null comment '修改时间',
  177. delete_mark int not null comment '删除标记',
  178. enabled_mark int not null comment '有效标志',
  179. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  180. `user_name` varchar(32) default null comment '工号',
  181. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  182. `level` varchar(256) not null comment '级别',
  183. `subject_category` varchar(256) not null comment '任教学科',
  184. `certification_no` varchar(256) not null comment '证书编号',
  185. `specialty_dept` varchar(256) default null comment '专业部',
  186. `reference_number` varchar(256) default null comment '文号',
  187. `issuance_date` date default null comment '认证时间',
  188. `remark` varchar(512) default null comment '备注',
  189. `accord_file_id` bigint default null comment '依据附件id'
  190. ) engine = innodb
  191. default charset = utf8mb4 comment = '骨干教师记录';
  192. -- ---------------------------------------------------------------
  193. -- 科研信息记录
  194. -- ---------------------------------------------------------------
  195. drop table if exists `scientific_research`;
  196. create table `scientific_research`
  197. (
  198. id bigint not null comment '主键编号'
  199. primary key,
  200. create_user_id bigint null comment '创建人',
  201. create_date datetime null comment '创建时间',
  202. modify_user_id bigint null comment '修改人',
  203. modify_date datetime null comment '修改时间',
  204. delete_mark int not null comment '删除标记',
  205. enabled_mark int not null comment '有效标志',
  206. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  207. `user_name` varchar(32) default null comment '工号',
  208. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  209. `name` varchar(256) not null comment '科研名称',
  210. `scientific_no` varchar(256) default null comment '科研编号',
  211. `subject_category` varchar(256) default null comment '任教学科',
  212. `level` varchar(256) default null comment '等级',
  213. `certifying_authority` varchar(256) default null comment '发证机构',
  214. `issuance_date` date default null comment '发证时间',
  215. `remark` varchar(512) default null comment '备注',
  216. `accord_file_id` bigint default null comment '依据附件id'
  217. ) engine = innodb
  218. default charset = utf8mb4 comment = '科研信息记录';
  219. -- ---------------------------------------------------------------
  220. -- 岗位信息记录
  221. -- ---------------------------------------------------------------
  222. drop table if exists `job_information`;
  223. create table `job_information`
  224. (
  225. id bigint not null comment '主键编号'
  226. primary key,
  227. create_user_id bigint null comment '创建人',
  228. create_date datetime null comment '创建时间',
  229. modify_user_id bigint null comment '修改人',
  230. modify_date datetime null comment '修改时间',
  231. delete_mark int not null comment '删除标记',
  232. enabled_mark int not null comment '有效标志',
  233. `user_id` bigint not null comment '教职工主键id(xjr_user)',
  234. `user_name` varchar(32) default null comment '工号',
  235. `dept_id` varchar(512) default null comment '部门主键id(xjr_dept)',
  236. `job_category` varchar(256) not null comment '岗位类型',
  237. `job_name` varchar(256) not null comment '岗位名称',
  238. `employ_date` date default null comment '聘用时间',
  239. `employ_no` varchar(256) default null comment '聘用文号',
  240. `leader_status` char(1) default null comment '是否领导岗位',
  241. `job_dept` varchar(256) default null comment '行政岗位部门',
  242. `concurrent_college` varchar(256) default null comment '兼课学院',
  243. `remark` varchar(512) default null comment '备注',
  244. `accord_file_id` bigint default null comment '依据附件id'
  245. ) engine = innodb
  246. default charset = utf8mb4 comment = '岗位信息记录';