Add table scada_data
This commit is contained in:
7
script/sql/create/30.scada_data.sql
Normal file
7
script/sql/create/30.scada_data.sql
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
create table scada_data
|
||||||
|
(
|
||||||
|
device_id text not null references scada_model(device_id)
|
||||||
|
, time timestamp not null
|
||||||
|
, value numeric not null
|
||||||
|
, primary key (device_id, time)
|
||||||
|
);
|
||||||
1
script/sql/drop/30.scada_data.sql
Normal file
1
script/sql/drop/30.scada_data.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
drop table if exists scada_data;
|
||||||
Reference in New Issue
Block a user