Files
hldrCenter/server/sql/course.sql
2025-10-31 13:24:07 +08:00

11 lines
912 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` (
`id` int NOT NULL AUTO_INCREMENT COMMENT '课程ID主键',
`title` varchar(255) NOT NULL COMMENT '课程标题',
`subtitle` varchar(255) DEFAULT '' COMMENT '课程副标题',
`cover_url` varchar(512) DEFAULT '' COMMENT '课程封面图URL',
`intro` text COMMENT '课程简介(对应“课程简介”模块)',
`status` tinyint DEFAULT 1 COMMENT '课程状态0删除1-已发布)',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='课程主表';