created the main models and the migration