mirror of
https://github.com/modrinth/code.git
synced 2026-07-31 13:16:38 +00:00
* feat(labrinth): user blocking still wip, nothing is hooked up * style(labrinth): cargo fmt * refactor(labrinth): move block/unblock routes to public api * feat(labrinth): block friend requests if blocked * feat(labrinth): remove friend/request on block * feat(labrinth): get blocked users endpoint
6 lines
211 B
SQL
6 lines
211 B
SQL
CREATE TABLE blocked_users (
|
|
user_id bigint NOT NULL REFERENCES users (id) ON DELETE CASCADE,
|
|
blocked_id bigint NOT NULL REFERENCES users (id) ON DELETE CASCADE,
|
|
PRIMARY KEY (user_id, blocked_id)
|
|
);
|