Files
TJWaterServer/script/sql/create/4.tanks.sql
2022-10-09 11:06:19 +08:00

17 lines
381 B
SQL

-- [TANKS]
create type tanks_overflow as enum ('yes', 'no');
create table tanks
(
id varchar(32) primary key references _node(id)
, elevation numeric not null
, init_level numeric not null
, min_level numeric not null
, max_level numeric not null
, diameter numeric not null
, min_vol numeric not null
, vol_curve varchar(32) references _curve(id)
, overflow tanks_overflow
);