mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
feat: add PUT /api/v2/users/:user-id/suspend endpoint (#1154)
This commit is contained in:
4
coderd/database/migrations/000007_user_status.up.sql
Normal file
4
coderd/database/migrations/000007_user_status.up.sql
Normal file
@ -0,0 +1,4 @@
|
||||
CREATE TYPE user_status AS ENUM ('active', 'suspended');
|
||||
|
||||
ALTER TABLE ONLY users
|
||||
ADD COLUMN IF NOT EXISTS status user_status NOT NULL DEFAULT 'active';
|
Reference in New Issue
Block a user