/* 
	synololog sql database schema
	
	Version: 0 

*/

create table properties (id uuid primary key,name varchar(255) unique,value varchar(255));
create table devices (id uuid,serial varchar(12));
create table snapshots (id uuid,device uuid,timestamp integer,counters int array[32],analogs int array[8],inputs int,outputs int,pullups int,inverts int); 

insert into properties (id,name,value) values(uuid(),'db.schema.version','0');

