level 177
[zc] / create.sql
1 --drop table zc;
2 create table zc (
3         time timestamp with time zone default now(),
4         PN integer not null,
5         Alarm_axis smallint not null,
6         X_axis_angle float not null,
7         Y_axis_angle float not null,
8         Signal_strength smallint not null,
9         Arming_disarming smallint not null,
10         Sensor_temperature float not null,
11         Power_source_voltage float not null,
12         Sensor_operating_mode smallint not null,
13         _id serial
14 );
15
16 create index zc_pn on zc(pn) ;
17
18 create user grafana password 'readonly' ;
19 grant select on zc to  grafana ;