r11 sql schema for registry and roles