create type scada_device_type as enum ('PRESSURE', 'DEMAND', 'QUALITY', 'LEVEL', 'FLOW', 'UNKNOWN'); create table scada_device ( id text primary key , name text , address text , sd_type scada_device_type );