when using nests registerEnumType codegen generates an enum type that can be used in fe as well.
but codegen only considers enum keys of the source, which in generated.ts become values. if we want matching values (db has all lowercase) we need to use lowercase keys when defining an enum in an entity.
not too nice, since it violates naming convention for enums in typescript, but don't sea a better option to make this work.
when using nests registerEnumType codegen generates an enum type that can be used in fe as well.
but codegen only considers enum keys of the source, which in generated.ts become values. if we want matching values (db has all lowercase) we need to use lowercase keys when defining an enum in an entity. not too nice, since it violates naming convention for enums in typescript, but don't sea a better option to make this work.
test also with https://github.com/plezanje-net/next-web/pull/49