Get and duplicate column type of foreign primary key