20 lines
794 B
Python
20 lines
794 B
Python
from sqlalchemy import Integer, Column, DateTime, String
|
|
|
|
from util.database import Base
|
|
|
|
|
|
class Class(Base):
|
|
"""对应 Excel Sheet:班级表。"""
|
|
|
|
__tablename__ = "wl_class"
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
|
|
class_number = Column(String(50), comment="班级编号")
|
|
name = Column(String(100), comment="班级名字")
|
|
start_date = Column(DateTime, comment="开班时间")
|
|
planned_end_date = Column(DateTime, comment="计划结课时间")
|
|
actual_end_date = Column(DateTime, comment="实际结课时间")
|
|
created_at = Column(DateTime, comment="数据创建时间")
|
|
updated_at = Column(DateTime, comment="数据更新时间")
|
|
is_deleted = Column(default=False, nullable=False, comment="逻辑删除字段")
|