From 6e526d9f6ba9ba43f31971d792ee23afbc42f820 Mon Sep 17 00:00:00 2001 From: chen <2966418553@qq.com> Date: Mon, 21 Sep 2026 16:30:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E7=BB=A9=E5=BB=BA=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scores/model/score_model.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scores/model/score_model.py b/scores/model/score_model.py index 5a38e60..253b5e6 100644 --- a/scores/model/score_model.py +++ b/scores/model/score_model.py @@ -6,9 +6,13 @@ class Score(Base): cid = Column(Integer ,primary_key = True ,autoincrement = True - ,comment ='考试序次' + ,comment ='编号' ) - score = Column(Float,nullable = False) + score_num = Column(Integer + ,primary_key = True + ,comment ='考试序次' + ) + score = Column(Integer,nullable = False) subject = Column(String(100) ,nullable = False )