19 lines
737 B
Python
19 lines
737 B
Python
from sqlalchemy import Integer, Column, DateTime, Integer, Numeric, String
|
|
|
|
from util.database import Base
|
|
|
|
|
|
class Grade(Base):
|
|
"""对应 Excel Sheet:成绩表。"""
|
|
|
|
__tablename__ = "wl_grade"
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
|
|
student_number = Column(String(50), comment="学生编号")
|
|
course_number = Column(String(50), comment="课程编号")
|
|
exam_sequence = Column(Integer, comment="考试序次")
|
|
score = Column(Numeric(5, 2), comment="分数")
|
|
created_at = Column(DateTime, comment="数据创建时间")
|
|
updated_at = Column(DateTime, comment="数据更新时间")
|
|
is_deleted = Column(default=False, nullable=False, comment="逻辑删除字段")
|