|
|
@ -366,20 +366,19 @@ CREATE TABLE poolstats ( |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE userstats ( |
|
|
|
CREATE TABLE userstats ( |
|
|
|
poolinstance character varying(256) NOT NULL, |
|
|
|
|
|
|
|
userid bigint NOT NULL, |
|
|
|
userid bigint NOT NULL, |
|
|
|
workername character varying(256) NOT NULL, |
|
|
|
workername character varying(256) NOT NULL, |
|
|
|
elapsed bigint NOT NULL, |
|
|
|
|
|
|
|
hashrate float NOT NULL, |
|
|
|
hashrate float NOT NULL, |
|
|
|
hashrate5m float NOT NULL, |
|
|
|
hashrate5m float NOT NULL, |
|
|
|
hashrate1hr float NOT NULL, |
|
|
|
hashrate1hr float NOT NULL, |
|
|
|
hashrate24hr float NOT NULL, |
|
|
|
hashrate24hr float NOT NULL, |
|
|
|
summarylevel char NOT NULL, |
|
|
|
summarylevel char NOT NULL, |
|
|
|
|
|
|
|
statsdate timestamp with time zone NOT NULL, |
|
|
|
createdate timestamp with time zone NOT NULL, |
|
|
|
createdate timestamp with time zone NOT NULL, |
|
|
|
createby character varying(64) DEFAULT ''::character varying NOT NULL, |
|
|
|
createby character varying(64) DEFAULT ''::character varying NOT NULL, |
|
|
|
createcode character varying(128) DEFAULT ''::character varying NOT NULL, |
|
|
|
createcode character varying(128) DEFAULT ''::character varying NOT NULL, |
|
|
|
createinet character varying(128) DEFAULT ''::character varying NOT NULL, |
|
|
|
createinet character varying(128) DEFAULT ''::character varying NOT NULL, |
|
|
|
PRIMARY KEY (poolinstance, userid, createdate) |
|
|
|
PRIMARY KEY (userid, workername, summarylevel, statsdate) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|