support int field as primary key