-- ----------------------------
-- 线下教育登记表
-- ----------------------------
drop table if exists `train_exam`.`ex_exam_record`;
CREATE TABLE `train_exam`.`ex_exam_record`  (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键' ,
`company_id` bigint(20) NOT NULL COMMENT '公司id',
`student_id` bigint(20) NOT NULL COMMENT '学员id',
`plan_name` varchar(50) NOT NULL COMMENT '计划名称',
`course_name` varchar(50) NOT NULL COMMENT '课程名称',
`level` varchar(20) NOT NULL COMMENT '培训等级',
`period` int NOT NULL COMMENT '要求课时(分)',
`actual_period` int NOT NULL COMMENT '实际课时(分)',
`score` int NOT NULL COMMENT '考试成绩',
`passed` tinyint NOT NULL DEFAULT 0 COMMENT '是否合格，0不合格 1合格 默认0',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`create_by` varchar(50) NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`update_by` varchar(50) NULL DEFAULT NULL COMMENT '更新人',
`remark` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '线下教育登记表' ROW_FORMAT = DYNAMIC;
