模型类
This commit is contained in:
@@ -8,10 +8,10 @@ class Course(Base):
|
||||
|
||||
__tablename__ = "wl_course"
|
||||
|
||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
course_number = Column(String(50))
|
||||
name = Column(String(100))
|
||||
planned_training_hours = Column(Numeric(8, 2))
|
||||
created_at = Column(DateTime)
|
||||
updated_at = Column(DateTime)
|
||||
is_deleted = Column(default=False, nullable=False)
|
||||
id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
|
||||
course_number = Column(String(50), comment="课程编号")
|
||||
name = Column(String(100), comment="课程名字")
|
||||
planned_training_hours = Column(Numeric(8, 2), comment="计划培训课时")
|
||||
created_at = Column(DateTime, comment="数据创建时间")
|
||||
updated_at = Column(DateTime, comment="数据更新时间")
|
||||
is_deleted = Column(default=False, nullable=False, comment="逻辑删除字段")
|
||||
|
||||
Reference in New Issue
Block a user