changed User schema - using UserType ref table instead of flags