Files
hldrCenter/server/sql/course/course_resourse/course_resourse.sql

10 lines
647 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
CREATE TABLE `course_resource` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '资源ID主键自增',
`course_id` int(11) NOT NULL COMMENT '关联课程ID',
`title` varchar(255) NOT NULL COMMENT '资源标题如“第1章课件.pdf”',
`resource_url` varchar(512) NOT NULL COMMENT '资源文件URL',
`size` int(11) NOT NULL DEFAULT 0 COMMENT '文件大小KB默认0',
`sort` int(11) NOT NULL DEFAULT 0 COMMENT '排序(数值越小越靠前)',
PRIMARY KEY (`id`),
KEY `idx_course_id` (`course_id`) COMMENT '按课程ID查询索引'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='课程拓展资源表';