feat:添加前端页面
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from sqlalchemy import Column, Integer, Float, ForeignKey
|
||||
from sqlalchemy import Column, Integer, Float, ForeignKey, String
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
from database import Base
|
||||
@@ -6,7 +6,9 @@ from database import Base
|
||||
class Score(Base):
|
||||
__tablename__ = "wl_score"
|
||||
|
||||
stu_id = Column(Integer, ForeignKey('wl_student.stu_id'),primary_key=True, comment="学生编号")
|
||||
# 和 wl_emp 一样:学号直接做主键,同时做外键指向学生表的业务学号,
|
||||
# 不再用内部主键 stu_id。长度跟 Student.stu_no 保持一致。
|
||||
stu_no = Column(String(20), ForeignKey('wl_student.stu_no'), primary_key=True, comment="学号")
|
||||
exam_order = Column(Integer, primary_key=True, comment="考核序次")
|
||||
score = Column(Float, nullable=False, comment="成绩")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user