PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS computer (cpu_num_core real, cpu_frequency real, cpu_type text, memory_size real, memory_type text, partition_list text, date text, time text, reported integer NULL DEFAULT 0);
INSERT INTO "computer" VALUES(12.0,0.0,'0',33705312256.0,'0','/dev/md0=280665088;/dev/md1=19534663680;/dev/md2=463722799104','2017-09-15','00:00:04',1);
CREATE TABLE IF NOT EXISTS user (partition text, pid real, process text,  cpu_percent real, cpu_time real,  cpu_num_threads real,  memory_percent real,  memory_rss real, io_rw_counter real,  io_cycles_counter real, date text, time text,  reported integer NULL DEFAULT 0);
CREATE TABLE IF NOT EXISTS folder (partition text, disk_used real, date text,  time text, reported integer NULL DEFAULT 0);
CREATE TABLE IF NOT EXISTS disk (partition text, used text, free text, mountpoint text,  date text, time text, reported integer NULL DEFAULT 0);
CREATE TABLE IF NOT EXISTS temperature (sensor_id name, temperature real, alarm integer, date text, time text, reported integer NULL DEFAULT 0);
CREATE TABLE IF NOT EXISTS heating (model_id name, sensor_id name, initial_temperature real,  final_temperature real, delta_time real, zero_emission_ratio real, date text, time text, reported integer NULL DEFAULT 0);
CREATE TABLE IF NOT EXISTS system (loadavg real, cpu_percent real, memory_used real,  memory_free real, net_in_bytes real, net_in_errors real,  net_in_dropped real, net_out_bytes real, net_out_errors real,  net_out_dropped real, date text, time text,  reported integer NULL DEFAULT 0);
INSERT INTO "system" VALUES(9.89,99.5,33139023872.0,566288384.0,2147589991472.0,0.0,0.0,1662685322551.0,0.0,90935.0,'2017-09-15','00:02:02',0);
COMMIT;
