精简 Problem 模型:移除 rule_type / total_score / io_mode

系统只用 ACM 模式且题目固定标准 IO,这三列已无实际用途:
- rule_type / total_score:OI 专用,删除后 judge/dispatcher 的 OI 分支全部塌缩为 ACM
- io_mode:判题改为固定发送 Standard IO 常量;languages.py 的 seccomp_rule
  保留 dict 形态但改用字面量 key,不改判题机 wire 契约
- prompt 字段保留(预留给未来 AI 分析)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-04 11:40:38 -06:00
parent 4743b0398a
commit 9535b64a4b
11 changed files with 58 additions and 140 deletions

View File

@@ -1,7 +1,6 @@
# Generated by Django 5.2.3 on 2025-06-14 08:51
import django.db.models.deletion
import problem.models
import utils.models
from django.conf import settings
from django.db import migrations, models
@@ -47,7 +46,7 @@ class Migration(migrations.Migration):
('last_update_time', models.DateTimeField(auto_now=True, null=True)),
('time_limit', models.IntegerField()),
('memory_limit', models.IntegerField()),
('io_mode', models.JSONField(default=problem.models._default_io_mode)),
('io_mode', models.JSONField(default=dict)),
('spj', models.BooleanField(default=False)),
('spj_language', models.TextField(null=True)),
('spj_code', models.TextField(null=True)),