Format sql
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user