Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating enums #782

Open
askasp opened this issue Sep 23, 2024 · 1 comment
Open

Generating enums #782

askasp opened this issue Sep 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@askasp
Copy link

askasp commented Sep 23, 2024

Great work on this framework.

How do you go about in creating enums? It would be awesome if it was a part of the generator. Lacking that i find it hard to add it directly to my _entities/Model.rs as that gode is overwritten on new generations.

Are there any examples on handling enums with loco?

@askasp askasp added the enhancement New feature or request label Sep 23, 2024
@joshua-mo-143
Copy link
Contributor

Loco uses SeaORM under the hood - you probably wanna check this: https://www.sea-ql.org/SeaORM/docs/generate-entity/enumeration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants