重构现代化 FastAPI 后端项目框架

This commit is contained in:
2026-01-21 16:50:57 +08:00
parent 9e06e68a15
commit c56f2fd1db
352 changed files with 176 additions and 70 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