|
@@ -33,11 +33,11 @@ class SysSocial(Base):
|
|
|
code = Column(String(255), default=None, comment='用户的授权code')
|
|
|
oauth_token = Column(String(255), default=None, comment='Twitter平台用户的附带属性')
|
|
|
oauth_token_secret = Column(String(255), default=None, comment='Twitter平台用户的附带属性')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
|
|
|
class Config:
|
|
@@ -63,11 +63,11 @@ class SysTenant(Base):
|
|
|
account_count = Column(Integer, default=-1, comment='用户数量(-1不限制)')
|
|
|
status = Column(String(1), default='0', comment='租户状态(0正常 1停用)')
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
|
|
|
class Config:
|
|
|
orm_mode = True
|
|
@@ -84,11 +84,11 @@ class SysTenantPackage(Base):
|
|
|
menu_check_strictly = Column(Integer, default=1, comment='菜单树选择项是否关联显示')
|
|
|
status = Column(String(1), default='0', comment='状态(0正常 1停用)')
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
|
|
|
class Config:
|
|
|
orm_mode = True
|
|
@@ -100,20 +100,22 @@ class SysDept(Base):
|
|
|
dept_id = Column(BigInteger, primary_key=True,autoincrement=True, comment='部门id')
|
|
|
tenant_id = Column(String(20), default='000000', comment='租户编号')
|
|
|
parent_id = Column(BigInteger, default=0, comment='父部门id')
|
|
|
+ parent_name = Column(String(30), default='', comment='父部门名称')
|
|
|
ancestors = Column(String(500), default='', comment='祖级列表')
|
|
|
dept_name = Column(String(30), default='', comment='部门名称')
|
|
|
dept_category = Column(String(100), default=None, comment='部门类别编码')
|
|
|
order_num = Column(Integer, default=0, comment='显示顺序')
|
|
|
leader = Column(BigInteger, default=None, comment='负责人')
|
|
|
+ leader_name = Column(String(30), default=None, comment='负责人姓名')
|
|
|
phone = Column(String(11), default=None, comment='联系电话')
|
|
|
email = Column(String(50), default=None, comment='邮箱')
|
|
|
status = Column(String(1), default='0', comment='部门状态(0正常 1停用)')
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
|
|
|
class Config:
|
|
|
orm_mode = True
|
|
@@ -128,6 +130,7 @@ class SysUser(Base):
|
|
|
user_id = Column(BigInteger, primary_key=True,autoincrement=True, comment='用户ID')
|
|
|
tenant_id = Column(String(20), default='000000', comment='租户编号')
|
|
|
dept_id = Column(BigInteger, default=None, comment='部门ID')
|
|
|
+ dept_name = Column(String(30), default='', comment='部门名称')
|
|
|
user_name = Column(String(30), nullable=False, comment='用户账号')
|
|
|
nick_name = Column(String(30), nullable=False, comment='用户昵称')
|
|
|
user_type = Column(String(10), default='sys_user', comment='用户类型(sys_user系统用户)')
|
|
@@ -142,9 +145,9 @@ class SysUser(Base):
|
|
|
login_date = Column(DateTime, comment='最后登录时间')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(500), default=None, comment='备注')
|
|
|
|
|
|
class Config:
|
|
@@ -166,9 +169,9 @@ class SysPost(Base):
|
|
|
status = Column(String(1), nullable=False, comment='状态(0正常 1停用)')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(500), default=None, comment='备注')
|
|
|
|
|
|
class Config:
|
|
@@ -192,9 +195,9 @@ class SysRole(Base):
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(500), default=None, comment='备注')
|
|
|
|
|
|
class Config:
|
|
@@ -311,9 +314,9 @@ class SysDictType(Base):
|
|
|
dict_type = Column(String(100), default='', comment='字典类型')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(500), default=None, comment='备注')
|
|
|
del_flag = Column(String(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
|
|
@@ -359,9 +362,9 @@ class SysConfig(Base):
|
|
|
config_type = Column(CHAR(1), default='N', comment='系统内置(Y是 N否)')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(500), default=None, comment='备注')
|
|
|
|
|
|
class Config:
|
|
@@ -406,9 +409,9 @@ class SysNotice(Base):
|
|
|
status = Column(CHAR(1), default='0', comment='公告状态(0正常 1关闭)')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(255), default=None, comment='备注')
|
|
|
|
|
|
class Config:
|
|
@@ -436,9 +439,9 @@ class GenTable(Base):
|
|
|
options = Column(String(1000), comment='其它生成选项')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(500), default=None, comment='备注')
|
|
|
|
|
|
class Config:
|
|
@@ -468,9 +471,9 @@ class GenTableColumn(Base):
|
|
|
sort = Column(Integer, comment='排序')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
|
|
|
class Config:
|
|
|
orm_mode = True
|
|
@@ -486,10 +489,10 @@ class SysOss(Base):
|
|
|
file_suffix = Column(String(10), default='', nullable=False, comment='文件后缀名')
|
|
|
url = Column(String(500), nullable=False, comment='URL地址')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
- create_time = Column(DateTime, default=None, comment='创建时间')
|
|
|
- create_by = Column(BigInteger, default=None, comment='上传人')
|
|
|
- update_time = Column(DateTime, default=None, comment='更新时间')
|
|
|
- update_by = Column(BigInteger, default=None, comment='更新人')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
service = Column(String(20), default='minio', nullable=False, comment='服务商')
|
|
|
|
|
|
class Config:
|
|
@@ -515,9 +518,9 @@ class SysOssConfig(Base):
|
|
|
ext1 = Column(String(255), default='', comment='扩展字段')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, default=None, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, default=None, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(500), default=None, comment='备注')
|
|
|
|
|
|
class Config:
|
|
@@ -539,9 +542,9 @@ class SysClient(Base):
|
|
|
del_flag = Column(CHAR(1), default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
- create_time = Column(DateTime, default=None, comment='创建时间')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
- update_time = Column(DateTime, default=None, comment='更新时间')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
|
|
|
class Config:
|
|
|
orm_mode = True
|
|
@@ -559,10 +562,10 @@ class TestDemo(Base):
|
|
|
value = Column(String(255), default=None, comment='值')
|
|
|
version = Column(Integer, default=0, comment='版本')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
- create_time = Column(DateTime, default=None, comment='创建时间')
|
|
|
- create_by = Column(BigInteger, default=None, comment='创建人')
|
|
|
- update_time = Column(DateTime, default=None, comment='更新时间')
|
|
|
- update_by = Column(BigInteger, default=None, comment='更新人')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
del_flag = Column(Integer, default=0, comment='删除标志')
|
|
|
|
|
|
class Config:
|
|
@@ -580,10 +583,10 @@ class TestTree(Base):
|
|
|
tree_name = Column(String(255), default=None, comment='树节点名称')
|
|
|
version = Column(Integer, default=0, comment='版本')
|
|
|
create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
- create_time = Column(DateTime, default=None, comment='创建时间')
|
|
|
- create_by = Column(BigInteger, default=None, comment='创建人')
|
|
|
- update_time = Column(DateTime, default=None, comment='更新时间')
|
|
|
- update_by = Column(BigInteger, default=None, comment='更新人')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
del_flag = Column(Integer, default=0, comment='删除标志')
|
|
|
|
|
|
class Config:
|
|
@@ -601,11 +604,11 @@ class TestLeave(Base):
|
|
|
leave_days = Column(Integer, nullable=False, comment='请假天数')
|
|
|
remark = Column(String(255), comment='请假原因')
|
|
|
status = Column(String(255), comment='状态')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
tenant_id = Column(String(20), comment='租户编号')
|
|
|
|
|
|
class Config:
|
|
@@ -621,11 +624,11 @@ class WfCategory(Base):
|
|
|
parent_id = Column(BigInteger, comment='父级id')
|
|
|
sort_num = Column(Integer, comment='排序')
|
|
|
tenant_id = Column(String(20), comment='租户编号')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
|
|
|
# 定义唯一性约束条件
|
|
|
__table_args__ = (UniqueConstraint('category_code', name='uni_category_code'),)
|
|
@@ -645,11 +648,11 @@ class WfTaskBackNode(Base):
|
|
|
task_type = Column(String(255), nullable=False, comment='节点类型')
|
|
|
assignee = Column(String(2000), nullable=False, comment='审批人')
|
|
|
tenant_id = Column(String(20), comment='租户编号')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
|
|
|
class Config:
|
|
|
orm_mode = True
|
|
@@ -663,11 +666,11 @@ class WfDefinitionConfig(Base):
|
|
|
definition_id = Column(String(255), nullable=False, comment='流程定义ID')
|
|
|
process_key = Column(String(255), nullable=False, comment='流程KEY')
|
|
|
version = Column(Integer, nullable=False, comment='流程版本')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
remark = Column(String(500), default='', comment='备注')
|
|
|
tenant_id = Column(String(20), comment='租户编号')
|
|
|
|
|
@@ -687,11 +690,11 @@ class WfFormManage(Base):
|
|
|
router = Column(String(255), nullable=False, comment='路由地址/表单ID')
|
|
|
remark = Column(String(500), comment='备注')
|
|
|
tenant_id = Column(String(20), comment='租户编号')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
|
|
|
class Config:
|
|
|
orm_mode = True
|
|
@@ -707,11 +710,11 @@ class WfNodeConfig(Base):
|
|
|
node_id = Column(String(255), nullable=False, comment='节点id')
|
|
|
definition_id = Column(String(255), nullable=False, comment='流程定义id')
|
|
|
apply_user_task = Column(CHAR(1), default='0', comment='是否为申请人节点(0是 1否)')
|
|
|
- create_dept = Column(BigInteger, comment='创建部门')
|
|
|
- create_by = Column(BigInteger, comment='创建者')
|
|
|
- create_time = Column(DateTime, comment='创建时间')
|
|
|
- update_by = Column(BigInteger, comment='更新者')
|
|
|
- update_time = Column(DateTime, comment='更新时间')
|
|
|
+ create_dept = Column(BigInteger, default=None, comment='创建部门')
|
|
|
+ create_by = Column(BigInteger, default=None, comment='创建者')
|
|
|
+ create_time = Column(DateTime, default=datetime.now, comment='创建时间')
|
|
|
+ update_by = Column(BigInteger, default=None, comment='更新者')
|
|
|
+ update_time = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|
|
|
tenant_id = Column(String(20), comment='租户编号')
|
|
|
|
|
|
class Config:
|