feat: CASCADE node link table #3
@@ -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),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user