feat: 初始化考培练系统项目
- 从服务器拉取完整代码 - 按框架规范整理项目结构 - 配置 Drone CI 测试环境部署 - 包含后端(FastAPI)、前端(Vue3)、管理端 技术栈: Vue3 + TypeScript + FastAPI + MySQL
This commit is contained in:
10
backend/alembic/versions/add_course_fields.sql
Normal file
10
backend/alembic/versions/add_course_fields.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- 为课程表添加学员统计等字段
|
||||
|
||||
ALTER TABLE `courses`
|
||||
ADD COLUMN `student_count` INT DEFAULT 0 COMMENT '学习人数' AFTER `is_featured`,
|
||||
ADD COLUMN `is_new` BOOLEAN DEFAULT TRUE COMMENT '是否新课程(最近30天内发布)' AFTER `student_count`,
|
||||
ADD INDEX `idx_student_count` (`student_count`),
|
||||
ADD INDEX `idx_is_new` (`is_new`);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user