Change Reference From Username To Userid (Or Something Else) In Rbac

Hi, I’d like to replace rbac_item_assignment::userid property in table schema(that uses a string name) to an INT that is a foreign key to users::id table.

Where in the code should I edit to get this working when I make assignments and checkAccess?

Thanks!