Use the competitiontype enum to database class.