created models and relationships