Created the models and associations between them