Add base model and relationships.