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,41 @@
-- [REACTIONS]
create table reactions
(
key text primary key
, value text not null
);
insert into reactions (key, value) values
('ORDER BULK', '1')
, ('ORDER WALL', '1')
, ('ORDER TANK', '1')
, ('GLOBAL BULK', '0')
, ('GLOBAL WALL', '0')
, ('LIMITING POTENTIAL', '0')
, ('ROUGHNESS CORRELATION', '0')
;
create table reactions_pipe_bulk
(
pipe varchar(32) primary key references pipes(id) not null
, value float8 not null
);
-- delete when delete pipe
create table reactions_pipe_wall
(
pipe varchar(32) primary key references pipes(id) not null
, value float8 not null
);
-- delete when delete pipe
create table reactions_tank
(
tank varchar(32) primary key references tanks(id) not null
, value float8 not null
);
-- delete when delete tank