stmms_ft.sql 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466
  1. # ************************************************************
  2. # Database: stmms_fenti
  3. # Generation Time: 2017-10-31 06:43:10 +0000
  4. # ************************************************************
  5. # Dump of table b_school
  6. # ------------------------------------------------------------
  7. USE `stmms_ft`;
  8. DROP TABLE IF EXISTS `b_school`;
  9. CREATE TABLE `b_school`
  10. (
  11. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  12. `name` varchar(64) NOT NULL COMMENT '名称',
  13. `province` varchar(16) NOT NULL COMMENT '省份',
  14. `city` varchar(16) NOT NULL COMMENT '城市',
  15. `code` varchar(64) DEFAULT NULL COMMENT '代码',
  16. `parent_id` int(11) DEFAULT NULL COMMENT '父机构ID',
  17. `sub_code` varchar(64) DEFAULT NULL COMMENT '子机构代码',
  18. `address` varchar(128) DEFAULT NULL COMMENT '地址',
  19. `phone` varchar(32) DEFAULT NULL COMMENT '电话',
  20. `logo_url` text DEFAULT NULL COMMENT '图片地址',
  21. `description` varchar(128) DEFAULT NULL COMMENT '描述',
  22. `enable` tinyint(1) NOT NULL COMMENT '是否禁用',
  23. `double_track` tinyint(1) NOT NULL COMMENT '双评轨迹',
  24. `access_key` varchar(64) DEFAULT NULL COMMENT 'AccessKey',
  25. `access_secret` varchar(64) DEFAULT NULL COMMENT 'AccessSecret',
  26. `group_delete_check` tinyint(1) NOT NULL COMMENT '开启删除分组授权码',
  27. `create_time` datetime NOT NULL COMMENT '创建时间',
  28. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  29. PRIMARY KEY (`id`),
  30. UNIQUE KEY `index1` (`access_key`)
  31. ) ENGINE = InnoDB
  32. DEFAULT CHARSET = utf8mb4 COMMENT ='学校表';
  33. # Dump of table b_sys_config
  34. # ------------------------------------------------------------
  35. DROP TABLE IF EXISTS `b_sys_config`;
  36. CREATE TABLE `b_sys_config`
  37. (
  38. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  39. `type` varchar(64) NOT NULL COMMENT '类型',
  40. `description` varchar(128) DEFAULT NULL COMMENT '描述',
  41. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  42. PRIMARY KEY (`id`),
  43. UNIQUE KEY `index1` (`type`)
  44. ) ENGINE = InnoDB
  45. DEFAULT CHARSET = utf8mb4 COMMENT ='配置表';
  46. LOCK TABLES `b_sys_config` WRITE;
  47. INSERT INTO `b_sys_config` (`id`, `type`, `description`, `update_time`)
  48. VALUES (1, 'FILE_SERVER', 'http://127.0.0.1:9000/', '2021-08-09 15:38:58');
  49. INSERT INTO `b_sys_config` (`id`, `type`, `description`, `update_time`)
  50. VALUES (2, 'MARK_TIME', '30', '2021-08-09 15:38:58');
  51. INSERT INTO `b_sys_config` (`id`, `type`, `description`, `update_time`)
  52. VALUES (3, 'AUTO_REPORT', null, '2021-08-09 15:38:58');
  53. INSERT INTO `b_sys_config` (`id`, `type`, `description`, `update_time`)
  54. VALUES (4, 'STUDENT_SHEET_COUNT', null, '2021-08-09 15:38:58');
  55. UNLOCK TABLES;
  56. # Dump of table b_sys_auth
  57. # ------------------------------------------------------------
  58. DROP TABLE IF EXISTS `b_sys_auth`;
  59. CREATE TABLE `b_sys_auth`
  60. (
  61. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  62. `access_key` varchar(255) DEFAULT NULL COMMENT 'AccessKey',
  63. `access_secret` varchar(255) DEFAULT NULL COMMENT 'AccessSecret',
  64. `description` text DEFAULT NULL COMMENT '离线授权证书',
  65. `type` varchar(16) NOT NULL COMMENT '授权类型',
  66. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  67. PRIMARY KEY (`id`)
  68. ) ENGINE = InnoDB
  69. DEFAULT CHARSET = utf8mb4 COMMENT ='授权配置表';
  70. # Dump of table b_user
  71. # ------------------------------------------------------------
  72. DROP TABLE IF EXISTS `b_user`;
  73. CREATE TABLE `b_user`
  74. (
  75. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  76. `login_name` varchar(64) NOT NULL COMMENT '登录名',
  77. `name` varchar(64) NOT NULL COMMENT '名称',
  78. `password` varchar(64) NOT NULL COMMENT '密码',
  79. `role` varchar(16) NOT NULL COMMENT '角色',
  80. `source` varchar(16) NOT NULL COMMENT '来源',
  81. `enable` tinyint(1) NOT NULL COMMENT '是否启用',
  82. `school_id` int(11) NOT NULL COMMENT '所属学校ID',
  83. `related_account` varchar(64) DEFAULT NULL COMMENT '关联外部用户',
  84. `last_login_time` datetime DEFAULT NULL COMMENT '最后一次登录时间',
  85. `last_login_ip` varchar(64) DEFAULT NULL COMMENT '最后一次登录IP',
  86. `created_time` datetime NOT NULL COMMENT '创建时间',
  87. `updated_time` datetime DEFAULT NULL COMMENT '修改时间',
  88. `access_token` varchar(64) DEFAULT NULL COMMENT '访问令牌',
  89. `access_token_refresh_time` datetime DEFAULT NULL COMMENT '访问令牌刷新时间',
  90. `scan_token` varchar(64) DEFAULT NULL COMMENT '扫描访问令牌',
  91. `scan_token_invalid_time` datetime DEFAULT NULL COMMENT '扫描访问令牌刷新时间',
  92. `description` varchar(128) DEFAULT NULL COMMENT '描述',
  93. `empno` varchar(128) DEFAULT NULL COMMENT '工号',
  94. `random_password` varchar(64) DEFAULT NULL COMMENT '随机密码',
  95. PRIMARY KEY (`id`),
  96. UNIQUE KEY `index1` (`login_name`),
  97. UNIQUE KEY `index2` (`school_id`, `related_account`),
  98. KEY `index3` (`school_id`, `role`, `source`)
  99. ) ENGINE = InnoDB
  100. DEFAULT CHARSET = utf8mb4 COMMENT ='用户表';
  101. LOCK TABLES `b_user` WRITE;
  102. INSERT INTO `b_user` (`id`, `login_name`, `name`, `password`, `role`, `source`, `enable`, `school_id`,
  103. `created_time`, `updated_time`)
  104. VALUES (1, 'admin', '超级管理员', 'd0e915689fc1f1e19e1a036c22bdfeab', 'SYS_ADMIN', 'INTERNAL', 1, 0,
  105. '2020-08-01 12:00:00', '2020-08-01 12:00:00');
  106. UNLOCK TABLES;
  107. # Dump of table eb_user_exam
  108. # ------------------------------------------------------------
  109. DROP TABLE IF EXISTS `eb_user_exam`;
  110. CREATE TABLE `eb_user_exam`
  111. (
  112. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  113. `user_id` int(11) NOT NULL COMMENT '用户ID',
  114. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  115. PRIMARY KEY (`id`),
  116. UNIQUE KEY `index1` (`user_id`, `exam_id`)
  117. ) ENGINE = InnoDB
  118. DEFAULT CHARSET = utf8mb4 COMMENT ='用户考试关联表';
  119. # Dump of table eb_subject_user
  120. # ------------------------------------------------------------
  121. DROP TABLE IF EXISTS `eb_subject_user`;
  122. CREATE TABLE `eb_subject_user`
  123. (
  124. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  125. `user_id` int(11) NOT NULL COMMENT '用户ID',
  126. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  127. PRIMARY KEY (`id`),
  128. UNIQUE KEY `index1` (`user_id`, `subject_code`)
  129. ) ENGINE = InnoDB
  130. DEFAULT CHARSET = utf8mb4 COMMENT ='用户科目关联表';
  131. # Dump of table eb_check_student
  132. # ------------------------------------------------------------
  133. DROP TABLE IF EXISTS `eb_check_student`;
  134. CREATE TABLE `eb_check_student`
  135. (
  136. `student_id` int(11) NOT NULL COMMENT '学生ID',
  137. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  138. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  139. `type` varchar(16) NOT NULL COMMENT '类型',
  140. `is_checked` tinyint(1) NOT NULL COMMENT '是否已处理',
  141. `update_time` datetime DEFAULT NULL COMMENT '处理时间',
  142. PRIMARY KEY (`student_id`),
  143. KEY `index1` (`exam_id`, `subject_code`, `type`, `is_checked`)
  144. ) ENGINE = InnoDB
  145. DEFAULT CHARSET = utf8mb4 COMMENT ='审核学生表';
  146. # Dump of table eb_collation_label
  147. # ------------------------------------------------------------
  148. DROP TABLE IF EXISTS `eb_collation_label`;
  149. CREATE TABLE `eb_collation_label`
  150. (
  151. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  152. `code` varchar(64) NOT NULL COMMENT '代码',
  153. `name` varchar(255) NOT NULL COMMENT '名称',
  154. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  155. PRIMARY KEY (`exam_id`, `code`)
  156. ) ENGINE = InnoDB
  157. DEFAULT CHARSET = utf8mb4 COMMENT ='回卷整理标识表';
  158. # Dump of table eb_data_sync
  159. # ------------------------------------------------------------
  160. DROP TABLE IF EXISTS `eb_data_sync`;
  161. CREATE TABLE `eb_data_sync`
  162. (
  163. `examId` int(11) NOT NULL COMMENT '考试ID',
  164. `school_id` int(11) DEFAULT NULL COMMENT '学校ID',
  165. `cloud_exam_id` bigint(20) NOT NULL COMMENT '云平台考试ID',
  166. `finished` tinyint(1) NOT NULL COMMENT '是否完成',
  167. `source` varchar(16) NOT NULL COMMENT '数据来源',
  168. `next_id` bigint(20) DEFAULT NULL COMMENT '下一位考生ID',
  169. `root_org_id` varchar(32) DEFAULT NULL COMMENT '机构ID',
  170. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  171. `app_id` varchar(128) DEFAULT NULL COMMENT '项目ID',
  172. `access_key` varchar(64) DEFAULT NULL COMMENT '密匙',
  173. `access_secret` varchar(64) DEFAULT NULL COMMENT '密钥',
  174. `student_url` varchar(128) NOT NULL COMMENT '考生API URL',
  175. `subject_url` varchar(128) NOT NULL COMMENT '科目API URL',
  176. `subject_paper_url` varchar(255) NOT NULL COMMENT '试卷详情API URL',
  177. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  178. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  179. PRIMARY KEY (`examId`)
  180. ) ENGINE = InnoDB
  181. DEFAULT CHARSET = utf8mb4 COMMENT ='数据同步表';
  182. # Dump of table eb_exam
  183. # ------------------------------------------------------------
  184. DROP TABLE IF EXISTS `eb_exam`;
  185. CREATE TABLE `eb_exam`
  186. (
  187. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  188. `name` varchar(64) NOT NULL COMMENT '考试名称',
  189. `school_id` int(11) NOT NULL COMMENT '学校ID',
  190. `code` varchar(64) DEFAULT NULL COMMENT '考试代码',
  191. `exam_time` datetime NOT NULL COMMENT '考试时间',
  192. `type` varchar(16) NOT NULL COMMENT '类型',
  193. `status` varchar(16) NOT NULL COMMENT '状态',
  194. `card_type` varchar(16) DEFAULT NULL COMMENT '题卡类型',
  195. `force_special_tag` tinyint(1) NOT NULL COMMENT '强制标记',
  196. `forbidden_info` tinyint(1) NOT NULL COMMENT '是否屏蔽个人信息',
  197. `forbidden_score` tinyint(1) NOT NULL COMMENT '是否屏蔽查询个人信息',
  198. `objective_status` varchar(16) NOT NULL COMMENT '客观题统分状态',
  199. `sas_config` text DEFAULT NULL COMMENT '统计配置',
  200. `sheet_config` text DEFAULT NULL COMMENT '原图遮盖配置',
  201. `slice_config` text DEFAULT NULL COMMENT '裁切图坐标',
  202. `description` varchar(128) DEFAULT NULL COMMENT '描述',
  203. `creator_id` int(11) DEFAULT NULL COMMENT '创建人',
  204. `create_time` datetime NOT NULL COMMENT '创建时间',
  205. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  206. `mark_start_time` datetime DEFAULT NULL COMMENT '考试开始时间',
  207. `mark_end_time` datetime DEFAULT NULL COMMENT '考试结束时间',
  208. `sheet_view` tinyint(1) NOT NULL COMMENT '原卷显示功能',
  209. `mark_mode` varchar(16) DEFAULT NULL COMMENT '强制评卷模式',
  210. `scan_config` text DEFAULT NULL COMMENT '扫描配置',
  211. `auto_scroll` tinyint(1) NOT NULL COMMENT '评卷提交自动定位',
  212. `enable_split` tinyint(1) NOT NULL COMMENT '自动对切题卡',
  213. `show_reject` tinyint(1) NOT NULL COMMENT '显示打回前原分值',
  214. `inspect_unrepeated` tinyint(1) NOT NULL COMMENT '全卷多次复核时不能为同一账号',
  215. `inspect_scroll_bottom` tinyint(1) NOT NULL COMMENT '全卷复核时强制试卷拉到底部',
  216. `remark_count` int(11) DEFAULT NULL COMMENT '回评卷数',
  217. `show_objective_score` tinyint(1) NOT NULL COMMENT '是否显示客观分',
  218. `inspect_round_limit` tinyint(1) NOT NULL COMMENT '全卷复核进度100%时才能再次复核',
  219. PRIMARY KEY (`id`),
  220. UNIQUE KEY `index1` (`school_id`, `code`)
  221. ) ENGINE = InnoDB
  222. DEFAULT CHARSET = utf8mb4 COMMENT ='考试表';
  223. # Dump of table eb_exam_package
  224. # ------------------------------------------------------------
  225. DROP TABLE IF EXISTS `eb_exam_package`;
  226. CREATE TABLE `eb_exam_package`
  227. (
  228. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  229. `code` varchar(64) NOT NULL COMMENT '试卷袋编号',
  230. `pic_count` int(11) NOT NULL COMMENT '上传图片数量',
  231. PRIMARY KEY (`exam_id`, `code`)
  232. ) ENGINE = InnoDB
  233. DEFAULT CHARSET = utf8mb4 COMMENT ='卷袋信息表';
  234. # Dump of table eb_exam_question
  235. # ------------------------------------------------------------
  236. DROP TABLE IF EXISTS `eb_exam_question`;
  237. CREATE TABLE `eb_exam_question`
  238. (
  239. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  240. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  241. `subject_code` varchar(32) NOT NULL DEFAULT '' COMMENT '科目代码',
  242. `paper_type` varchar(8) NOT NULL COMMENT '试卷类型',
  243. `is_objective` tinyint(1) NOT NULL COMMENT '是否客观题',
  244. `group_number` int(11) DEFAULT NULL COMMENT '分组序号',
  245. `main_number` int(11) NOT NULL COMMENT '大题号',
  246. `sub_number` varchar(32) NOT NULL COMMENT '小题号',
  247. `main_title` varchar(128) NOT NULL COMMENT '大题名称',
  248. `name` varchar(128) DEFAULT NULL COMMENT '名称',
  249. `answer` varchar(16) DEFAULT NULL COMMENT '正确答案',
  250. `total_score` double NOT NULL COMMENT '满分',
  251. `track_count` int(11) NOT NULL COMMENT '给分次数',
  252. `interval_score` double NOT NULL COMMENT '评卷间隔分',
  253. `objective_policy` varchar(16) DEFAULT NULL COMMENT '客观题判分策略',
  254. `question_type` varchar(32) DEFAULT NULL COMMENT '题型',
  255. `arbitrate_threshold` double DEFAULT NULL COMMENT '仲裁阈值',
  256. PRIMARY KEY (`id`),
  257. KEY `index1` (`exam_id`, `subject_code`, `is_objective`, `main_number`, `sub_number`, `paper_type`)
  258. ) ENGINE = InnoDB
  259. DEFAULT CHARSET = utf8mb4 COMMENT ='小题信息表';
  260. # Dump of table eb_exam_student
  261. # ------------------------------------------------------------
  262. DROP TABLE IF EXISTS `eb_exam_student`;
  263. CREATE TABLE `eb_exam_student`
  264. (
  265. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  266. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  267. `school_id` int(11) NOT NULL COMMENT '学校ID',
  268. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  269. `subject_name` varchar(32) NOT NULL COMMENT '科目名称',
  270. `paper_type` varchar(8) NOT NULL COMMENT '试卷类型',
  271. `exam_number` varchar(64) NOT NULL COMMENT '准考证号',
  272. `secret_number` varchar(64) NOT NULL COMMENT '密号',
  273. `student_code` varchar(64) NOT NULL COMMENT '学号',
  274. `name` varchar(64) NOT NULL COMMENT '姓名',
  275. `package_code` varchar(64) DEFAULT NULL COMMENT '试卷袋编号',
  276. `campus_name` varchar(64) DEFAULT NULL COMMENT '学习中心名称',
  277. `exam_site` varchar(32) DEFAULT NULL COMMENT '考点',
  278. `exam_room` varchar(32) DEFAULT NULL COMMENT '考场',
  279. `remark` varchar(128) DEFAULT NULL COMMENT '备注',
  280. `batch_code` varchar(32) DEFAULT NULL COMMENT '扫描批次号',
  281. `objective_page_count` int(11) NOT NULL COMMENT '客观题图数量',
  282. `sheet_count` int(11) NOT NULL COMMENT '原图数量',
  283. `slice_count` int(11) NOT NULL COMMENT '小图数量',
  284. `answers` text COMMENT '客观题识别结果',
  285. `is_upload` tinyint(1) NOT NULL COMMENT '是否已上传',
  286. `is_absent` tinyint(1) NOT NULL COMMENT '是否缺考',
  287. `is_manual_absent` tinyint(1) NOT NULL COMMENT '是否人工指定缺考',
  288. `is_breach` tinyint(1) NOT NULL COMMENT '是否违纪',
  289. `is_exception` tinyint(1) NOT NULL COMMENT '是否数据异常',
  290. `is_trial` tinyint(1) NOT NULL COMMENT '是否试评',
  291. `upload_time` datetime DEFAULT NULL COMMENT '上传时间',
  292. `inspect_time` datetime DEFAULT NULL COMMENT '复核时间',
  293. `inspector_id` int(11) DEFAULT NULL COMMENT '复核人ID',
  294. `inspect_count` int(11) NOT NULL COMMENT '复核次数',
  295. `objective_score` double DEFAULT NULL COMMENT '客观总分',
  296. `objective_score_list` text COMMENT '客观得分明细',
  297. `subjective_status` varchar(16) NOT NULL COMMENT '主观题状态',
  298. `subjective_score` double DEFAULT NULL COMMENT '主观总分',
  299. `subjective_score_list` text COMMENT '主观得分明细',
  300. `subject_level` varchar(64) DEFAULT NULL COMMENT '层次',
  301. `subject_category` varchar(64) DEFAULT NULL COMMENT '专业类型',
  302. `college` varchar(64) NOT NULL COMMENT '学院',
  303. `class_name` varchar(64) NOT NULL COMMENT '班级',
  304. `teacher` varchar(64) NOT NULL COMMENT '任课老师',
  305. `card_number` int(11) DEFAULT NULL COMMENT '题卡号',
  306. `score_verify_user` int(11) DEFAULT NULL COMMENT '成绩校验人ID',
  307. `score_verify_time` datetime DEFAULT NULL COMMENT '成绩校验时间',
  308. `score_verify_flagged` tinyint(1) DEFAULT NULL COMMENT '成绩校验标记结果',
  309. `inspected` tinyint(1) NOT NULL COMMENT '当前轮次是否已审核',
  310. `collation_label_code` varchar(64) DEFAULT NULL COMMENT '回卷标识代码',
  311. PRIMARY KEY (`id`),
  312. UNIQUE KEY `index1` (`exam_id`, `exam_number`),
  313. UNIQUE KEY `index2` (`exam_id`, `secret_number`),
  314. KEY `index3` (`exam_id`, `subject_code`, `is_upload`, `is_absent`, `is_breach`)
  315. ) ENGINE = InnoDB
  316. DEFAULT CHARSET = utf8mb4 COMMENT ='考试考生库';
  317. # Dump of table eb_inspect_history
  318. # ------------------------------------------------------------
  319. DROP TABLE IF EXISTS `eb_inspect_history`;
  320. CREATE TABLE `eb_inspect_history`
  321. (
  322. `id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  323. `exam_id` INT(11) NOT NULL COMMENT '考试ID',
  324. `subject_code` VARCHAR(32) NOT NULL COMMENT '科目代码',
  325. `inspect_time` DATETIME NOT NULL COMMENT '复核时间',
  326. `inspector_id` INT(11) NOT NULL COMMENT '复核人ID',
  327. `student_id` INT(11) NOT NULL COMMENT '考生ID',
  328. `inspect_round` INT(11) NOT NULL COMMENT '复核轮数',
  329. PRIMARY KEY (`id`),
  330. UNIQUE KEY `index1` (`student_id`, `inspect_round`)
  331. ) ENGINE = INNODB
  332. DEFAULT CHARSET = utf8mb4 COMMENT = '复核记录表';
  333. # Dump of table eb_exam_subject
  334. # ------------------------------------------------------------
  335. DROP TABLE IF EXISTS `eb_exam_subject`;
  336. CREATE TABLE `eb_exam_subject`
  337. (
  338. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  339. `code` varchar(32) NOT NULL COMMENT '科目代码',
  340. `name` varchar(32) NOT NULL COMMENT '科目名称',
  341. `level` varchar(64) DEFAULT NULL COMMENT '层次',
  342. `category` varchar(64) DEFAULT NULL COMMENT '专业类型',
  343. `objective_score` double NOT NULL COMMENT '客观题满分',
  344. `subjective_score` double NOT NULL COMMENT '主观题满分',
  345. `total_score` double NOT NULL COMMENT '全卷满分',
  346. `upload_count` int(11) NOT NULL COMMENT '已上传人数',
  347. `trial_count` int(11) DEFAULT NULL COMMENT '试评数量',
  348. `remark` varchar(128) DEFAULT NULL COMMENT '备注',
  349. `slice_config` text DEFAULT NULL COMMENT '裁切图配置',
  350. `sheet_config` text DEFAULT NULL COMMENT '原图遮盖配置',
  351. `sas_config` text DEFAULT NULL COMMENT '统计配置',
  352. `card_type` varchar(16) DEFAULT NULL COMMENT '题卡类型',
  353. `paper_file_type` varchar(16) DEFAULT NULL COMMENT '试卷文件类型',
  354. `answer_file_type` varchar(16) DEFAULT NULL COMMENT '标答文件类型',
  355. `auto_scroll` tinyint(1) DEFAULT NULL COMMENT '评卷提交自动定位',
  356. `enable_split` tinyint(1) DEFAULT NULL COMMENT '自动对切题卡',
  357. `display_question_name` tinyint(1) NOT NULL COMMENT '显示题目昵称',
  358. `inspect_round` INT(11) NOT NULL DEFAULT 1 COMMENT '复核轮数',
  359. `selective` tinyint(1) NOT NULL COMMENT '选做题科目',
  360. PRIMARY KEY (`exam_id`, `code`)
  361. ) ENGINE = InnoDB
  362. DEFAULT CHARSET = utf8mb4 COMMENT ='考试科目表';
  363. # Dump of table eb_marker
  364. # ------------------------------------------------------------
  365. DROP TABLE IF EXISTS `eb_marker`;
  366. CREATE TABLE `eb_marker`
  367. (
  368. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  369. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  370. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  371. `group_number` int(11) NOT NULL COMMENT '分组编号',
  372. `user_id` int(11) NOT NULL COMMENT '用户ID',
  373. `enable` tinyint(1) NOT NULL COMMENT '是否启用',
  374. `mode` varchar(16) DEFAULT NULL COMMENT '强制评卷模式',
  375. `top_count` int(11) DEFAULT NULL COMMENT '评卷数上限',
  376. `finish_count` int(11) DEFAULT NULL COMMENT '完成数量',
  377. `valid_count` int(11) DEFAULT NULL COMMENT '有效数量',
  378. `reject_count` int(11) DEFAULT NULL COMMENT '打回次数',
  379. `avg_score` double DEFAULT NULL COMMENT '平均分',
  380. `avg_speed` double DEFAULT NULL COMMENT '平均时长',
  381. `stdev_score` double DEFAULT NULL COMMENT '标准差',
  382. `finish_count_na` int(11) DEFAULT NULL COMMENT '完成数量不含仲裁',
  383. `valid_count_na` int(11) DEFAULT NULL COMMENT '有效数量不含仲裁',
  384. `avg_score_na` double DEFAULT NULL COMMENT '平均分不含仲裁',
  385. `avg_speed_na` double DEFAULT NULL COMMENT '平均时长不含仲裁',
  386. `stdev_score_na` double DEFAULT NULL COMMENT '标准差不含仲裁',
  387. `mark_setting` text DEFAULT NULL COMMENT '个性化评卷参数设置',
  388. PRIMARY KEY (`id`),
  389. KEY `index1` (`user_id`),
  390. KEY `index2` (`exam_id`, `subject_code`, `group_number`)
  391. ) ENGINE = InnoDB
  392. DEFAULT CHARSET = utf8mb4 COMMENT ='评卷员表';
  393. # Dump of table eb_marker_class
  394. # ------------------------------------------------------------
  395. DROP TABLE IF EXISTS `eb_marker_class`;
  396. CREATE TABLE `eb_marker_class`
  397. (
  398. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  399. `user_id` int(11) NOT NULL COMMENT '用户ID',
  400. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  401. `class_name` varchar(64) DEFAULT NULL COMMENT '班级名称',
  402. PRIMARY KEY (`id`),
  403. UNIQUE KEY `index1` (`user_id`, `exam_id`, `class_name`)
  404. ) ENGINE = InnoDB
  405. DEFAULT CHARSET = utf8mb4 COMMENT ='评卷员班级表';
  406. # Dump of table eb_mark_group
  407. # ------------------------------------------------------------
  408. DROP TABLE IF EXISTS `eb_mark_group`;
  409. CREATE TABLE `eb_mark_group`
  410. (
  411. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  412. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  413. `number` int(11) NOT NULL COMMENT '序号',
  414. `pic_list` text DEFAULT NULL COMMENT '小图配置',
  415. `total_score` double NOT NULL COMMENT '满分',
  416. `double_rate` double DEFAULT NULL COMMENT '双评比例',
  417. `arbitrate_threshold` double DEFAULT NULL COMMENT '仲裁阈值',
  418. `arbitrate_type` varchar(16) DEFAULT NULL COMMENT '仲裁方式',
  419. `score_policy` varchar(16) DEFAULT NULL COMMENT '合分策略',
  420. `third_policy` varchar(32) DEFAULT NULL COMMENT '三评规则',
  421. `mark_mode` varchar(16) DEFAULT NULL COMMENT '强制评卷模式',
  422. `sheet_view` tinyint(1) NOT NULL COMMENT '是否允许查看原卷',
  423. `enable_all_zero` tinyint(1) NOT NULL COMMENT '是否启用全零分',
  424. `status` varchar(16) NOT NULL COMMENT '评卷状态',
  425. `build_time` datetime DEFAULT NULL COMMENT '最后生成任务时间',
  426. `library_count` int(11) NOT NULL COMMENT '任务总量',
  427. `marked_count` int(11) NOT NULL COMMENT '已评数量',
  428. `left_count` int(11) NOT NULL COMMENT '剩余数量',
  429. `is_selective` tinyint(1) DEFAULT NULL COMMENT '是否选做题分组',
  430. PRIMARY KEY (`exam_id`, `subject_code`, `number`)
  431. ) ENGINE = InnoDB
  432. DEFAULT CHARSET = utf8mb4 COMMENT ='评卷分组表';
  433. # Dump of table eb_mark_group_student
  434. # ------------------------------------------------------------
  435. DROP TABLE IF EXISTS `eb_mark_group_student`;
  436. CREATE TABLE `eb_mark_group_student`
  437. (
  438. `student_id` int(11) NOT NULL COMMENT '考生ID',
  439. `group_number` int(11) NOT NULL COMMENT '分组ID',
  440. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  441. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  442. `status` varchar(16) NOT NULL COMMENT '状态',
  443. PRIMARY KEY (`student_id`, `group_number`),
  444. KEY `index1` (`exam_id`, `subject_code`, `group_number`, `status`)
  445. ) ENGINE = InnoDB
  446. DEFAULT CHARSET = utf8mb4 COMMENT ='考生分组状态表';
  447. # Dump of table eb_subjective_score
  448. # ------------------------------------------------------------
  449. DROP TABLE IF EXISTS `eb_subjective_score`;
  450. CREATE TABLE `eb_subjective_score`
  451. (
  452. `student_id` int(11) NOT NULL COMMENT '考生ID',
  453. `main_number` int(11) NOT NULL COMMENT '大题号',
  454. `sub_number` varchar(32) NOT NULL COMMENT '小题号',
  455. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  456. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  457. `group_number` int(11) NOT NULL COMMENT '分组序号',
  458. `group_score` double NOT NULL COMMENT '分组得分',
  459. `main_score` double NOT NULL COMMENT '大题得分',
  460. `score` double NOT NULL COMMENT '小题得分',
  461. `unanswered_count` int(11) NOT NULL COMMENT '未作答的步骤数量',
  462. `uncalculate` tinyint(1) NOT NULL COMMENT '是否合分',
  463. `rejected` tinyint(1) NOT NULL COMMENT '是否被打回',
  464. PRIMARY KEY (`student_id`, `main_number`, `sub_number`),
  465. KEY `index1` (`exam_id`, `subject_code`, `main_number`, `main_score`)
  466. ) ENGINE = InnoDB
  467. DEFAULT CHARSET = utf8mb4 COMMENT ='主观题得分明细表';
  468. # Dump of table eb_selective_group
  469. # ------------------------------------------------------------
  470. DROP TABLE IF EXISTS `eb_selective_group`;
  471. CREATE TABLE `eb_selective_group`
  472. (
  473. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  474. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  475. `main_number` int(11) NOT NULL COMMENT '大题号',
  476. `selective_count` int(11) NOT NULL COMMENT '选做数量',
  477. `selective_index` int(11) NOT NULL COMMENT '选做分组序号',
  478. `selective_part` int(11) NOT NULL COMMENT '选做题分区号',
  479. `score_policy` varchar(64) NOT NULL COMMENT '合分方式',
  480. PRIMARY KEY (`exam_id`, `subject_code`, `main_number`)
  481. ) ENGINE = InnoDB
  482. DEFAULT CHARSET = utf8mb4 COMMENT ='选做题分组表';
  483. # Dump of table eb_selective_student
  484. # ------------------------------------------------------------
  485. DROP TABLE IF EXISTS `eb_selective_student`;
  486. CREATE TABLE `eb_selective_student`
  487. (
  488. `student_id` int(11) NOT NULL COMMENT '考生ID',
  489. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  490. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  491. `muti_selective` tinyint(1) NOT NULL COMMENT '是否多选做',
  492. `less_selective` tinyint(1) NOT NULL COMMENT '是否少选做',
  493. `not_selective` tinyint(1) NOT NULL COMMENT '是否未选做',
  494. PRIMARY KEY (`student_id`),
  495. KEY `index1` (`exam_id`, `subject_code`)
  496. ) ENGINE = InnoDB
  497. DEFAULT CHARSET = utf8mb4 COMMENT ='选做题考生状态表';
  498. # Dump of table eb_operation_log
  499. # ------------------------------------------------------------
  500. DROP TABLE IF EXISTS `eb_operation_log`;
  501. CREATE TABLE `eb_operation_log`
  502. (
  503. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  504. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  505. `school_id` int(11) NOT NULL COMMENT '学校ID',
  506. `type` varchar(16) NOT NULL COMMENT '类型',
  507. `menu` varchar(128) DEFAULT NULL COMMENT '菜单',
  508. `description` varchar(128) DEFAULT NULL COMMENT '详情',
  509. `is_marker` tinyint(1) NOT NULL COMMENT '是否评卷员',
  510. `operator_id` int(11) NOT NULL COMMENT '操作人ID',
  511. `login_name` varchar(64) NOT NULL COMMENT '登录名',
  512. `ip_address` varchar(128) DEFAULT NULL COMMENT '访问地址',
  513. `create_time` datetime NOT NULL COMMENT '创建时间',
  514. PRIMARY KEY (`id`),
  515. KEY `index1` (`exam_id`, `school_id`, `type`)
  516. ) ENGINE = InnoDB
  517. DEFAULT CHARSET = utf8mb4 COMMENT ='考试操作记录表';
  518. # Dump of table m_arbitrate_history
  519. # ------------------------------------------------------------
  520. DROP TABLE IF EXISTS `m_arbitrate_history`;
  521. CREATE TABLE `m_arbitrate_history`
  522. (
  523. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
  524. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  525. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  526. `group_number` int(11) NOT NULL COMMENT '大题号',
  527. `exam_number` varchar(64) NOT NULL COMMENT '准考证号',
  528. `secret_number` varchar(64) NOT NULL COMMENT '考生密号',
  529. `student_id` int(11) NOT NULL COMMENT '考生ID',
  530. `status` varchar(16) NOT NULL COMMENT '状态',
  531. `user_id` int(11) DEFAULT NULL COMMENT '处理人ID',
  532. `total_score` double DEFAULT NULL COMMENT '总分',
  533. `score_list` text DEFAULT NULL COMMENT '给分明细',
  534. `unanswered_count` int(11) DEFAULT NULL COMMENT '未作答的步骤数量',
  535. `question_index` text DEFAULT NULL COMMENT '题目序号',
  536. `create_time` datetime NOT NULL COMMENT '创建时间',
  537. `update_time` datetime DEFAULT NULL COMMENT '处理时间',
  538. PRIMARY KEY (`id`),
  539. KEY `index1` (`exam_id`, `subject_code`, `group_number`, `status`),
  540. KEY `index2` (`user_id`, `status`, `update_time`),
  541. KEY `index3` (`student_id`, `status`)
  542. ) ENGINE = InnoDB
  543. DEFAULT CHARSET = utf8mb4 COMMENT ='仲裁记录表';
  544. # Dump of table m_library
  545. # ------------------------------------------------------------
  546. DROP TABLE IF EXISTS `m_library`;
  547. CREATE TABLE `m_library`
  548. (
  549. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  550. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  551. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  552. `group_number` int(11) NOT NULL COMMENT '大题号',
  553. `student_id` int(11) NOT NULL COMMENT '考生ID',
  554. `exam_number` varchar(64) NOT NULL COMMENT '准考证号',
  555. `secret_number` varchar(64) NOT NULL COMMENT '考生密号',
  556. `task_number` int(11) NOT NULL COMMENT '多评任务序号',
  557. `status` varchar(16) NOT NULL COMMENT '状态',
  558. `marker_id` int(11) DEFAULT NULL COMMENT '评卷员ID',
  559. `marker_time` datetime DEFAULT NULL COMMENT '评卷时间',
  560. `marker_score` double DEFAULT NULL COMMENT '评卷总分',
  561. `marker_score_list` text DEFAULT NULL COMMENT '评卷给分明细',
  562. `marker_spent` int(11) DEFAULT NULL COMMENT '评卷时长',
  563. `header_id` int(11) DEFAULT NULL COMMENT '科组长ID',
  564. `header_time` datetime DEFAULT NULL COMMENT '科组长评卷时间',
  565. `header_score` double DEFAULT NULL COMMENT '科组长总分',
  566. `header_score_list` text DEFAULT NULL COMMENT '科组长给分明细',
  567. `unanswered_count` int(11) DEFAULT NULL COMMENT '未作答的步骤数量',
  568. `reject_reason` varchar(128) DEFAULT NULL COMMENT '打回原因',
  569. PRIMARY KEY (`id`),
  570. KEY `index1` (`exam_id`, `subject_code`, `group_number`, `status`),
  571. UNIQUE KEY `index2` (`student_id`, `group_number`, `task_number`),
  572. KEY `index3` (`marker_id`, `status`, `marker_time`)
  573. ) ENGINE = InnoDB
  574. DEFAULT CHARSET = utf8mb4 COMMENT ='评卷任务表';
  575. # Dump of table m_reject_history
  576. # ------------------------------------------------------------
  577. DROP TABLE IF EXISTS `m_reject_history`;
  578. CREATE TABLE `m_reject_history`
  579. (
  580. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
  581. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  582. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  583. `group_number` int(11) NOT NULL COMMENT '大题号',
  584. `exam_number` varchar(64) NOT NULL COMMENT '准考证号',
  585. `secret_number` varchar(64) NOT NULL COMMENT '考生密号',
  586. `student_id` int(11) NOT NULL COMMENT '考生ID',
  587. `library_id` int(11) NOT NULL COMMENT '评卷任务ID',
  588. `marker_id` int(11) NOT NULL COMMENT '评卷员ID',
  589. `user_id` int(11) DEFAULT NULL COMMENT '打回人ID',
  590. `total_score` double DEFAULT NULL COMMENT '总分',
  591. `score_list` text DEFAULT NULL COMMENT '打回时给分明细',
  592. `reject_score_list` text DEFAULT NULL COMMENT '打回后给分明细',
  593. `reason` varchar(128) DEFAULT NULL COMMENT '打回原因',
  594. `create_time` datetime NOT NULL COMMENT '创建时间',
  595. PRIMARY KEY (`id`),
  596. KEY `index1` (`exam_id`, `subject_code`, `group_number`),
  597. KEY `index2` (`library_id`)
  598. ) ENGINE = InnoDB
  599. DEFAULT CHARSET = utf8mb4 COMMENT ='打回记录表';
  600. # Dump of table m_special_tag
  601. # ------------------------------------------------------------
  602. DROP TABLE IF EXISTS `m_special_tag`;
  603. CREATE TABLE `m_special_tag`
  604. (
  605. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  606. `library_id` int(11) NOT NULL COMMENT '评卷任务ID',
  607. `tag_name` varchar(64) NOT NULL COMMENT '标记内容',
  608. `position_x` double NOT NULL COMMENT 'X轴位置',
  609. `position_y` double NOT NULL COMMENT 'Y轴位置',
  610. `offset_index` int(11) NOT NULL COMMENT '裁切图序号',
  611. `offset_x` int(11) NOT NULL COMMENT '裁切图X轴坐标',
  612. `offset_y` int(11) NOT NULL COMMENT '裁切图Y轴坐标',
  613. PRIMARY KEY (`id`),
  614. KEY `index1` (`library_id`)
  615. ) ENGINE = InnoDB
  616. DEFAULT CHARSET = utf8mb4 COMMENT ='特殊标记表';
  617. # Dump of table m_track
  618. # ------------------------------------------------------------
  619. DROP TABLE IF EXISTS `m_track`;
  620. CREATE TABLE `m_track`
  621. (
  622. `library_id` int(11) NOT NULL COMMENT '评卷任务ID',
  623. `question_number` varchar(128) NOT NULL COMMENT '完整题号',
  624. `number` int(11) NOT NULL COMMENT '序号',
  625. `student_id` int(11) NOT NULL COMMENT '考生ID',
  626. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  627. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  628. `group_number` int(11) NOT NULL COMMENT '大题题号',
  629. `marker_id` int(11) NOT NULL COMMENT '评卷员ID',
  630. `score` double NOT NULL COMMENT '给分',
  631. `position_x` double NOT NULL COMMENT 'X轴位置',
  632. `position_y` double NOT NULL COMMENT 'Y轴位置',
  633. `offset_index` int(11) NOT NULL COMMENT '裁切图序号',
  634. `offset_x` int(11) NOT NULL COMMENT '裁切图X轴坐标',
  635. `offset_y` int(11) NOT NULL COMMENT '裁切图Y轴坐标',
  636. `unanswered` tinyint(1) NOT NULL COMMENT '未作答',
  637. PRIMARY KEY (`library_id`, `question_number`, `number`),
  638. KEY `index1` (`student_id`, `group_number`),
  639. KEY `index2` (`marker_id`),
  640. KEY `index3` (`exam_id`, `subject_code`, `group_number`)
  641. ) ENGINE = InnoDB
  642. DEFAULT CHARSET = utf8mb4 COMMENT ='轨迹给分表';
  643. # Dump of table m_header_tag
  644. # ------------------------------------------------------------
  645. DROP TABLE IF EXISTS `m_header_tag`;
  646. CREATE TABLE `m_header_tag`
  647. (
  648. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  649. `student_id` int(11) NOT NULL COMMENT '考生ID',
  650. `group_number` int(11) NOT NULL COMMENT '大题题号',
  651. `user_id` int(11) NOT NULL COMMENT '用户ID',
  652. `tag_name` varchar(64) NOT NULL COMMENT '标记内容',
  653. `position_x` double NOT NULL COMMENT 'X轴位置',
  654. `position_y` double NOT NULL COMMENT 'Y轴位置',
  655. `offset_index` int(11) NOT NULL COMMENT '裁切图序号',
  656. `offset_x` int(11) NOT NULL COMMENT '裁切图X轴坐标',
  657. `offset_y` int(11) NOT NULL COMMENT '裁切图Y轴坐标',
  658. PRIMARY KEY (`id`),
  659. KEY `index1` (`student_id`, `group_number`),
  660. KEY `index2` (`user_id`)
  661. ) ENGINE = InnoDB
  662. DEFAULT CHARSET = utf8mb4 COMMENT ='组长特殊标记表';
  663. # Dump of table m_header_track
  664. # ------------------------------------------------------------
  665. DROP TABLE IF EXISTS `m_header_track`;
  666. CREATE TABLE `m_header_track`
  667. (
  668. `student_id` int(11) NOT NULL COMMENT '考生ID',
  669. `question_number` varchar(128) NOT NULL COMMENT '完整题号',
  670. `number` int(11) NOT NULL COMMENT '序号',
  671. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  672. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  673. `group_number` int(11) NOT NULL COMMENT '大题题号',
  674. `user_id` int(11) NOT NULL COMMENT '用户ID',
  675. `score` double NOT NULL COMMENT '给分',
  676. `position_x` double NOT NULL COMMENT 'X轴位置',
  677. `position_y` double NOT NULL COMMENT 'Y轴位置',
  678. `offset_index` int(11) NOT NULL COMMENT '裁切图序号',
  679. `offset_x` int(11) NOT NULL COMMENT '裁切图X轴坐标',
  680. `offset_y` int(11) NOT NULL COMMENT '裁切图Y轴坐标',
  681. `unanswered` tinyint(1) NOT NULL COMMENT '未作答',
  682. PRIMARY KEY (`student_id`, `question_number`, `number`),
  683. KEY `index1` (`student_id`, `group_number`),
  684. KEY `index2` (`user_id`),
  685. KEY `index3` (`exam_id`, `subject_code`, `group_number`)
  686. ) ENGINE = InnoDB
  687. DEFAULT CHARSET = utf8mb4 COMMENT ='组长轨迹给分表';
  688. # Dump of table m_problem_type
  689. # ------------------------------------------------------------
  690. DROP TABLE IF EXISTS `m_problem_type`;
  691. CREATE TABLE `m_problem_type`
  692. (
  693. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  694. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  695. `name` varchar(64) DEFAULT NULL COMMENT '名称',
  696. `is_custom` tinyint(1) NOT NULL COMMENT '是否自定义',
  697. PRIMARY KEY (`id`),
  698. KEY `index1` (`exam_id`)
  699. ) ENGINE = InnoDB
  700. DEFAULT CHARSET = utf8mb4 COMMENT ='问题类型表';
  701. # Dump of table m_problem_history
  702. # ------------------------------------------------------------
  703. DROP TABLE IF EXISTS `m_problem_history`;
  704. CREATE TABLE `m_problem_history`
  705. (
  706. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
  707. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  708. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  709. `group_number` int(11) NOT NULL COMMENT '大题号',
  710. `exam_number` varchar(64) NOT NULL COMMENT '准考证号',
  711. `secret_number` varchar(64) NOT NULL COMMENT '考生密号',
  712. `problem_id` int(11) NOT NULL COMMENT '问题ID',
  713. `student_id` int(11) NOT NULL COMMENT '考生ID',
  714. `library_id` int(11) NOT NULL COMMENT '评卷任务ID',
  715. `marker_id` int(11) NOT NULL COMMENT '评卷员ID',
  716. `status` varchar(16) DEFAULT NULL COMMENT '状态',
  717. `user_id` int(11) DEFAULT NULL COMMENT '处理人ID',
  718. `total_score` double DEFAULT NULL COMMENT '总分',
  719. `score_list` text DEFAULT NULL COMMENT '给分明细',
  720. `unanswered_count` int(11) DEFAULT NULL COMMENT '未作答的步骤数量',
  721. `create_time` datetime NOT NULL COMMENT '创建时间',
  722. `update_time` datetime DEFAULT NULL COMMENT '处理时间',
  723. PRIMARY KEY (`id`),
  724. KEY `index1` (`exam_id`, `subject_code`, `group_number`, `status`),
  725. KEY `index2` (`user_id`, `status`, `update_time`),
  726. KEY `index3` (`student_id`, `status`)
  727. ) ENGINE = InnoDB
  728. DEFAULT CHARSET = utf8mb4 COMMENT ='问题卷历史表';
  729. # Dump of table m_trial_library
  730. # ------------------------------------------------------------
  731. DROP TABLE IF EXISTS `m_trial_library`;
  732. CREATE TABLE `m_trial_library`
  733. (
  734. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  735. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  736. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  737. `group_number` int(11) NOT NULL COMMENT '分组序号',
  738. `student_id` int(11) NOT NULL COMMENT '考生ID',
  739. `exam_number` varchar(64) NOT NULL COMMENT '准考证号',
  740. `secret_number` varchar(64) NOT NULL COMMENT '考生密号',
  741. `marker_id` int(11) DEFAULT NULL COMMENT '评卷员ID',
  742. `marker_time` datetime DEFAULT NULL COMMENT '评卷时间',
  743. `marker_score` double DEFAULT NULL COMMENT '评卷总分',
  744. `marker_score_list` text DEFAULT NULL COMMENT '评卷给分明细',
  745. PRIMARY KEY (`id`),
  746. KEY `index1` (`exam_id`, `subject_code`, `group_number`),
  747. KEY `index2` (`student_id`, `group_number`)
  748. ) ENGINE = InnoDB
  749. DEFAULT CHARSET = utf8mb4 COMMENT ='试评任务表';
  750. # Dump of table m_trial_tag
  751. # ------------------------------------------------------------
  752. DROP TABLE IF EXISTS `m_trial_tag`;
  753. CREATE TABLE `m_trial_tag`
  754. (
  755. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  756. `library_id` int(11) NOT NULL COMMENT '评卷任务ID',
  757. `marker_id` int(11) NOT NULL COMMENT '评卷员ID',
  758. `content` varchar(64) NOT NULL COMMENT '标记内容',
  759. `position_x` double NOT NULL COMMENT 'X轴位置',
  760. `position_y` double NOT NULL COMMENT 'Y轴位置',
  761. `offset_index` int(11) NOT NULL COMMENT '裁切图序号',
  762. `offset_x` int(11) NOT NULL COMMENT '裁切图X轴坐标',
  763. `offset_y` int(11) NOT NULL COMMENT '裁切图Y轴坐标',
  764. PRIMARY KEY (`id`),
  765. KEY `index1` (`library_id`, `marker_id`),
  766. KEY `index2` (`marker_id`)
  767. ) ENGINE = InnoDB
  768. DEFAULT CHARSET = utf8mb4 COMMENT ='试评特殊标记表';
  769. # Dump of table m_trial_track
  770. # ------------------------------------------------------------
  771. DROP TABLE IF EXISTS `m_trial_track`;
  772. CREATE TABLE `m_trial_track`
  773. (
  774. `library_id` int(11) NOT NULL COMMENT '评卷任务ID',
  775. `marker_id` int(11) NOT NULL COMMENT '评卷员ID',
  776. `question_number` varchar(64) NOT NULL COMMENT '完整题号',
  777. `number` int(11) NOT NULL COMMENT '序号',
  778. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  779. `subject_code` varchar(32) NOT NULL COMMENT '科目代码',
  780. `group_number` int(11) NOT NULL COMMENT '大题题号',
  781. `student_id` int(11) NOT NULL COMMENT '考生ID',
  782. `score` double NOT NULL COMMENT '给分',
  783. `position_x` double NOT NULL COMMENT 'X轴位置',
  784. `position_y` double NOT NULL COMMENT 'Y轴位置',
  785. `offset_index` int(11) NOT NULL COMMENT '裁切图序号',
  786. `offset_x` int(11) NOT NULL COMMENT '裁切图X轴坐标',
  787. `offset_y` int(11) NOT NULL COMMENT '裁切图Y轴坐标',
  788. `unanswered` tinyint(1) NOT NULL COMMENT '未作答',
  789. PRIMARY KEY (`library_id`, `marker_id`, `number`, `question_number`),
  790. KEY `index1` (`exam_id`, `subject_code`, `group_number`),
  791. KEY `index2` (`student_id`),
  792. KEY `index3` (`marker_id`)
  793. ) ENGINE = InnoDB
  794. DEFAULT CHARSET = utf8mb4 COMMENT ='试评轨迹表';
  795. # Dump of table s_basic_group
  796. # ------------------------------------------------------------
  797. DROP TABLE IF EXISTS `s_basic_class_group`;
  798. CREATE TABLE `s_basic_class_group`
  799. (
  800. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  801. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  802. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  803. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  804. `class_name` varchar(64) DEFAULT NULL COMMENT '班级名称',
  805. `discrimination` double DEFAULT NULL COMMENT '区分度',
  806. `objective` tinyint(1) DEFAULT NULL COMMENT '是否客观题',
  807. `group_name` varchar(128) DEFAULT NULL COMMENT '大题名称',
  808. `group_number` int(11) DEFAULT NULL COMMENT '大题号',
  809. `question_count` int(11) DEFAULT NULL COMMENT '题目数量',
  810. `total_score` double DEFAULT NULL COMMENT '总分',
  811. `difficulity_level` text DEFAULT NULL COMMENT '难度分布',
  812. `discrimination_level` text DEFAULT NULL COMMENT '区分度分布',
  813. `coefficient` double DEFAULT NULL COMMENT '差异系数',
  814. `difficulty` double DEFAULT NULL COMMENT '难度',
  815. `paper_type` varchar(8) DEFAULT NULL COMMENT '试卷类型',
  816. PRIMARY KEY (`id`)
  817. ) ENGINE = InnoDB
  818. DEFAULT CHARSET = utf8mb4 COMMENT ='班级大题统计表';
  819. # Dump of table s_basic_group
  820. # ------------------------------------------------------------
  821. DROP TABLE IF EXISTS `s_basic_group`;
  822. CREATE TABLE `s_basic_group`
  823. (
  824. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  825. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  826. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  827. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  828. `objective` tinyint(1) DEFAULT NULL COMMENT '是否客观题',
  829. `group_name` varchar(128) DEFAULT NULL COMMENT '大题名称',
  830. `group_number` int(11) DEFAULT NULL COMMENT '大题号',
  831. `max_score` double DEFAULT NULL COMMENT '最高分',
  832. `min_score` double DEFAULT NULL COMMENT '最低分',
  833. `avg_score` double DEFAULT NULL COMMENT '平均分',
  834. `total_score` double DEFAULT NULL COMMENT '满分',
  835. `stdev` double DEFAULT NULL COMMENT '标准差',
  836. `coefficient` double DEFAULT NULL COMMENT '差异系数',
  837. `score_rate` double DEFAULT NULL COMMENT '得分率',
  838. `full_count` int(11) DEFAULT NULL COMMENT '满分人数',
  839. `zero_count` int(11) DEFAULT NULL COMMENT '零分人数',
  840. `difficulty` double DEFAULT NULL COMMENT '难度',
  841. `discrimination` double DEFAULT NULL COMMENT '区分度',
  842. `question_count` int(11) DEFAULT NULL COMMENT '题目数量',
  843. `reality_count` int(11) DEFAULT NULL COMMENT '有效数量',
  844. `difficulity_level` text DEFAULT NULL COMMENT '难度分布',
  845. `discrimination_level` text DEFAULT NULL COMMENT '区分度分布',
  846. `paper_type` varchar(8) DEFAULT NULL COMMENT '试卷类型',
  847. PRIMARY KEY (`id`),
  848. KEY `index1` (`exam_id`, `subject_code`)
  849. ) ENGINE = InnoDB
  850. DEFAULT CHARSET = utf8mb4 COMMENT ='大题统计表';
  851. # Dump of table s_basic_question
  852. # ------------------------------------------------------------
  853. DROP TABLE IF EXISTS `s_basic_question`;
  854. CREATE TABLE `s_basic_question`
  855. (
  856. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  857. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  858. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  859. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  860. `objective` tinyint(1) DEFAULT NULL COMMENT '是否客观题',
  861. `question_name` varchar(64) DEFAULT NULL COMMENT '题目名称',
  862. `paper_type` varchar(8) DEFAULT NULL COMMENT '试卷类型',
  863. `main_number` int(11) NOT NULL COMMENT '大题号',
  864. `sub_number` varchar(32) NOT NULL COMMENT '小题号',
  865. `avg_score` double DEFAULT NULL COMMENT '平均分',
  866. `total_score` double DEFAULT NULL COMMENT '满分',
  867. `stdev` double DEFAULT NULL COMMENT '标准差',
  868. `score_rate` double DEFAULT NULL COMMENT '得分率',
  869. `full_score_rate` double DEFAULT NULL COMMENT '满分率',
  870. `coefficient` double DEFAULT NULL COMMENT '差异系数',
  871. `difficulty` double DEFAULT NULL COMMENT '难度',
  872. `discrimination` double DEFAULT NULL COMMENT '区分度',
  873. `max_score` double DEFAULT NULL COMMENT '最大分数',
  874. `min_score` double DEFAULT NULL COMMENT '最小分数',
  875. `reality_count` int(11) DEFAULT NULL COMMENT '有效数量',
  876. `zero_count` int(11) DEFAULT NULL COMMENT '零分数量',
  877. `options` text DEFAULT NULL COMMENT '选项',
  878. `answer` varchar(16) DEFAULT NULL COMMENT '答案',
  879. `full_count` int(11) DEFAULT NULL COMMENT '满分数量',
  880. PRIMARY KEY (`id`),
  881. KEY `index1` (`exam_id`, `subject_code`)
  882. ) ENGINE = InnoDB
  883. DEFAULT CHARSET = utf8mb4 COMMENT ='小题统计表';
  884. # Dump of table s_basic_subject
  885. # ------------------------------------------------------------
  886. DROP TABLE IF EXISTS `s_basic_subject`;
  887. CREATE TABLE `s_basic_subject`
  888. (
  889. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  890. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  891. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  892. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  893. `absent_count` int(11) DEFAULT NULL COMMENT '缺考人数',
  894. `breach_count` int(11) DEFAULT NULL COMMENT '违纪人数',
  895. `pass_count` int(11) DEFAULT NULL COMMENT '及格人数',
  896. `pass_rate` double DEFAULT NULL COMMENT '及格率',
  897. `excellent_count` int(11) DEFAULT NULL COMMENT '优秀人数',
  898. `excellent_rate` double DEFAULT NULL COMMENT '优秀率',
  899. `reality_count` int(11) DEFAULT NULL COMMENT '有效人数',
  900. `max_score` double DEFAULT NULL COMMENT '最高分',
  901. `min_score` double DEFAULT NULL COMMENT '最低分',
  902. `avg_score` double DEFAULT NULL COMMENT '平均分',
  903. `total_count` int(11) DEFAULT NULL COMMENT '总人数',
  904. `score_range` text DEFAULT NULL COMMENT '分数分布',
  905. `options` text DEFAULT NULL COMMENT '选项',
  906. `difficulity_level` text DEFAULT NULL COMMENT '难度分布',
  907. `discrimination_level` text DEFAULT NULL COMMENT '区分度分布',
  908. `range_level` text DEFAULT NULL COMMENT '高低分段统计',
  909. `coefficient` double DEFAULT NULL COMMENT '差异系数',
  910. `difficulty` double DEFAULT NULL COMMENT '难度',
  911. `discrimination` double DEFAULT NULL COMMENT '区分度',
  912. `full_count` int(11) DEFAULT NULL COMMENT '满分人数',
  913. `question_count` int(11) DEFAULT NULL COMMENT '题目数量',
  914. `stdev` double DEFAULT NULL COMMENT '方差',
  915. `total_score` double DEFAULT NULL COMMENT '满分',
  916. `zero_count` int(11) DEFAULT NULL COMMENT '零分数量',
  917. PRIMARY KEY (`id`),
  918. KEY `index1` (`exam_id`, `subject_code`)
  919. ) ENGINE = InnoDB
  920. DEFAULT CHARSET = utf8mb4 COMMENT ='科目统计表';
  921. # Dump of table s_basic_subject_class
  922. # ------------------------------------------------------------
  923. DROP TABLE IF EXISTS `s_basic_subject_class`;
  924. CREATE TABLE `s_basic_subject_class`
  925. (
  926. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  927. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  928. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  929. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  930. `class_name` varchar(64) DEFAULT NULL COMMENT '班级名称',
  931. `excellent_count` int(11) DEFAULT NULL COMMENT '优秀人数',
  932. `excellent_rate` double DEFAULT NULL COMMENT '优秀率',
  933. `pass_count` int(11) DEFAULT NULL COMMENT '及格人数',
  934. `pass_rate` double DEFAULT NULL COMMENT '及格率',
  935. `max_score` double DEFAULT NULL COMMENT '最高分',
  936. `min_score` double DEFAULT NULL COMMENT '最低分',
  937. `avg_score` double DEFAULT NULL COMMENT '平均分',
  938. `coefficient` double DEFAULT NULL COMMENT '差异系数',
  939. `difficulty` double DEFAULT NULL COMMENT '难度',
  940. `score_range` text DEFAULT NULL COMMENT '分数分布',
  941. `stdev` double DEFAULT NULL COMMENT '方差',
  942. `difficulity_level` text DEFAULT NULL COMMENT '难度分布',
  943. `discrimination_level` text DEFAULT NULL COMMENT '区分度分布',
  944. `range_level` text DEFAULT NULL COMMENT '高低分分布',
  945. `total_count` int(11) DEFAULT NULL COMMENT '报考人数',
  946. `reality_count` int(11) DEFAULT NULL COMMENT '有效人数',
  947. PRIMARY KEY (`id`),
  948. KEY `index1` (`exam_id`, `subject_code`)
  949. ) ENGINE = InnoDB
  950. DEFAULT CHARSET = utf8mb4 COMMENT ='班级统计表';
  951. # Dump of table s_basic_subject_college
  952. # ------------------------------------------------------------
  953. DROP TABLE IF EXISTS `s_basic_subject_college`;
  954. CREATE TABLE `s_basic_subject_college`
  955. (
  956. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  957. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  958. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  959. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  960. `college_name` varchar(64) DEFAULT NULL COMMENT '学院名称',
  961. `total_count` int(11) DEFAULT NULL COMMENT '报考人数',
  962. `reality_count` int(11) DEFAULT NULL COMMENT '有效人数',
  963. `excellent_count` int(11) DEFAULT NULL COMMENT '优秀人数',
  964. `excellent_rate` double DEFAULT NULL COMMENT '优秀率',
  965. `pass_count` int(11) DEFAULT NULL COMMENT '及格人数',
  966. `pass_rate` double DEFAULT NULL COMMENT '及格率',
  967. `max_score` double DEFAULT NULL COMMENT '最高分',
  968. `min_score` double DEFAULT NULL COMMENT '最低分',
  969. `avg_score` double DEFAULT NULL COMMENT '平均分',
  970. PRIMARY KEY (`id`),
  971. KEY `index1` (`exam_id`, `subject_code`)
  972. ) ENGINE = InnoDB
  973. DEFAULT CHARSET = utf8mb4 COMMENT ='学院统计表';
  974. # Dump of table s_basic_subject_teacher
  975. # ------------------------------------------------------------
  976. DROP TABLE IF EXISTS `s_basic_subject_teacher`;
  977. CREATE TABLE `s_basic_subject_teacher`
  978. (
  979. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  980. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  981. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  982. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  983. `teacher_name` varchar(64) DEFAULT NULL COMMENT '任课老师',
  984. `excellent_count` int(11) DEFAULT NULL COMMENT '优秀人数',
  985. `excellent_rate` double DEFAULT NULL COMMENT '优秀率',
  986. `pass_count` int(11) DEFAULT NULL COMMENT '及格人数',
  987. `pass_rate` double DEFAULT NULL COMMENT '及格率',
  988. `max_score` double DEFAULT NULL COMMENT '最高分',
  989. `min_score` double DEFAULT NULL COMMENT '最低分',
  990. `avg_score` double DEFAULT NULL COMMENT '平均分',
  991. `total_count` int(11) DEFAULT NULL COMMENT '报考人数',
  992. `reality_count` int(11) DEFAULT NULL COMMENT '有效人数',
  993. `relative_avg_score` double DEFAULT NULL COMMENT '平均相对分',
  994. PRIMARY KEY (`id`),
  995. KEY `index1` (`exam_id`, `subject_code`)
  996. ) ENGINE = InnoDB
  997. DEFAULT CHARSET = utf8mb4 COMMENT ='任课老师统计表';
  998. # Dump of table s_basic_subject_teacher_class
  999. # ------------------------------------------------------------
  1000. DROP TABLE IF EXISTS `s_basic_subject_teacher_class`;
  1001. CREATE TABLE `s_basic_subject_teacher_class`
  1002. (
  1003. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1004. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  1005. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  1006. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  1007. `teacher_name` varchar(64) DEFAULT NULL COMMENT '任课老师',
  1008. `class_name` varchar(64) DEFAULT NULL COMMENT '班级名称',
  1009. `excellent_count` int(11) DEFAULT NULL COMMENT '优秀人数',
  1010. `excellent_rate` double DEFAULT NULL COMMENT '优秀率',
  1011. `pass_count` int(11) DEFAULT NULL COMMENT '及格人数',
  1012. `pass_rate` double DEFAULT NULL COMMENT '及格率',
  1013. `max_score` double DEFAULT NULL COMMENT '最高分',
  1014. `min_score` double DEFAULT NULL COMMENT '最低分',
  1015. `avg_score` double DEFAULT NULL COMMENT '平均分',
  1016. `reality_count` int(11) DEFAULT NULL COMMENT '有效人数',
  1017. `relative_avg_score` double DEFAULT NULL COMMENT '平均相对分',
  1018. PRIMARY KEY (`id`),
  1019. KEY `index1` (`exam_id`, `subject_code`)
  1020. ) ENGINE = InnoDB
  1021. DEFAULT CHARSET = utf8mb4 COMMENT ='任课老师班级统计表';
  1022. # Dump of table s_basic_subject
  1023. # ------------------------------------------------------------
  1024. DROP TABLE IF EXISTS `s_basic_subject_range`;
  1025. CREATE TABLE `s_basic_subject_range`
  1026. (
  1027. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1028. `exam_id` int(11) DEFAULT NULL COMMENT '考试ID',
  1029. `subject_code` varchar(32) DEFAULT NULL COMMENT '科目代码',
  1030. `subject_name` varchar(32) DEFAULT NULL COMMENT '科目名称',
  1031. `reality_count` int(11) DEFAULT NULL COMMENT '有效人数',
  1032. `objective_score` double DEFAULT NULL COMMENT '客观题分',
  1033. `total_count` int(11) DEFAULT NULL COMMENT '总人数',
  1034. `objective_score_range` text DEFAULT NULL COMMENT '分数分布',
  1035. PRIMARY KEY (`id`),
  1036. KEY `index1` (`exam_id`, `subject_code`)
  1037. ) ENGINE = InnoDB
  1038. DEFAULT CHARSET = utf8mb4 COMMENT ='科目客观题分段统计表';
  1039. # Dump of table eb_import_query
  1040. # ------------------------------------------------------------
  1041. DROP TABLE IF EXISTS `eb_import_query`;
  1042. CREATE TABLE `eb_import_query`
  1043. (
  1044. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1045. `create_time` datetime NOT NULL COMMENT '创建时间',
  1046. `description` text DEFAULT NULL COMMENT '描述',
  1047. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  1048. `type` varchar(16) NOT NULL COMMENT '类型',
  1049. `user_id` int(11) NOT NULL COMMENT '用户ID',
  1050. PRIMARY KEY (`id`),
  1051. KEY `index1` (`exam_id`, `user_id`, `type`)
  1052. ) ENGINE = InnoDB
  1053. DEFAULT CHARSET = utf8mb4 COMMENT ='导入查询表';
  1054. # Dump of table eb_answer_card
  1055. # ------------------------------------------------------------
  1056. DROP TABLE IF EXISTS `eb_answer_card`;
  1057. CREATE TABLE `eb_answer_card`
  1058. (
  1059. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  1060. `code` varchar(64) DEFAULT NULL COMMENT '混扫代码',
  1061. `number` int(11) NOT NULL COMMENT '序号',
  1062. `need_adapte` tinyint(1) DEFAULT NULL COMMENT '强制适配',
  1063. `paper_count` int(11) DEFAULT NULL COMMENT '试卷数量',
  1064. `single_page` tinyint(1) DEFAULT NULL COMMENT '单页模式',
  1065. `source` varchar(16) NOT NULL COMMENT '来源',
  1066. `md5` varchar(255) DEFAULT NULL COMMENT '文件md5',
  1067. `dpi` int(11) DEFAULT NULL COMMENT 'dpi',
  1068. `slice_config` text DEFAULT NULL COMMENT '裁切配置',
  1069. `parameter` varchar(255) DEFAULT NULL COMMENT '其他属性',
  1070. `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  1071. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  1072. PRIMARY KEY (`exam_id`, `number`)
  1073. ) ENGINE = InnoDB
  1074. DEFAULT CHARSET = utf8mb4 COMMENT ='题卡卡格式表';
  1075. DROP TABLE IF EXISTS `eb_score_verify`;
  1076. CREATE TABLE `eb_score_verify`
  1077. (
  1078. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1079. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  1080. `user_id` int(11) NOT NULL COMMENT '操作人ID',
  1081. `student_id` int(11) NOT NULL COMMENT '考生ID',
  1082. `flagged` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否被标记',
  1083. `viewed` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否被查看',
  1084. `create_time` datetime NOT NULL COMMENT '创建时间',
  1085. `verify_time` datetime DEFAULT NULL COMMENT '校验时间',
  1086. PRIMARY KEY (`id`),
  1087. UNIQUE KEY `index1` (`exam_id`, `user_id`, `student_id`)
  1088. ) ENGINE = InnoDB
  1089. DEFAULT CHARSET = utf8mb4 COMMENT ='成绩校验';
  1090. # Dump of table eb_answer_card_subject
  1091. # ------------------------------------------------------------
  1092. DROP TABLE IF EXISTS `eb_answer_card_subject`;
  1093. CREATE TABLE `eb_answer_card_subject`
  1094. (
  1095. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1096. `exam_id` int(11) NOT NULL COMMENT '考试ID',
  1097. `card_number` int(11) NOT NULL COMMENT '卡格式号',
  1098. `subject_code` varchar(128) NOT NULL COMMENT '科目代码',
  1099. PRIMARY KEY (`id`),
  1100. UNIQUE KEY `index1` (`exam_id`, `card_number`, `subject_code`)
  1101. ) ENGINE = InnoDB
  1102. DEFAULT CHARSET = utf8mb4 COMMENT ='卡格式科目关联关系';
  1103. DROP TABLE IF EXISTS `eb_user_student`;
  1104. CREATE TABLE `eb_user_student`
  1105. (
  1106. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1107. `user_id` int(11) NOT NULL COMMENT '用户ID',
  1108. `exam_number` varchar(64) NOT NULL COMMENT '考生ID',
  1109. PRIMARY KEY (`id`),
  1110. UNIQUE KEY `index1` (`user_id`, `exam_number`)
  1111. ) ENGINE = InnoDB
  1112. DEFAULT CHARSET = utf8mb4 COMMENT ='用户考生关联表';
  1113. DROP TABLE IF EXISTS `b_role_info`;
  1114. CREATE TABLE `b_role_info`
  1115. (
  1116. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1117. `school_id` int(11) NOT NULL COMMENT '学校ID',
  1118. `code` varchar(64) NOT NULL COMMENT '角色CODE',
  1119. `name` varchar(64) NOT NULL COMMENT '名称',
  1120. `seq` int(11) NOT NULL COMMENT '排序',
  1121. `updater_id` int(11) DEFAULT NULL COMMENT '更新人ID',
  1122. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  1123. PRIMARY KEY (`id`),
  1124. UNIQUE KEY `IDX_ROLE_INFO_01` (`school_id`, `code`)
  1125. ) ENGINE = InnoDB
  1126. DEFAULT CHARSET = utf8mb4 COMMENT ='角色表';
  1127. DROP TABLE IF EXISTS `b_privilege`;
  1128. CREATE TABLE `b_privilege`
  1129. (
  1130. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1131. `code` varchar(64) NOT NULL COMMENT '权限CODE',
  1132. `name` varchar(64) NOT NULL COMMENT '名称',
  1133. `parent_code` varchar(64) NOT NULL COMMENT '父权限CODE',
  1134. `privilege_type` varchar(64) NOT NULL COMMENT '类型',
  1135. `privilege_uri` varchar(64) DEFAULT NULL COMMENT 'URI',
  1136. `seq` int(11) NOT NULL COMMENT '排序',
  1137. `level` int(11) NOT NULL COMMENT '树结构层级',
  1138. `icon` varchar(64) DEFAULT NULL COMMENT '图表',
  1139. `i18n` varchar(64) DEFAULT NULL COMMENT '国际化',
  1140. PRIMARY KEY (`id`),
  1141. UNIQUE KEY `IDX_PRIVILEGE_01` (`code`),
  1142. KEY `IDX_PRIVILEGE_02` (`parent_code`)
  1143. ) ENGINE = InnoDB
  1144. DEFAULT CHARSET = utf8mb4 COMMENT ='权限表';
  1145. DROP TABLE IF EXISTS `b_role_privilege`;
  1146. CREATE TABLE `b_role_privilege`
  1147. (
  1148. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1149. `school_id` int(11) NOT NULL COMMENT '学校ID',
  1150. `role_code` varchar(64) NOT NULL COMMENT '角色CODE',
  1151. `privilege_code` varchar(64) NOT NULL COMMENT '权限CODE',
  1152. `enable` tinyint(1) NOT NULL COMMENT '启用禁用',
  1153. PRIMARY KEY (`id`),
  1154. UNIQUE KEY `IDX_ROLE_PRIVILEGE_01` (`school_id`, `role_code`, `privilege_code`)
  1155. ) ENGINE = InnoDB
  1156. DEFAULT CHARSET = utf8mb4 COMMENT ='角色权限关联表';
  1157. LOCK TABLES `b_privilege` WRITE;
  1158. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`, `i18n`)
  1159. VALUES ('overview', '主页导览', 'root_code', 'MENU', '/admin/basic/overview', 5, 1, 'icon-bookmark', 'index.overview');
  1160. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`, `i18n`)
  1161. VALUES ('user_list', '用户管理', 'root_code', 'MENU', '/admin/user/list', 10, 1, 'icon-user', 'index.user');
  1162. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1163. VALUES ('user_list-help_video', '帮助视频', 'user_list', 'BUTTON', 2, 1);
  1164. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`, `i18n`)
  1165. VALUES ('exam_list', '考试管理', 'root_code', 'MENU', '/admin/exam/list', 20, 1, 'icon-th-list', 'index.exam');
  1166. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`, `i18n`)
  1167. VALUES ('exam_student', '考生管理', 'root_code', 'MENU', '/admin/exam/student', 30, 1, 'icon-user', 'index.student');
  1168. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`, `i18n`)
  1169. VALUES ('exam_scan', '扫描进度', 'root_code', 'MENU', '/admin/exam/scan', 40, 1, 'icon-print', 'index.scan');
  1170. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`, `i18n`)
  1171. VALUES ('exam_paper', '科目管理', 'root_code', 'MENU', '/admin/exam/paper', 50, 1, 'icon-book', 'index.paper');
  1172. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`, `i18n`)
  1173. VALUES ('exam_mark', '评卷管理', 'root_code', 'MENU', '/admin/basic/role/info/sub/page', 60, 1, 'icon-pencil',
  1174. 'index.mark');
  1175. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1176. VALUES ('exam_mark-mark', '评卷进度', 'exam_mark', 'PAGE', '/admin/exam/mark', 2, 1);
  1177. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1178. VALUES ('exam_mark-group', '分组管理', 'exam_mark', 'PAGE', '/admin/exam/group', 2, 2);
  1179. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1180. VALUES ('exam_mark-group-add', '新增', 'exam_mark-group', 'BUTTON', 3, 1);
  1181. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1182. VALUES ('exam_mark-group-edit', '修改', 'exam_mark-group', 'BUTTON', 3, 2);
  1183. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1184. VALUES ('exam_mark-group-reset_edit', '重置修改', 'exam_mark-group', 'BUTTON', 3, 3);
  1185. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1186. VALUES ('exam_mark-group-delete', '删除', 'exam_mark-group', 'BUTTON', 3, 4);
  1187. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1188. VALUES ('exam_mark-group-help_video', '帮助视频', 'exam_mark-group', 'BUTTON', 3, 5);
  1189. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1190. VALUES ('exam_mark-marker', '评卷员管理', 'exam_mark', 'PAGE', '/admin/exam/marker', 2, 3);
  1191. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1192. VALUES ('exam_mark-marker-reset', '重置', 'exam_mark-marker', 'BUTTON', 3, 1);
  1193. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1194. VALUES ('exam_mark-trial', '试评管理', 'exam_mark', 'PAGE', '/admin/exam/trial', 2, 4);
  1195. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1196. VALUES ('exam_mark-library', '任务管理', 'exam_mark', 'PAGE', '/admin/exam/library', 2, 5);
  1197. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1198. VALUES ('exam_mark-library-inspect', '复核', 'exam_mark-library', 'BUTTON', 3, 1);
  1199. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1200. VALUES ('exam_mark-library-reject', '打回', 'exam_mark-library', 'BUTTON', 3, 2);
  1201. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1202. VALUES ('exam_mark-arbitrate', '仲裁管理', 'exam_mark', 'PAGE', '/admin/exam/arbitrate', 2, 6);
  1203. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1204. VALUES ('exam_mark-quality', '质量监控', 'exam_mark', 'PAGE', '/admin/exam/quality', 2, 7);
  1205. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`,
  1206. `i18n`)
  1207. VALUES ('exam_reject_list', '打回试卷', 'root_code', 'MENU', '/admin/basic/role/info/sub/page', 70, 1, 'icon-bookmark',
  1208. 'index.reject');
  1209. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1210. VALUES ('exam_reject_list-paper', '打回卷', 'exam_reject_list', 'PAGE', '/admin/exam/reject/list', 2, 1);
  1211. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1212. VALUES ('exam_reject_list-history', '打回记录', 'exam_reject_list', 'PAGE', '/admin/exam/reject/history', 2, 2);
  1213. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`,
  1214. `i18n`)
  1215. VALUES ('exam_problem_history', '问题试卷', 'root_code', 'MENU', '/admin/exam/problem/history', 80, 1, 'icon-tag',
  1216. 'index.problem');
  1217. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1218. VALUES ('exam_problem_history-reset', '重置', 'exam_problem_history', 'BUTTON', 2, 1);
  1219. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1220. VALUES ('exam_problem_history-batch_reset', '批量重置', 'exam_problem_history', 'BUTTON', 2, 2);
  1221. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`,
  1222. `i18n`)
  1223. VALUES ('exam_inspected_info', '成绩复核', 'root_code', 'MENU', '/admin/basic/role/info/sub/page', 90, 1, 'icon-flag',
  1224. 'index.inspected');
  1225. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1226. VALUES ('exam_inspected_info-info', '成绩复核进度', 'exam_inspected_info', 'PAGE', '/admin/exam/inspected/info', 2, 1);
  1227. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1228. VALUES ('exam_inspected_info-list', '全卷复核', 'exam_inspected_info', 'PAGE', '/admin/exam/inspected/list', 2, 2);
  1229. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1230. VALUES ('exam_inspected_info-next_round', '再次复核', 'exam_inspected_info-list', 'BUTTON', 3, 1);
  1231. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1232. VALUES ('exam_inspected_info-list-help_video', '帮助视频', 'exam_inspected_info-list', 'BUTTON', 3, 2);
  1233. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `level`, `seq`)
  1234. VALUES ('exam_inspected_info-score_verify', '成绩校验', 'exam_inspected_info', 'PAGE', '/admin/exam/score/verify/init', 2,
  1235. 3);
  1236. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`,
  1237. `i18n`)
  1238. VALUES ('exam_score', '成绩查询', 'root_code', 'MENU', '/admin/exam/score', 100, 1, 'icon-search', 'index.score');
  1239. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
  1240. VALUES ('exam_score-export', '导出', 'exam_score', 'BUTTON', 2, 1);
  1241. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`,
  1242. `i18n`)
  1243. VALUES ('exam_report_subject', '科目分析', 'root_code', 'MENU', '/admin/basic/role/info/sub/page', 110, 1, 'icon-asterisk',
  1244. 'index.report.subject');
  1245. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`)
  1246. VALUES ('exam_report_subject-total', '总量分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubject', 10, 2);
  1247. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`)
  1248. VALUES ('exam_report_subject-range', '分段统计', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectRange', 20, 2);
  1249. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`)
  1250. VALUES ('exam_report_subject-college', '学院分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectCollege', 30,
  1251. 2);
  1252. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`)
  1253. VALUES ('exam_report_subject-teacher', '任课老师分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectTeacher', 40,
  1254. 2);
  1255. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`)
  1256. VALUES ('exam_report_subject-class', '班级分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectClass', 50, 2);
  1257. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`)
  1258. VALUES ('exam_report_subject-objective_question', '客观题分析', 'exam_report_subject', 'PAGE',
  1259. '/admin/exam/reportSubjectQuestion', 60, 2);
  1260. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`)
  1261. VALUES ('exam_report_subject-subjective_question', '主观题分析', 'exam_report_subject', 'PAGE',
  1262. '/admin/exam/reportSubjectQuestion', 70, 2);
  1263. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`)
  1264. VALUES ('exam_report_subject-group', '大题分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectGroup', 80, 2);
  1265. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`,
  1266. `i18n`)
  1267. VALUES ('exam_check_answer', '数据检查', 'root_code', 'MENU', '/admin/exam/check/answer', 130, 1, 'icon-check',
  1268. 'index.check');
  1269. INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`, `level`, `icon`,
  1270. `i18n`)
  1271. VALUES ('operation_log', '操作日志', 'root_code', 'MENU', '/admin/operation/log', 140, 1, 'icon-tasks', 'index.log');
  1272. UNLOCK TABLES;