ALTER TABLE node_role_assignments
    DROP CONSTRAINT IF EXISTS node_role_assignments_role_check;

ALTER TABLE node_role_assignments
    ADD CONSTRAINT node_role_assignments_role_check
        CHECK (role IN (
            'entry-node',
            'relay-node',
            'core-mesh',
            'rdp-worker',
            'vnc-worker',
            'vpn-exit',
            'vpn-connector',
            'file-storage-cache',
            'update-cache',
            'video-relay'
        ));
