Add support for foreign keys.