The model contains both sides of the foreign key relationship, so yes, you can check across.
- User has a foreign key to UserDetail - this will appear in the "ForeignKeys" property.
-
UserDetail does not have a fk to User, but the DatabaseTable model has the inverse relationship to User in the "ForeignKeyChildren" property.