合并统计,学生,老师,成绩,班级模块,还差顾问,就业

This commit is contained in:
pzc
2026-09-13 22:06:43 +08:00
parent dd550edfd2
commit 5156da5a7c
9 changed files with 437 additions and 10 deletions
+6 -2
View File
@@ -1,11 +1,15 @@
from sqlalchemy import Column, Integer, Float
from sqlalchemy import Column, Integer, Float, ForeignKey
from sqlalchemy.orm import relationship
from database import Base
class Score(Base):
__tablename__ = "wl_score"
stu_id = Column(Integer, primary_key=True, comment="学生编号")
stu_id = Column(Integer, ForeignKey('wl_student.stu_id'),primary_key=True, comment="学生编号")
exam_order = Column(Integer, primary_key=True, comment="考核序次")
score = Column(Float, nullable=False, comment="成绩")
student=relationship("Student",back_populates="scores")