MarseyWorld/migrations/20230125-add-button-to-blac...

3 lines
158 B
SQL

alter table users add column blacklisted_by int;
alter table users add constraint user_blacklisted_by_fkey foreign key (blacklisted_by) references users(id);