1
0

stmms_ft.sql 72 KB

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