diff --git a/orm/tables/process.py b/orm/tables/process.py index 8b67e32..f69d9fd 100644 --- a/orm/tables/process.py +++ b/orm/tables/process.py @@ -109,10 +109,10 @@ node_link_table = Table( Column("id", UnsignedInt, autoincrement=True, primary_key=True, nullable=False), Column("link_name", String(20), nullable=False), - Column("node_id", UnsignedInt, ForeignKey("ps_node.id"), nullable=False), + Column("node_id", UnsignedInt, ForeignKey("ps_node.id", ondelete='CASCADE'), nullable=False), Column("link_point_id", UnsignedInt, nullable=False), Column("next_node_id", UnsignedInt, ForeignKey( - "ps_node.id"), nullable=False), + "ps_node.id", ondelete='CASCADE'), nullable=False), Column("settings", JSON, default={}), Column("creator_id", UnsignedInt, ForeignKey( "account.id"), nullable=False),