Get the primary key field(s).
List<FieldInfo> get primaryKeys => fields.values.where((f) => f.isId).toList();