> Not quite sure what you're trying to do, but you are aware you can change the > value Nim enums serialize to like this right?
I thought it was obvious? The compiler docs specifically use this example for writing ORMs and using macros to specify the relationships to fields. It works fine (and is literally documented) for records, just not enum fields.