Create migrations and model relations