Skip to content

refactor(entity): Enums to strings, proto without prefix#32

Merged
behinddwalls merged 1 commit into
mainfrom
sergeyb2
Feb 20, 2026
Merged

refactor(entity): Enums to strings, proto without prefix#32
behinddwalls merged 1 commit into
mainfrom
sergeyb2

Conversation

@sbalabanov
Copy link
Copy Markdown
Contributor

  • Changed model enums to be strings, in both app and db layers. Slightly less performance, big deal for readability.
  • Proto enums do not need suffix, Go codegen adds one anyways
  • If proto (API) enum cannot be mapped to entity (model) enum, an error is returned instead of defaulting

@sbalabanov sbalabanov requested review from a team and behinddwalls as code owners February 20, 2026 06:07
@behinddwalls behinddwalls merged commit 6e138de into main Feb 20, 2026
1 check passed
@behinddwalls behinddwalls deleted the sergeyb2 branch February 20, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants