Support user and group foreign key columns with names different to the primary key column names