2018-11-09 20:02:28 +00:00
|
|
|
-- AUTOGENERATED BY gopkg.in/spacemonkeygo/dbx.v1
|
|
|
|
-- DO NOT EDIT
|
|
|
|
CREATE TABLE aggregates (
|
|
|
|
node_id text NOT NULL,
|
|
|
|
start_time timestamp with time zone NOT NULL,
|
|
|
|
interval bigint NOT NULL,
|
|
|
|
created_at timestamp with time zone NOT NULL,
|
|
|
|
updated_at timestamp with time zone NOT NULL,
|
|
|
|
PRIMARY KEY ( node_id )
|
|
|
|
);
|
|
|
|
CREATE TABLE granulars (
|
|
|
|
node_id text NOT NULL,
|
|
|
|
start_time timestamp with time zone NOT NULL,
|
|
|
|
end_time timestamp with time zone NOT NULL,
|
|
|
|
data_total bigint NOT NULL,
|
|
|
|
created_at timestamp with time zone NOT NULL,
|
|
|
|
updated_at timestamp with time zone NOT NULL,
|
|
|
|
PRIMARY KEY ( node_id )
|
|
|
|
);
|
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 )
|
|
|
|
);
|