feat: global banlist for role creation
GLOBAL_ADMINS env controls who can /gban, /gunban, /gbanlist. Banned users blocked from /roleadd across all chats.
This commit is contained in:
parent
85c7410ffb
commit
d00295b291
11 changed files with 434 additions and 2 deletions
8
drizzle/0003_wakeful_doctor_spectrum.sql
Normal file
8
drizzle/0003_wakeful_doctor_spectrum.sql
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
CREATE TABLE "banned_users" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"user_id" bigint NOT NULL,
|
||||
"reason" text,
|
||||
"banned_by" bigint NOT NULL,
|
||||
"created_at" timestamp DEFAULT now() NOT NULL,
|
||||
CONSTRAINT "banned_users_user_id_unique" UNIQUE("user_id")
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue