djantic icon indicating copy to clipboard operation
djantic copied to clipboard

Is there a function for create schema from model?

Open jet10000 opened this issue 2 years ago • 1 comments

for example:

utils.create_schema(User)

jet10000 avatar Apr 14 '22 10:04 jet10000

Hi @jet10000,

Not currently, but this is something that could be added if someone was interested in doing a PR. I imagine it would mostly be a matter of creating a method that accepts similar inputs to the model class config.

jordaneremieff avatar Apr 14 '22 10:04 jordaneremieff