Figure out references

This commit is contained in:
WQY\qiong
2022-12-17 11:10:15 +08:00
parent 4f103be303
commit 633a616d39
18 changed files with 53 additions and 0 deletions

View File

@@ -22,14 +22,20 @@ create table reactions_pipe_bulk
, value numeric not null
);
-- delete when delete pipe
create table reactions_pipe_wall
(
pipe varchar(32) primary key references pipes(id) not null
, value numeric not null
);
-- delete when delete pipe
create table reactions_tank
(
tank varchar(32) primary key references tanks(id) not null
, value numeric not null
);
-- delete when delete tank