In typeorm, how can I create a postgres enum type Gender as in this raw query
CREATE TYPE public.Gender AS ENUM ( \'male\', \'female\' ); ALTER TABL
For Postgres, the column type should be 'text', not 'string', as string results in DataTypeNotSupportedError: Data type "string" in "" is not supported by "postgres" database.