summaryrefslogtreecommitdiffstats
path: root/create/postgresql/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'create/postgresql/schema.sql')
-rw-r--r--create/postgresql/schema.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index 45d1122d..f17c989a 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -503,4 +503,18 @@ CREATE TABLE screens_items (
PRIMARY KEY (screenitemid)
);
+--
+-- Table structure for table 'stats'
+--
+
+CREATE TABLE stats (
+ itemid int4 DEFAULT '0' NOT NULL,
+ year int4 DEFAULT '0' NOT NULL,
+ month int4 DEFAULT '0' NOT NULL,
+ day int4 DEFAULT '0' NOT NULL,
+ hour int4 DEFAULT '0' NOT NULL,
+ value float8 DEFAULT '0.0000' NOT NULL,
+ PRIMARY KEY (itemid,year,month,day,hour),
+);
+
VACUUM ANALYZE;