Creates models and relationships