Generate AST nodes for foreign key constraints