Add support for non-integer User class primary key