feat: added ban table to the database

This commit is contained in:
BAaboe 2025-07-22 21:58:14 +02:00
parent 2996c6f108
commit b2e6d3f553
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE guild_bans;

View file

@ -0,0 +1,7 @@
-- Your SQL goes here
CREATE TABLE guild_bans (
guild_ban uuid NOT NULL REFERENCES guilds(uuid) ON DELETE CASCADE,
user_ban uuid NOT NULL REFERENCES users(uuid),
reason VARCHAR(200) DEFAULT NULL,
PRIMARY KEY (user_uuid, guild_uuid)
);