defining repo model in migration