changed primary key infer to prefer integer fields