We could add a plugin that would allow to infer types for keys referenced by their names in other tables/models. This would likely require some extensive changes to mypy (because of implicit dependencies between modules/targets), so this is low priority.