Files
TJWaterServer/script/sql/create/18.sources.sql
2022-12-17 11:10:15 +08:00

15 lines
339 B
SQL

-- [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
, pattern varchar(32) references _pattern(id)
);
-- delete when delete node
-- unset pattern when delete pattern