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,11 +1,11 @@
-- [SOURCES]
CREATE TYPE SOURCES_TYPE AS ENUM ('CONCEN', 'MASS', 'FLOWPACED', 'SETPOINT');
create type sources_type as enum ('concen', 'mass', 'flowpaced', 'setpoint');
CREATE TABLE SOURCES
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)
node varchar(32) primary key references _node(id)
, type sources_type not null
, strength numeric not null
, time_pattern varchar(32) references _pattern(id)
);