DROP TABLE IF EXISTS `t_e_exam_mark_log`;
CREATE TABLE `t_e_exam_mark_log` (
  `id` bigint NOT NULL COMMENT '主键',
  `exam_id` bigint NOT NULL COMMENT '考试ID',
  `exam_activity_id` bigint NOT NULL COMMENT '场次ID',
  `exam_record_id` bigint NOT NULL COMMENT '考试记录ID',
  `exam_student_id` bigint NOT NULL COMMENT '考生id',
  `status` varchar(30) DEFAULT NULL COMMENT '状态，MARK：标记，UN_MARK：撤销',
  `remark` mediumtext COMMENT '备注',
  `create_time` bigint DEFAULT NULL COMMENT '创建时间',
  `create_id` bigint DEFAULT NULL COMMENT '创建人',
  `update_time` bigint DEFAULT NULL COMMENT '更新时间',
  `update_id` bigint DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`),
    KEY `t_e_exam_mark_log_exam_record_id_IDX` (`exam_record_id`,`exam_id`,`exam_activity_id`,`exam_student_id`,`status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='考生重点标记表';

INSERT INTO t_b_privilege
(id, name, url, `type`, parent_id, `sequence`, remark, create_time)
VALUES(210, '重点标记接口', '/api/admin/invigilate/mark', 'LINK', 10, 12, NULL, 1600932652000);
INSERT INTO t_b_role_privilege
(id, role_code, privilege_id)
VALUES(260, 'ADMIN', 210);
INSERT INTO t_b_role_privilege
(id, role_code, privilege_id)
VALUES(261, 'INVIGILATE', 210);