MqttDispatcherPy/schema.sql
2017-11-13 15:07:52 +01:00

18 lines
459 B
SQL

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;