CREATE OR REPLACE FUNCTION protect_super_admin() RETURNS trigger AS $$
BEGIN
    IF OLD.username = 'xqkwljtadmin' THEN
        RAISE EXCEPTION 'protected super administrator cannot be updated or deleted';
    END IF;
    RETURN COALESCE(NEW, OLD);
END;
$$ LANGUAGE plpgsql;
