Files
hldrCenter/server/sql/teaching_case.sql
2025-10-31 14:45:47 +08:00

14 lines
1.3 KiB
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 `teaching_case` (
`id` int NOT NULL AUTO_INCREMENT COMMENT '案例ID主键',
`title` varchar(255) NOT NULL COMMENT '案例标题',
`tutor_name` varchar(100) NOT NULL COMMENT '导师姓名',
`tutor_title` varchar(200) DEFAULT '' COMMENT '导师头衔XX讲师',
`student_names` varchar(500) NOT NULL COMMENT '学生姓名(多人用逗号分隔,如“张三,李四”)',
`content` text NOT NULL COMMENT '案例内容(详细描述)',
`cover_url` varchar(512) DEFAULT '' COMMENT '案例封面图URL',
`sort` int DEFAULT 0 COMMENT '排序(数字越小越靠前)',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_delete` int DEFAULT 0 COMMENT '软删除标识0-未删除1-已删除)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='独立教学案例表';