stmms_ft.sql 75 KB

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