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

Support generic arguments for models #69

Open
dstoyanoff opened this issue May 24, 2023 · 2 comments
Open

Support generic arguments for models #69

dstoyanoff opened this issue May 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@dstoyanoff
Copy link
Contributor

I think it would be useful if the createModel function can accept a generic type and then each column name can be calculated as a keyof that model or string as a default. That way we would be able to specify a predefined structure of the model, based on a domain model that already exists.

@ridafkih
Copy link
Owner

@dstoyanoff Fantastic idea. Thanks for this suggestion, I can begin looking into an implementation.

@ridafkih ridafkih added the enhancement New feature or request label May 25, 2023
@tsanyqudsi
Copy link

Is that supposed to be a mixin ?

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

3 participants