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 INTEGER 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 NOT NULL,
|
|
|
|
data_total INTEGER NOT NULL,
|
|
|
|
data_type INTEGER NOT NULL,
|
2018-11-09 20:02:28 +00:00
|
|
|
created_at TIMESTAMP NOT NULL,
|
|
|
|
updated_at TIMESTAMP 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 INTEGER NOT NULL,
|
2018-11-09 20:02:28 +00:00
|
|
|
node_id TEXT NOT NULL,
|
|
|
|
start_time TIMESTAMP NOT NULL,
|
2018-12-12 21:24:08 +00:00
|
|
|
interval INTEGER NOT NULL,
|
|
|
|
data_type INTEGER NOT NULL,
|
2018-11-09 20:02:28 +00:00
|
|
|
created_at TIMESTAMP NOT NULL,
|
|
|
|
updated_at TIMESTAMP 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 NOT NULL,
|
|
|
|
PRIMARY KEY ( name )
|
|
|
|
);
|