feat: CASCADE node link table #3

Merged
ivan.dev merged 1 commits from VORKOUT-29 into main 2025-10-30 10:50:27 +05:00
Showing only changes of commit 9f2ed2fbbd - Show all commits

View File

@@ -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),