Files
coder/coderd/database/migrations/000289_system_user.up.sql
Danny Kopping 1150e206e0 Migrations
Exclude system users from users.sql queries

Signed-off-by: Danny Kopping <danny@coder.com>
2025-02-14 12:17:01 +00:00

7 lines
260 B
SQL

ALTER TABLE users
ADD COLUMN is_system bool DEFAULT false;
CREATE INDEX user_is_system_idx ON users USING btree (is_system);
COMMENT ON COLUMN users.is_system IS 'Determines if a user is a system user, and therefore cannot login or perform normal actions';