So erstellen Sie Enum in PostgreSQL
CREATE TYPE enum_name AS ENUM('value1', 'value2', 'value3');
Lux
CREATE TYPE enum_name AS ENUM('value1', 'value2', 'value3');
CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');