Format sql

This commit is contained in:
WQY\qiong
2022-10-09 11:06:19 +08:00
parent d99c0eacbf
commit 9accb467b2
58 changed files with 283 additions and 283 deletions

View File

@@ -1,16 +1,16 @@
-- [TANKS]
CREATE TYPE TANKS_OVERFLOW AS ENUM ('yes', 'no');
create type tanks_overflow as enum ('yes', 'no');
CREATE TABLE TANKS
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
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
);