stmms_ft.sql 75 KB

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