P5-6033 blacklist collections (#188)

This commit is contained in:
Martin Carlsson
2021-02-12 11:06:50 +01:00
committed by GitHub
parent 33303d641e
commit 352c6ff548
+21
View File
@@ -0,0 +1,21 @@
-- P5-6033: blacklist collections
create table collections_blacklist (
id serial primary key,
collection_id integer not null,
market_id integer not null,
unique(collection_id, market_id)
);
alter table collections_blacklist
add constraint collection_fkey
foreign key (collection_id)
references collections(id) match simple;
alter table collections_blacklist
add constraint market_fkey
foreign key (market_id)
references markets(id) match simple;