stmms_ft.sql 72 KB

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