-- [SOURCES] create type sources_type as enum ('CONCEN', 'MASS', 'FLOWPACED', 'SETPOINT'); create table sources ( node varchar(32) primary key references _node(id) , type sources_type not null , strength numeric not null , time_pattern varchar(32) references _pattern(id) );