Created models and relationships