scaffold and relationships in models