这是我们组的项目

This commit is contained in:
ygx
2026-09-21 19:49:26 +08:00
commit 9d2455902a
61 changed files with 4196 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
from sqlalchemy import Column, Integer, ForeignKey
from sqlalchemy.orm import relationship
from database import Base
class Score(Base):
__tablename__ = "score"
id = Column(Integer, primary_key=True,autoincrement=True)
student_id = Column(Integer, ForeignKey("student.sid"),nullable=False)
exam_id = Column(Integer, nullable=False)
score = Column(Integer, nullable=False)
flag = Column(Integer,default=1,nullable=False)
student=relationship("Student",back_populates="scores")