Files
hldrCenter/server/sql/course/course_teacher/course_teacher.sql

13 lines
832 B
SQL
Raw 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_teacher` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '关联ID主键自增',
`course_id` int(11) NOT NULL COMMENT '关联课程ID',
`teacher_id` int(11) NOT NULL COMMENT '教师ID关联用户表user.id',
`name` varchar(100) NOT NULL COMMENT '教师姓名',
`title` varchar(200) NOT NULL DEFAULT '' COMMENT '教师头衔如“XXX大学教授”',
`avatar` varchar(512) NOT NULL DEFAULT '' COMMENT '教师头像URL',
`intro` text COMMENT '教师简介',
`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='教学团队表';