mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-29 22:49:48 +08:00
学员课程附件列表查询、下载日志记录
This commit is contained in:
@@ -30,4 +30,16 @@ CREATE TABLE `course_attachment` (
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `course_id` (`course_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE `course_attachment_download_log` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '学员ID',
|
||||
`course_id` int(11) NOT NULL DEFAULT '0' COMMENT '课程ID',
|
||||
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '课程标题',
|
||||
`courser_attachment_id` int(11) NOT NULL DEFAULT '0' COMMENT '课程附件id',
|
||||
`rid` int(11) NOT NULL DEFAULT '0' COMMENT '资源id',
|
||||
`ip` varchar(45) NOT NULL DEFAULT '' COMMENT '下载ip',
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Reference in New Issue
Block a user