create models and associations.