feat: added ban table to the database
This commit is contained in:
parent
2996c6f108
commit
b2e6d3f553
2 changed files with 9 additions and 0 deletions
2
migrations/2025-07-22-195121_add_ban/down.sql
Normal file
2
migrations/2025-07-22-195121_add_ban/down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE guild_bans;
|
7
migrations/2025-07-22-195121_add_ban/up.sql
Normal file
7
migrations/2025-07-22-195121_add_ban/up.sql
Normal 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)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue