Add migrations, models and model tests