feat: add admin apis
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
-- Account suspension (ban) support for the admin panel. Additive: the column
|
||||
-- is nullable and defaults to NULL (not banned), so existing rows and queries
|
||||
-- are unaffected. Enforcement: RequireAuth rejects a user whose banned_at is
|
||||
-- set, and LogIn refuses to issue a new session for one.
|
||||
ALTER TABLE users
|
||||
ADD COLUMN IF NOT EXISTS banned_at TIMESTAMPTZ;
|
||||
Reference in New Issue
Block a user