changes 删除评级
This commit is contained in:
parent
582a355193
commit
a136ae63fa
|
@ -17,8 +17,8 @@ class RatingFlow(Base):
|
||||||
scorecard = Column(String(64), index=True, comment="打分卡")
|
scorecard = Column(String(64), index=True, comment="打分卡")
|
||||||
scorecard_id = Column(String(16), comment="打分卡ID")
|
scorecard_id = Column(String(16), comment="打分卡ID")
|
||||||
|
|
||||||
nodes = relationship("RatingFlowNode", backref="rating_flow", cascade="save-update,delete")
|
nodes = relationship("RatingFlowNode", backref="rating_flow", cascade="all, delete-orphan")
|
||||||
rating_flow_participant = relationship("RatingFlowParticipant", back_populates="rating_flow")
|
rating_flow_participant = relationship("RatingFlowParticipant", back_populates="rating_flow", cascade="all, delete-orphan")
|
||||||
|
|
||||||
|
|
||||||
class RatingFlowParticipant(Base):
|
class RatingFlowParticipant(Base):
|
||||||
|
@ -29,7 +29,7 @@ class RatingFlowParticipant(Base):
|
||||||
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"), comment="评级流程ID")
|
||||||
|
|
||||||
rating_flow = relationship("RatingFlow", back_populates="rating_flow_participant", cascade="save-update,delete")
|
rating_flow = relationship("RatingFlow", back_populates="rating_flow_participant", cascade="all, delete-orphan")
|
||||||
|
|
||||||
|
|
||||||
class RatingFlowNode(Base):
|
class RatingFlowNode(Base):
|
||||||
|
|
Loading…
Reference in New Issue