Initial commit
This commit is contained in:
commit
89f483171a
43 changed files with 2245 additions and 0 deletions
10
sql/00001.sql
Normal file
10
sql/00001.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
CREATE TYPE datapoint_type AS ENUM('INT', 'STRING', 'DATETIME');
|
||||
|
||||
CREATE TABLE public.datapoint (
|
||||
"id" serial NOT NULL,
|
||||
"name" varchar NOT NULL,
|
||||
"datatype" datapoint_type NOT NULL,
|
||||
"last_value" timestamptz DEFAULT '1970-01-01 00:00:00+00' NOT NULL,
|
||||
CONSTRAINT datapoint_pk PRIMARY KEY (id),
|
||||
CONSTRAINT datapoint_unique UNIQUE ("name")
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue