getPrimaryKeys method
Get the primary key field(s) for a model.
Implementation
List<FieldInfo> getPrimaryKeys(String modelName) {
final model = _models[modelName];
if (model == null) return [];
return model.fields.values.where((f) => f.isId).toList();
}