-drop table zc;
+--drop table zc;
create table zc (
- time timestamp without time zone default now(),
+ time timestamp with time zone default now(),
PN integer not null,
Alarm_axis smallint not null,
X_axis_angle float not null,
_id serial
);
+create index zc_pn on zc(pn) ;
+
create user grafana password 'readonly' ;
grant select on zc to grafana ;