adds API models and relations