I have a UserRole table where I am storing all the Roles assigned to a User. I have two separate Postgres Function for creating and updating Role:
UserRole