Files
012-kaopeilian/backend/alembic/versions/add_course_fields.sql
111 998211c483 feat: 初始化考培练系统项目
- 从服务器拉取完整代码
- 按框架规范整理项目结构
- 配置 Drone CI 测试环境部署
- 包含后端(FastAPI)、前端(Vue3)、管理端

技术栈: Vue3 + TypeScript + FastAPI + MySQL
2026-01-24 19:33:28 +08:00

11 lines
354 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.
-- 为课程表添加学员统计等字段
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`);