solved problem with enums in postgresql

Solved problem with enums in postgresql