Figure out references
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user