The current example is too simplistic because the initialize_db script needs to manually import all of the models.
It would be better to go with the canonical sqlalchemy example of models/meta.py definining Base and then models/__init__.py importing all the models into there.
The current example is too simplistic because the initialize_db script needs to manually import all of the models.
It would be better to go with the canonical sqlalchemy example of
models/meta.py
defininingBase
and thenmodels/__init__.py
importing all the models into there.