2018-11-09 20:02:28 +00:00
|
|
|
-- AUTOGENERATED BY gopkg.in/spacemonkeygo/dbx.v1
|
|
|
|
-- DO NOT EDIT
|
2018-12-12 21:24:08 +00:00
|
|
|
CREATE TABLE raws (
|
|
|
|
id bigserial NOT NULL,
|
2018-11-09 20:02:28 +00:00
|
|
|
node_id text NOT NULL,
|
2018-12-12 21:24:08 +00:00
|
|
|
interval_end_time timestamp with time zone NOT NULL,
|
|
|
|
data_total bigint NOT NULL,
|
|
|
|
data_type integer NOT NULL,
|
2018-11-09 20:02:28 +00:00
|
|
|
created_at timestamp with time zone NOT NULL,
|
|
|
|
updated_at timestamp with time zone NOT NULL,
|
2018-12-12 21:24:08 +00:00
|
|
|
PRIMARY KEY ( id )
|
2018-11-09 20:02:28 +00:00
|
|
|
);
|
2018-12-12 21:24:08 +00:00
|
|
|
CREATE TABLE rollups (
|
|
|
|
id bigserial NOT NULL,
|
2018-11-09 20:02:28 +00:00
|
|
|
node_id text NOT NULL,
|
|
|
|
start_time timestamp with time zone NOT NULL,
|
2018-12-12 21:24:08 +00:00
|
|
|
interval bigint NOT NULL,
|
|
|
|
data_type integer NOT NULL,
|
2018-11-09 20:02:28 +00:00
|
|
|
created_at timestamp with time zone NOT NULL,
|
|
|
|
updated_at timestamp with time zone NOT NULL,
|
2018-12-12 21:24:08 +00:00
|
|
|
PRIMARY KEY ( id )
|
2018-11-09 20:02:28 +00:00
|
|
|
);
|
2018-12-05 14:03:23 +00:00
|
|
|
CREATE TABLE timestamps (
|
|
|
|
name text NOT NULL,
|
|
|
|
value timestamp with time zone NOT NULL,
|
|
|
|
PRIMARY KEY ( name )
|
|
|
|
);
|