/* 
	synololog sql database schema
	
	Version: 0 

*/

create table props (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 integer,timestamp integer,counters integer array[32],analogs integer array[8],inputs integer,outputs integer,pullups integer,inverts integer); 


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

