support simple relations with foreign keys