feat: add recharge workflow models and schema statuses
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
94dd52832b
commit
bdd67d44d9
7 files changed
+147
-26
No files matched your search
@@ -1333,7 +1333,41 @@ class PlVehicleRechargeApply(Base):
|
||||
odometer_km = Column(DECIMAL(10, 1), nullable=True, comment="期初公里数")
|
||||
attachment_urls = Column(String(2000), nullable=True, comment="附件URL")
|
||||
applicant_id = Column(String(64), nullable=False, comment="申请人ID")
|
||||
status = Column(String(20), nullable=False, default="pending", comment="申请状态")
|
||||
status = Column(
|
||||
String(20),
|
||||
nullable=False,
|
||||
default="draft",
|
||||
comment="draft/in_approval/rejected/disbursed/cancelled",
|
||||
)
|
||||
wf_id = Column(String(64), nullable=True, comment="工作流定义ID")
|
||||
current_node = Column(String(64), nullable=True, comment="当前节点ID")
|
||||
approval_round = Column(Integer, nullable=False, default=0, comment="当前审批轮次")
|
||||
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人id")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人id")
|
||||
update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除")
|
||||
|
||||
|
||||
class PlVehicleRechargeApproval(Base):
|
||||
"""车辆充值申请审批历史 pl_vehicle_recharge_approval"""
|
||||
|
||||
__tablename__ = "pl_vehicle_recharge_approval"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
apply_id = Column(String(64), nullable=False, comment="申请单ID")
|
||||
approval_round = Column(Integer, nullable=False, default=1, comment="审批轮次")
|
||||
node_id = Column(String(64), nullable=True, comment="节点ID快照")
|
||||
node_name = Column(String(128), nullable=True, comment="节点名称快照")
|
||||
approver_id = Column(String(64), nullable=False, comment="审批人用户ID")
|
||||
approver_name = Column(String(64), nullable=False, comment="审批人姓名")
|
||||
approval_status = Column(String(32), nullable=False, comment="approved/rejected/disbursed")
|
||||
approval_opinion = Column(String(1024), nullable=True, comment="审批意见")
|
||||
approval_time = Column(DateTime, nullable=False, comment="审批时间")
|
||||
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
|
||||
Reference in new issue
Block a user