班级表
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
from sqlalchemy import DATETIME,Column,Integer,String,Date
|
||||||
|
from datetime import datetime,date
|
||||||
|
from util.database import Base,engine
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class Related (Base):
|
||||||
|
|
||||||
|
__tablename__ = "wl_class"
|
||||||
|
|
||||||
|
related_id= Column(Integer, primary_key=True,comment='id')
|
||||||
|
|
||||||
|
source_id= Column(Integer, comment='原班级编号')
|
||||||
|
|
||||||
|
destination_id = Column(Integer, comment='目的班级编号')
|
||||||
|
|
||||||
|
related_type = Column(String(100), comment='关系类型')
|
||||||
|
|
||||||
|
entry_time = Column(Date,default=date.today,comment='数据创建时间')
|
||||||
|
|
||||||
|
update_time = Column(DATETIME,default=datetime.now,onupdate=datetime.now,comment='数据更新时间')
|
||||||
|
|
||||||
|
delete_status = Column(Integer,default=0,comment='删除状态:0未删除,1已删除')
|
||||||
|
|
||||||
|
delete_time = Column(DATETIME,comment='删除时间')
|
||||||
Reference in New Issue
Block a user