stmms_ft.sql 72 KB

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