duidui_fiber/docs/migrations/add_essay_review_statuses.sql
2026-03-27 10:34:03 +08:00

7 lines
470 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.

-- 申论题每题审核状态:为 camp_user_progress 增加 essay_review_statuses存储每题审核状态 JSON 数组
-- 任务最终审核状态由所有题目状态汇总任一驳回→rejected任一待审→pending全部通过→approved
-- 执行前请确认表名与数据库一致
ALTER TABLE camp_user_progress
ADD COLUMN essay_review_statuses TEXT NULL COMMENT '申论题每题审核状态 JSON 数组,如 ["PENDING","APPROVED","REJECTED"]';