-- Operator-maintained username blocklist. A name listed here cannot be taken as -- an editable username by any peer (account.updateUsername, channels.updateUsername, -- @BotFather /setusername, or the admin set-username actions). It is a plain -- blocklist: no owner, no price, no Fragment collectible badge. CREATE TABLE public.reserved_usernames ( username_lower text PRIMARY KEY CHECK ( username_lower <> '' AND username_lower = lower(username_lower) ), username text NOT NULL, reason text NOT NULL DEFAULT '' CHECK (octet_length(reason) <= 512), actor text NOT NULL DEFAULT '' CHECK (octet_length(actor) <= 256), created_at timestamptz NOT NULL DEFAULT now() ); CREATE INDEX reserved_usernames_created_at_idx ON public.reserved_usernames (created_at DESC, username_lower);