Initial commit

This commit is contained in:
DingZQ
2025-10-26 08:54:35 +08:00
commit ae6510ac37
679 changed files with 3963666 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
create type scada_model_type as enum ('JUNCTION', 'RESERVOIR', 'TANK', 'PIPE', 'PUMP', 'VALVE');
create type scada_element_status as enum ('OFF', 'ON');
create table scada_element
(
id text primary key
, x float8 not null
, y float8 not null
, device_id text references scada_device(id)
, model_id varchar(32) -- add constraint in API
, model_type scada_model_type
, status scada_element_status not null default 'OFF'
);