add check primary key for fields