You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
1.8 KiB

from sqlalchemy import Column, Integer, String, DateTime, Boolean, Text
from config.database import Base
from datetime import datetime
class FlowApproval(Base):
"""
流程审批表
"""
__tablename__ = 'flow_approval'
id = Column(String(50), primary_key=True, comment='id')
businessType = Column(String(50), default='', comment='业务审批模块')
businessId = Column(String(255), default='', comment='业务id串')
applicant = Column(String(50), default=None, comment='申请人')
applyTime = Column(String(50), default=None, comment='审批时间')
currentFlowId = Column(String(50), default=None, comment='当前审批节点id')
nextStep = Column(String(255), default=None, comment="下一步编号")
nextStepRole = Column(String(255), default=None, comment="下一步审批角色")
nextStepUser = Column(String(255), default=None, comment="下一步审批人")
status = Column(String(10), default=None, comment='状态')
approvalFlow = Column(Text, default=None, comment='审批流') # [{审批人:‘’,审批节点id:‘’,审批时间:‘’,'审批结果':‘’,审批意见:''},{}]数组
class FlowConfig(Base):
__tablename__ = 'flow_config'
id = Column(String(50), primary_key=True, comment='id')
code = Column(String(50), default='', comment='节点代码')
text = Column(String(255), default='', comment='节点名称')
type = Column(String(50), default=None, comment='节点类型,Role/User')
module = Column(String(50), default=None, comment='所属模块')
step = Column(Integer, default=None, comment='步骤')
x = Column(Integer, default=None, comment='节点位置x')
y = Column(Integer, default=None, comment='节点位置y')
parent = Column(Text, default=None, comment="父节点")