pub async fn get_by_phase( conn: &mut PgConnection, phase: &str, ) -> ModelResult<CreditRegistrationPhaseState>