曾凯修改了student_id中外键约束更改了大写Student.id,原先为小写student.id

This commit is contained in:
曾凯
2026-09-21 15:48:13 +08:00
parent 9f53b3389c
commit eaa940e751
+1 -1
View File
@@ -9,7 +9,7 @@ class Score(Base):
,comment="成绩表序号,自增主键"
)
student_id = Column(Integer
,ForeignKey("student.id")
,ForeignKey("Student.id")
,nullable=False
,comment="学生学号"
)