tortoise / tortoise-orm

Familiar asyncio ORM for python, built with relations in mind
https://tortoise.github.io
Apache License 2.0
4.37k stars 355 forks source link

Is there a django similar scheme to generate model files based on the structure of the existing database python manage.py inspectdb > models.py #1640

Closed 2622594863 closed 3 weeks ago

2622594863 commented 3 weeks ago

Is your feature request related to a problem? Please describe. Is there a django similar scheme to generate model files based on the structure of the existing database python manage.py inspectdb > models.py

Describe the solution you'd like Is there a django similar scheme to generate model files based on the structure of the existing database python manage.py inspectdb > models.py

Describe alternatives you've considered Is there a django similar scheme to generate model files based on the structure of the existing database python manage.py inspectdb > models.py Additional context Is there a django similar scheme to generate model files based on the structure of the existing database python manage.py inspectdb > models.py

abondar commented 3 weeks ago

There is in aerich https://github.com/tortoise/aerich?tab=readme-ov-file#inspect-db-tables-to-tortoiseorm-model