Add isForeignKey inteface to definition