changes 删除评级
This commit is contained in:
parent
3aadb8e24c
commit
f531d9d22f
|
@ -27,7 +27,7 @@ class RatingFlowParticipant(Base):
|
||||||
id = Column(String(16), primary_key=True)
|
id = Column(String(16), primary_key=True)
|
||||||
participant = Column(String(32), index=True, comment="参与人")
|
participant = Column(String(32), index=True, comment="参与人")
|
||||||
user_id = Column(String(16), comment="用户ID")
|
user_id = Column(String(16), comment="用户ID")
|
||||||
rating_process_id = Column(String(16), ForeignKey("rating_flow.id"), comment="评级流程ID")
|
rating_process_id = Column(String(16), ForeignKey("rating_flow.id", ondelete="CASCADE"), comment="评级流程ID")
|
||||||
|
|
||||||
rating_flow = relationship("RatingFlow", back_populates="rating_flow_participant")
|
rating_flow = relationship("RatingFlow", back_populates="rating_flow_participant")
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class RatingFlowNode(Base):
|
||||||
node_name = Column(String(32), comment="流程节点名称")
|
node_name = Column(String(32), comment="流程节点名称")
|
||||||
status = Column(Boolean, default=0, comment="流程节点状态")
|
status = Column(Boolean, default=0, comment="流程节点状态")
|
||||||
obj_id = Column(String(24), default=None, comment="流程内容mongoID")
|
obj_id = Column(String(24), default=None, comment="流程内容mongoID")
|
||||||
rating_process_id = Column(String(16), ForeignKey("rating_flow.id"), comment="评级流程ID")
|
rating_process_id = Column(String(16), ForeignKey("rating_flow.id", ondelete="CASCADE"), comment="评级流程ID")
|
||||||
|
|
||||||
|
|
||||||
Base.metadata.create_all(bind=engine)
|
Base.metadata.create_all(bind=engine)
|
||||||
|
|
Loading…
Reference in New Issue