created the models for the main tables