| | |
| | | -- ---------------------------- |
| | | -- 课程学习学习日志表 |
| | | -- ---------------------------- |
| | | drop table if exists `train_exam`.`ex_student_study`; |
| | | CREATE TABLE `train_exam`.`ex_student_study` ( |
| | | `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键' , |
| | | `phase_id` bigint(20) NOT NULL COMMENT '课时批次id', |
| | |
| | | `current_duration` bigint(20) NOT NULL DEFAULT 0 COMMENT '当前学习时长,单位秒', |
| | | `current_page` int NOT NULL DEFAULT 0 COMMENT '当前学习页数,单位页', |
| | | `progress` decimal(5, 2) NOT NULL DEFAULT 0 COMMENT '进度(百分比)', |
| | | `resource_type` varchar(10) NOT NULL COMMENT '资源类型(PPT,MP4,PDF)', |
| | | `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 '更新时间', |