From 3513e6addbb59ae8624bdc88b18120447806bdb2 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 24 Nov 2017 18:24:40 +0100 Subject: [PATCH] schema.sql --- schema.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 schema.sql diff --git a/schema.sql b/schema.sql new file mode 100644 index 0000000..831b389 --- /dev/null +++ b/schema.sql @@ -0,0 +1,17 @@ +create table ElectricEnergy ( + id int(10) unsigned not null auto_increment, + name varchar(64) not null, + ts timestamp not null, + energy int(10) unsigned not null, + power int(10) unsigned not null, + primary key (id) +) engine=InnoDB; + +create table Temperature ( + id int(10) unsigned not null auto_increment, + name varchar(64) not null, + ts timestamp not null, + temperature double not null, + primary key (id) +) engine=InnoDB; +