feat: CASCADE node link table
This commit is contained in:
@@ -109,10 +109,10 @@ node_link_table = Table(
|
|||||||
Column("id", UnsignedInt, autoincrement=True,
|
Column("id", UnsignedInt, autoincrement=True,
|
||||||
primary_key=True, nullable=False),
|
primary_key=True, nullable=False),
|
||||||
Column("link_name", String(20), 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("link_point_id", UnsignedInt, nullable=False),
|
||||||
Column("next_node_id", UnsignedInt, ForeignKey(
|
Column("next_node_id", UnsignedInt, ForeignKey(
|
||||||
"ps_node.id"), nullable=False),
|
"ps_node.id", ondelete='CASCADE'), nullable=False),
|
||||||
Column("settings", JSON, default={}),
|
Column("settings", JSON, default={}),
|
||||||
Column("creator_id", UnsignedInt, ForeignKey(
|
Column("creator_id", UnsignedInt, ForeignKey(
|
||||||
"account.id"), nullable=False),
|
"account.id"), nullable=False),
|
||||||
|
|||||||
Reference in New Issue
Block a user