org.hwo.pulscounter/src/org/hwo/pulscounter/db/schema/schema-full.sql

15 lines
452 B
MySQL
Raw Normal View History

2016-09-13 10:52:27 +02:00
/*
synololog sql database schema
Version: 0
*/
2016-09-13 12:07:01 +02:00
create table props (id uuid primary key,name varchar(255) unique,value varchar(255));
2016-09-13 10:52:27 +02:00
create table devices (id uuid,serial varchar(12));
2016-09-13 12:07:01 +02:00
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);
2016-09-13 10:52:27 +02:00
2016-09-13 12:07:01 +02:00
insert into props (id,name,value) values(uuid(),'db.schema.version','0');
2016-09-13 10:52:27 +02:00