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 )