13 lines
338 B
Python
13 lines
338 B
Python
from sqlalchemy import Column, Integer, Float
|
|
from database import Base
|
|
|
|
class Score(Base):
|
|
__tablename__ = "student_score"
|
|
|
|
stu_id = Column(Integer, primary_key=True, comment="学生编号")
|
|
exam_order = Column(Integer, primary_key=True, comment="考核序次")
|
|
score = Column(Float, nullable=False, comment="成绩")
|
|
|
|
|
|
|